mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-02 20:00:05 +02:00
add some packages
This commit is contained in:
4
node_modules/babel-helper-is-nodes-equiv/.npmignore
generated
vendored
Normal file
4
node_modules/babel-helper-is-nodes-equiv/.npmignore
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
src
|
||||
__tests__
|
||||
node_modules
|
||||
*.log
|
7
node_modules/babel-helper-is-nodes-equiv/README.md
generated
vendored
Normal file
7
node_modules/babel-helper-is-nodes-equiv/README.md
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
# babel-helper-is-nodes-equiv
|
||||
|
||||
## Installation
|
||||
|
||||
```sh
|
||||
$ npm install babel-helper-is-nodes-equiv
|
||||
```
|
68
node_modules/babel-helper-is-nodes-equiv/lib/index.js
generated
vendored
Normal file
68
node_modules/babel-helper-is-nodes-equiv/lib/index.js
generated
vendored
Normal file
@@ -0,0 +1,68 @@
|
||||
"use strict";
|
||||
|
||||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
|
||||
|
||||
module.exports = function (t) {
|
||||
function equiv(a, b) {
|
||||
if ((typeof a === "undefined" ? "undefined" : _typeof(a)) !== "object" || (typeof a === "undefined" ? "undefined" : _typeof(a)) !== "object" || a == null || b == null) {
|
||||
return a === b;
|
||||
}
|
||||
|
||||
if (a.type !== b.type) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var fields = Object.keys(t.NODE_FIELDS[a.type]);
|
||||
|
||||
var _iteratorNormalCompletion = true;
|
||||
var _didIteratorError = false;
|
||||
var _iteratorError = undefined;
|
||||
|
||||
try {
|
||||
for (var _iterator = fields[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
||||
var field = _step.value;
|
||||
|
||||
if (_typeof(a[field]) !== _typeof(b[field])) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (Array.isArray(a[field])) {
|
||||
if (!Array.isArray(b[field])) {
|
||||
return false;
|
||||
}
|
||||
if (a[field].length !== b[field].length) {
|
||||
return false;
|
||||
}
|
||||
|
||||
for (var i = 0; i < a[field].length; i++) {
|
||||
if (!equiv(a[field][i], b[field][i])) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!equiv(a[field], b[field])) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
_didIteratorError = true;
|
||||
_iteratorError = err;
|
||||
} finally {
|
||||
try {
|
||||
if (!_iteratorNormalCompletion && _iterator.return) {
|
||||
_iterator.return();
|
||||
}
|
||||
} finally {
|
||||
if (_didIteratorError) {
|
||||
throw _iteratorError;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return equiv;
|
||||
};
|
48
node_modules/babel-helper-is-nodes-equiv/package.json
generated
vendored
Normal file
48
node_modules/babel-helper-is-nodes-equiv/package.json
generated
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"_from": "babel-helper-is-nodes-equiv@^0.0.1",
|
||||
"_id": "babel-helper-is-nodes-equiv@0.0.1",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-NOmzALFHnd2Y7HfqC76TQt/jloQ=",
|
||||
"_location": "/babel-helper-is-nodes-equiv",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "babel-helper-is-nodes-equiv@^0.0.1",
|
||||
"name": "babel-helper-is-nodes-equiv",
|
||||
"escapedName": "babel-helper-is-nodes-equiv",
|
||||
"rawSpec": "^0.0.1",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^0.0.1"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/babel-plugin-minify-simplify"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/babel-helper-is-nodes-equiv/-/babel-helper-is-nodes-equiv-0.0.1.tgz",
|
||||
"_shasum": "34e9b300b1479ddd98ec77ea0bbe9342dfe39684",
|
||||
"_spec": "babel-helper-is-nodes-equiv@^0.0.1",
|
||||
"_where": "/home/s2/Documents/Code/minifyfromhtml/node_modules/babel-plugin-minify-simplify",
|
||||
"author": {
|
||||
"name": "amasad"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/babel/babili/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {},
|
||||
"deprecated": false,
|
||||
"description": "## Installation",
|
||||
"devDependencies": {},
|
||||
"homepage": "https://github.com/babel/babili#readme",
|
||||
"keywords": [
|
||||
"babel-plugin"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "lib/index.js",
|
||||
"name": "babel-helper-is-nodes-equiv",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/babel/babili/tree/master/packages/babel-helper-is-nodes-equiv"
|
||||
},
|
||||
"version": "0.0.1"
|
||||
}
|
Reference in New Issue
Block a user