mirror of
https://github.com/actions/labeler
synced 2026-05-11 22:31:10 +02:00
build
This commit is contained in:
24
node_modules/acorn-globals/index.js
generated
vendored
24
node_modules/acorn-globals/index.js
generated
vendored
@@ -46,7 +46,7 @@ function findGlobals(source, options) {
|
||||
}
|
||||
var declareFunction = function (node) {
|
||||
var fn = node;
|
||||
fn.locals = fn.locals || {};
|
||||
fn.locals = fn.locals || Object.create(null);
|
||||
node.params.forEach(function (node) {
|
||||
declarePattern(node, fn);
|
||||
});
|
||||
@@ -54,6 +54,12 @@ function findGlobals(source, options) {
|
||||
fn.locals[node.id.name] = true;
|
||||
}
|
||||
};
|
||||
var declareClass = function (node) {
|
||||
node.locals = node.locals || Object.create(null);
|
||||
if (node.id) {
|
||||
node.locals[node.id.name] = true;
|
||||
}
|
||||
};
|
||||
var declarePattern = function (node, parent) {
|
||||
switch (node.type) {
|
||||
case 'Identifier':
|
||||
@@ -81,7 +87,7 @@ function findGlobals(source, options) {
|
||||
}
|
||||
};
|
||||
var declareModuleSpecifier = function (node, parents) {
|
||||
ast.locals = ast.locals || {};
|
||||
ast.locals = ast.locals || Object.create(null);
|
||||
ast.locals[node.local.name] = true;
|
||||
};
|
||||
walk.ancestor(ast, {
|
||||
@@ -92,7 +98,7 @@ function findGlobals(source, options) {
|
||||
parent = parents[i];
|
||||
}
|
||||
}
|
||||
parent.locals = parent.locals || {};
|
||||
parent.locals = parent.locals || Object.create(null);
|
||||
node.declarations.forEach(function (declaration) {
|
||||
declarePattern(declaration.id, parent);
|
||||
});
|
||||
@@ -104,7 +110,7 @@ function findGlobals(source, options) {
|
||||
parent = parents[i];
|
||||
}
|
||||
}
|
||||
parent.locals = parent.locals || {};
|
||||
parent.locals = parent.locals || Object.create(null);
|
||||
if (node.id) {
|
||||
parent.locals[node.id.name] = true;
|
||||
}
|
||||
@@ -118,15 +124,17 @@ function findGlobals(source, options) {
|
||||
parent = parents[i];
|
||||
}
|
||||
}
|
||||
parent.locals = parent.locals || {};
|
||||
parent.locals = parent.locals || Object.create(null);
|
||||
if (node.id) {
|
||||
parent.locals[node.id.name] = true;
|
||||
}
|
||||
declareClass(node);
|
||||
},
|
||||
'Class': declareClass,
|
||||
'TryStatement': function (node) {
|
||||
if (node.handler === null) return;
|
||||
node.handler.locals = node.handler.locals || {};
|
||||
node.handler.locals[node.handler.param.name] = true;
|
||||
node.handler.locals = node.handler.locals || Object.create(null);
|
||||
declarePattern(node.handler.param, node.handler);
|
||||
},
|
||||
'ImportDefaultSpecifier': declareModuleSpecifier,
|
||||
'ImportSpecifier': declareModuleSpecifier,
|
||||
@@ -159,7 +167,7 @@ function findGlobals(source, options) {
|
||||
globals.push(node);
|
||||
}
|
||||
});
|
||||
var groupedGlobals = {};
|
||||
var groupedGlobals = Object.create(null);
|
||||
globals.forEach(function (node) {
|
||||
var name = node.type === 'ThisExpression' ? 'this' : node.name;
|
||||
groupedGlobals[name] = (groupedGlobals[name] || []);
|
||||
|
||||
12
node_modules/acorn-globals/node_modules/acorn/CHANGELOG.md
generated
vendored
12
node_modules/acorn-globals/node_modules/acorn/CHANGELOG.md
generated
vendored
@@ -1,3 +1,15 @@
|
||||
## 6.4.0 (2019-11-26)
|
||||
|
||||
### New features
|
||||
|
||||
Add a static `acorn` property to the `Parser` class that contains the entire module interface, to allow plugins to access the instance of the library that they are acting on.
|
||||
|
||||
## 6.3.0 (2019-08-12)
|
||||
|
||||
### New features
|
||||
|
||||
`sourceType: "module"` can now be used even when `ecmaVersion` is less than 6, to parse module-style code that otherwise conforms to an older standard.
|
||||
|
||||
## 6.2.1 (2019-07-21)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
3
node_modules/acorn-globals/node_modules/acorn/README.md
generated
vendored
3
node_modules/acorn-globals/node_modules/acorn/README.md
generated
vendored
@@ -64,6 +64,9 @@ an object containing any of these fields:
|
||||
either `"script"` or `"module"`. This influences global strict mode
|
||||
and parsing of `import` and `export` declarations.
|
||||
|
||||
**NOTE**: If set to `"module"`, then static `import` / `export` syntax
|
||||
will be valid, even if `ecmaVersion` is less than 6.
|
||||
|
||||
- **onInsertedSemicolon**: If given a callback, that callback will be
|
||||
called whenever a missing semicolon is inserted by the parser. The
|
||||
callback will be given the character offset of the point where the
|
||||
|
||||
10
node_modules/acorn-globals/node_modules/acorn/dist/acorn.d.ts
generated
vendored
10
node_modules/acorn-globals/node_modules/acorn/dist/acorn.d.ts
generated
vendored
@@ -36,14 +36,14 @@ declare namespace acorn {
|
||||
|
||||
class Parser {
|
||||
constructor(options: Options, input: string, startPos?: number)
|
||||
parse(): Node
|
||||
static parse(input: string, options?: Options): Node
|
||||
static parseExpressionAt(input: string, pos: number, options?: Options): Node
|
||||
static tokenizer(input: string, options?: Options): {
|
||||
parse(this: Parser): Node
|
||||
static parse(this: typeof Parser, input: string, options?: Options): Node
|
||||
static parseExpressionAt(this: typeof Parser, input: string, pos: number, options?: Options): Node
|
||||
static tokenizer(this: typeof Parser, input: string, options?: Options): {
|
||||
getToken(): Token
|
||||
[Symbol.iterator](): Iterator<Token>
|
||||
}
|
||||
static extend(...plugins: ((BaseParser: typeof Parser) => typeof Parser)[]): typeof Parser
|
||||
static extend(this: typeof Parser, ...plugins: ((BaseParser: typeof Parser) => typeof Parser)[]): typeof Parser
|
||||
}
|
||||
|
||||
interface Position { line: number; column: number; offset: number }
|
||||
|
||||
44
node_modules/acorn-globals/node_modules/acorn/dist/acorn.js
generated
vendored
44
node_modules/acorn-globals/node_modules/acorn/dist/acorn.js
generated
vendored
@@ -20,6 +20,7 @@
|
||||
|
||||
var keywords = {
|
||||
5: ecma5AndLessKeywords,
|
||||
"5module": ecma5AndLessKeywords + " export import",
|
||||
6: ecma5AndLessKeywords + " const class extends export import super"
|
||||
};
|
||||
|
||||
@@ -467,7 +468,7 @@
|
||||
var Parser = function Parser(options, input, startPos) {
|
||||
this.options = options = getOptions(options);
|
||||
this.sourceFile = options.sourceFile;
|
||||
this.keywords = wordsRegexp(keywords[options.ecmaVersion >= 6 ? 6 : 5]);
|
||||
this.keywords = wordsRegexp(keywords[options.ecmaVersion >= 6 ? 6 : options.sourceType === "module" ? "5module" : 5]);
|
||||
var reserved = "";
|
||||
if (options.allowReserved !== true) {
|
||||
for (var v = options.ecmaVersion;; v--)
|
||||
@@ -754,9 +755,7 @@
|
||||
} }
|
||||
this.adaptDirectivePrologue(node.body);
|
||||
this.next();
|
||||
if (this.options.ecmaVersion >= 6) {
|
||||
node.sourceType = this.options.sourceType;
|
||||
}
|
||||
node.sourceType = this.options.sourceType;
|
||||
return this.finishNode(node, "Program")
|
||||
};
|
||||
|
||||
@@ -2113,7 +2112,7 @@
|
||||
if (computed || this.eat(types.dot)) {
|
||||
var node = this.startNodeAt(startPos, startLoc);
|
||||
node.object = base;
|
||||
node.property = computed ? this.parseExpression() : this.parseIdent(true);
|
||||
node.property = computed ? this.parseExpression() : this.parseIdent(this.options.allowReserved !== "never");
|
||||
node.computed = !!computed;
|
||||
if (computed) { this.expect(types.bracketR); }
|
||||
base = this.finishNode(node, "MemberExpression");
|
||||
@@ -2580,7 +2579,7 @@
|
||||
prop.computed = false;
|
||||
}
|
||||
}
|
||||
return prop.key = this.type === types.num || this.type === types.string ? this.parseExprAtom() : this.parseIdent(true)
|
||||
return prop.key = this.type === types.num || this.type === types.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never")
|
||||
};
|
||||
|
||||
// Initialize empty function node.
|
||||
@@ -2760,7 +2759,6 @@
|
||||
|
||||
pp$3.parseIdent = function(liberal, isBinding) {
|
||||
var node = this.startNode();
|
||||
if (liberal && this.options.allowReserved === "never") { liberal = false; }
|
||||
if (this.type === types.name) {
|
||||
node.name = this.value;
|
||||
} else if (this.type.keyword) {
|
||||
@@ -3208,7 +3206,8 @@
|
||||
if (!this.switchU || c <= 0xD7FF || c >= 0xE000 || i + 1 >= l) {
|
||||
return c
|
||||
}
|
||||
return (c << 10) + s.charCodeAt(i + 1) - 0x35FDC00
|
||||
var next = s.charCodeAt(i + 1);
|
||||
return next >= 0xDC00 && next <= 0xDFFF ? (c << 10) + next - 0x35FDC00 : c
|
||||
};
|
||||
|
||||
RegExpValidationState.prototype.nextIndex = function nextIndex (i) {
|
||||
@@ -3217,8 +3216,9 @@
|
||||
if (i >= l) {
|
||||
return l
|
||||
}
|
||||
var c = s.charCodeAt(i);
|
||||
if (!this.switchU || c <= 0xD7FF || c >= 0xE000 || i + 1 >= l) {
|
||||
var c = s.charCodeAt(i), next;
|
||||
if (!this.switchU || c <= 0xD7FF || c >= 0xE000 || i + 1 >= l ||
|
||||
(next = s.charCodeAt(i + 1)) < 0xDC00 || next > 0xDFFF) {
|
||||
return i + 1
|
||||
}
|
||||
return i + 2
|
||||
@@ -4914,7 +4914,29 @@
|
||||
|
||||
// Acorn is a tiny, fast JavaScript parser written in JavaScript.
|
||||
|
||||
var version = "6.2.1";
|
||||
var version = "6.4.0";
|
||||
|
||||
Parser.acorn = {
|
||||
Parser: Parser,
|
||||
version: version,
|
||||
defaultOptions: defaultOptions,
|
||||
Position: Position,
|
||||
SourceLocation: SourceLocation,
|
||||
getLineInfo: getLineInfo,
|
||||
Node: Node,
|
||||
TokenType: TokenType,
|
||||
tokTypes: types,
|
||||
keywordTypes: keywords$1,
|
||||
TokContext: TokContext,
|
||||
tokContexts: types$1,
|
||||
isIdentifierChar: isIdentifierChar,
|
||||
isIdentifierStart: isIdentifierStart,
|
||||
Token: Token,
|
||||
isNewLine: isNewLine,
|
||||
lineBreak: lineBreak,
|
||||
lineBreakG: lineBreakG,
|
||||
nonASCIIwhitespace: nonASCIIwhitespace
|
||||
};
|
||||
|
||||
// The main exported interface (under `self.acorn` when in the
|
||||
// browser) is a `parse` function that takes a code string and
|
||||
|
||||
44
node_modules/acorn-globals/node_modules/acorn/dist/acorn.mjs
generated
vendored
44
node_modules/acorn-globals/node_modules/acorn/dist/acorn.mjs
generated
vendored
@@ -14,6 +14,7 @@ var ecma5AndLessKeywords = "break case catch continue debugger default do else f
|
||||
|
||||
var keywords = {
|
||||
5: ecma5AndLessKeywords,
|
||||
"5module": ecma5AndLessKeywords + " export import",
|
||||
6: ecma5AndLessKeywords + " const class extends export import super"
|
||||
};
|
||||
|
||||
@@ -461,7 +462,7 @@ var
|
||||
var Parser = function Parser(options, input, startPos) {
|
||||
this.options = options = getOptions(options);
|
||||
this.sourceFile = options.sourceFile;
|
||||
this.keywords = wordsRegexp(keywords[options.ecmaVersion >= 6 ? 6 : 5]);
|
||||
this.keywords = wordsRegexp(keywords[options.ecmaVersion >= 6 ? 6 : options.sourceType === "module" ? "5module" : 5]);
|
||||
var reserved = "";
|
||||
if (options.allowReserved !== true) {
|
||||
for (var v = options.ecmaVersion;; v--)
|
||||
@@ -748,9 +749,7 @@ pp$1.parseTopLevel = function(node) {
|
||||
} }
|
||||
this.adaptDirectivePrologue(node.body);
|
||||
this.next();
|
||||
if (this.options.ecmaVersion >= 6) {
|
||||
node.sourceType = this.options.sourceType;
|
||||
}
|
||||
node.sourceType = this.options.sourceType;
|
||||
return this.finishNode(node, "Program")
|
||||
};
|
||||
|
||||
@@ -2107,7 +2106,7 @@ pp$3.parseSubscript = function(base, startPos, startLoc, noCalls, maybeAsyncArro
|
||||
if (computed || this.eat(types.dot)) {
|
||||
var node = this.startNodeAt(startPos, startLoc);
|
||||
node.object = base;
|
||||
node.property = computed ? this.parseExpression() : this.parseIdent(true);
|
||||
node.property = computed ? this.parseExpression() : this.parseIdent(this.options.allowReserved !== "never");
|
||||
node.computed = !!computed;
|
||||
if (computed) { this.expect(types.bracketR); }
|
||||
base = this.finishNode(node, "MemberExpression");
|
||||
@@ -2574,7 +2573,7 @@ pp$3.parsePropertyName = function(prop) {
|
||||
prop.computed = false;
|
||||
}
|
||||
}
|
||||
return prop.key = this.type === types.num || this.type === types.string ? this.parseExprAtom() : this.parseIdent(true)
|
||||
return prop.key = this.type === types.num || this.type === types.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never")
|
||||
};
|
||||
|
||||
// Initialize empty function node.
|
||||
@@ -2754,7 +2753,6 @@ pp$3.checkUnreserved = function(ref) {
|
||||
|
||||
pp$3.parseIdent = function(liberal, isBinding) {
|
||||
var node = this.startNode();
|
||||
if (liberal && this.options.allowReserved === "never") { liberal = false; }
|
||||
if (this.type === types.name) {
|
||||
node.name = this.value;
|
||||
} else if (this.type.keyword) {
|
||||
@@ -3202,7 +3200,8 @@ RegExpValidationState.prototype.at = function at (i) {
|
||||
if (!this.switchU || c <= 0xD7FF || c >= 0xE000 || i + 1 >= l) {
|
||||
return c
|
||||
}
|
||||
return (c << 10) + s.charCodeAt(i + 1) - 0x35FDC00
|
||||
var next = s.charCodeAt(i + 1);
|
||||
return next >= 0xDC00 && next <= 0xDFFF ? (c << 10) + next - 0x35FDC00 : c
|
||||
};
|
||||
|
||||
RegExpValidationState.prototype.nextIndex = function nextIndex (i) {
|
||||
@@ -3211,8 +3210,9 @@ RegExpValidationState.prototype.nextIndex = function nextIndex (i) {
|
||||
if (i >= l) {
|
||||
return l
|
||||
}
|
||||
var c = s.charCodeAt(i);
|
||||
if (!this.switchU || c <= 0xD7FF || c >= 0xE000 || i + 1 >= l) {
|
||||
var c = s.charCodeAt(i), next;
|
||||
if (!this.switchU || c <= 0xD7FF || c >= 0xE000 || i + 1 >= l ||
|
||||
(next = s.charCodeAt(i + 1)) < 0xDC00 || next > 0xDFFF) {
|
||||
return i + 1
|
||||
}
|
||||
return i + 2
|
||||
@@ -4908,7 +4908,29 @@ pp$9.readWord = function() {
|
||||
|
||||
// Acorn is a tiny, fast JavaScript parser written in JavaScript.
|
||||
|
||||
var version = "6.2.1";
|
||||
var version = "6.4.0";
|
||||
|
||||
Parser.acorn = {
|
||||
Parser: Parser,
|
||||
version: version,
|
||||
defaultOptions: defaultOptions,
|
||||
Position: Position,
|
||||
SourceLocation: SourceLocation,
|
||||
getLineInfo: getLineInfo,
|
||||
Node: Node,
|
||||
TokenType: TokenType,
|
||||
tokTypes: types,
|
||||
keywordTypes: keywords$1,
|
||||
TokContext: TokContext,
|
||||
tokContexts: types$1,
|
||||
isIdentifierChar: isIdentifierChar,
|
||||
isIdentifierStart: isIdentifierStart,
|
||||
Token: Token,
|
||||
isNewLine: isNewLine,
|
||||
lineBreak: lineBreak,
|
||||
lineBreakG: lineBreakG,
|
||||
nonASCIIwhitespace: nonASCIIwhitespace
|
||||
};
|
||||
|
||||
// The main exported interface (under `self.acorn` when in the
|
||||
// browser) is a `parse` function that takes a code string and
|
||||
|
||||
34
node_modules/acorn-globals/node_modules/acorn/package.json
generated
vendored
34
node_modules/acorn-globals/node_modules/acorn/package.json
generated
vendored
@@ -1,39 +1,35 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"acorn@6.2.1",
|
||||
"/Users/pjquirk/Source/GitHub/actions/labeler"
|
||||
]
|
||||
],
|
||||
"_development": true,
|
||||
"_from": "acorn@6.2.1",
|
||||
"_id": "acorn@6.2.1",
|
||||
"_from": "acorn@^6.0.1",
|
||||
"_id": "acorn@6.4.1",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-JD0xT5FCRDNyjDda3Lrg/IxFscp9q4tiYtxE1/nOzlKCk7hIRuYjhq1kCNkbPjMRMZuFq20HNQn1I9k8Oj0E+Q==",
|
||||
"_integrity": "sha512-ZVA9k326Nwrj3Cj9jlh3wGFutC2ZornPNARZwsNYqQYgN0EsV2d53w5RN/co65Ohn4sUAUtb1rSUAOD6XN9idA==",
|
||||
"_location": "/acorn-globals/acorn",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "acorn@6.2.1",
|
||||
"raw": "acorn@^6.0.1",
|
||||
"name": "acorn",
|
||||
"escapedName": "acorn",
|
||||
"rawSpec": "6.2.1",
|
||||
"rawSpec": "^6.0.1",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "6.2.1"
|
||||
"fetchSpec": "^6.0.1"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/acorn-globals"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/acorn/-/acorn-6.2.1.tgz",
|
||||
"_spec": "6.2.1",
|
||||
"_where": "/Users/pjquirk/Source/GitHub/actions/labeler",
|
||||
"_resolved": "https://registry.npmjs.org/acorn/-/acorn-6.4.1.tgz",
|
||||
"_shasum": "531e58ba3f51b9dacb9a6646ca4debf5b14ca474",
|
||||
"_spec": "acorn@^6.0.1",
|
||||
"_where": "/Users/dakale/dev/GitHub/actions/labeler/node_modules/acorn-globals",
|
||||
"bin": {
|
||||
"acorn": "./bin/acorn"
|
||||
"acorn": "bin/acorn"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/acornjs/acorn/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"deprecated": false,
|
||||
"description": "ECMAScript parser",
|
||||
"engines": {
|
||||
"node": ">=0.4.0"
|
||||
@@ -66,5 +62,5 @@
|
||||
"scripts": {
|
||||
"prepare": "cd ..; npm run build:main && npm run build:bin"
|
||||
},
|
||||
"version": "6.2.1"
|
||||
"version": "6.4.1"
|
||||
}
|
||||
|
||||
32
node_modules/acorn-globals/package.json
generated
vendored
32
node_modules/acorn-globals/package.json
generated
vendored
@@ -1,43 +1,39 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"acorn-globals@4.3.2",
|
||||
"/Users/pjquirk/Source/GitHub/actions/labeler"
|
||||
]
|
||||
],
|
||||
"_development": true,
|
||||
"_from": "acorn-globals@4.3.2",
|
||||
"_id": "acorn-globals@4.3.2",
|
||||
"_from": "acorn-globals@^4.1.0",
|
||||
"_id": "acorn-globals@4.3.4",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-BbzvZhVtZP+Bs1J1HcwrQe8ycfO0wStkSGxuul3He3GkHOIZ6eTqOkPuw9IP1X3+IkOo4wiJmwkobzXYz4wewQ==",
|
||||
"_integrity": "sha512-clfQEh21R+D0leSbUdWf3OcfqyaCSAQ8Ryq00bofSekfr9W8u1jyYZo6ir0xu9Gtcf7BjcHJpnbZH7JOCpP60A==",
|
||||
"_location": "/acorn-globals",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "acorn-globals@4.3.2",
|
||||
"raw": "acorn-globals@^4.1.0",
|
||||
"name": "acorn-globals",
|
||||
"escapedName": "acorn-globals",
|
||||
"rawSpec": "4.3.2",
|
||||
"rawSpec": "^4.1.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "4.3.2"
|
||||
"fetchSpec": "^4.1.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/jsdom"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-4.3.2.tgz",
|
||||
"_spec": "4.3.2",
|
||||
"_where": "/Users/pjquirk/Source/GitHub/actions/labeler",
|
||||
"_resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-4.3.4.tgz",
|
||||
"_shasum": "9fa1926addc11c97308c4e66d7add0d40c3272e7",
|
||||
"_spec": "acorn-globals@^4.1.0",
|
||||
"_where": "/Users/dakale/dev/GitHub/actions/labeler/node_modules/jsdom",
|
||||
"author": {
|
||||
"name": "ForbesLindesay"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/ForbesLindesay/acorn-globals/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"acorn": "^6.0.1",
|
||||
"acorn-walk": "^6.0.1"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Detect global variables in JavaScript using acorn",
|
||||
"devDependencies": {
|
||||
"testit": "^3.0.0"
|
||||
@@ -66,5 +62,5 @@
|
||||
"scripts": {
|
||||
"test": "node test"
|
||||
},
|
||||
"version": "4.3.2"
|
||||
"version": "4.3.4"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user