UNPKG

indexeddbshim

Version:
217 lines 9.88 kB
{ "name": "indexeddbshim", "version": "16.0.0", "type": "module", "author": "Parashuram <code@nparashuram.com>", "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/**" ] }, "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": ">=20.0.0" }, "dependencies": { "canvas": "^3.1.0", "eventtargeter": "0.9.0", "sync-promise-expanded": "^1.0.0", "typeson": "9.0.3", "typeson-registry": "11.1.1", "websql-configurable": "^3.0.3" }, "devDependencies": { "@babel/core": "^7.27.4", "@babel/preset-env": "^7.27.2", "@brettz9/node-static": "^0.1.1", "@es-joy/json-file-reporter": "^1.5.0", "@rollup/plugin-babel": "^6.0.4", "@rollup/plugin-commonjs": "^28.0.3", "@rollup/plugin-json": "^6.1.0", "@rollup/plugin-node-resolve": "^16.0.1", "@rollup/plugin-terser": "^0.4.4", "@types/node": "^24.0.1", "@types/websql": "^0.0.30", "@unicode/unicode-15.1.0": "^1.6.6", "babel-plugin-add-module-exports": "1.0.4", "bson": "^6.10.4", "builtin-modules": "^5.0.0", "c8": "^10.1.3", "chai": "5.2.0", "chokidar-cli": "^3.0.0", "colors": "1.4.0", "copyfiles": "^2.4.1", "core-js-bundle": "^3.43.0", "coveradge": "^0.8.2", "cyclonejs": "1.1.4", "delay-cli": "^2.0.0", "eslint": "^9.28.0", "eslint-config-ash-nazg": "^38.0.1", "got": "^14.4.7", "is-date-object": "1.1.0", "isomorphic-fetch": "^3.0.0", "jsdom": "^26.1.0", "license-badger": "^0.21.1", "local-xmlhttprequest": "2.0.0", "mocha": "^11.6.0", "mocha-badge-generator": "^0.11.0", "mocha-multi-reporters": "^1.5.1", "npm-run-all": "^4.1.5", "open-cli": "^8.0.0", "rimraf": "^6.0.1", "rollup": "^4.43.0", "rollup-plugin-filesize": "^10.0.0", "rollup-plugin-node-globals": "^1.4.0", "rollup-plugin-node-polyfills": "^0.2.1", "sinon": "^21.0.0", "source-map-support": "0.5.21", "sourcemap-transformer": "git+https://github.com/brettz9/sourcemap-transformer.git", "typescript": "^5.8.3", "w3c-blob": "0.0.1", "ws": "^8.18.2" }, "scripts": { "tsc": "tsc", "tsc-prod": "tsc -p tsconfig-prod.json", "build": "rm -R dist && npm run tsc-prod && npm run rollup", "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" } }