added files

This commit is contained in:
Jon
2025-02-10 23:21:27 -07:00
commit 04d1202acb
763 changed files with 534713 additions and 0 deletions

22
node_modules/web-streams-polyfill/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,22 @@
The MIT License (MIT)
Copyright (c) 2024 Mattias Buelens
Copyright (c) 2016 Diwank Singh Tomer
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.

110
node_modules/web-streams-polyfill/README.md generated vendored Normal file
View File

@@ -0,0 +1,110 @@
# web-streams-polyfill
Web Streams, based on the WHATWG spec reference implementation.
[![build status](https://api.travis-ci.com/MattiasBuelens/web-streams-polyfill.svg?branch=master)](https://travis-ci.com/MattiasBuelens/web-streams-polyfill)
[![npm version](https://img.shields.io/npm/v/web-streams-polyfill.svg)](https://www.npmjs.com/package/web-streams-polyfill)
[![license](https://img.shields.io/npm/l/web-streams-polyfill.svg)](https://github.com/MattiasBuelens/web-streams-polyfill/blob/master/LICENSE)
## Links
- [Official spec][spec]
- [Reference implementation][ref-impl]
## Usage
This library comes in multiple variants:
* `web-streams-polyfill`: a polyfill that replaces the native stream implementations.
Recommended for use in web apps supporting older browsers through a `<script>` tag.
* `web-streams-polyfill/es6`: a polyfill targeting ES2015+ environments.
Recommended for use in web apps supporting modern browsers through a `<script>` tag.
* `web-streams-polyfill/es2018`: a polyfill targeting ES2018+ environments.
* `web-streams-polyfill/ponyfill`: a [ponyfill] that provides
the stream implementations without replacing any globals.
Recommended for use in legacy Node applications, or in web libraries supporting older browsers.
* `web-streams-polyfill/ponyfill/es6`: a ponyfill targeting ES2015+ environments.
Recommended for use in Node 6+ applications, or in web libraries supporting modern browsers.
* `web-streams-polyfill/ponyfill/es2018`: a ponyfill targeting ES2018+ environments.
Recommended for use in Node 10+ applications.
Each variant also includes TypeScript type definitions, compatible with the DOM type definitions for streams included in TypeScript.
Usage as a polyfill:
```html
<!-- option 1: hosted by unpkg CDN -->
<script src="https://unpkg.com/web-streams-polyfill/dist/polyfill.min.js"></script>
<!-- option 2: self hosted -->
<script src="/path/to/web-streams-polyfill/dist/polyfill.min.js"></script>
<script>
var readable = new ReadableStream();
</script>
```
Usage as a Node module:
```js
var streams = require("web-streams-polyfill/ponyfill");
var readable = new streams.ReadableStream();
```
Usage as a ES2015 module:
```js
import { ReadableStream } from "web-streams-polyfill/ponyfill";
const readable = new ReadableStream();
```
## Compatibility
The `polyfill` and `ponyfill` variants work in any ES5-compatible environment that has a global `Promise`.
If you need to support older browsers or Node versions that do not have a native `Promise` implementation
(check the [support table][promise-support]), you must first include a `Promise` polyfill
(e.g. [promise-polyfill][promise-polyfill]).
The `polyfill/es6` and `ponyfill/es6` variants work in any ES2015-compatible environment.
The `polyfill/es2018` and `ponyfill/es2018` variants work in any ES2018-compatible environment.
[Async iterable support for `ReadableStream`][rs-asynciterator] is available in all variants, but requires an ES2018-compatible environment or a polyfill for `Symbol.asyncIterator`.
[`WritableStreamDefaultController.signal`][ws-controller-signal] is available in all variants, but requires a global `AbortController` constructor. If necessary, consider using a polyfill such as [abortcontroller-polyfill].
[Reading with a BYOB reader][mdn-byob-read] is available in all variants, but requires `ArrayBuffer.prototype.transfer()` or `structuredClone()` to exist in order to correctly transfer the given view's buffer. If not available, then the buffer won't be transferred during the read.
## Compliance
The polyfill implements [version `4dc123a` (13 Nov 2023)][spec-snapshot] of the streams specification.
The polyfill is tested against the same [web platform tests][wpt] that are used by browsers to test their native implementations.
The polyfill aims to pass all tests, although it allows some exceptions for practical reasons:
* The `es2018` variant passes all of the tests.
* The `es6` variant passes the same tests as the `es2018` variant, except for the [test for the prototype of `ReadableStream`'s async iterator][wpt-async-iterator-prototype].
Retrieving the correct `%AsyncIteratorPrototype%` requires using an async generator (`async function* () {}`), which is invalid syntax before ES2018.
Instead, the polyfill [creates its own version][stub-async-iterator-prototype] which is functionally equivalent to the real prototype.
* The `es5` variant passes the same tests as the `es6` variant, except for various tests about specific characteristics of the constructors, properties and methods.
These test failures do not affect the run-time behavior of the polyfill.
For example:
* The `name` property of down-leveled constructors is incorrect.
* The `length` property of down-leveled constructors and methods with optional arguments is incorrect.
* Not all properties and methods are correctly marked as non-enumerable.
* Down-leveled class methods are not correctly marked as non-constructable.
The type definitions are compatible with the built-in stream types of TypeScript 3.3.
## Contributors
Thanks to these people for their work on [the original polyfill][creatorrr-polyfill]:
- Diwank Singh Tomer ([creatorrr](https://github.com/creatorrr))
- Anders Riutta ([ariutta](https://github.com/ariutta))
[spec]: https://streams.spec.whatwg.org
[ref-impl]: https://github.com/whatwg/streams
[ponyfill]: https://github.com/sindresorhus/ponyfill
[promise-support]: https://kangax.github.io/compat-table/es6/#test-Promise
[promise-polyfill]: https://www.npmjs.com/package/promise-polyfill
[rs-asynciterator]: https://streams.spec.whatwg.org/#rs-asynciterator
[ws-controller-signal]: https://streams.spec.whatwg.org/#ws-default-controller-signal
[abortcontroller-polyfill]: https://www.npmjs.com/package/abortcontroller-polyfill
[mdn-byob-read]: https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamBYOBReader/read
[spec-snapshot]: https://streams.spec.whatwg.org/commit-snapshots/4dc123a6e7f7ba89a8c6a7975b021156f39cab52/
[wpt]: https://github.com/web-platform-tests/wpt/tree/2a298b616b7c865917d7198a287310881cbfdd8d/streams
[wpt-async-iterator-prototype]: https://github.com/web-platform-tests/wpt/blob/2a298b616b7c865917d7198a287310881cbfdd8d/streams/readable-streams/async-iterator.any.js#L24
[stub-async-iterator-prototype]: https://github.com/MattiasBuelens/web-streams-polyfill/blob/v2.0.0/src/target/es5/stub/async-iterator-prototype.ts
[creatorrr-polyfill]: https://github.com/creatorrr/web-streams-polyfill

14
node_modules/web-streams-polyfill/es2018/package.json generated vendored Normal file
View File

@@ -0,0 +1,14 @@
{
"name": "web-streams-polyfill-es2018",
"main": "../dist/polyfill.es2018",
"browser": "../dist/polyfill.es2018.min.js",
"module": "../dist/polyfill.es2018.mjs",
"types": "../dist/types/polyfill.d.ts",
"typesVersions": {
">=3.6": {
"../dist/types/*": [
"../dist/types/ts3.6/*"
]
}
}
}

14
node_modules/web-streams-polyfill/es6/package.json generated vendored Normal file
View File

@@ -0,0 +1,14 @@
{
"name": "web-streams-polyfill-es6",
"main": "../dist/polyfill.es6",
"browser": "../dist/polyfill.es6.min.js",
"module": "../dist/polyfill.es6.mjs",
"types": "../dist/types/polyfill.d.ts",
"typesVersions": {
">=3.6": {
"../dist/types/*": [
"../dist/types/ts3.6/*"
]
}
}
}

83
node_modules/web-streams-polyfill/package.json generated vendored Normal file
View File

@@ -0,0 +1,83 @@
{
"name": "web-streams-polyfill",
"version": "3.3.3",
"description": "Web Streams, based on the WHATWG spec reference implementation",
"main": "dist/polyfill",
"browser": "dist/polyfill.min.js",
"module": "dist/polyfill.mjs",
"types": "dist/types/polyfill.d.ts",
"typesVersions": {
">=3.6": {
"dist/types/*": [
"dist/types/ts3.6/*"
]
}
},
"scripts": {
"test": "npm run test:types && npm run test:unit && npm run test:wpt",
"test:wpt": "npm run test:wpt:node && npm run test:wpt:chromium && npm run test:wpt:firefox",
"test:wpt:node": "node --expose_gc ./test/wpt/node/run.js",
"test:wpt:chromium": "node ./test/wpt/browser/run.js --browser chromium",
"test:wpt:firefox": "node ./test/wpt/browser/run.js --browser firefox",
"test:types": "tsc -p ./test/types/tsconfig.json",
"test:unit": "jasmine --config=test/unit/jasmine.json",
"lint": "eslint \"src/**/*.ts\"",
"build": "npm run build:bundle && npm run build:types",
"build:bundle": "rollup -c",
"build:types": "tsc --project . --emitDeclarationOnly --declarationDir ./lib && api-extractor run",
"accept:types": "npm run build:types -- --local",
"postbuild:types": "downlevel-dts ./dist/types/ts3.6/ ./dist/types/ --to=3.5 && node ./build/downlevel-dts.js",
"prepare": "npm run build"
},
"files": [
"dist",
"es6",
"es2018",
"ponyfill"
],
"engines": {
"node": ">= 8"
},
"repository": {
"type": "git",
"url": "git+https://github.com/MattiasBuelens/web-streams-polyfill.git"
},
"keywords": [
"streams",
"whatwg",
"polyfill"
],
"author": "Mattias Buelens <mattias@buelens.com>",
"contributors": [
"Diwank Singh <diwank.singh@gmail.com>"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/MattiasBuelens/web-streams-polyfill/issues"
},
"homepage": "https://github.com/MattiasBuelens/web-streams-polyfill#readme",
"devDependencies": {
"@microsoft/api-extractor": "^7.39.1",
"@rollup/plugin-inject": "^5.0.5",
"@rollup/plugin-replace": "^5.0.5",
"@rollup/plugin-strip": "^3.0.4",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.5",
"@types/node": "^18.19.4",
"@typescript-eslint/eslint-plugin": "^6.17.0",
"@typescript-eslint/parser": "^6.17.0",
"@ungap/promise-all-settled": "^1.1.2",
"downlevel-dts": "^0.11.0",
"eslint": "^8.56.0",
"jasmine": "^5.1.0",
"micromatch": "^4.0.5",
"minimist": "^1.2.5",
"playwright": "^1.14.1",
"recursive-readdir": "^2.2.2",
"rollup": "^4.9.2",
"ts-morph": "^10.0.2",
"tslib": "^2.6.2",
"typescript": "^5.3.3",
"wpt-runner": "^5.0.0"
}
}

View File

@@ -0,0 +1,13 @@
{
"name": "web-streams-ponyfill-es2018",
"main": "../../dist/ponyfill.es2018",
"module": "../../dist/ponyfill.es2018.mjs",
"types": "../../dist/types/ponyfill.d.ts",
"typesVersions": {
">=3.6": {
"../../dist/types/*": [
"../../dist/types/ts3.6/*"
]
}
}
}

View File

@@ -0,0 +1,13 @@
{
"name": "web-streams-ponyfill-es6",
"main": "../../dist/ponyfill.es6",
"module": "../../dist/ponyfill.es6.mjs",
"types": "../../dist/types/ponyfill.d.ts",
"typesVersions": {
">=3.6": {
"../../dist/types/*": [
"../../dist/types/ts3.6/*"
]
}
}
}

View File

@@ -0,0 +1,13 @@
{
"name": "web-streams-ponyfill",
"main": "../dist/ponyfill",
"module": "../dist/ponyfill.mjs",
"types": "../dist/types/ponyfill.d.ts",
"typesVersions": {
">=3.6": {
"../dist/types/*": [
"../dist/types/ts3.6/*"
]
}
}
}