Hello community,
here is the log from the commit of package nodejs-assert-plus for
openSUSE:Factory checked in at 2014-11-13 09:17:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/nodejs-assert-plus (Old)
and /work/SRC/openSUSE:Factory/.nodejs-assert-plus.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "nodejs-assert-plus"
Changes:
--------
--- /work/SRC/openSUSE:Factory/nodejs-assert-plus/nodejs-assert-plus.changes
2014-10-24 10:45:59.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.nodejs-assert-plus.new/nodejs-assert-plus.changes
2014-11-13 09:18:06.000000000 +0100
@@ -1,0 +2,5 @@
+Fri Oct 24 19:02:48 UTC 2014 - [email protected]
+
+- downgrade to version 0.1.2 to match dependencies
+
+-------------------------------------------------------------------
Old:
----
assert-plus-0.1.5.tgz
New:
----
assert-plus-0.1.2.tgz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ nodejs-assert-plus.spec ++++++
--- /var/tmp/diff_new_pack.RKrSN0/_old 2014-11-13 09:18:07.000000000 +0100
+++ /var/tmp/diff_new_pack.RKrSN0/_new 2014-11-13 09:18:07.000000000 +0100
@@ -19,7 +19,7 @@
%define base_name assert-plus
Name: nodejs-assert-plus
-Version: 0.1.5
+Version: 0.1.2
Release: 0
Summary: Extra assertions on top of node's assert module
License: MIT
++++++ assert-plus-0.1.5.tgz -> assert-plus-0.1.2.tgz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/package/assert.js new/package/assert.js
--- old/package/assert.js 2013-11-25 18:14:41.000000000 +0100
+++ new/package/assert.js 2012-09-18 23:44:03.000000000 +0200
@@ -9,7 +9,6 @@
///--- Globals
var NDEBUG = process.env.NODE_NDEBUG || false;
-var UUID_REGEXP =
/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
@@ -54,28 +53,6 @@
}
-function _instanceof(arg, type, name, stackFunc) {
- if (!NDEBUG) {
- name = name || type;
- stackFunc = stackFunc || _instanceof.caller;
-
- if (!(arg instanceof type)) {
- throw new assert.AssertionError({
- message: _(TYPE_REQUIRED, name, type.name),
- actual: _getClass(arg),
- expected: type.name,
- operator: 'instanceof',
- stackStartFunction: stackFunc
- });
- }
- }
-}
-
-function _getClass(object) {
- return (Object.prototype.toString.call(object).slice(8, -1));
-};
-
-
///--- API
@@ -108,7 +85,7 @@
function buffer(arg, name) {
if (!Buffer.isBuffer(arg)) {
throw new assert.AssertionError({
- message: _(TYPE_REQUIRED, name || '', 'Buffer'),
+ message: _(TYPE_REQUIRED, name, type),
actual: typeof (arg),
expected: 'buffer',
operator: 'Buffer.isBuffer',
@@ -125,15 +102,6 @@
function number(arg, name) {
_assert(arg, 'number', name);
- if (!NDEBUG && (isNaN(arg) || !isFinite(arg))) {
- throw new assert.AssertionError({
- message: _(TYPE_REQUIRED, name, 'number'),
- actual: arg,
- expected: 'number',
- operator: 'isNaN',
- stackStartFunction: number
- });
- }
}
@@ -143,16 +111,15 @@
function stream(arg, name) {
- _instanceof(arg, Stream, name);
-}
-
-
-function date(arg, name) {
- _instanceof(arg, Date, name);
-}
-
-function regexp(arg, name) {
- _instanceof(arg, RegExp, name);
+ if (!(arg instanceof Stream)) {
+ throw new assert.AssertionError({
+ message: _(TYPE_REQUIRED, name, type),
+ actual: typeof (arg),
+ expected: 'Stream',
+ operator: 'instanceof',
+ stackStartFunction: buffer
+ });
+ }
}
@@ -161,33 +128,17 @@
}
-function uuid(arg, name) {
- string(arg, name);
- if (!NDEBUG && !UUID_REGEXP.test(arg)) {
- throw new assert.AssertionError({
- message: _(TYPE_REQUIRED, name, 'uuid'),
- actual: 'string',
- expected: 'uuid',
- operator: 'test',
- stackStartFunction: uuid
- });
- }
-}
-
///--- Exports
module.exports = {
bool: bool,
buffer: buffer,
- date: date,
func: func,
number: number,
object: object,
- regexp: regexp,
stream: stream,
- string: string,
- uuid: uuid
+ string: string
};
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/package/package.json new/package/package.json
--- old/package/package.json 2013-11-25 18:23:20.000000000 +0100
+++ new/package/package.json 2012-09-18 23:44:18.000000000 +0200
@@ -1,16 +1,13 @@
{
- "author": "Mark Cavage <[email protected]>",
- "name": "assert-plus",
- "description": "Extra assertions on top of node's assert module",
- "version": "0.1.5",
- "main": "./assert.js",
- "devDependencies": {},
- "optionalDependencies": {},
- "repository": {
- "type": "git",
- "url": "https://github.com/mcavage/node-assert-plus.git"
- },
- "engines": {
- "node": ">=0.8"
- }
+ "author": "Mark Cavage <[email protected]>",
+ "name": "assert-plus",
+ "description": "Extra assertions on top of node's assert module",
+ "version": "0.1.2",
+ "main": "./assert.js",
+ "dependencies": {},
+ "devDependencies": {},
+ "optionalDependencies": {},
+ "engines": {
+ "node": ">=0.6"
+ }
}
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]