UNPKG

3.35 kBJSONView Raw
1{
2 "name": "web-streams-polyfill",
3 "version": "4.0.0",
4 "description": "Web Streams, based on the WHATWG spec reference implementation",
5 "main": "dist/ponyfill.js",
6 "module": "dist/ponyfill.mjs",
7 "types": "types/ponyfill.d.ts",
8 "exports": {
9 ".": {
10 "types": "./types/ponyfill.d.ts",
11 "import": "./dist/ponyfill.mjs",
12 "require": "./dist/ponyfill.js"
13 },
14 "./es5": {
15 "types": "./types/ponyfill.d.ts",
16 "import": "./dist/ponyfill.es5.mjs",
17 "require": "./dist/ponyfill.es5.js"
18 },
19 "./polyfill": {
20 "types": "./types/polyfill.d.ts",
21 "default": "./dist/polyfill.js"
22 },
23 "./polyfill/es5": {
24 "types": "./types/polyfill.d.ts",
25 "default": "./dist/polyfill.es5.js"
26 },
27 "./dist/*": "./dist/*",
28 "./types/*": "./types/*",
29 "./package": "./package.json",
30 "./package.json": "./package.json"
31 },
32 "scripts": {
33 "test": "npm run test:types && npm run test:unit && npm run test:wpt && npm run test:bundlers",
34 "test:wpt": "npm run test:wpt:node && npm run test:wpt:chromium && npm run test:wpt:firefox",
35 "test:wpt:node": "node --expose_gc ./test/wpt/node/run.js",
36 "test:wpt:chromium": "node ./test/wpt/browser/run.js --browser chromium",
37 "test:wpt:firefox": "node ./test/wpt/browser/run.js --browser firefox",
38 "test:bundlers": "npm run test:bundler:rollup && npm run test:bundler:webpack",
39 "test:bundler:rollup": "cd test/rollup && npm install && npm test",
40 "test:bundler:webpack": "cd test/webpack && npm install && npm test",
41 "test:types": "tsc -p ./test/types/tsconfig.json",
42 "test:unit": "node --experimental-import-meta-resolve node_modules/jasmine/bin/jasmine.js --config=test/unit/jasmine.json",
43 "lint": "eslint \"src/**/*.ts\"",
44 "build": "npm run build:bundle && npm run build:types",
45 "build:bundle": "rollup -c",
46 "build:types": "tsc --project . --emitDeclarationOnly --declarationDir ./lib && api-extractor run",
47 "accept:types": "npm run build:types -- --local",
48 "prepare": "npm run build"
49 },
50 "files": [
51 "dist",
52 "types"
53 ],
54 "engines": {
55 "node": ">= 8"
56 },
57 "repository": {
58 "type": "git",
59 "url": "git+https://github.com/MattiasBuelens/web-streams-polyfill.git"
60 },
61 "keywords": [
62 "streams",
63 "whatwg",
64 "polyfill"
65 ],
66 "author": "Mattias Buelens <mattias@buelens.com>",
67 "contributors": [
68 "Diwank Singh <diwank.singh@gmail.com>"
69 ],
70 "license": "MIT",
71 "bugs": {
72 "url": "https://github.com/MattiasBuelens/web-streams-polyfill/issues"
73 },
74 "homepage": "https://github.com/MattiasBuelens/web-streams-polyfill#readme",
75 "devDependencies": {
76 "@microsoft/api-extractor": "^7.41.1",
77 "@rollup/plugin-inject": "^5.0.5",
78 "@rollup/plugin-replace": "^5.0.5",
79 "@rollup/plugin-strip": "^3.0.4",
80 "@rollup/plugin-terser": "^0.4.4",
81 "@rollup/plugin-typescript": "^11.1.6",
82 "@types/node": "^20.11.21",
83 "@typescript-eslint/eslint-plugin": "^7.1.0",
84 "@typescript-eslint/parser": "^7.1.0",
85 "@ungap/promise-all-settled": "^1.1.2",
86 "eslint": "^8.57.0",
87 "jasmine": "^5.1.0",
88 "micromatch": "^4.0.5",
89 "minimist": "^1.2.5",
90 "playwright": "^1.42.0",
91 "recursive-readdir": "^2.2.2",
92 "rollup": "^4.12.0",
93 "tslib": "^2.6.2",
94 "typescript": "^5.3.3",
95 "wpt-runner": "^5.0.0"
96 }
97}