备份: 完整开发状态(含反混淆脚本和临时文件)
This commit is contained in:
135
node_modules/acorn-loose/CHANGELOG.md
generated
vendored
Normal file
135
node_modules/acorn-loose/CHANGELOG.md
generated
vendored
Normal file
@@ -0,0 +1,135 @@
|
||||
## 8.3.0 (2021-12-27)
|
||||
|
||||
### New features
|
||||
|
||||
Support quoted export names.
|
||||
|
||||
Support class private fields with the `in` operator.
|
||||
|
||||
### Bug fixes
|
||||
|
||||
Fix a bug that caused semicolons after `export *` statements to be parsed as empty statements.
|
||||
|
||||
## 8.2.1 (2021-09-06)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
Depend on the proper version of acorn.
|
||||
|
||||
## 8.2.0 (2021-09-06)
|
||||
|
||||
### New features
|
||||
|
||||
Add support for ES2022 class static blocks.
|
||||
|
||||
## 8.1.0 (2021-04-24)
|
||||
|
||||
### New features
|
||||
|
||||
Add support for ES2022 class fields and private methods.
|
||||
|
||||
## 8.0.2 (2021-01-25)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
Adjust package.json to work with Node 12.16.0 and 13.0-13.6.
|
||||
|
||||
## 8.0.1 (2020-10-11)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
Allow `for await` at the top level.
|
||||
|
||||
## 8.0.0 (2020-08-12)
|
||||
|
||||
### New features
|
||||
|
||||
The package can now be loaded directly as an ECMAScript module in node 13+.
|
||||
|
||||
### Breaking changes
|
||||
|
||||
The `ecmaVersion` option is now required. For the moment, omitting it will still work with a warning, but that will change in a future release.
|
||||
|
||||
## 7.1.0 (2020-06-11)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
Fix various issues in regexp validation.
|
||||
|
||||
### New features
|
||||
|
||||
Add support for `import.meta`.
|
||||
|
||||
Add support for optional chaining (`?.`) and nullish coalescing (`??`).
|
||||
|
||||
Support `export * as ns from "source"`.
|
||||
|
||||
## 7.0.0 (2019-08-12)
|
||||
|
||||
### Breaking changes
|
||||
|
||||
Changes the node format for dynamic imports to use the `ImportExpression` node type, as defined in [ESTree](https://github.com/estree/estree/blob/master/es2020.md#importexpression).
|
||||
|
||||
## 6.1.0 (2019-07-04)
|
||||
|
||||
### New features
|
||||
|
||||
Support bigint syntax.
|
||||
|
||||
Support dynamic import.
|
||||
|
||||
## 6.0.0 (2018-09-14)
|
||||
|
||||
### Breaking changes
|
||||
|
||||
This module has been moved into its own package, `acorn-loose`.
|
||||
|
||||
Plugins work differently, and will have to be rewritten to work with this version.
|
||||
|
||||
The `parse_dammit` function is now simply called `parse`.
|
||||
|
||||
## 5.1.0 (2017-07-05)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
Make the ES module version of the loose parser actually work.
|
||||
|
||||
## 4.0.4 (2016-12-19)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
Fix issue with loading acorn_loose.js with an AMD loader.
|
||||
|
||||
## 3.2.0 (2016-06-07)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
Don't crash when the loose parser is called without options object.
|
||||
|
||||
## 3.1.0 (2016-04-18)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
Fix issue where the loose parser created invalid TemplateElement nodes for unclosed template literals.
|
||||
|
||||
## 2.7.0 (2016-01-04)
|
||||
|
||||
### Fixes
|
||||
|
||||
Make sure the loose parser always attaches a `local` property to `ImportNamespaceSpecifier` nodes.
|
||||
|
||||
## 2.6.4 (2015-11-12)
|
||||
|
||||
### Fixes
|
||||
|
||||
Fix crash in loose parser when parsing invalid object pattern.
|
||||
|
||||
### New features
|
||||
|
||||
Support plugins in the loose parser.
|
||||
|
||||
## 2.5.0 (2015-10-27)
|
||||
|
||||
### Fixes
|
||||
|
||||
In the loose parser, don't allow non-string-literals as import sources.
|
||||
21
node_modules/acorn-loose/LICENSE
generated
vendored
Normal file
21
node_modules/acorn-loose/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (C) 2012-2020 by various contributors (see AUTHORS)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
66
node_modules/acorn-loose/README.md
generated
vendored
Normal file
66
node_modules/acorn-loose/README.md
generated
vendored
Normal file
@@ -0,0 +1,66 @@
|
||||
# Acorn loose parser
|
||||
|
||||
An error-tolerant JavaScript parser written in JavaScript.
|
||||
|
||||
This parser will parse _any_ text into an
|
||||
[ESTree](https://github.com/estree/estree) syntax tree that is a
|
||||
reasonable approximation of what it might mean as a JavaScript
|
||||
program.
|
||||
|
||||
It will, to recover from missing brackets, treat whitespace as
|
||||
significant, which has the downside that it might mis-parse a valid
|
||||
but weirdly indented file. It is recommended to always try a parse
|
||||
with the regular `acorn` parser first, and only fall back to this
|
||||
parser when that one finds syntax errors.
|
||||
|
||||
## Community
|
||||
|
||||
Acorn is open source software released under an
|
||||
[MIT license](https://github.com/acornjs/acorn/blob/master/acorn-loose/LICENSE).
|
||||
|
||||
You are welcome to [report
|
||||
bugs](https://github.com/acornjs/acorn/issues) or create pull requests
|
||||
on [github](https://github.com/acornjs/acorn). For questions and
|
||||
discussion, please use the [Tern discussion
|
||||
forum](https://discuss.ternjs.net).
|
||||
|
||||
## Installation
|
||||
|
||||
The easiest way to install acorn-loose is from [`npm`](https://www.npmjs.com/):
|
||||
|
||||
```sh
|
||||
npm install acorn-loose
|
||||
```
|
||||
|
||||
Alternately, you can download the source and build acorn yourself:
|
||||
|
||||
```sh
|
||||
git clone https://github.com/acornjs/acorn.git
|
||||
cd acorn
|
||||
npm install
|
||||
```
|
||||
|
||||
## Interface
|
||||
|
||||
**parse**`(input, options)` takes an input string and a set of options
|
||||
(the same options as
|
||||
[acorn](https://github.com/acornjs/acorn/blob/master/acorn/README.md)
|
||||
takes), and returns a syntax tree, even if the code isn't
|
||||
syntactically valid. It'll insert identifier nodes with name `"✖"` as
|
||||
placeholders in places where it can't make sense of the input. Depends
|
||||
on the `acorn` package, because it uses the same tokenizer.
|
||||
|
||||
```javascript
|
||||
var acornLoose = require("acorn-loose");
|
||||
console.log(acornLoose.parse("1 / * 4 )[2]", {ecmaVersion: 2020}));
|
||||
```
|
||||
|
||||
Like the regular parser, the loose parser supports plugins. You can
|
||||
take the **`LooseParser`** class exported by the module, and call its
|
||||
static `extend` method with one or more plugins to get a customized
|
||||
parser class. The class has a static `parse` method that acts like the
|
||||
top-level `parse` method.
|
||||
|
||||
**isDummy**`(node)` takes a `Node` and returns `true` if it is a dummy node
|
||||
inserted by the parser. The function performs a simple equality check on the
|
||||
node's name.
|
||||
47
node_modules/acorn-loose/package.json
generated
vendored
Normal file
47
node_modules/acorn-loose/package.json
generated
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"name": "acorn-loose",
|
||||
"description": "Error-tolerant ECMAScript parser",
|
||||
"homepage": "https://github.com/acornjs/acorn",
|
||||
"main": "dist/acorn-loose.js",
|
||||
"module": "dist/acorn-loose.mjs",
|
||||
"exports": {
|
||||
".": [
|
||||
{
|
||||
"import": "./dist/acorn-loose.mjs",
|
||||
"require": "./dist/acorn-loose.js",
|
||||
"default": "./dist/acorn-loose.js"
|
||||
},
|
||||
"./dist/acorn-loose.js"
|
||||
],
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"version": "8.3.0",
|
||||
"engines": {"node": ">=0.4.0"},
|
||||
"dependencies": {
|
||||
"acorn": "^8.5.0"
|
||||
},
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "Marijn Haverbeke",
|
||||
"email": "marijnh@gmail.com",
|
||||
"web": "https://marijnhaverbeke.nl"
|
||||
},
|
||||
{
|
||||
"name": "Ingvar Stepanyan",
|
||||
"email": "me@rreverser.com",
|
||||
"web": "https://rreverser.com/"
|
||||
},
|
||||
{
|
||||
"name": "Adrian Heine",
|
||||
"web": "http://adrianheine.de"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/acornjs/acorn.git"
|
||||
},
|
||||
"scripts": {
|
||||
"prepare": "cd ..; npm run build:loose"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
Reference in New Issue
Block a user