summaryrefslogtreecommitdiff
path: root/school/node_modules/deep-is
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2023-02-23 19:34:56 +0100
committerMinteck <contact@minteck.org>2023-02-23 19:34:56 +0100
commit3d1cd02f27518f1a04374c7c8320cd5d82ede6e9 (patch)
tree75be5fba4368472fb11c8015aee026b2b9a71888 /school/node_modules/deep-is
parent8cc1f13c17fa2fb5a4410542d39e650e02945634 (diff)
downloadpluralconnect-3d1cd02f27518f1a04374c7c8320cd5d82ede6e9.tar.gz
pluralconnect-3d1cd02f27518f1a04374c7c8320cd5d82ede6e9.tar.bz2
pluralconnect-3d1cd02f27518f1a04374c7c8320cd5d82ede6e9.zip
Updated 40 files, added 37 files, deleted 1103 files and renamed 3905 files (automated)
Diffstat (limited to 'school/node_modules/deep-is')
-rw-r--r--school/node_modules/deep-is/.travis.yml5
-rw-r--r--school/node_modules/deep-is/LICENSE22
-rw-r--r--school/node_modules/deep-is/README.markdown70
-rw-r--r--school/node_modules/deep-is/example/cmp.js11
-rw-r--r--school/node_modules/deep-is/index.js102
-rw-r--r--school/node_modules/deep-is/package.json58
-rw-r--r--school/node_modules/deep-is/test/NaN.js16
-rw-r--r--school/node_modules/deep-is/test/cmp.js23
-rw-r--r--school/node_modules/deep-is/test/neg-vs-pos-0.js15
9 files changed, 0 insertions, 322 deletions
diff --git a/school/node_modules/deep-is/.travis.yml b/school/node_modules/deep-is/.travis.yml
deleted file mode 100644
index 58f2371..0000000
--- a/school/node_modules/deep-is/.travis.yml
+++ /dev/null
@@ -1,5 +0,0 @@
-language: node_js
-node_js:
- - 0.6
- - 0.8
- - 0.10
diff --git a/school/node_modules/deep-is/LICENSE b/school/node_modules/deep-is/LICENSE
deleted file mode 100644
index c38f840..0000000
--- a/school/node_modules/deep-is/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-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/school/node_modules/deep-is/README.markdown b/school/node_modules/deep-is/README.markdown
deleted file mode 100644
index eb69a83..0000000
--- a/school/node_modules/deep-is/README.markdown
+++ /dev/null
@@ -1,70 +0,0 @@
-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/school/node_modules/deep-is/example/cmp.js b/school/node_modules/deep-is/example/cmp.js
deleted file mode 100644
index 67014b8..0000000
--- a/school/node_modules/deep-is/example/cmp.js
+++ /dev/null
@@ -1,11 +0,0 @@
-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/school/node_modules/deep-is/index.js b/school/node_modules/deep-is/index.js
deleted file mode 100644
index 506fe27..0000000
--- a/school/node_modules/deep-is/index.js
+++ /dev/null
@@ -1,102 +0,0 @@
-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/school/node_modules/deep-is/package.json b/school/node_modules/deep-is/package.json
deleted file mode 100644
index dae72d7..0000000
--- a/school/node_modules/deep-is/package.json
+++ /dev/null
@@ -1,58 +0,0 @@
-{
- "name": "deep-is",
- "version": "0.1.4",
- "description": "node's assert.deepEqual algorithm except for NaN being equal to NaN",
- "main": "index.js",
- "directories": {
- "lib": ".",
- "example": "example",
- "test": "test"
- },
- "scripts": {
- "test": "tape test/*.js"
- },
- "devDependencies": {
- "tape": "~1.0.2"
- },
- "repository": {
- "type": "git",
- "url": "http://github.com/thlorenz/deep-is.git"
- },
- "keywords": [
- "equality",
- "equal",
- "compare"
- ],
- "author": {
- "name": "Thorsten Lorenz",
- "email": "thlorenz@gmx.de",
- "url": "http://thlorenz.com"
- },
- "license": "MIT",
- "testling": {
- "files": "test/*.js",
- "browsers": {
- "ie": [
- 6,
- 7,
- 8,
- 9
- ],
- "ff": [
- 3.5,
- 10,
- 15
- ],
- "chrome": [
- 10,
- 22
- ],
- "safari": [
- 5.1
- ],
- "opera": [
- 12
- ]
- }
- }
-}
diff --git a/school/node_modules/deep-is/test/NaN.js b/school/node_modules/deep-is/test/NaN.js
deleted file mode 100644
index ddaa5a7..0000000
--- a/school/node_modules/deep-is/test/NaN.js
+++ /dev/null
@@ -1,16 +0,0 @@
-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/school/node_modules/deep-is/test/cmp.js b/school/node_modules/deep-is/test/cmp.js
deleted file mode 100644
index 3071013..0000000
--- a/school/node_modules/deep-is/test/cmp.js
+++ /dev/null
@@ -1,23 +0,0 @@
-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/school/node_modules/deep-is/test/neg-vs-pos-0.js b/school/node_modules/deep-is/test/neg-vs-pos-0.js
deleted file mode 100644
index ac26130..0000000
--- a/school/node_modules/deep-is/test/neg-vs-pos-0.js
+++ /dev/null
@@ -1,15 +0,0 @@
-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();
-});
-