mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-02 12:00:03 +02:00
update node modules
This commit is contained in:
12
node_modules/acorn-globals/index.js
generated
vendored
12
node_modules/acorn-globals/index.js
generated
vendored
@@ -1,7 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
var acorn = require('acorn');
|
||||
var walk = require('acorn/dist/walk');
|
||||
var walk = require('acorn-walk');
|
||||
|
||||
function isScope(node) {
|
||||
return node.type === 'FunctionExpression' || node.type === 'FunctionDeclaration' || node.type === 'ArrowFunctionExpression' || node.type === 'Program';
|
||||
@@ -53,7 +53,7 @@ function findGlobals(source, options) {
|
||||
if (node.id) {
|
||||
fn.locals[node.id.name] = true;
|
||||
}
|
||||
}
|
||||
};
|
||||
var declarePattern = function (node, parent) {
|
||||
switch (node.type) {
|
||||
case 'Identifier':
|
||||
@@ -79,11 +79,11 @@ function findGlobals(source, options) {
|
||||
default:
|
||||
throw new Error('Unrecognized pattern type: ' + node.type);
|
||||
}
|
||||
}
|
||||
};
|
||||
var declareModuleSpecifier = function (node, parents) {
|
||||
ast.locals = ast.locals || {};
|
||||
ast.locals[node.local.name] = true;
|
||||
}
|
||||
};
|
||||
walk.ancestor(ast, {
|
||||
'VariableDeclaration': function (node, parents) {
|
||||
var parent = null;
|
||||
@@ -139,7 +139,7 @@ function findGlobals(source, options) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
node.parents = parents;
|
||||
node.parents = parents.slice();
|
||||
globals.push(node);
|
||||
}
|
||||
walk.ancestor(ast, {
|
||||
@@ -151,7 +151,7 @@ function findGlobals(source, options) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
node.parents = parents;
|
||||
node.parents = parents.slice();
|
||||
globals.push(node);
|
||||
}
|
||||
});
|
||||
|
25
node_modules/acorn-globals/package.json
generated
vendored
25
node_modules/acorn-globals/package.json
generated
vendored
@@ -1,27 +1,27 @@
|
||||
{
|
||||
"_from": "acorn-globals@^4.1.0",
|
||||
"_id": "acorn-globals@4.1.0",
|
||||
"_from": "acorn-globals@^4.3.0",
|
||||
"_id": "acorn-globals@4.3.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-KjZwU26uG3u6eZcfGbTULzFcsoz6pegNKtHPksZPOUsiKo5bUmiBPa38FuHZ/Eun+XYh/JCCkS9AS3Lu4McQOQ==",
|
||||
"_integrity": "sha512-hMtHj3s5RnuhvHPowpBYvJVj3rAar82JiDQHvGs1zO0l10ocX/xEdBShNHTJaboucJUsScghp74pH3s7EnHHQw==",
|
||||
"_location": "/acorn-globals",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "acorn-globals@^4.1.0",
|
||||
"raw": "acorn-globals@^4.3.0",
|
||||
"name": "acorn-globals",
|
||||
"escapedName": "acorn-globals",
|
||||
"rawSpec": "^4.1.0",
|
||||
"rawSpec": "^4.3.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^4.1.0"
|
||||
"fetchSpec": "^4.3.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/jsdom"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-4.1.0.tgz",
|
||||
"_shasum": "ab716025dbe17c54d3ef81d32ece2b2d99fe2538",
|
||||
"_spec": "acorn-globals@^4.1.0",
|
||||
"_where": "/home/s2/Documents/Code/minifyfromhtml/node_modules/jsdom",
|
||||
"_resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-4.3.0.tgz",
|
||||
"_shasum": "e3b6f8da3c1552a95ae627571f7dd6923bb54103",
|
||||
"_spec": "acorn-globals@^4.3.0",
|
||||
"_where": "E:\\projects\\p\\minifyfromhtml\\node_modules\\jsdom",
|
||||
"author": {
|
||||
"name": "ForbesLindesay"
|
||||
},
|
||||
@@ -30,7 +30,8 @@
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"acorn": "^5.0.0"
|
||||
"acorn": "^6.0.1",
|
||||
"acorn-walk": "^6.0.1"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Detect global variables in JavaScript using acorn",
|
||||
@@ -61,5 +62,5 @@
|
||||
"scripts": {
|
||||
"test": "node test"
|
||||
},
|
||||
"version": "4.1.0"
|
||||
"version": "4.3.0"
|
||||
}
|
||||
|
Reference in New Issue
Block a user