.
This commit is contained in:
		
							
								
								
									
										21
									
								
								qwen/nodejs/node_modules/@eslint-community/regexpp/LICENSE
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								qwen/nodejs/node_modules/@eslint-community/regexpp/LICENSE
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,21 @@
 | 
			
		||||
MIT License
 | 
			
		||||
 | 
			
		||||
Copyright (c) 2018 Toru Nagashima
 | 
			
		||||
 | 
			
		||||
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.
 | 
			
		||||
							
								
								
									
										177
									
								
								qwen/nodejs/node_modules/@eslint-community/regexpp/README.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										177
									
								
								qwen/nodejs/node_modules/@eslint-community/regexpp/README.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,177 @@
 | 
			
		||||
# @eslint-community/regexpp
 | 
			
		||||
 | 
			
		||||
[](https://www.npmjs.com/package/@eslint-community/regexpp)
 | 
			
		||||
[](http://www.npmtrends.com/@eslint-community/regexpp)
 | 
			
		||||
[](https://github.com/eslint-community/regexpp/actions)
 | 
			
		||||
[](https://codecov.io/gh/eslint-community/regexpp)
 | 
			
		||||
 | 
			
		||||
A regular expression parser for ECMAScript.
 | 
			
		||||
 | 
			
		||||
## 💿 Installation
 | 
			
		||||
 | 
			
		||||
```bash
 | 
			
		||||
$ npm install @eslint-community/regexpp
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
- require Node@^12.0.0 || ^14.0.0 || >=16.0.0.
 | 
			
		||||
 | 
			
		||||
## 📖 Usage
 | 
			
		||||
 | 
			
		||||
```ts
 | 
			
		||||
import {
 | 
			
		||||
    AST,
 | 
			
		||||
    RegExpParser,
 | 
			
		||||
    RegExpValidator,
 | 
			
		||||
    RegExpVisitor,
 | 
			
		||||
    parseRegExpLiteral,
 | 
			
		||||
    validateRegExpLiteral,
 | 
			
		||||
    visitRegExpAST
 | 
			
		||||
} from "@eslint-community/regexpp"
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### parseRegExpLiteral(source, options?)
 | 
			
		||||
 | 
			
		||||
Parse a given regular expression literal then make AST object.
 | 
			
		||||
 | 
			
		||||
This is equivalent to `new RegExpParser(options).parseLiteral(source)`.
 | 
			
		||||
 | 
			
		||||
- **Parameters:**
 | 
			
		||||
    - `source` (`string | RegExp`) The source code to parse.
 | 
			
		||||
    - `options?` ([`RegExpParser.Options`]) The options to parse.
 | 
			
		||||
- **Return:**
 | 
			
		||||
    - The AST of the regular expression.
 | 
			
		||||
 | 
			
		||||
### validateRegExpLiteral(source, options?)
 | 
			
		||||
 | 
			
		||||
Validate a given regular expression literal.
 | 
			
		||||
 | 
			
		||||
This is equivalent to `new RegExpValidator(options).validateLiteral(source)`.
 | 
			
		||||
 | 
			
		||||
- **Parameters:**
 | 
			
		||||
    - `source` (`string`) The source code to validate.
 | 
			
		||||
    - `options?` ([`RegExpValidator.Options`]) The options to validate.
 | 
			
		||||
 | 
			
		||||
### visitRegExpAST(ast, handlers)
 | 
			
		||||
 | 
			
		||||
Visit each node of a given AST.
 | 
			
		||||
 | 
			
		||||
This is equivalent to `new RegExpVisitor(handlers).visit(ast)`.
 | 
			
		||||
 | 
			
		||||
- **Parameters:**
 | 
			
		||||
    - `ast` ([`AST.Node`]) The AST to visit.
 | 
			
		||||
    - `handlers` ([`RegExpVisitor.Handlers`]) The callbacks.
 | 
			
		||||
 | 
			
		||||
### RegExpParser
 | 
			
		||||
 | 
			
		||||
#### new RegExpParser(options?)
 | 
			
		||||
 | 
			
		||||
- **Parameters:**
 | 
			
		||||
    - `options?` ([`RegExpParser.Options`]) The options to parse.
 | 
			
		||||
 | 
			
		||||
#### parser.parseLiteral(source, start?, end?)
 | 
			
		||||
 | 
			
		||||
Parse a regular expression literal.
 | 
			
		||||
 | 
			
		||||
- **Parameters:**
 | 
			
		||||
    - `source` (`string`) The source code to parse. E.g. `"/abc/g"`.
 | 
			
		||||
    - `start?` (`number`) The start index in the source code. Default is `0`.
 | 
			
		||||
    - `end?` (`number`) The end index in the source code. Default is `source.length`.
 | 
			
		||||
- **Return:**
 | 
			
		||||
    - The AST of the regular expression.
 | 
			
		||||
 | 
			
		||||
#### parser.parsePattern(source, start?, end?, flags?)
 | 
			
		||||
 | 
			
		||||
Parse a regular expression pattern.
 | 
			
		||||
 | 
			
		||||
- **Parameters:**
 | 
			
		||||
    - `source` (`string`) The source code to parse. E.g. `"abc"`.
 | 
			
		||||
    - `start?` (`number`) The start index in the source code. Default is `0`.
 | 
			
		||||
    - `end?` (`number`) The end index in the source code. Default is `source.length`.
 | 
			
		||||
    - `flags?` (`{ unicode?: boolean, unicodeSets?: boolean }`) The flags to enable Unicode mode, and Unicode Set mode.
 | 
			
		||||
- **Return:**
 | 
			
		||||
    - The AST of the regular expression pattern.
 | 
			
		||||
 | 
			
		||||
#### parser.parseFlags(source, start?, end?)
 | 
			
		||||
 | 
			
		||||
Parse a regular expression flags.
 | 
			
		||||
 | 
			
		||||
- **Parameters:**
 | 
			
		||||
    - `source` (`string`) The source code to parse. E.g. `"gim"`.
 | 
			
		||||
    - `start?` (`number`) The start index in the source code. Default is `0`.
 | 
			
		||||
    - `end?` (`number`) The end index in the source code. Default is `source.length`.
 | 
			
		||||
- **Return:**
 | 
			
		||||
    - The AST of the regular expression flags.
 | 
			
		||||
 | 
			
		||||
### RegExpValidator
 | 
			
		||||
 | 
			
		||||
#### new RegExpValidator(options)
 | 
			
		||||
 | 
			
		||||
- **Parameters:**
 | 
			
		||||
    - `options` ([`RegExpValidator.Options`]) The options to validate.
 | 
			
		||||
 | 
			
		||||
#### validator.validateLiteral(source, start, end)
 | 
			
		||||
 | 
			
		||||
Validate a regular expression literal.
 | 
			
		||||
 | 
			
		||||
- **Parameters:**
 | 
			
		||||
    - `source` (`string`) The source code to validate.
 | 
			
		||||
    - `start?` (`number`) The start index in the source code. Default is `0`.
 | 
			
		||||
    - `end?` (`number`) The end index in the source code. Default is `source.length`.
 | 
			
		||||
 | 
			
		||||
#### validator.validatePattern(source, start, end, flags)
 | 
			
		||||
 | 
			
		||||
Validate a regular expression pattern.
 | 
			
		||||
 | 
			
		||||
- **Parameters:**
 | 
			
		||||
    - `source` (`string`) The source code to validate.
 | 
			
		||||
    - `start?` (`number`) The start index in the source code. Default is `0`.
 | 
			
		||||
    - `end?` (`number`) The end index in the source code. Default is `source.length`.
 | 
			
		||||
    - `flags?` (`{ unicode?: boolean, unicodeSets?: boolean }`) The flags to enable Unicode mode, and Unicode Set mode.
 | 
			
		||||
 | 
			
		||||
#### validator.validateFlags(source, start, end)
 | 
			
		||||
 | 
			
		||||
Validate a regular expression flags.
 | 
			
		||||
 | 
			
		||||
- **Parameters:**
 | 
			
		||||
    - `source` (`string`) The source code to validate.
 | 
			
		||||
    - `start?` (`number`) The start index in the source code. Default is `0`.
 | 
			
		||||
    - `end?` (`number`) The end index in the source code. Default is `source.length`.
 | 
			
		||||
 | 
			
		||||
### RegExpVisitor
 | 
			
		||||
 | 
			
		||||
#### new RegExpVisitor(handlers)
 | 
			
		||||
 | 
			
		||||
- **Parameters:**
 | 
			
		||||
    - `handlers` ([`RegExpVisitor.Handlers`]) The callbacks.
 | 
			
		||||
 | 
			
		||||
#### visitor.visit(ast)
 | 
			
		||||
 | 
			
		||||
Validate a regular expression literal.
 | 
			
		||||
 | 
			
		||||
- **Parameters:**
 | 
			
		||||
    - `ast` ([`AST.Node`]) The AST to visit.
 | 
			
		||||
 | 
			
		||||
## 📰 Changelog
 | 
			
		||||
 | 
			
		||||
- [GitHub Releases](https://github.com/eslint-community/regexpp/releases)
 | 
			
		||||
 | 
			
		||||
## 🍻 Contributing
 | 
			
		||||
 | 
			
		||||
Welcome contributing!
 | 
			
		||||
 | 
			
		||||
Please use GitHub's Issues/PRs.
 | 
			
		||||
 | 
			
		||||
### Development Tools
 | 
			
		||||
 | 
			
		||||
- `npm test` runs tests and measures coverage.
 | 
			
		||||
- `npm run build` compiles TypeScript source code to `index.js`, `index.js.map`, and `index.d.ts`.
 | 
			
		||||
- `npm run clean` removes the temporary files which are created by `npm test` and `npm run build`.
 | 
			
		||||
- `npm run lint` runs ESLint.
 | 
			
		||||
- `npm run update:test` updates test fixtures.
 | 
			
		||||
- `npm run update:ids` updates `src/unicode/ids.ts`.
 | 
			
		||||
- `npm run watch` runs tests with `--watch` option.
 | 
			
		||||
 | 
			
		||||
[`AST.Node`]: src/ast.ts#L4
 | 
			
		||||
[`RegExpParser.Options`]: src/parser.ts#L743
 | 
			
		||||
[`RegExpValidator.Options`]: src/validator.ts#L220
 | 
			
		||||
[`RegExpVisitor.Handlers`]: src/visitor.ts#L291
 | 
			
		||||
							
								
								
									
										1163
									
								
								qwen/nodejs/node_modules/@eslint-community/regexpp/index.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1163
									
								
								qwen/nodejs/node_modules/@eslint-community/regexpp/index.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										3042
									
								
								qwen/nodejs/node_modules/@eslint-community/regexpp/index.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										3042
									
								
								qwen/nodejs/node_modules/@eslint-community/regexpp/index.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										1
									
								
								qwen/nodejs/node_modules/@eslint-community/regexpp/index.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								qwen/nodejs/node_modules/@eslint-community/regexpp/index.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										3032
									
								
								qwen/nodejs/node_modules/@eslint-community/regexpp/index.mjs
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										3032
									
								
								qwen/nodejs/node_modules/@eslint-community/regexpp/index.mjs
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										1
									
								
								qwen/nodejs/node_modules/@eslint-community/regexpp/index.mjs.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								qwen/nodejs/node_modules/@eslint-community/regexpp/index.mjs.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										91
									
								
								qwen/nodejs/node_modules/@eslint-community/regexpp/package.json
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										91
									
								
								qwen/nodejs/node_modules/@eslint-community/regexpp/package.json
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,91 @@
 | 
			
		||||
{
 | 
			
		||||
  "name": "@eslint-community/regexpp",
 | 
			
		||||
  "version": "4.12.2",
 | 
			
		||||
  "description": "Regular expression parser for ECMAScript.",
 | 
			
		||||
  "keywords": [
 | 
			
		||||
    "regexp",
 | 
			
		||||
    "regular",
 | 
			
		||||
    "expression",
 | 
			
		||||
    "parser",
 | 
			
		||||
    "validator",
 | 
			
		||||
    "ast",
 | 
			
		||||
    "abstract",
 | 
			
		||||
    "syntax",
 | 
			
		||||
    "tree",
 | 
			
		||||
    "ecmascript",
 | 
			
		||||
    "es2015",
 | 
			
		||||
    "es2016",
 | 
			
		||||
    "es2017",
 | 
			
		||||
    "es2018",
 | 
			
		||||
    "es2019",
 | 
			
		||||
    "es2020",
 | 
			
		||||
    "es2021",
 | 
			
		||||
    "annexB"
 | 
			
		||||
  ],
 | 
			
		||||
  "homepage": "https://github.com/eslint-community/regexpp#readme",
 | 
			
		||||
  "bugs": {
 | 
			
		||||
    "url": "https://github.com/eslint-community/regexpp/issues"
 | 
			
		||||
  },
 | 
			
		||||
  "repository": {
 | 
			
		||||
    "type": "git",
 | 
			
		||||
    "url": "https://github.com/eslint-community/regexpp"
 | 
			
		||||
  },
 | 
			
		||||
  "license": "MIT",
 | 
			
		||||
  "author": "Toru Nagashima",
 | 
			
		||||
  "exports": {
 | 
			
		||||
    ".": {
 | 
			
		||||
      "types": "./index.d.ts",
 | 
			
		||||
      "import": "./index.mjs",
 | 
			
		||||
      "default": "./index.js"
 | 
			
		||||
    },
 | 
			
		||||
    "./package.json": "./package.json"
 | 
			
		||||
  },
 | 
			
		||||
  "main": "index",
 | 
			
		||||
  "files": [
 | 
			
		||||
    "index.*"
 | 
			
		||||
  ],
 | 
			
		||||
  "scripts": {
 | 
			
		||||
    "prebuild": "npm run -s clean",
 | 
			
		||||
    "build": "run-s build:*",
 | 
			
		||||
    "build:tsc": "tsc --module es2015",
 | 
			
		||||
    "build:rollup": "rollup -c",
 | 
			
		||||
    "build:dts": "npm run -s build:tsc -- --removeComments false && dts-bundle --name @eslint-community/regexpp --main .temp/index.d.ts --out ../index.d.ts && prettier --write index.d.ts",
 | 
			
		||||
    "clean": "rimraf .temp index.*",
 | 
			
		||||
    "lint": "eslint . --ext .ts",
 | 
			
		||||
    "test": "nyc _mocha \"test/*.ts\" --reporter dot --timeout 10000",
 | 
			
		||||
    "debug": "mocha --require ts-node/register/transpile-only \"test/*.ts\" --reporter dot --timeout 10000",
 | 
			
		||||
    "update:test": "ts-node scripts/update-fixtures.ts",
 | 
			
		||||
    "update:unicode": "run-s update:unicode:*",
 | 
			
		||||
    "update:unicode:ids": "ts-node scripts/update-unicode-ids.ts",
 | 
			
		||||
    "update:unicode:props": "ts-node scripts/update-unicode-properties.ts",
 | 
			
		||||
    "update:test262:extract": "ts-node -T scripts/extract-test262.ts",
 | 
			
		||||
    "preversion": "npm test && npm run -s build",
 | 
			
		||||
    "postversion": "git push && git push --tags",
 | 
			
		||||
    "prewatch": "npm run -s clean",
 | 
			
		||||
    "watch": "_mocha \"test/*.ts\" --require ts-node/register --reporter dot --timeout 10000 --watch-extensions ts --watch --growl"
 | 
			
		||||
  },
 | 
			
		||||
  "dependencies": {},
 | 
			
		||||
  "devDependencies": {
 | 
			
		||||
    "@eslint-community/eslint-plugin-mysticatea": "^15.5.1",
 | 
			
		||||
    "@rollup/plugin-node-resolve": "^14.1.0",
 | 
			
		||||
    "@types/eslint": "^8.44.3",
 | 
			
		||||
    "@types/jsdom": "^16.2.15",
 | 
			
		||||
    "@types/mocha": "^9.1.1",
 | 
			
		||||
    "@types/node": "^12.20.55",
 | 
			
		||||
    "dts-bundle": "^0.7.3",
 | 
			
		||||
    "eslint": "^8.50.0",
 | 
			
		||||
    "js-tokens": "^8.0.2",
 | 
			
		||||
    "jsdom": "^19.0.0",
 | 
			
		||||
    "mocha": "^9.2.2",
 | 
			
		||||
    "npm-run-all2": "^6.2.2",
 | 
			
		||||
    "nyc": "^14.1.1",
 | 
			
		||||
    "rimraf": "^3.0.2",
 | 
			
		||||
    "rollup": "^2.79.1",
 | 
			
		||||
    "rollup-plugin-sourcemaps": "^0.6.3",
 | 
			
		||||
    "ts-node": "^10.9.1",
 | 
			
		||||
    "typescript": "~5.0.2"
 | 
			
		||||
  },
 | 
			
		||||
  "engines": {
 | 
			
		||||
    "node": "^12.0.0 || ^14.0.0 || >=16.0.0"
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user