intial
This commit is contained in:
4301
node_modules/globals/globals.json
generated
vendored
Normal file
4301
node_modules/globals/globals.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
4426
node_modules/globals/index.d.ts
generated
vendored
Normal file
4426
node_modules/globals/index.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2
node_modules/globals/index.js
generated
vendored
Normal file
2
node_modules/globals/index.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
'use strict';
|
||||
module.exports = require('./globals.json');
|
||||
9
node_modules/globals/license
generated
vendored
Normal file
9
node_modules/globals/license
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
||||
|
||||
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.
|
||||
132
node_modules/globals/package.json
generated
vendored
Normal file
132
node_modules/globals/package.json
generated
vendored
Normal file
@@ -0,0 +1,132 @@
|
||||
{
|
||||
"name": "globals",
|
||||
"version": "17.14.0",
|
||||
"description": "Global identifiers from different JavaScript environments",
|
||||
"license": "MIT",
|
||||
"repository": "sindresorhus/globals",
|
||||
"funding": "https://github.com/sponsors/sindresorhus",
|
||||
"author": "Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)",
|
||||
"sideEffects": false,
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "npm run build && xo && node --test",
|
||||
"prepare": "npm run build",
|
||||
"update": "node scripts/update.mjs",
|
||||
"update:browser": "node scripts/update.mjs --job=browser",
|
||||
"update:builtin": "node scripts/update.mjs --job=builtin",
|
||||
"update:builtin-yearly": "node scripts/update.mjs --job=builtin-yearly",
|
||||
"update:nodeBuiltin": "node scripts/update.mjs --job=nodeBuiltin",
|
||||
"update:bunBuiltin": "node scripts/update.mjs --job=bunBuiltin",
|
||||
"update:denoBuiltin": "node scripts/update.mjs --job=denoBuiltin",
|
||||
"update:worker": "node scripts/update.mjs --job=worker",
|
||||
"update:serviceworker": "node scripts/update.mjs --job=serviceworker",
|
||||
"update:sharedWorker": "node scripts/update.mjs --job=sharedWorker",
|
||||
"update:audioWorklet": "node scripts/update.mjs --job=audioWorklet",
|
||||
"update:shelljs": "node scripts/update.mjs --job=shelljs",
|
||||
"update:jest": "node scripts/update.mjs --job=jest",
|
||||
"update:vitest": "node scripts/update.mjs --job=vitest",
|
||||
"build": "run-s build:data build:types",
|
||||
"build:data": "node scripts/generate-data.mjs",
|
||||
"build:types": "node scripts/generate-types.mjs"
|
||||
},
|
||||
"files": [
|
||||
"globals.json",
|
||||
"index.js",
|
||||
"index.d.ts"
|
||||
],
|
||||
"keywords": [
|
||||
"global",
|
||||
"identifiers",
|
||||
"variables",
|
||||
"vars",
|
||||
"jshint",
|
||||
"eslint",
|
||||
"environments"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@vitest/eslint-plugin": "^1.6.27",
|
||||
"cheerio": "^1.2.0",
|
||||
"eslint-plugin-jest": "^29.16.6",
|
||||
"get-port": "^7.2.0",
|
||||
"is-identifier": "^1.1.0",
|
||||
"nano-spawn": "^2.1.0",
|
||||
"npm-run-all2": "^9.0.3",
|
||||
"outdent": "^0.8.0",
|
||||
"puppeteer": "^25.16.0",
|
||||
"shelljs": "^0.10.0",
|
||||
"type-fest": "^5.10.0",
|
||||
"xo": "^5.0.1"
|
||||
},
|
||||
"xo": [
|
||||
{
|
||||
"ignores": [
|
||||
"scripts/browser/index.html"
|
||||
]
|
||||
},
|
||||
{
|
||||
"rules": {
|
||||
"unicorn/prefer-module": "off"
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": [
|
||||
"**/package.json"
|
||||
],
|
||||
"rules": {
|
||||
"package-json/prefer-type-module": "off",
|
||||
"package-json/require-entry-point": "off"
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": [
|
||||
"data/*.mjs"
|
||||
],
|
||||
"rules": {
|
||||
"import-x/no-anonymous-default-export": "off",
|
||||
"camelcase": "off",
|
||||
"unicorn/filename-case": [
|
||||
"error",
|
||||
{
|
||||
"cases": {
|
||||
"camelCase": true,
|
||||
"kebabCase": true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": [
|
||||
"scripts/*.mjs"
|
||||
],
|
||||
"rules": {
|
||||
"n/no-unsupported-features/node-builtins": "off"
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": [
|
||||
"scripts/browser/assets/**/*.mjs"
|
||||
],
|
||||
"languageOptions": {
|
||||
"globals": {
|
||||
"AudioContext": "readonly",
|
||||
"AudioWorkletNode": "readonly",
|
||||
"AudioWorkletProcessor": "readonly",
|
||||
"CSS": "readonly",
|
||||
"alert": "readonly",
|
||||
"document": "readonly",
|
||||
"registerProcessor": "readonly",
|
||||
"SharedWorker": "readonly",
|
||||
"Worker": "readonly"
|
||||
}
|
||||
},
|
||||
"rules": {
|
||||
"n/no-unsupported-features/node-builtins": "off",
|
||||
"unicorn/prefer-add-event-listener": "off",
|
||||
"unicorn/no-global-object-property-assignment": "off"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
45
node_modules/globals/readme.md
generated
vendored
Normal file
45
node_modules/globals/readme.md
generated
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
# globals
|
||||
|
||||
> Global identifiers from different JavaScript environments
|
||||
|
||||
It's just a [JSON file](globals.json), so you can use it in any environment.
|
||||
|
||||
This package is used by ESLint 8 and earlier. For ESLint 9 and later, you should depend on this package directly in [your ESLint config](https://eslint.org/docs/latest/use/configure/language-options#predefined-global-variables).
|
||||
|
||||
## Install
|
||||
|
||||
```sh
|
||||
npm install globals
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
import globals from 'globals';
|
||||
|
||||
console.log(globals.browser);
|
||||
/*
|
||||
{
|
||||
addEventListener: false,
|
||||
applicationCache: false,
|
||||
ArrayBuffer: false,
|
||||
atob: false,
|
||||
…
|
||||
}
|
||||
*/
|
||||
```
|
||||
|
||||
Each global is given a value of `true` or `false`. A value of `true` indicates that the variable may be overwritten. A value of `false` indicates that the variable should be considered read-only. This information is used by static analysis tools to flag incorrect behavior. We assume all variables should be `false` unless we hear otherwise.
|
||||
|
||||
For Node.js this package provides two sets of globals:
|
||||
|
||||
- `globals.nodeBuiltin`: Globals available to all code running in Node.js.
|
||||
These will usually be available as properties on the `globalThis` object and include `process`, `Buffer`, but not CommonJS arguments like `require`.
|
||||
See: https://nodejs.org/api/globals.html
|
||||
- `globals.node`: A combination of the globals from `nodeBuiltin` plus all CommonJS arguments ("CommonJS module scope").
|
||||
See: https://nodejs.org/api/modules.html#modules_the_module_scope
|
||||
|
||||
When analyzing code that is known to run outside of a CommonJS wrapper, for example, JavaScript modules, `nodeBuiltin` can find accidental CommonJS references.
|
||||
|
||||
> [!NOTE]
|
||||
> The data is a snapshot committed to the repository, not something read from the runtime at install time. `nodeBuiltin` is regenerated monthly by the `Update` workflow against the *latest* Node.js release, so it describes the newest Node.js rather than the oldest version this package supports. `engines.node` is the support floor and does not describe the data.
|
||||
Reference in New Issue
Block a user