mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-02 20:00:05 +02:00
update node modules
This commit is contained in:
19
node_modules/fast-deep-equal/README.md
generated
vendored
19
node_modules/fast-deep-equal/README.md
generated
vendored
@@ -30,15 +30,18 @@ console.log(equal({foo: 'bar'}, {foo: 'bar'})); // true
|
||||
|
||||
## Performance benchmark
|
||||
|
||||
Node.js v9.11.1:
|
||||
|
||||
```
|
||||
fast-deep-equal x 82,915 ops/sec ±0.63% (89 runs sampled)
|
||||
nano-equal x 50,506 ops/sec ±2.23% (86 runs sampled)
|
||||
shallow-equal-fuzzy x 14,873 ops/sec ±3.19% (83 runs sampled)
|
||||
underscore.isEqual x 16,055 ops/sec ±2.29% (85 runs sampled)
|
||||
lodash.isEqual x 10,740 ops/sec ±1.04% (89 runs sampled)
|
||||
deep-equal x 12,276 ops/sec ±2.44% (84 runs sampled)
|
||||
deep-eql x 10,565 ops/sec ±0.89% (90 runs sampled)
|
||||
assert.deepStrictEqual x 965 ops/sec ±2.99% (81 runs sampled)
|
||||
fast-deep-equal x 226,960 ops/sec ±1.55% (86 runs sampled)
|
||||
nano-equal x 218,210 ops/sec ±0.79% (89 runs sampled)
|
||||
shallow-equal-fuzzy x 206,762 ops/sec ±0.84% (88 runs sampled)
|
||||
underscore.isEqual x 128,668 ops/sec ±0.75% (91 runs sampled)
|
||||
lodash.isEqual x 44,895 ops/sec ±0.67% (85 runs sampled)
|
||||
deep-equal x 51,616 ops/sec ±0.96% (90 runs sampled)
|
||||
deep-eql x 28,218 ops/sec ±0.42% (85 runs sampled)
|
||||
assert.deepStrictEqual x 1,777 ops/sec ±1.05% (86 runs sampled)
|
||||
ramda.equals x 13,466 ops/sec ±0.82% (86 runs sampled)
|
||||
The fastest is fast-deep-equal
|
||||
```
|
||||
|
||||
|
50
node_modules/fast-deep-equal/index.js
generated
vendored
50
node_modules/fast-deep-equal/index.js
generated
vendored
@@ -7,43 +7,43 @@ var hasProp = Object.prototype.hasOwnProperty;
|
||||
module.exports = function equal(a, b) {
|
||||
if (a === b) return true;
|
||||
|
||||
var arrA = isArray(a)
|
||||
, arrB = isArray(b)
|
||||
, i
|
||||
, length
|
||||
, key;
|
||||
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
||||
var arrA = isArray(a)
|
||||
, arrB = isArray(b)
|
||||
, i
|
||||
, length
|
||||
, key;
|
||||
|
||||
if (arrA && arrB) {
|
||||
length = a.length;
|
||||
if (length != b.length) return false;
|
||||
for (i = 0; i < length; i++)
|
||||
if (!equal(a[i], b[i])) return false;
|
||||
return true;
|
||||
}
|
||||
if (arrA && arrB) {
|
||||
length = a.length;
|
||||
if (length != b.length) return false;
|
||||
for (i = length; i-- !== 0;)
|
||||
if (!equal(a[i], b[i])) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
if (arrA != arrB) return false;
|
||||
if (arrA != arrB) return false;
|
||||
|
||||
var dateA = a instanceof Date
|
||||
, dateB = b instanceof Date;
|
||||
if (dateA != dateB) return false;
|
||||
if (dateA && dateB) return a.getTime() == b.getTime();
|
||||
var dateA = a instanceof Date
|
||||
, dateB = b instanceof Date;
|
||||
if (dateA != dateB) return false;
|
||||
if (dateA && dateB) return a.getTime() == b.getTime();
|
||||
|
||||
var regexpA = a instanceof RegExp
|
||||
, regexpB = b instanceof RegExp;
|
||||
if (regexpA != regexpB) return false;
|
||||
if (regexpA && regexpB) return a.toString() == b.toString();
|
||||
var regexpA = a instanceof RegExp
|
||||
, regexpB = b instanceof RegExp;
|
||||
if (regexpA != regexpB) return false;
|
||||
if (regexpA && regexpB) return a.toString() == b.toString();
|
||||
|
||||
if (a instanceof Object && b instanceof Object) {
|
||||
var keys = keyList(a);
|
||||
length = keys.length;
|
||||
|
||||
if (length !== keyList(b).length)
|
||||
return false;
|
||||
|
||||
for (i = 0; i < length; i++)
|
||||
for (i = length; i-- !== 0;)
|
||||
if (!hasProp.call(b, keys[i])) return false;
|
||||
|
||||
for (i = 0; i < length; i++) {
|
||||
for (i = length; i-- !== 0;) {
|
||||
key = keys[i];
|
||||
if (!equal(a[key], b[key])) return false;
|
||||
}
|
||||
@@ -51,5 +51,5 @@ module.exports = function equal(a, b) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
return a!==a && b!==b;
|
||||
};
|
||||
|
35
node_modules/fast-deep-equal/package.json
generated
vendored
35
node_modules/fast-deep-equal/package.json
generated
vendored
@@ -1,27 +1,27 @@
|
||||
{
|
||||
"_from": "fast-deep-equal@^1.0.0",
|
||||
"_id": "fast-deep-equal@1.1.0",
|
||||
"_from": "fast-deep-equal@^2.0.1",
|
||||
"_id": "fast-deep-equal@2.0.1",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-wFNHeBfIa1HaqFPIHgWbcz0CNhQ=",
|
||||
"_integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=",
|
||||
"_location": "/fast-deep-equal",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "fast-deep-equal@^1.0.0",
|
||||
"raw": "fast-deep-equal@^2.0.1",
|
||||
"name": "fast-deep-equal",
|
||||
"escapedName": "fast-deep-equal",
|
||||
"rawSpec": "^1.0.0",
|
||||
"rawSpec": "^2.0.1",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^1.0.0"
|
||||
"fetchSpec": "^2.0.1"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/ajv"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz",
|
||||
"_shasum": "c053477817c86b51daa853c81e059b733d023614",
|
||||
"_spec": "fast-deep-equal@^1.0.0",
|
||||
"_where": "/home/s2/Documents/Code/minifyfromhtml/node_modules/ajv",
|
||||
"_resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz",
|
||||
"_shasum": "7b05218ddf9667bf7f370bf7fdb2cb15fdd0aa49",
|
||||
"_spec": "fast-deep-equal@^2.0.1",
|
||||
"_where": "E:\\projects\\p\\minifyfromhtml\\node_modules\\ajv",
|
||||
"author": {
|
||||
"name": "Evgeny Poberezkin"
|
||||
},
|
||||
@@ -34,17 +34,18 @@
|
||||
"devDependencies": {
|
||||
"benchmark": "^2.1.4",
|
||||
"coveralls": "^2.13.1",
|
||||
"deep-eql": "^2.0.2",
|
||||
"deep-equal": "^1.0.1",
|
||||
"deep-eql": "latest",
|
||||
"deep-equal": "latest",
|
||||
"eslint": "^4.0.0",
|
||||
"lodash": "^4.17.4",
|
||||
"lodash": "latest",
|
||||
"mocha": "^3.4.2",
|
||||
"nano-equal": "^1.0.1",
|
||||
"nano-equal": "latest",
|
||||
"nyc": "^11.0.2",
|
||||
"pre-commit": "^1.2.2",
|
||||
"shallow-equal-fuzzy": "0.0.2",
|
||||
"ramda": "latest",
|
||||
"shallow-equal-fuzzy": "latest",
|
||||
"typescript": "^2.6.1",
|
||||
"underscore": "^1.8.3"
|
||||
"underscore": "latest"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
@@ -81,5 +82,5 @@
|
||||
"test-ts": "tsc --target ES5 --noImplicitAny index.d.ts"
|
||||
},
|
||||
"types": "index.d.ts",
|
||||
"version": "1.1.0"
|
||||
"version": "2.0.1"
|
||||
}
|
||||
|
Reference in New Issue
Block a user