aboutsummaryrefslogtreecommitdiffstats
path: root/vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is
diff options
context:
space:
mode:
authorseshukm <seshu.kumar.m@huawei.com>2017-04-10 15:52:12 +0530
committerseshukm <seshu.kumar.m@huawei.com>2017-04-10 15:52:12 +0530
commit84b3a1c939dc2baf22f9f5e30029b263c1512ade (patch)
tree131f2c17ad61078f95425eab1e349b96d0245d36 /vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is
parentef9cd2561e325c82d4d1fcb03fef4582a53d7839 (diff)
Integration of VNFMarket to Main GUI
IssueId : CLIENT-189 Change-Id: I37f49f6447ba2d5fb57779754117549eb315f0b5 Signed-off-by: seshukm <seshu.kumar.m@huawei.com>
Diffstat (limited to 'vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is')
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is/.npmignore1
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is/.travis.yml6
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is/LICENSE22
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is/README.markdown70
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is/example/cmp.js11
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is/index.js102
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is/package.json120
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is/test/NaN.js16
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is/test/cmp.js23
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is/test/neg-vs-pos-0.js15
10 files changed, 386 insertions, 0 deletions
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is/.npmignore b/vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is/.npmignore
new file mode 100644
index 00000000..3c3629e6
--- /dev/null
+++ b/vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is/.npmignore
@@ -0,0 +1 @@
+node_modules
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is/.travis.yml b/vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is/.travis.yml
new file mode 100644
index 00000000..d523c5f5
--- /dev/null
+++ b/vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is/.travis.yml
@@ -0,0 +1,6 @@
+language: node_js
+node_js:
+ - 0.4
+ - 0.6
+ - 0.8
+ - 0.10
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is/LICENSE b/vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is/LICENSE
new file mode 100644
index 00000000..c38f8407
--- /dev/null
+++ b/vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is/LICENSE
@@ -0,0 +1,22 @@
+Copyright (c) 2012, 2013 Thorsten Lorenz <thlorenz@gmx.de>
+Copyright (c) 2012 James Halliday <mail@substack.net>
+Copyright (c) 2009 Thomas Robinson <280north.com>
+
+This software is released under the MIT license:
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is/README.markdown b/vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is/README.markdown
new file mode 100644
index 00000000..eb69a83b
--- /dev/null
+++ b/vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is/README.markdown
@@ -0,0 +1,70 @@
+deep-is
+==========
+
+Node's `assert.deepEqual() algorithm` as a standalone module. Exactly like
+[deep-equal](https://github.com/substack/node-deep-equal) except for the fact that `deepEqual(NaN, NaN) === true`.
+
+This module is around [5 times faster](https://gist.github.com/2790507)
+than wrapping `assert.deepEqual()` in a `try/catch`.
+
+[![browser support](http://ci.testling.com/thlorenz/deep-is.png)](http://ci.testling.com/thlorenz/deep-is)
+
+[![build status](https://secure.travis-ci.org/thlorenz/deep-is.png)](http://travis-ci.org/thlorenz/deep-is)
+
+example
+=======
+
+``` js
+var equal = require('deep-is');
+console.dir([
+ equal(
+ { a : [ 2, 3 ], b : [ 4 ] },
+ { a : [ 2, 3 ], b : [ 4 ] }
+ ),
+ equal(
+ { x : 5, y : [6] },
+ { x : 5, y : 6 }
+ )
+]);
+```
+
+methods
+=======
+
+var deepIs = require('deep-is')
+
+deepIs(a, b)
+---------------
+
+Compare objects `a` and `b`, returning whether they are equal according to a
+recursive equality algorithm.
+
+install
+=======
+
+With [npm](http://npmjs.org) do:
+
+```
+npm install deep-is
+```
+
+test
+====
+
+With [npm](http://npmjs.org) do:
+
+```
+npm test
+```
+
+license
+=======
+
+Copyright (c) 2012, 2013 Thorsten Lorenz <thlorenz@gmx.de>
+Copyright (c) 2012 James Halliday <mail@substack.net>
+
+Derived largely from node's assert module, which has the copyright statement:
+
+Copyright (c) 2009 Thomas Robinson <280north.com>
+
+Released under the MIT license, see LICENSE for details.
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is/example/cmp.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is/example/cmp.js
new file mode 100644
index 00000000..67014b88
--- /dev/null
+++ b/vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is/example/cmp.js
@@ -0,0 +1,11 @@
+var equal = require('../');
+console.dir([
+ equal(
+ { a : [ 2, 3 ], b : [ 4 ] },
+ { a : [ 2, 3 ], b : [ 4 ] }
+ ),
+ equal(
+ { x : 5, y : [6] },
+ { x : 5, y : 6 }
+ )
+]);
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is/index.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is/index.js
new file mode 100644
index 00000000..506fe279
--- /dev/null
+++ b/vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is/index.js
@@ -0,0 +1,102 @@
+var pSlice = Array.prototype.slice;
+var Object_keys = typeof Object.keys === 'function'
+ ? Object.keys
+ : function (obj) {
+ var keys = [];
+ for (var key in obj) keys.push(key);
+ return keys;
+ }
+;
+
+var deepEqual = module.exports = function (actual, expected) {
+ // enforce Object.is +0 !== -0
+ if (actual === 0 && expected === 0) {
+ return areZerosEqual(actual, expected);
+
+ // 7.1. All identical values are equivalent, as determined by ===.
+ } else if (actual === expected) {
+ return true;
+
+ } else if (actual instanceof Date && expected instanceof Date) {
+ return actual.getTime() === expected.getTime();
+
+ } else if (isNumberNaN(actual)) {
+ return isNumberNaN(expected);
+
+ // 7.3. Other pairs that do not both pass typeof value == 'object',
+ // equivalence is determined by ==.
+ } else if (typeof actual != 'object' && typeof expected != 'object') {
+ return actual == expected;
+
+ // 7.4. For all other Object pairs, including Array objects, equivalence is
+ // determined by having the same number of owned properties (as verified
+ // with Object.prototype.hasOwnProperty.call), the same set of keys
+ // (although not necessarily the same order), equivalent values for every
+ // corresponding key, and an identical 'prototype' property. Note: this
+ // accounts for both named and indexed properties on Arrays.
+ } else {
+ return objEquiv(actual, expected);
+ }
+};
+
+function isUndefinedOrNull(value) {
+ return value === null || value === undefined;
+}
+
+function isArguments(object) {
+ return Object.prototype.toString.call(object) == '[object Arguments]';
+}
+
+function isNumberNaN(value) {
+ // NaN === NaN -> false
+ return typeof value == 'number' && value !== value;
+}
+
+function areZerosEqual(zeroA, zeroB) {
+ // (1 / +0|0) -> Infinity, but (1 / -0) -> -Infinity and (Infinity !== -Infinity)
+ return (1 / zeroA) === (1 / zeroB);
+}
+
+function objEquiv(a, b) {
+ if (isUndefinedOrNull(a) || isUndefinedOrNull(b))
+ return false;
+
+ // an identical 'prototype' property.
+ if (a.prototype !== b.prototype) return false;
+ //~~~I've managed to break Object.keys through screwy arguments passing.
+ // Converting to array solves the problem.
+ if (isArguments(a)) {
+ if (!isArguments(b)) {
+ return false;
+ }
+ a = pSlice.call(a);
+ b = pSlice.call(b);
+ return deepEqual(a, b);
+ }
+ try {
+ var ka = Object_keys(a),
+ kb = Object_keys(b),
+ key, i;
+ } catch (e) {//happens when one is a string literal and the other isn't
+ return false;
+ }
+ // having the same number of owned properties (keys incorporates
+ // hasOwnProperty)
+ if (ka.length != kb.length)
+ return false;
+ //the same set of keys (although not necessarily the same order),
+ ka.sort();
+ kb.sort();
+ //~~~cheap key test
+ for (i = ka.length - 1; i >= 0; i--) {
+ if (ka[i] != kb[i])
+ return false;
+ }
+ //equivalent values for every corresponding key, and
+ //~~~possibly expensive deep test
+ for (i = ka.length - 1; i >= 0; i--) {
+ key = ka[i];
+ if (!deepEqual(a[key], b[key])) return false;
+ }
+ return true;
+}
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is/package.json b/vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is/package.json
new file mode 100644
index 00000000..4b989e04
--- /dev/null
+++ b/vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is/package.json
@@ -0,0 +1,120 @@
+{
+ "_args": [
+ [
+ {
+ "raw": "deep-is@~0.1.2",
+ "scope": null,
+ "escapedName": "deep-is",
+ "name": "deep-is",
+ "rawSpec": "~0.1.2",
+ "spec": ">=0.1.2 <0.2.0",
+ "type": "range"
+ },
+ "C:\\apache-tomcat-8.5.11\\webapps\\vnfmarket\\node_modules\\optionator"
+ ]
+ ],
+ "_from": "deep-is@>=0.1.2 <0.2.0",
+ "_id": "deep-is@0.1.3",
+ "_inCache": true,
+ "_location": "/deep-is",
+ "_npmUser": {
+ "name": "thlorenz",
+ "email": "thlorenz@gmx.de"
+ },
+ "_npmVersion": "1.4.14",
+ "_phantomChildren": {},
+ "_requested": {
+ "raw": "deep-is@~0.1.2",
+ "scope": null,
+ "escapedName": "deep-is",
+ "name": "deep-is",
+ "rawSpec": "~0.1.2",
+ "spec": ">=0.1.2 <0.2.0",
+ "type": "range"
+ },
+ "_requiredBy": [
+ "/optionator"
+ ],
+ "_resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz",
+ "_shasum": "b369d6fb5dbc13eecf524f91b070feedc357cf34",
+ "_shrinkwrap": null,
+ "_spec": "deep-is@~0.1.2",
+ "_where": "C:\\apache-tomcat-8.5.11\\webapps\\vnfmarket\\node_modules\\optionator",
+ "author": {
+ "name": "Thorsten Lorenz",
+ "email": "thlorenz@gmx.de",
+ "url": "http://thlorenz.com"
+ },
+ "bugs": {
+ "url": "https://github.com/thlorenz/deep-is/issues"
+ },
+ "dependencies": {},
+ "description": "node's assert.deepEqual algorithm except for NaN being equal to NaN",
+ "devDependencies": {
+ "tape": "~1.0.2"
+ },
+ "directories": {
+ "lib": ".",
+ "example": "example",
+ "test": "test"
+ },
+ "dist": {
+ "shasum": "b369d6fb5dbc13eecf524f91b070feedc357cf34",
+ "tarball": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz"
+ },
+ "gitHead": "f126057628423458636dec9df3d621843b9ac55e",
+ "homepage": "https://github.com/thlorenz/deep-is",
+ "keywords": [
+ "equality",
+ "equal",
+ "compare"
+ ],
+ "license": {
+ "type": "MIT",
+ "url": "https://github.com/thlorenz/deep-is/blob/master/LICENSE"
+ },
+ "main": "index.js",
+ "maintainers": [
+ {
+ "name": "thlorenz",
+ "email": "thlorenz@gmx.de"
+ }
+ ],
+ "name": "deep-is",
+ "optionalDependencies": {},
+ "readme": "ERROR: No README data found!",
+ "repository": {
+ "type": "git",
+ "url": "git+ssh://git@github.com/thlorenz/deep-is.git"
+ },
+ "scripts": {
+ "test": "tape test/*.js"
+ },
+ "testling": {
+ "files": "test/*.js",
+ "browsers": {
+ "ie": [
+ 6,
+ 7,
+ 8,
+ 9
+ ],
+ "ff": [
+ 3.5,
+ 10,
+ 15
+ ],
+ "chrome": [
+ 10,
+ 22
+ ],
+ "safari": [
+ 5.1
+ ],
+ "opera": [
+ 12
+ ]
+ }
+ },
+ "version": "0.1.3"
+}
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is/test/NaN.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is/test/NaN.js
new file mode 100644
index 00000000..ddaa5a77
--- /dev/null
+++ b/vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is/test/NaN.js
@@ -0,0 +1,16 @@
+var test = require('tape');
+var equal = require('../');
+
+test('NaN and 0 values', function (t) {
+ t.ok(equal(NaN, NaN));
+ t.notOk(equal(0, NaN));
+ t.ok(equal(0, 0));
+ t.notOk(equal(0, 1));
+ t.end();
+});
+
+
+test('nested NaN values', function (t) {
+ t.ok(equal([ NaN, 1, NaN ], [ NaN, 1, NaN ]));
+ t.end();
+});
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is/test/cmp.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is/test/cmp.js
new file mode 100644
index 00000000..30710134
--- /dev/null
+++ b/vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is/test/cmp.js
@@ -0,0 +1,23 @@
+var test = require('tape');
+var equal = require('../');
+
+test('equal', function (t) {
+ t.ok(equal(
+ { a : [ 2, 3 ], b : [ 4 ] },
+ { a : [ 2, 3 ], b : [ 4 ] }
+ ));
+ t.end();
+});
+
+test('not equal', function (t) {
+ t.notOk(equal(
+ { x : 5, y : [6] },
+ { x : 5, y : 6 }
+ ));
+ t.end();
+});
+
+test('nested nulls', function (t) {
+ t.ok(equal([ null, null, null ], [ null, null, null ]));
+ t.end();
+});
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is/test/neg-vs-pos-0.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is/test/neg-vs-pos-0.js
new file mode 100644
index 00000000..ac26130e
--- /dev/null
+++ b/vnfmarket/src/main/webapp/vnfmarket/node_modules/deep-is/test/neg-vs-pos-0.js
@@ -0,0 +1,15 @@
+var test = require('tape');
+var equal = require('../');
+
+test('0 values', function (t) {
+ t.ok(equal( 0, 0), ' 0 === 0');
+ t.ok(equal( 0, +0), ' 0 === +0');
+ t.ok(equal(+0, +0), '+0 === +0');
+ t.ok(equal(-0, -0), '-0 === -0');
+
+ t.notOk(equal(-0, 0), '-0 !== 0');
+ t.notOk(equal(-0, +0), '-0 !== +0');
+
+ t.end();
+});
+