-
-
Notifications
You must be signed in to change notification settings - Fork 191
/
package.json
218 lines (218 loc) · 9.72 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
{
"name": "indexeddbshim",
"version": "15.2.0",
"type": "module",
"author": "Parashuram <[email protected]>",
"contributors": [
"Brett Zamir"
],
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/indexeddbshim/IndexedDBShim",
"description": "A polyfill for IndexedDB using WebSql",
"c8": {
"reporter": [
"text",
"json-summary",
"lcov"
],
"exclude": [
"node_modules/**",
"IndexedDBShim/node_modules/**",
"web-platform-tests/**",
"coverage",
"ignore",
".eslintrc.js",
".mocharc.cjs",
"tests-mocha/**",
"tests-polyfill/**",
"test-support/**"
]
},
"scripts": {
"tsc": "tsc",
"tsc-prod": "tsc -p tsconfig-prod.json",
"build": "rm -R dist && npm run tsc-prod && npm run rollup",
"prepublishOnly": "npm run license-badges && npm run build",
"license-badge": "license-badger --corrections --uncategorizedLicenseTemplate \"\\${license} (\\${name} (\\${version}))\" --filteredTypes=nonempty --textTemplate \"License types\n(project, deps, and bundled devDeps)\" --packageJson --production badges/licenses-badge.svg",
"license-badge-dev": "license-badger --corrections --filteredTypes=nonempty --textTemplate \"License types\n(all devDeps)\" --allDevelopment badges/licenses-badge-dev.svg",
"license-badges": "run-p license-badge license-badge-dev",
"start": "static -p 9999 -H '{\"Access-Control-Allow-Origin\": \"http://web-platform.test:8000\", \"Access-Control-Allow-Methods\": \"GET\", \"Access-Control-Allow-Headers\": \"Content-Type\"}'",
"watch": "chokidar \"src/*\" \"node_modules/eventtarget/EventTarget.js\" \"node_modules/websql/lib/websql/WebSQLTransaction.js\" \"node_modules/websql/lib/websql/WebSQLDatabase.js\" -c \"npm run rollup\"",
"dev": "run-p start watch",
"clean": "run-p clean-sysDB clean-mocha clean-fake clean-mock clean-w3c clean-w3cOld",
"clean-sysDB": "rimraf __sysdb__*",
"clean-polyfill": "run-p clean-fake clean-mock clean-w3cOld clean-sysDB",
"clean-mocha": "rimraf D_indexeddbshim_test_database_* D_test.sqlite",
"clean-fake": "rimraf D_test0.*",
"clean-mock": "rimraf D_test_database*",
"clean-w3c": "rimraf D_^D^B2* D_db* D_test* D_about* D_^I^D^B* D_blank* D_database_name* D_idbtransaction* D_x D_x.sqlite D_y D_y.sqlite D_webworker* D_http*",
"clean-w3cOld": "rimraf D_db.sqlite* D_test* D_database_name* D_idbtransaction*",
"copy": "copyup node_modules/core-js-bundle/minified.js node_modules/source-map-support/browser-source-map-support.js node_modules/mocha/mocha.css node_modules/mocha/mocha.js node_modules/chai/chai.js node_modules/sinon/pkg/sinon-no-sourcemaps.js test-support",
"lint": "eslint .",
"eslint": "npm run lint",
"sqlite-rebuild": "cd node_modules/sqlite3 && npm i",
"w3c-build-only": "node test-support/node-buildjs",
"w3c-build": "run-s clean-w3c w3c-build-only",
"fake": "run-s clean-fake coverage:fake clean-fake",
"mock": "run-s clean-mock coverage:mock clean-mock",
"w3c-old": "run-s clean-w3cOld coverage:w3cOld clean-w3cOld",
"tests-polyfill": "run-s clean-polyfill coverage:fake coverage:mock coverage:w3cOld",
"mocha": "run-s clean-mocha coverage:mocha clean-mocha",
"rollup": "rollup -c",
"coverage:fake": "c8 --silent --no-clean mocha --reporterOptions configFile=mocha-multi-reporters.json,cmrOutput=@es-joy/json-file-reporter+output+fake --require source-map-support/register tests-polyfill/fakeIndexedDB/test-node.js",
"coverage:mock": "c8 --silent --no-clean mocha --reporterOptions configFile=mocha-multi-reporters.json,cmrOutput=@es-joy/json-file-reporter+output+mock --require source-map-support/register tests-polyfill/indexedDBmock/test-node.js",
"coverage:w3cOld": "c8 --silent --no-clean mocha --reporterOptions configFile=mocha-multi-reporters.json,cmrOutput=@es-joy/json-file-reporter+output+w3c --require source-map-support/register tests-polyfill/w3c/test-node.js",
"coverage:w3c": "NODE_OPTIONS=--max_old_space_size=16384 c8 --silent --no-clean npm run w3c-test-only",
"test:w3c": "NODE_OPTIONS=--max_old_space_size=16384 NODE_OPTIONS=--trace-warnings node test-support/node-idb-test.js",
"w3c-test-only": "node --trace-warnings test-support/node-idb-test.js",
"coverage:mocha": "c8 --silent --no-clean mocha --reporterOptions configFile=mocha-multi-reporters.json,cmrOutput=@es-joy/json-file-reporter+output+mocha --require source-map-support/register tests-mocha/test-node.js",
"coverage-badge": "coveradge badges/coverage-badge",
"coverage:report-only": "c8 report",
"coverage:report": "run-s coverage:report-only",
"remove-cache": "rimraf node_modules/.cache",
"remove-cov": "rimraf .nyc_output ",
"remove-results": "rimraf test-support/results/file*.json",
"coverage:polyfill": "run-s coverage:fake coverage:mock coverage:w3cOld",
"tests-badge": "mbg --fileGlob \"./test-support/results/file*.json\" --badge_output badges/tests-badge.svg",
"coverage": "run-s -c clean remove-cache remove-cov remove-results coverage:fake coverage:mock coverage:mocha coverage:w3c clean tests-badge coverage-badge coverage:report",
"open-coverage-only": "open http://127.0.0.1:9999/coverage/lcov-report/",
"open-coverage": "run-p start open-coverage-only",
"test": "run-s lint coverage",
"submodules-init": "git submodule update --init --recursive",
"submodules-fetch": "git submodule foreach --recursive git fetch",
"submodules-merge": "git submodule foreach git merge origin master",
"submodules": "run-s submodules-init submodules-fetch submodules-merge",
"wpt": "run-p start web-platform-tests",
"web-platform-tests": "cd web-platform-tests && ./wpt serve",
"w3c-find-unused": "node test-support/find-unused.js",
"w3c": "run-s w3c-build w3c-test",
"w3c-add-wrap": "node test-support/wrap-w3c-tests",
"w3c-remove-wrap": "node test-support/wrap-w3c-tests remove",
"w3c-wrap": "node test-support/wrap-w3c-tests",
"test-and-start:w3c": "run-p -r start web-platform-tests delayed-w3c-test",
"delay": "delay 9",
"delayed-w3c-test": "run-s delay test:w3c",
"w3c-test": "run-s clean-w3c test-and-start:w3c",
"w3c-good-only": "node test-support/node-idb-test.js good",
"w3c-bad-only": "node test-support/node-idb-test.js bad",
"w3c-good": "run-s w3c-build w3c-good-only clean-w3c",
"w3c-bad": "run-s w3c-build w3c-bad-only clean-w3c",
"w3c-good-test": "run-s w3c-good-only clean-w3c",
"w3c-bad-test": "run-s w3c-bad-only clean-w3c"
},
"repository": {
"type": "git",
"url": "https://github.com/indexeddbshim/IndexedDBShim"
},
"bugs": {
"url": "https://github.com/indexeddbshim/IndexedDBShim/issues"
},
"main": "./dist/indexeddbshim-node.cjs",
"types": "./dist/node.d.ts",
"exports": {
".": {
"node": {
"types": "./dist/node-UnicodeIdentifiers.d.ts",
"import": "./src/node-UnicodeIdentifiers.js",
"require": "./dist/indexeddbshim-UnicodeIdentifiers-node.cjs"
},
"default": {
"types": "./dist/browser-noninvasive.d.ts",
"import": "./src/browser-noninvasive.js",
"require": "./dist/indexeddbshim-noninvasive.js"
}
},
"./src/Key.js": {
"types": "./dist/Key.d.ts",
"import": "./src/Key.js",
"require": "./dist/indexeddbshim-Key.js"
},
"./*": "./*"
},
"keywords": [
"indexedDB",
"database",
"polyfill",
"websql"
],
"browserslist": [
"cover 100%",
"last 3 Chrome versions",
"last 3 Firefox versions",
"last 3 Edge versions",
"last 3 Safari versions",
"last 3 ios_saf versions",
"last 3 Android versions",
"last 3 Opera versions",
"last 3 IE versions",
"last 3 op_mini versions",
"last 3 bb versions",
"last 3 op_mob versions",
"last 3 and_chr versions",
"last 3 and_ff versions",
"last 3 ie_mob versions",
"last 3 and_uc versions",
"last 3 Samsung versions"
],
"engines": {
"node": ">=18.14.0"
},
"dependencies": {
"canvas": "^2.11.2",
"eventtargeter": "0.9.0",
"sync-promise-expanded": "^1.0.0",
"typeson": "9.0.3",
"typeson-registry": "11.1.0",
"websql-configurable": "^3.0.3"
},
"devDependencies": {
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.4",
"@brettz9/node-static": "^0.1.1",
"@es-joy/json-file-reporter": "^1.4.0",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^26.0.1",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-terser": "^0.4.4",
"@types/node": "^22.5.4",
"@types/websql": "^0.0.30",
"@unicode/unicode-15.1.0": "^1.5.2",
"babel-plugin-add-module-exports": "1.0.4",
"bson": "^6.8.0",
"builtin-modules": "^4.0.0",
"c8": "^10.1.2",
"chai": "5.1.1",
"chokidar-cli": "^3.0.0",
"colors": "1.4.0",
"copyfiles": "^2.4.1",
"core-js-bundle": "^3.38.1",
"coveradge": "^0.8.2",
"cyclonejs": "1.1.4",
"delay-cli": "^2.0.0",
"eslint": "^9.10.0",
"eslint-config-ash-nazg": "^36.16.3",
"got": "^13.0.0",
"is-date-object": "1.0.5",
"isomorphic-fetch": "^3.0.0",
"jsdom": "^25.0.0",
"license-badger": "^0.21.1",
"local-xmlhttprequest": "2.0.0",
"mocha": "^10.7.3",
"mocha-badge-generator": "^0.11.0",
"mocha-multi-reporters": "^1.5.1",
"npm-run-all": "^4.1.5",
"open-cli": "^8.0.0",
"rimraf": "^5.0.8",
"rollup": "^4.21.2",
"rollup-plugin-filesize": "^10.0.0",
"rollup-plugin-node-globals": "^1.4.0",
"rollup-plugin-node-polyfills": "^0.2.1",
"sinon": "^18.0.1",
"source-map-support": "0.5.21",
"sourcemap-transformer": "git+https://github.com/brettz9/sourcemap-transformer.git",
"typescript": "^5.6.2",
"w3c-blob": "0.0.1",
"ws": "^8.18.0"
}
}