UNPKG

@virtualstate/navigation

Version:

Native JavaScript [navigation](https://developer.mozilla.org/en-US/docs/Web/API/Navigation_API) implementation

136 lines (135 loc) 4.34 kB
{ "name": "@virtualstate/navigation", "version": "1.0.1-alpha.209", "main": "./esnext/index.js", "module": "./esnext/index.js", "types": "./esnext/index.d.ts", "type": "module", "keywords": [ "app history", "app-history", "navigation", "history", "ponyfill" ], "typesVersions": { "*": { "*": [ "./esnext/index.d.ts" ], "routes": [ "./esnext/routes/index.d.ts" ], "state": [ "./esnext/state/index.d.ts" ], "polyfill": [ "./esnext/polyfill.d.ts" ], "polyfill/rollup": [ "./esnext/polyfill.d.ts" ], "tests": [ "./esnext/tests/index.d.ts" ], "rollup": [ "./esnext/index.d.ts" ], "await": [ "./esnext/await/index.d.ts" ], "dynamic": [ "./esnext/dynamic/index.d.ts" ] } }, "exports": { ".": { "require": "./esnext/rollup.cjs", "import": "./esnext/index.js", "module": "./esnext/index.js" }, "./event-target": "./esnext/event-target/async-event-target.js", "./event-target/async": "./esnext/event-target/async-event-target.js", "./event-target/sync": "./esnext/event-target/sync-event-target.js", "./esnext/polyfill": "./esnext/polyfill.js", "./esnext/get-polyfill": "./esnext/get-polyfill.js", "./esnext/apply-polyfill": "./esnext/apply-polyfill.js", "./esnext/util/serialization": "./esnext/util/serialization.js", "./polyfill": { "require": "./esnext/polyfill-rollup.js", "import": "./esnext/polyfill.js", "module": "./esnext/polyfill.js" }, "./polyfill/rollup": "./esnext/polyfill-rollup.js", "./get-polyfill": "./esnext/get-polyfill.js", "./apply-polyfill": "./esnext/apply-polyfill.js", "./routes": "./esnext/routes/index.js", "./state": "./esnext/state/index.js", "./await": "./esnext/await/index.js", "./dynamic": "./esnext/dynamic/index.js", "./rollup": { "require": "./esnext/rollup.cjs", "import": "./esnext/rollup.js" } }, "repository": { "type": "git", "url": "git+https://github.com/virtualstate/navigation.git" }, "bugs": { "url": "https://github.com/virtualstate/navigation/issues" }, "homepage": "https://github.com/virtualstate/navigation#readme", "author": "Fabian Cook <hello@fabiancook.dev>", "license": "MIT", "dependencies": { "@virtualstate/composite-key": "^1.0.0" }, "devDependencies": { "@babel/cli": "^7.15.4", "@babel/core": "^7.15.4", "@babel/preset-env": "^7.15.4", "@opennetwork/http-representation": "^3.0.0", "@rollup/plugin-node-resolve": "^13.1.1", "@rollup/plugin-typescript": "^8.3.0", "@types/chance": "^1.1.3", "@types/mkdirp": "^1.0.2", "@types/node": "^18.14.1", "@types/rimraf": "^3.0.2", "@types/whatwg-url": "^8.2.1", "@virtualstate/focus": "^1.4.9", "@virtualstate/kdl": "^1.0.1-alpha.32", "@virtualstate/promise": "^1.3.4", "@virtualstate/union": "^2.48.1", "c8": "^7.11.3", "chance": "^1.1.8", "cheerio": "^1.0.0-rc.10", "core-js": "^3.17.2", "dom-lite": "^20.2.0", "filehound": "^1.17.4", "mkdirp": "^1.0.4", "playwright": "^1.25.2", "rimraf": "^3.0.2", "rollup": "^2.61.1", "rollup-plugin-babel": "^4.4.0", "rollup-plugin-ignore": "^1.0.10", "ts-node": "^10.2.1", "typescript": "^5.4.5", "urlpattern-polyfill": "^8.0.2", "v8-to-istanbul": "^8.1.0" }, "scripts": { "build": "rm -rf esnext && tsc", "postbuild": "mkdir -p coverage && node scripts/post-build.js", "generate": "yarn build && node esnext/generate.js", "test": "yarn build && yarn test:all", "test:all": "yarn test:node && yarn test:deno && yarn test:bun", "test:node": "node --enable-source-maps esnext/tests/index.js", "test:deno": "deno run --allow-read --allow-net --import-map=import-map-deno.json esnext/tests/index.js", "test:bun": "bun esnext/tests/index.js", "test:deno:r": "yarn build && deno run -r --allow-read --allow-net --import-map=import-map-deno.json esnext/tests/index.js", "test:inspect": "yarn build && node --enable-source-maps --inspect-brk esnext/tests/index.js", "coverage": "yarn build && c8 node esnext/tests/index.js && yarn postbuild" } }