1
0
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:
s2
2019-03-29 15:56:41 +01:00
parent f114871153
commit 89c32fb4e6
8347 changed files with 390123 additions and 159877 deletions

12
node_modules/acorn-globals/index.js generated vendored
View File

@@ -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);
}
});

View File

@@ -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"
}