@shgysk8zer0/importmap 1.10.1 → 1.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [v1.10.3] - 2026-07-15
11
+
12
+ ### Changed
13
+ - Misc version updates
14
+
15
+ ## [v1.10.2] - 2026-06-15
16
+
17
+ ### Changed
18
+ - Bulk updates in packages hardening CI security
19
+
10
20
  ## [v1.10.1] - 2026-06-14
11
21
 
12
22
  ### Added
package/cli.cjs CHANGED
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env node
1
2
  'use strict';
2
3
 
3
4
  var json_js = require('@shgysk8zer0/npm-utils/json.js');
@@ -8,9 +9,9 @@ var node_path = require('node:path');
8
9
 
9
10
  const IMPORTMAP_EXP = /<script\b(?=[^>]*\btype=["']importmap["'])(?=(?:[^>]*\bnonce=["'](?<nonce>[^"']*)["'])?)(?=(?:[^>]*\bname=["'](?<name>[^"']*)["'])?)[^>]*>(?<content>[\s\S]*?)<\/script>/i;
10
11
 
11
- var pkg = JSON.parse('{\n "name": "@shgysk8zer0/importmap",\n "version": "1.10.1",\n "engines": {\n "node": ">=20.10.0"\n },\n "description": "Front-End dependencies based on `<script type=\\"importmap\\">`",\n "type": "module",\n "module": "./index.js",\n "main": "./index.cjs",\n "unpkg": "./importmap.js",\n "exports": {\n ".": {\n "import": "./index.js",\n "require": "./index.cjs"\n },\n "./importmap": {\n "import": "./importmap.js"\n },\n "./*.json": {\n "import": "./*.json"\n },\n "./*.js": {\n "import": "./*.js",\n "require": "./*.cjs"\n },\n "./*.mjs": {\n "import": "./*.js"\n },\n "./*.cjs": {\n "require": "./*.cjs"\n },\n "./*": {\n "import": "./*.js",\n "require": "./*.cjs"\n }\n },\n "bin": {\n "importmap-utils": "cli.js",\n "importmap-html": "html.js"\n },\n "scripts": {\n "start": "npx @shgysk8zer0/http-server -c ./http.config.js",\n "test": "npm run lint:js && npm run run:tests && npm run test:imports",\n "preversion": "npm test",\n "postversion": "npm run update",\n "prepare": "npm test && npm run build",\n "update": "node ./update.js",\n "lint:js": "eslint . --ignore-pattern \'importmap.mjs\'",\n "fix:js": "eslint . --fix",\n "build": "npm run build:js",\n "build:js": "rollup -c",\n "test:imports": "rollup -c rollup.test.config.js",\n "run:tests": "node --test *.test.js",\n "create:lock": "npm i --package-lock-only --ignore-scripts --no-audit --no-fund",\n "version:bump": "npm run version:bump:patch",\n "version:bump:patch": "npm version --no-git-tag-version patch && npm run create:lock",\n "version:bump:minor": "npm version --no-git-tag-version minor && npm run create:lock",\n "version:bump:major": "npm version --no-git-tag-version major && npm run create:lock"\n },\n "repository": {\n "type": "git",\n "url": "git+https://github.com/shgysk8zer0/importmap.git"\n },\n "author": "Chris Zuber <admin@kernvalley.us>",\n "license": "MIT",\n "bugs": {\n "url": "https://github.com/shgysk8zer0/importmap/issues"\n },\n "homepage": "https://github.com/shgysk8zer0/importmap#readme",\n "devDependencies": {\n "@shgysk8zer0/eslint-config": "^1.0.9",\n "@shgysk8zer0/js-utils": "^1.0.6",\n "@shgysk8zer0/rollup-import": "^2.0.3",\n "eslint": "^10.4.1"\n },\n "dependencies": {\n "@shgysk8zer0/npm-utils": "^1.2.0",\n "@shgysk8zer0/polyfills": "^0.8.0",\n "commander": "^15.0.0"\n },\n "allowScripts": {\n "fsevents@2.3.3": true\n }\n}\n');
12
+ var pkg = JSON.parse('{\n "name": "@shgysk8zer0/importmap",\n "version": "1.10.3",\n "engines": {\n "node": ">=20.10.0"\n },\n "description": "Front-End dependencies based on `<script type=\\"importmap\\">`",\n "type": "module",\n "module": "./index.js",\n "main": "./index.cjs",\n "unpkg": "./importmap.js",\n "exports": {\n ".": {\n "import": "./index.js",\n "require": "./index.cjs"\n },\n "./importmap": {\n "import": "./importmap.js"\n },\n "./*.json": {\n "import": "./*.json"\n },\n "./*.js": {\n "import": "./*.js",\n "require": "./*.cjs"\n },\n "./*.mjs": {\n "import": "./*.js"\n },\n "./*.cjs": {\n "require": "./*.cjs"\n },\n "./*": {\n "import": "./*.js",\n "require": "./*.cjs"\n }\n },\n "bin": {\n "importmap-utils": "cli.js",\n "importmap-html": "html.js"\n },\n "scripts": {\n "start": "npx @shgysk8zer0/http-server -c ./http.config.js",\n "test": "npm run lint:js && npm run run:tests && npm run test:imports",\n "preversion": "npm test",\n "postversion": "npm run update",\n "prepare": "npm test && npm run build",\n "update": "node ./update.js",\n "lint:js": "eslint . --ignore-pattern \'importmap.mjs\'",\n "fix:js": "eslint . --fix",\n "build": "npm run build:js",\n "build:js": "rollup -c",\n "test:imports": "rollup -c rollup.test.config.js",\n "run:tests": "node --test *.test.js",\n "create:lock": "npm i --package-lock-only --ignore-scripts --no-audit --no-fund",\n "version:bump": "npm run version:bump:patch",\n "version:bump:patch": "npm version --no-git-tag-version patch && npm run create:lock",\n "version:bump:minor": "npm version --no-git-tag-version minor && npm run create:lock",\n "version:bump:major": "npm version --no-git-tag-version major && npm run create:lock"\n },\n "repository": {\n "type": "git",\n "url": "git+https://github.com/shgysk8zer0/importmap.git"\n },\n "author": "Chris Zuber <admin@kernvalley.us>",\n "license": "MIT",\n "bugs": {\n "url": "https://github.com/shgysk8zer0/importmap/issues"\n },\n "homepage": "https://github.com/shgysk8zer0/importmap#readme",\n "devDependencies": {\n "@shgysk8zer0/eslint-config": "^1.1.0",\n "@shgysk8zer0/js-utils": "^1.1.0",\n "@shgysk8zer0/rollup-import": "^2.1.0",\n "eslint": "^10.6.0"\n },\n "dependencies": {\n "@shgysk8zer0/npm-utils": "^1.2.0",\n "@shgysk8zer0/polyfills": "^0.8.6",\n "commander": "^15.0.0"\n },\n "allowScripts": {\n "fsevents@2.3.3": true\n }\n}\n');
12
13
 
13
- var importmap = JSON.parse('{\n "imports": {\n "@node/": "/node_modules/",\n "@shgysk8zer0/kazoo/": "https://unpkg.com/@shgysk8zer0/kazoo@1.0.12/",\n "@shgysk8zer0/konami": "https://unpkg.com/@shgysk8zer0/konami@1.1.2/konami.js",\n "@shgysk8zer0/polyfills": "https://unpkg.com/@shgysk8zer0/polyfills@0.8.4/browser.min.js",\n "@shgysk8zer0/polyfills/": "https://unpkg.com/@shgysk8zer0/polyfills@0.8.4/",\n "@shgysk8zer0/jwk-utils": "https://unpkg.com/@shgysk8zer0/jwk-utils@1.2.0/jwk-utils.min.js",\n "@shgysk8zer0/jwk-utils/": "https://unpkg.com/@shgysk8zer0/jwk-utils@1.2.0/",\n "@shgysk8zer0/jswaggersheets": "https://unpkg.com/@shgysk8zer0/jswaggersheets@1.1.0/swagger.js",\n "@shgysk8zer0/jswaggersheets/": "https://unpkg.com/@shgysk8zer0/jswaggersheets@1.1.0/",\n "@shgysk8zer0/jss/": "https://unpkg.com/@shgysk8zer0/jss@1.0.1/",\n "@shgysk8zer0/consts/": "https://unpkg.com/@shgysk8zer0/consts@1.0.8/",\n "@shgysk8zer0/http/": "https://unpkg.com/@shgysk8zer0/http@1.0.5/",\n "@shgysk8zer0/http-status": "https://unpkg.com/@shgysk8zer0/http-status@1.1.4/http-status.js",\n "@shgysk8zer0/aes-gcm": "https://unpkg.com/@shgysk8zer0/aes-gcm@1.0.9/aes-gcm.min.js",\n "@shgysk8zer0/aes-gcm/": "https://unpkg.com/@shgysk8zer0/aes-gcm@1.0.9/",\n "@shgysk8zer0/squish": "https://unpkg.com/@shgysk8zer0/squish@1.0.2/squish.min.js",\n "@shgysk8zer0/squish/": "https://unpkg.com/@shgysk8zer0/squish@1.0.2/",\n "@shgysk8zer0/suid": "https://unpkg.com/@shgysk8zer0/suid@1.0.0/suid.min.js",\n "@shgysk8zer0/suid/": "https://unpkg.com/@shgysk8zer0/suid@1.0.0/",\n "@shgysk8zer0/geoutils": "https://unpkg.com/@shgysk8zer0/geoutils@1.0.6/geoutils.min.js",\n "@shgysk8zer0/geoutils/": "https://unpkg.com/@shgysk8zer0/geoutils@1.0.6/",\n "@shgysk8zer0/core-css/": "https://unpkg.com/@shgysk8zer0/core-css@3.0.0/",\n "@shgysk8zer0/signals": "https://unpkg.com/@shgysk8zer0/signals@0.0.3/signals.min.js",\n "@shgysk8zer0/signals/": "https://unpkg.com/@shgysk8zer0/signals@0.0.3/",\n "@shgysk8zer0/importmap": "https://unpkg.com/@shgysk8zer0/importmap@1.10.1/importmap.js",\n "@shgysk8zer0/importmap/": "https://unpkg.com/@shgysk8zer0/importmap@1.10.1/",\n "@shgysk8zer0/components/": "https://unpkg.com/@shgysk8zer0/components@0.3.23/",\n "@aegisjsproject/trusted-types": "https://unpkg.com/@aegisjsproject/trusted-types@1.0.2/bundle.min.js",\n "@aegisjsproject/trusted-types/": "https://unpkg.com/@aegisjsproject/trusted-types@1.0.2/",\n "@aegisjsproject/parsers": "https://unpkg.com/@aegisjsproject/parsers@0.1.6/bundle.min.js",\n "@aegisjsproject/parsers/": "https://unpkg.com/@aegisjsproject/parsers@0.1.6/",\n "@aegisjsproject/sanitizer": "https://unpkg.com/@aegisjsproject/sanitizer@0.2.4/sanitizer.js",\n "@aegisjsproject/sanitizer/": "https://unpkg.com/@aegisjsproject/sanitizer@0.2.4/",\n "@aegisjsproject/core": "https://unpkg.com/@aegisjsproject/core@0.2.34/core.js",\n "@aegisjsproject/core/": "https://unpkg.com/@aegisjsproject/core@0.2.34/",\n "@aegisjsproject/styles": "https://unpkg.com/@aegisjsproject/styles@0.3.4/styles.js",\n "@aegisjsproject/styles/": "https://unpkg.com/@aegisjsproject/styles@0.3.4/",\n "@aegisjsproject/component": "https://unpkg.com/@aegisjsproject/component@0.1.8/component.js",\n "@aegisjsproject/component/": "https://unpkg.com/@aegisjsproject/component@0.1.8/",\n "@aegisjsproject/markdown": "https://unpkg.com/@aegisjsproject/markdown@0.1.7/markdown.min.js",\n "@aegisjsproject/markdown/": "https://unpkg.com/@aegisjsproject/markdown@0.1.7/",\n "@aegisjsproject/aegis-md": "https://unpkg.com/@aegisjsproject/aegis-md@0.0.4/aegis-md.js",\n "@aegisjsproject/aegis-md/": "https://unpkg.com/@aegisjsproject/aegis-md@0.0.4/",\n "@aegisjsproject/url": "https://unpkg.com/@aegisjsproject/url@1.0.3/url.min.js",\n "@aegisjsproject/url/": "https://unpkg.com/@aegisjsproject/url@1.0.3/",\n "@aegisjsproject/idb/": "https://unpkg.com/@aegisjsproject/idb@1.0.6/",\n "@aegisjsproject/idb": "https://unpkg.com/@aegisjsproject/idb@1.0.6/idb.min.js",\n "@aegisjsproject/otp/": "https://unpkg.com/@aegisjsproject/otp@1.0.2/",\n "@aegisjsproject/otp": "https://unpkg.com/@aegisjsproject/otp@1.0.2/otp.min.js",\n "@aegisjsproject/md-editor": "https://unpkg.com/@aegisjsproject/md-editor@1.0.0/md-editor.js",\n "@aegisjsproject/md-editor/": "https://unpkg.com/@aegisjsproject/md-editor@1.0.0/",\n "@aegisjsproject/barcodescanner": "https://unpkg.com/@aegisjsproject/barcodescanner@1.2.3/scanner.min.js",\n "@aegisjsproject/barcodescanner/": "https://unpkg.com/@aegisjsproject/barcodescanner@1.2.3/",\n "@aegisjsproject/state": "https://unpkg.com/@aegisjsproject/state@1.0.7/state.mjs",\n "@aegisjsproject/state/": "https://unpkg.com/@aegisjsproject/state@1.0.7/",\n "@aegisjsproject/router": "https://unpkg.com/@aegisjsproject/router@1.2.1/router.mjs",\n "@aegisjsproject/router/": "https://unpkg.com/@aegisjsproject/router@1.2.1/",\n "@aegisjsproject/callback-registry": "https://unpkg.com/@aegisjsproject/callback-registry@2.0.4/callbackRegistry.js",\n "@aegisjsproject/callback-registry/": "https://unpkg.com/@aegisjsproject/callback-registry@2.0.4/",\n "@aegisjsproject/attempt": "https://unpkg.com/@aegisjsproject/attempt@1.0.7/attempt.js",\n "@aegisjsproject/attempt/": "https://unpkg.com/@aegisjsproject/attempt@1.0.7/",\n "@aegisjsproject/secret-store": "https://unpkg.com/@aegisjsproject/secret-store@1.1.1/commands.min.js",\n "@aegisjsproject/commands/": "https://unpkg.com/@aegisjsproject/commands@1.0.2/",\n "@aegisjsproject/commands": "https://unpkg.com/@aegisjsproject/commands@1.0.2/commands.min.js",\n "@aegisjsproject/firebase-account-routes": "https://unpkg.com/@aegisjsproject/firebase-account-routes@0.0.6/main.js",\n "@aegisjsproject/firebase-account-routes/": "https://unpkg.com/@aegisjsproject/firebase-account-routes@0.0.6/",\n "@aegisjsproject/secret-store/": "https://unpkg.com/@aegisjsproject/secret-store@1.1.1/",\n "@aegisjsproject/qr-encoder": "https://unpkg.com/@aegisjsproject/qr-encoder@1.0.1/index.min.js",\n "@aegisjsproject/qr-encoder/": "https://unpkg.com/@aegisjsproject/qr-encoder@1.0.1/",\n "@aegisjsproject/escape": "https://unpkg.com/@aegisjsproject/escape@1.0.4/index.min.js",\n "@aegisjsproject/escape/": "https://unpkg.com/@aegisjsproject/escape@1.0.4/",\n "@aegisjsproject/disposable": "https://unpkg.com/@aegisjsproject/disposable@1.0.3/disposable.min.js",\n "@aegisjsproject/disposable/": "https://unpkg.com/@aegisjsproject/disposable@1.0.3/",\n "@aegisjsproject/iota": "https://unpkg.com/@aegisjsproject/iota@1.0.12/iota.min.js",\n "@aegisjsproject/iota/": "https://unpkg.com/@aegisjsproject/iota@1.0.12/",\n "@aegisjsproject/disposable-registry": "https://unpkg.com/@aegisjsproject/disposable-registry@1.0.2/registry.js",\n "@aegisjsproject/disposable-registry/": "https://unpkg.com/@aegisjsproject/disposable-registry@1.0.2/",\n "@aegisjsproject/hermes": "https://unpkg.com/@aegisjsproject/hermes@1.1.0/hermes.js",\n "@aegisjsproject/hermes/": "https://unpkg.com/@aegisjsproject/hermes@1.1.0/",\n "@aegisjsproject/pwa-prompt": "https://unpkg.com/@aegisjsproject/pwa-prompt@1.0.1/prompt.js",\n "@aegisjsproject/pwa-prompt/": "https://unpkg.com/@aegisjsproject/pwa-prompt@1.0.1/",\n "@aegisjsproject/button": "https://unpkg.com/@aegisjsproject/button@1.0.1/button.min.js",\n "@aegisjsproject/button/": "https://unpkg.com/@aegisjsproject/button@1.0.1/",\n "@aegisjsproject/atlas": "https://unpkg.com/@aegisjsproject/atlas@1.0.2/atlas.min.js",\n "@aegisjsproject/atlas/": "https://unpkg.com/@aegisjsproject/atlas@1.0.2/",\n "@aegisjsproject/toast-message": "https://unpkg.com/@aegisjsproject/toast-message@1.0.3/toast-message.min.js",\n "@aegisjsproject/toast-message/": "https://unpkg.com/@aegisjsproject/toast-message@1.0.3/",\n "@kernvalley/components/": "https://unpkg.com/@kernvalley/components@2.0.10/",\n "@webcomponents/custom-elements": "https://unpkg.com/@webcomponents/custom-elements@1.6.0/custom-elements.min.js",\n "leaflet": "https://unpkg.com/leaflet@1.9.4/dist/leaflet-src.esm.js",\n "leaflet/": "https://unpkg.com/leaflet@1.9.4/dist/",\n "urlpattern-polyfill": "https://unpkg.com/urlpattern-polyfill@10.1.0/index.js",\n "highlight.js": "https://unpkg.com/@highlightjs/cdn-assets@11.11.1/es/core.min.js",\n "highlight.js/": "https://unpkg.com/@highlightjs/cdn-assets@11.11.1/es/",\n "highlight.js/styles/": "https://unpkg.com/@highlightjs/cdn-assets@11.11.1/styles/",\n "@highlightjs/cdn-assets": "https://unpkg.com/@highlightjs/cdn-assets@11.11.1/es/core.min.js",\n "@highlightjs/cdn-assets/": "https://unpkg.com/@highlightjs/cdn-assets@11.11.1/es/",\n "@highlightjs/cdn-assets/styles/": "https://unpkg.com/@highlightjs/cdn-assets@11.11.1/styles/",\n "marked": "https://unpkg.com/marked@18.0.5/lib/marked.esm.js",\n "marked-highlight": "https://unpkg.com/marked-highlight@2.2.4/src/index.js",\n "yaml": "https://unpkg.com/yaml@2.9.0/browser/dist/index.js",\n "yaml/": "https://unpkg.com/yaml@2.9.0/browser/dist/",\n "firebase/": "https://www.gstatic.com/firebasejs/12.12.1/",\n "firebase/app": "https://www.gstatic.com/firebasejs/12.12.1/firebase-app.js",\n "firebase/app-check": "https://www.gstatic.com/firebasejs/12.12.1/firebase-app-check.js",\n "firebase/auth": "https://www.gstatic.com/firebasejs/12.12.1/firebase-auth.js",\n "firebase/database": "https://www.gstatic.com/firebasejs/12.12.1/firebase-database.js",\n "firebase/firestore": "https://www.gstatic.com/firebasejs/12.12.1/firebase-firestore.js",\n "firebase/functions": "https://www.gstatic.com/firebasejs/12.12.1/firebase-functions.js",\n "firebase/messaging": "https://www.gstatic.com/firebasejs/12.12.1/firebase-messaging.js",\n "firebase/performance": "https://www.gstatic.com/firebasejs/12.12.1/firebase-performance.js",\n "firebase/remote-config": "https://www.gstatic.com/firebasejs/12.12.1/firebase-remote-config.js",\n "firebase/storage": "https://www.gstatic.com/firebasejs/12.12.1/firebase-storage.js",\n "firebase/analytics": "https://www.gstatic.com/firebasejs/12.12.1/firebase-analytics.js",\n "qr": "https://unpkg.com/qr@0.6.0/index.js",\n "qr/": "https://unpkg.com/qr@0.6.0/",\n "lit": "https://unpkg.com/lit@3.3.3/index.js",\n "lit/": "https://unpkg.com/lit@3.3.3/",\n "lit-html": "https://unpkg.com/lit-html@3.3.3/lit-html.js",\n "lit-html/": "https://unpkg.com/lit-html@3.3.3/",\n "lit-element": "https://unpkg.com/lit-element@4.2.2/lit-element.js",\n "lit-element/": "https://unpkg.com/lit-element@4.2.2/",\n "@lit/reactive-element": "https://unpkg.com/@lit/reactive-element@2.1.2/reactive-element.js",\n "@lit/reactive-element/": "https://unpkg.com/@lit/reactive-element@2.1.2/",\n "@awesome.me/webawesome/": "https://unpkg.com/@awesome.me/webawesome@3.8.0/",\n "normalize.css": "https://unpkg.com/normalize.css@8.0.1/normalize.css"\n },\n "scopes": {}\n}');
14
+ var importmap = JSON.parse('{\n "imports": {\n "@node/": "/node_modules/",\n "@shgysk8zer0/kazoo/": "https://unpkg.com/@shgysk8zer0/kazoo@1.0.12/",\n "@shgysk8zer0/konami": "https://unpkg.com/@shgysk8zer0/konami@1.1.2/konami.js",\n "@shgysk8zer0/polyfills": "https://unpkg.com/@shgysk8zer0/polyfills@0.8.6/browser.min.js",\n "@shgysk8zer0/polyfills/": "https://unpkg.com/@shgysk8zer0/polyfills@0.8.6/",\n "@shgysk8zer0/jwk-utils": "https://unpkg.com/@shgysk8zer0/jwk-utils@1.2.1/jwk-utils.min.js",\n "@shgysk8zer0/jwk-utils/": "https://unpkg.com/@shgysk8zer0/jwk-utils@1.2.1/",\n "@shgysk8zer0/jswaggersheets": "https://unpkg.com/@shgysk8zer0/jswaggersheets@1.1.0/swagger.js",\n "@shgysk8zer0/jswaggersheets/": "https://unpkg.com/@shgysk8zer0/jswaggersheets@1.1.0/",\n "@shgysk8zer0/jss/": "https://unpkg.com/@shgysk8zer0/jss@1.0.1/",\n "@shgysk8zer0/consts/": "https://unpkg.com/@shgysk8zer0/consts@1.0.8/",\n "@shgysk8zer0/http/": "https://unpkg.com/@shgysk8zer0/http@1.0.5/",\n "@shgysk8zer0/http-status": "https://unpkg.com/@shgysk8zer0/http-status@1.1.4/http-status.js",\n "@shgysk8zer0/aes-gcm": "https://unpkg.com/@shgysk8zer0/aes-gcm@1.1.0/aes-gcm.min.js",\n "@shgysk8zer0/aes-gcm/": "https://unpkg.com/@shgysk8zer0/aes-gcm@1.1.0/",\n "@shgysk8zer0/squish": "https://unpkg.com/@shgysk8zer0/squish@1.0.2/squish.min.js",\n "@shgysk8zer0/squish/": "https://unpkg.com/@shgysk8zer0/squish@1.0.2/",\n "@shgysk8zer0/suid": "https://unpkg.com/@shgysk8zer0/suid@1.0.0/suid.min.js",\n "@shgysk8zer0/suid/": "https://unpkg.com/@shgysk8zer0/suid@1.0.0/",\n "@shgysk8zer0/geoutils": "https://unpkg.com/@shgysk8zer0/geoutils@1.0.6/geoutils.min.js",\n "@shgysk8zer0/geoutils/": "https://unpkg.com/@shgysk8zer0/geoutils@1.0.6/",\n "@shgysk8zer0/core-css/": "https://unpkg.com/@shgysk8zer0/core-css@3.0.0/",\n "@shgysk8zer0/signals": "https://unpkg.com/@shgysk8zer0/signals@0.1.0/signals.min.js",\n "@shgysk8zer0/signals/": "https://unpkg.com/@shgysk8zer0/signals@0.1.0/",\n "@shgysk8zer0/importmap": "https://unpkg.com/@shgysk8zer0/importmap@1.10.3/importmap.js",\n "@shgysk8zer0/importmap/": "https://unpkg.com/@shgysk8zer0/importmap@1.10.3/",\n "@shgysk8zer0/components/": "https://unpkg.com/@shgysk8zer0/components@0.3.23/",\n "@aegisjsproject/trusted-types": "https://unpkg.com/@aegisjsproject/trusted-types@1.1.0/bundle.min.js",\n "@aegisjsproject/trusted-types/": "https://unpkg.com/@aegisjsproject/trusted-types@1.1.0/",\n "@aegisjsproject/parsers": "https://unpkg.com/@aegisjsproject/parsers@0.2.0/bundle.min.js",\n "@aegisjsproject/parsers/": "https://unpkg.com/@aegisjsproject/parsers@0.2.0/",\n "@aegisjsproject/sanitizer": "https://unpkg.com/@aegisjsproject/sanitizer@0.3.0/sanitizer.js",\n "@aegisjsproject/sanitizer/": "https://unpkg.com/@aegisjsproject/sanitizer@0.3.0/",\n "@aegisjsproject/core": "https://unpkg.com/@aegisjsproject/core@0.3.0/core.js",\n "@aegisjsproject/core/": "https://unpkg.com/@aegisjsproject/core@0.3.0/",\n "@aegisjsproject/styles": "https://unpkg.com/@aegisjsproject/styles@0.4.0/styles.js",\n "@aegisjsproject/styles/": "https://unpkg.com/@aegisjsproject/styles@0.4.0/",\n "@aegisjsproject/component": "https://unpkg.com/@aegisjsproject/component@0.2.0/component.js",\n "@aegisjsproject/component/": "https://unpkg.com/@aegisjsproject/component@0.2.0/",\n "@aegisjsproject/markdown": "https://unpkg.com/@aegisjsproject/markdown@0.1.7/markdown.min.js",\n "@aegisjsproject/markdown/": "https://unpkg.com/@aegisjsproject/markdown@0.1.7/",\n "@aegisjsproject/aegis-md": "https://unpkg.com/@aegisjsproject/aegis-md@0.0.4/aegis-md.js",\n "@aegisjsproject/aegis-md/": "https://unpkg.com/@aegisjsproject/aegis-md@0.0.4/",\n "@aegisjsproject/url": "https://unpkg.com/@aegisjsproject/url@1.1.0/url.min.js",\n "@aegisjsproject/url/": "https://unpkg.com/@aegisjsproject/url@1.1.0/",\n "@aegisjsproject/idb/": "https://unpkg.com/@aegisjsproject/idb@1.1.0/",\n "@aegisjsproject/idb": "https://unpkg.com/@aegisjsproject/idb@1.1.0/idb.min.js",\n "@aegisjsproject/otp/": "https://unpkg.com/@aegisjsproject/otp@1.0.2/",\n "@aegisjsproject/otp": "https://unpkg.com/@aegisjsproject/otp@1.0.2/otp.min.js",\n "@aegisjsproject/md-editor": "https://unpkg.com/@aegisjsproject/md-editor@1.0.0/md-editor.js",\n "@aegisjsproject/md-editor/": "https://unpkg.com/@aegisjsproject/md-editor@1.0.0/",\n "@aegisjsproject/barcodescanner": "https://unpkg.com/@aegisjsproject/barcodescanner@1.2.3/scanner.min.js",\n "@aegisjsproject/barcodescanner/": "https://unpkg.com/@aegisjsproject/barcodescanner@1.2.3/",\n "@aegisjsproject/state": "https://unpkg.com/@aegisjsproject/state@1.1.0/state.mjs",\n "@aegisjsproject/state/": "https://unpkg.com/@aegisjsproject/state@1.1.0/",\n "@aegisjsproject/router": "https://unpkg.com/@aegisjsproject/router@1.3.0/router.mjs",\n "@aegisjsproject/router/": "https://unpkg.com/@aegisjsproject/router@1.3.0/",\n "@aegisjsproject/callback-registry": "https://unpkg.com/@aegisjsproject/callback-registry@2.1.0/callbackRegistry.js",\n "@aegisjsproject/callback-registry/": "https://unpkg.com/@aegisjsproject/callback-registry@2.1.0/",\n "@aegisjsproject/attempt": "https://unpkg.com/@aegisjsproject/attempt@1.0.7/attempt.js",\n "@aegisjsproject/attempt/": "https://unpkg.com/@aegisjsproject/attempt@1.0.7/",\n "@aegisjsproject/secret-store": "https://unpkg.com/@aegisjsproject/secret-store@1.1.1/commands.min.js",\n "@aegisjsproject/commands/": "https://unpkg.com/@aegisjsproject/commands@1.0.2/",\n "@aegisjsproject/commands": "https://unpkg.com/@aegisjsproject/commands@1.0.2/commands.min.js",\n "@aegisjsproject/firebase-account-routes": "https://unpkg.com/@aegisjsproject/firebase-account-routes@0.0.6/main.js",\n "@aegisjsproject/firebase-account-routes/": "https://unpkg.com/@aegisjsproject/firebase-account-routes@0.0.6/",\n "@aegisjsproject/secret-store/": "https://unpkg.com/@aegisjsproject/secret-store@1.1.1/",\n "@aegisjsproject/qr-encoder": "https://unpkg.com/@aegisjsproject/qr-encoder@1.0.1/index.min.js",\n "@aegisjsproject/qr-encoder/": "https://unpkg.com/@aegisjsproject/qr-encoder@1.0.1/",\n "@aegisjsproject/escape": "https://unpkg.com/@aegisjsproject/escape@1.1.0/index.min.js",\n "@aegisjsproject/escape/": "https://unpkg.com/@aegisjsproject/escape@1.1.0/",\n "@aegisjsproject/disposable": "https://unpkg.com/@aegisjsproject/disposable@1.0.3/disposable.min.js",\n "@aegisjsproject/disposable/": "https://unpkg.com/@aegisjsproject/disposable@1.0.3/",\n "@aegisjsproject/iota": "https://unpkg.com/@aegisjsproject/iota@1.0.12/iota.min.js",\n "@aegisjsproject/iota/": "https://unpkg.com/@aegisjsproject/iota@1.0.12/",\n "@aegisjsproject/disposable-registry": "https://unpkg.com/@aegisjsproject/disposable-registry@1.1.0/registry.js",\n "@aegisjsproject/disposable-registry/": "https://unpkg.com/@aegisjsproject/disposable-registry@1.1.0/",\n "@aegisjsproject/hermes": "https://unpkg.com/@aegisjsproject/hermes@1.1.0/hermes.js",\n "@aegisjsproject/hermes/": "https://unpkg.com/@aegisjsproject/hermes@1.1.0/",\n "@aegisjsproject/pwa-prompt": "https://unpkg.com/@aegisjsproject/pwa-prompt@1.0.1/prompt.js",\n "@aegisjsproject/pwa-prompt/": "https://unpkg.com/@aegisjsproject/pwa-prompt@1.0.1/",\n "@aegisjsproject/button": "https://unpkg.com/@aegisjsproject/button@1.0.1/button.min.js",\n "@aegisjsproject/button/": "https://unpkg.com/@aegisjsproject/button@1.0.1/",\n "@aegisjsproject/atlas": "https://unpkg.com/@aegisjsproject/atlas@1.1.0/atlas.min.js",\n "@aegisjsproject/atlas/": "https://unpkg.com/@aegisjsproject/atlas@1.1.0/",\n "@aegisjsproject/toast-message": "https://unpkg.com/@aegisjsproject/toast-message@1.0.3/toast-message.min.js",\n "@aegisjsproject/toast-message/": "https://unpkg.com/@aegisjsproject/toast-message@1.0.3/",\n "@kernvalley/components/": "https://unpkg.com/@kernvalley/components@2.0.10/",\n "@webcomponents/custom-elements": "https://unpkg.com/@webcomponents/custom-elements@1.6.0/custom-elements.min.js",\n "leaflet": "https://unpkg.com/leaflet@1.9.4/dist/leaflet-src.esm.js",\n "leaflet/": "https://unpkg.com/leaflet@1.9.4/dist/",\n "urlpattern-polyfill": "https://unpkg.com/urlpattern-polyfill@10.1.0/index.js",\n "highlight.js": "https://unpkg.com/@highlightjs/cdn-assets@11.11.1/es/core.min.js",\n "highlight.js/": "https://unpkg.com/@highlightjs/cdn-assets@11.11.1/es/",\n "highlight.js/styles/": "https://unpkg.com/@highlightjs/cdn-assets@11.11.1/styles/",\n "@highlightjs/cdn-assets": "https://unpkg.com/@highlightjs/cdn-assets@11.11.1/es/core.min.js",\n "@highlightjs/cdn-assets/": "https://unpkg.com/@highlightjs/cdn-assets@11.11.1/es/",\n "@highlightjs/cdn-assets/styles/": "https://unpkg.com/@highlightjs/cdn-assets@11.11.1/styles/",\n "marked": "https://unpkg.com/marked@18.0.6/lib/marked.esm.js",\n "marked-highlight": "https://unpkg.com/marked-highlight@2.2.4/src/index.js",\n "yaml": "https://unpkg.com/yaml@2.9.0/browser/dist/index.js",\n "yaml/": "https://unpkg.com/yaml@2.9.0/browser/dist/",\n "firebase/": "https://www.gstatic.com/firebasejs/12.12.1/",\n "firebase/app": "https://www.gstatic.com/firebasejs/12.12.1/firebase-app.js",\n "firebase/app-check": "https://www.gstatic.com/firebasejs/12.12.1/firebase-app-check.js",\n "firebase/auth": "https://www.gstatic.com/firebasejs/12.12.1/firebase-auth.js",\n "firebase/database": "https://www.gstatic.com/firebasejs/12.12.1/firebase-database.js",\n "firebase/firestore": "https://www.gstatic.com/firebasejs/12.12.1/firebase-firestore.js",\n "firebase/functions": "https://www.gstatic.com/firebasejs/12.12.1/firebase-functions.js",\n "firebase/messaging": "https://www.gstatic.com/firebasejs/12.12.1/firebase-messaging.js",\n "firebase/performance": "https://www.gstatic.com/firebasejs/12.12.1/firebase-performance.js",\n "firebase/remote-config": "https://www.gstatic.com/firebasejs/12.12.1/firebase-remote-config.js",\n "firebase/storage": "https://www.gstatic.com/firebasejs/12.12.1/firebase-storage.js",\n "firebase/analytics": "https://www.gstatic.com/firebasejs/12.12.1/firebase-analytics.js",\n "qr": "https://unpkg.com/qr@0.6.0/index.js",\n "qr/": "https://unpkg.com/qr@0.6.0/",\n "lit": "https://unpkg.com/lit@3.3.3/index.js",\n "lit/": "https://unpkg.com/lit@3.3.3/",\n "lit-html": "https://unpkg.com/lit-html@3.3.3/lit-html.js",\n "lit-html/": "https://unpkg.com/lit-html@3.3.3/",\n "lit-element": "https://unpkg.com/lit-element@4.2.2/lit-element.js",\n "lit-element/": "https://unpkg.com/lit-element@4.2.2/",\n "@lit/reactive-element": "https://unpkg.com/@lit/reactive-element@2.1.2/reactive-element.js",\n "@lit/reactive-element/": "https://unpkg.com/@lit/reactive-element@2.1.2/",\n "@awesome.me/webawesome/": "https://unpkg.com/@awesome.me/webawesome@3.10.0/",\n "normalize.css": "https://unpkg.com/normalize.css@8.0.1/normalize.css"\n },\n "scopes": {}\n}');
14
15
 
15
16
  function guessFileType(file) {
16
17
  const ext = node_path.extname(file).toLowerCase();
package/cli.js CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env node
2
+ #!/usr/bin/env node
2
3
  import { writeJSONFile, readJSONFile } from '@shgysk8zer0/npm-utils/json.js';
3
4
  import { writeYAMLFile, readYAMLFile } from '@shgysk8zer0/npm-utils/yaml.js';
4
5
  import { readFile } from 'node:fs/promises';
@@ -7,9 +8,9 @@ import { extname } from 'node:path';
7
8
 
8
9
  const IMPORTMAP_EXP = /<script\b(?=[^>]*\btype=["']importmap["'])(?=(?:[^>]*\bnonce=["'](?<nonce>[^"']*)["'])?)(?=(?:[^>]*\bname=["'](?<name>[^"']*)["'])?)[^>]*>(?<content>[\s\S]*?)<\/script>/i;
9
10
 
10
- var pkg = JSON.parse('{\n "name": "@shgysk8zer0/importmap",\n "version": "1.10.1",\n "engines": {\n "node": ">=20.10.0"\n },\n "description": "Front-End dependencies based on `<script type=\\"importmap\\">`",\n "type": "module",\n "module": "./index.js",\n "main": "./index.cjs",\n "unpkg": "./importmap.js",\n "exports": {\n ".": {\n "import": "./index.js",\n "require": "./index.cjs"\n },\n "./importmap": {\n "import": "./importmap.js"\n },\n "./*.json": {\n "import": "./*.json"\n },\n "./*.js": {\n "import": "./*.js",\n "require": "./*.cjs"\n },\n "./*.mjs": {\n "import": "./*.js"\n },\n "./*.cjs": {\n "require": "./*.cjs"\n },\n "./*": {\n "import": "./*.js",\n "require": "./*.cjs"\n }\n },\n "bin": {\n "importmap-utils": "cli.js",\n "importmap-html": "html.js"\n },\n "scripts": {\n "start": "npx @shgysk8zer0/http-server -c ./http.config.js",\n "test": "npm run lint:js && npm run run:tests && npm run test:imports",\n "preversion": "npm test",\n "postversion": "npm run update",\n "prepare": "npm test && npm run build",\n "update": "node ./update.js",\n "lint:js": "eslint . --ignore-pattern \'importmap.mjs\'",\n "fix:js": "eslint . --fix",\n "build": "npm run build:js",\n "build:js": "rollup -c",\n "test:imports": "rollup -c rollup.test.config.js",\n "run:tests": "node --test *.test.js",\n "create:lock": "npm i --package-lock-only --ignore-scripts --no-audit --no-fund",\n "version:bump": "npm run version:bump:patch",\n "version:bump:patch": "npm version --no-git-tag-version patch && npm run create:lock",\n "version:bump:minor": "npm version --no-git-tag-version minor && npm run create:lock",\n "version:bump:major": "npm version --no-git-tag-version major && npm run create:lock"\n },\n "repository": {\n "type": "git",\n "url": "git+https://github.com/shgysk8zer0/importmap.git"\n },\n "author": "Chris Zuber <admin@kernvalley.us>",\n "license": "MIT",\n "bugs": {\n "url": "https://github.com/shgysk8zer0/importmap/issues"\n },\n "homepage": "https://github.com/shgysk8zer0/importmap#readme",\n "devDependencies": {\n "@shgysk8zer0/eslint-config": "^1.0.9",\n "@shgysk8zer0/js-utils": "^1.0.6",\n "@shgysk8zer0/rollup-import": "^2.0.3",\n "eslint": "^10.4.1"\n },\n "dependencies": {\n "@shgysk8zer0/npm-utils": "^1.2.0",\n "@shgysk8zer0/polyfills": "^0.8.0",\n "commander": "^15.0.0"\n },\n "allowScripts": {\n "fsevents@2.3.3": true\n }\n}\n');
11
+ var pkg = JSON.parse('{\n "name": "@shgysk8zer0/importmap",\n "version": "1.10.3",\n "engines": {\n "node": ">=20.10.0"\n },\n "description": "Front-End dependencies based on `<script type=\\"importmap\\">`",\n "type": "module",\n "module": "./index.js",\n "main": "./index.cjs",\n "unpkg": "./importmap.js",\n "exports": {\n ".": {\n "import": "./index.js",\n "require": "./index.cjs"\n },\n "./importmap": {\n "import": "./importmap.js"\n },\n "./*.json": {\n "import": "./*.json"\n },\n "./*.js": {\n "import": "./*.js",\n "require": "./*.cjs"\n },\n "./*.mjs": {\n "import": "./*.js"\n },\n "./*.cjs": {\n "require": "./*.cjs"\n },\n "./*": {\n "import": "./*.js",\n "require": "./*.cjs"\n }\n },\n "bin": {\n "importmap-utils": "cli.js",\n "importmap-html": "html.js"\n },\n "scripts": {\n "start": "npx @shgysk8zer0/http-server -c ./http.config.js",\n "test": "npm run lint:js && npm run run:tests && npm run test:imports",\n "preversion": "npm test",\n "postversion": "npm run update",\n "prepare": "npm test && npm run build",\n "update": "node ./update.js",\n "lint:js": "eslint . --ignore-pattern \'importmap.mjs\'",\n "fix:js": "eslint . --fix",\n "build": "npm run build:js",\n "build:js": "rollup -c",\n "test:imports": "rollup -c rollup.test.config.js",\n "run:tests": "node --test *.test.js",\n "create:lock": "npm i --package-lock-only --ignore-scripts --no-audit --no-fund",\n "version:bump": "npm run version:bump:patch",\n "version:bump:patch": "npm version --no-git-tag-version patch && npm run create:lock",\n "version:bump:minor": "npm version --no-git-tag-version minor && npm run create:lock",\n "version:bump:major": "npm version --no-git-tag-version major && npm run create:lock"\n },\n "repository": {\n "type": "git",\n "url": "git+https://github.com/shgysk8zer0/importmap.git"\n },\n "author": "Chris Zuber <admin@kernvalley.us>",\n "license": "MIT",\n "bugs": {\n "url": "https://github.com/shgysk8zer0/importmap/issues"\n },\n "homepage": "https://github.com/shgysk8zer0/importmap#readme",\n "devDependencies": {\n "@shgysk8zer0/eslint-config": "^1.1.0",\n "@shgysk8zer0/js-utils": "^1.1.0",\n "@shgysk8zer0/rollup-import": "^2.1.0",\n "eslint": "^10.6.0"\n },\n "dependencies": {\n "@shgysk8zer0/npm-utils": "^1.2.0",\n "@shgysk8zer0/polyfills": "^0.8.6",\n "commander": "^15.0.0"\n },\n "allowScripts": {\n "fsevents@2.3.3": true\n }\n}\n');
11
12
 
12
- var importmap = JSON.parse('{\n "imports": {\n "@node/": "/node_modules/",\n "@shgysk8zer0/kazoo/": "https://unpkg.com/@shgysk8zer0/kazoo@1.0.12/",\n "@shgysk8zer0/konami": "https://unpkg.com/@shgysk8zer0/konami@1.1.2/konami.js",\n "@shgysk8zer0/polyfills": "https://unpkg.com/@shgysk8zer0/polyfills@0.8.4/browser.min.js",\n "@shgysk8zer0/polyfills/": "https://unpkg.com/@shgysk8zer0/polyfills@0.8.4/",\n "@shgysk8zer0/jwk-utils": "https://unpkg.com/@shgysk8zer0/jwk-utils@1.2.0/jwk-utils.min.js",\n "@shgysk8zer0/jwk-utils/": "https://unpkg.com/@shgysk8zer0/jwk-utils@1.2.0/",\n "@shgysk8zer0/jswaggersheets": "https://unpkg.com/@shgysk8zer0/jswaggersheets@1.1.0/swagger.js",\n "@shgysk8zer0/jswaggersheets/": "https://unpkg.com/@shgysk8zer0/jswaggersheets@1.1.0/",\n "@shgysk8zer0/jss/": "https://unpkg.com/@shgysk8zer0/jss@1.0.1/",\n "@shgysk8zer0/consts/": "https://unpkg.com/@shgysk8zer0/consts@1.0.8/",\n "@shgysk8zer0/http/": "https://unpkg.com/@shgysk8zer0/http@1.0.5/",\n "@shgysk8zer0/http-status": "https://unpkg.com/@shgysk8zer0/http-status@1.1.4/http-status.js",\n "@shgysk8zer0/aes-gcm": "https://unpkg.com/@shgysk8zer0/aes-gcm@1.0.9/aes-gcm.min.js",\n "@shgysk8zer0/aes-gcm/": "https://unpkg.com/@shgysk8zer0/aes-gcm@1.0.9/",\n "@shgysk8zer0/squish": "https://unpkg.com/@shgysk8zer0/squish@1.0.2/squish.min.js",\n "@shgysk8zer0/squish/": "https://unpkg.com/@shgysk8zer0/squish@1.0.2/",\n "@shgysk8zer0/suid": "https://unpkg.com/@shgysk8zer0/suid@1.0.0/suid.min.js",\n "@shgysk8zer0/suid/": "https://unpkg.com/@shgysk8zer0/suid@1.0.0/",\n "@shgysk8zer0/geoutils": "https://unpkg.com/@shgysk8zer0/geoutils@1.0.6/geoutils.min.js",\n "@shgysk8zer0/geoutils/": "https://unpkg.com/@shgysk8zer0/geoutils@1.0.6/",\n "@shgysk8zer0/core-css/": "https://unpkg.com/@shgysk8zer0/core-css@3.0.0/",\n "@shgysk8zer0/signals": "https://unpkg.com/@shgysk8zer0/signals@0.0.3/signals.min.js",\n "@shgysk8zer0/signals/": "https://unpkg.com/@shgysk8zer0/signals@0.0.3/",\n "@shgysk8zer0/importmap": "https://unpkg.com/@shgysk8zer0/importmap@1.10.1/importmap.js",\n "@shgysk8zer0/importmap/": "https://unpkg.com/@shgysk8zer0/importmap@1.10.1/",\n "@shgysk8zer0/components/": "https://unpkg.com/@shgysk8zer0/components@0.3.23/",\n "@aegisjsproject/trusted-types": "https://unpkg.com/@aegisjsproject/trusted-types@1.0.2/bundle.min.js",\n "@aegisjsproject/trusted-types/": "https://unpkg.com/@aegisjsproject/trusted-types@1.0.2/",\n "@aegisjsproject/parsers": "https://unpkg.com/@aegisjsproject/parsers@0.1.6/bundle.min.js",\n "@aegisjsproject/parsers/": "https://unpkg.com/@aegisjsproject/parsers@0.1.6/",\n "@aegisjsproject/sanitizer": "https://unpkg.com/@aegisjsproject/sanitizer@0.2.4/sanitizer.js",\n "@aegisjsproject/sanitizer/": "https://unpkg.com/@aegisjsproject/sanitizer@0.2.4/",\n "@aegisjsproject/core": "https://unpkg.com/@aegisjsproject/core@0.2.34/core.js",\n "@aegisjsproject/core/": "https://unpkg.com/@aegisjsproject/core@0.2.34/",\n "@aegisjsproject/styles": "https://unpkg.com/@aegisjsproject/styles@0.3.4/styles.js",\n "@aegisjsproject/styles/": "https://unpkg.com/@aegisjsproject/styles@0.3.4/",\n "@aegisjsproject/component": "https://unpkg.com/@aegisjsproject/component@0.1.8/component.js",\n "@aegisjsproject/component/": "https://unpkg.com/@aegisjsproject/component@0.1.8/",\n "@aegisjsproject/markdown": "https://unpkg.com/@aegisjsproject/markdown@0.1.7/markdown.min.js",\n "@aegisjsproject/markdown/": "https://unpkg.com/@aegisjsproject/markdown@0.1.7/",\n "@aegisjsproject/aegis-md": "https://unpkg.com/@aegisjsproject/aegis-md@0.0.4/aegis-md.js",\n "@aegisjsproject/aegis-md/": "https://unpkg.com/@aegisjsproject/aegis-md@0.0.4/",\n "@aegisjsproject/url": "https://unpkg.com/@aegisjsproject/url@1.0.3/url.min.js",\n "@aegisjsproject/url/": "https://unpkg.com/@aegisjsproject/url@1.0.3/",\n "@aegisjsproject/idb/": "https://unpkg.com/@aegisjsproject/idb@1.0.6/",\n "@aegisjsproject/idb": "https://unpkg.com/@aegisjsproject/idb@1.0.6/idb.min.js",\n "@aegisjsproject/otp/": "https://unpkg.com/@aegisjsproject/otp@1.0.2/",\n "@aegisjsproject/otp": "https://unpkg.com/@aegisjsproject/otp@1.0.2/otp.min.js",\n "@aegisjsproject/md-editor": "https://unpkg.com/@aegisjsproject/md-editor@1.0.0/md-editor.js",\n "@aegisjsproject/md-editor/": "https://unpkg.com/@aegisjsproject/md-editor@1.0.0/",\n "@aegisjsproject/barcodescanner": "https://unpkg.com/@aegisjsproject/barcodescanner@1.2.3/scanner.min.js",\n "@aegisjsproject/barcodescanner/": "https://unpkg.com/@aegisjsproject/barcodescanner@1.2.3/",\n "@aegisjsproject/state": "https://unpkg.com/@aegisjsproject/state@1.0.7/state.mjs",\n "@aegisjsproject/state/": "https://unpkg.com/@aegisjsproject/state@1.0.7/",\n "@aegisjsproject/router": "https://unpkg.com/@aegisjsproject/router@1.2.1/router.mjs",\n "@aegisjsproject/router/": "https://unpkg.com/@aegisjsproject/router@1.2.1/",\n "@aegisjsproject/callback-registry": "https://unpkg.com/@aegisjsproject/callback-registry@2.0.4/callbackRegistry.js",\n "@aegisjsproject/callback-registry/": "https://unpkg.com/@aegisjsproject/callback-registry@2.0.4/",\n "@aegisjsproject/attempt": "https://unpkg.com/@aegisjsproject/attempt@1.0.7/attempt.js",\n "@aegisjsproject/attempt/": "https://unpkg.com/@aegisjsproject/attempt@1.0.7/",\n "@aegisjsproject/secret-store": "https://unpkg.com/@aegisjsproject/secret-store@1.1.1/commands.min.js",\n "@aegisjsproject/commands/": "https://unpkg.com/@aegisjsproject/commands@1.0.2/",\n "@aegisjsproject/commands": "https://unpkg.com/@aegisjsproject/commands@1.0.2/commands.min.js",\n "@aegisjsproject/firebase-account-routes": "https://unpkg.com/@aegisjsproject/firebase-account-routes@0.0.6/main.js",\n "@aegisjsproject/firebase-account-routes/": "https://unpkg.com/@aegisjsproject/firebase-account-routes@0.0.6/",\n "@aegisjsproject/secret-store/": "https://unpkg.com/@aegisjsproject/secret-store@1.1.1/",\n "@aegisjsproject/qr-encoder": "https://unpkg.com/@aegisjsproject/qr-encoder@1.0.1/index.min.js",\n "@aegisjsproject/qr-encoder/": "https://unpkg.com/@aegisjsproject/qr-encoder@1.0.1/",\n "@aegisjsproject/escape": "https://unpkg.com/@aegisjsproject/escape@1.0.4/index.min.js",\n "@aegisjsproject/escape/": "https://unpkg.com/@aegisjsproject/escape@1.0.4/",\n "@aegisjsproject/disposable": "https://unpkg.com/@aegisjsproject/disposable@1.0.3/disposable.min.js",\n "@aegisjsproject/disposable/": "https://unpkg.com/@aegisjsproject/disposable@1.0.3/",\n "@aegisjsproject/iota": "https://unpkg.com/@aegisjsproject/iota@1.0.12/iota.min.js",\n "@aegisjsproject/iota/": "https://unpkg.com/@aegisjsproject/iota@1.0.12/",\n "@aegisjsproject/disposable-registry": "https://unpkg.com/@aegisjsproject/disposable-registry@1.0.2/registry.js",\n "@aegisjsproject/disposable-registry/": "https://unpkg.com/@aegisjsproject/disposable-registry@1.0.2/",\n "@aegisjsproject/hermes": "https://unpkg.com/@aegisjsproject/hermes@1.1.0/hermes.js",\n "@aegisjsproject/hermes/": "https://unpkg.com/@aegisjsproject/hermes@1.1.0/",\n "@aegisjsproject/pwa-prompt": "https://unpkg.com/@aegisjsproject/pwa-prompt@1.0.1/prompt.js",\n "@aegisjsproject/pwa-prompt/": "https://unpkg.com/@aegisjsproject/pwa-prompt@1.0.1/",\n "@aegisjsproject/button": "https://unpkg.com/@aegisjsproject/button@1.0.1/button.min.js",\n "@aegisjsproject/button/": "https://unpkg.com/@aegisjsproject/button@1.0.1/",\n "@aegisjsproject/atlas": "https://unpkg.com/@aegisjsproject/atlas@1.0.2/atlas.min.js",\n "@aegisjsproject/atlas/": "https://unpkg.com/@aegisjsproject/atlas@1.0.2/",\n "@aegisjsproject/toast-message": "https://unpkg.com/@aegisjsproject/toast-message@1.0.3/toast-message.min.js",\n "@aegisjsproject/toast-message/": "https://unpkg.com/@aegisjsproject/toast-message@1.0.3/",\n "@kernvalley/components/": "https://unpkg.com/@kernvalley/components@2.0.10/",\n "@webcomponents/custom-elements": "https://unpkg.com/@webcomponents/custom-elements@1.6.0/custom-elements.min.js",\n "leaflet": "https://unpkg.com/leaflet@1.9.4/dist/leaflet-src.esm.js",\n "leaflet/": "https://unpkg.com/leaflet@1.9.4/dist/",\n "urlpattern-polyfill": "https://unpkg.com/urlpattern-polyfill@10.1.0/index.js",\n "highlight.js": "https://unpkg.com/@highlightjs/cdn-assets@11.11.1/es/core.min.js",\n "highlight.js/": "https://unpkg.com/@highlightjs/cdn-assets@11.11.1/es/",\n "highlight.js/styles/": "https://unpkg.com/@highlightjs/cdn-assets@11.11.1/styles/",\n "@highlightjs/cdn-assets": "https://unpkg.com/@highlightjs/cdn-assets@11.11.1/es/core.min.js",\n "@highlightjs/cdn-assets/": "https://unpkg.com/@highlightjs/cdn-assets@11.11.1/es/",\n "@highlightjs/cdn-assets/styles/": "https://unpkg.com/@highlightjs/cdn-assets@11.11.1/styles/",\n "marked": "https://unpkg.com/marked@18.0.5/lib/marked.esm.js",\n "marked-highlight": "https://unpkg.com/marked-highlight@2.2.4/src/index.js",\n "yaml": "https://unpkg.com/yaml@2.9.0/browser/dist/index.js",\n "yaml/": "https://unpkg.com/yaml@2.9.0/browser/dist/",\n "firebase/": "https://www.gstatic.com/firebasejs/12.12.1/",\n "firebase/app": "https://www.gstatic.com/firebasejs/12.12.1/firebase-app.js",\n "firebase/app-check": "https://www.gstatic.com/firebasejs/12.12.1/firebase-app-check.js",\n "firebase/auth": "https://www.gstatic.com/firebasejs/12.12.1/firebase-auth.js",\n "firebase/database": "https://www.gstatic.com/firebasejs/12.12.1/firebase-database.js",\n "firebase/firestore": "https://www.gstatic.com/firebasejs/12.12.1/firebase-firestore.js",\n "firebase/functions": "https://www.gstatic.com/firebasejs/12.12.1/firebase-functions.js",\n "firebase/messaging": "https://www.gstatic.com/firebasejs/12.12.1/firebase-messaging.js",\n "firebase/performance": "https://www.gstatic.com/firebasejs/12.12.1/firebase-performance.js",\n "firebase/remote-config": "https://www.gstatic.com/firebasejs/12.12.1/firebase-remote-config.js",\n "firebase/storage": "https://www.gstatic.com/firebasejs/12.12.1/firebase-storage.js",\n "firebase/analytics": "https://www.gstatic.com/firebasejs/12.12.1/firebase-analytics.js",\n "qr": "https://unpkg.com/qr@0.6.0/index.js",\n "qr/": "https://unpkg.com/qr@0.6.0/",\n "lit": "https://unpkg.com/lit@3.3.3/index.js",\n "lit/": "https://unpkg.com/lit@3.3.3/",\n "lit-html": "https://unpkg.com/lit-html@3.3.3/lit-html.js",\n "lit-html/": "https://unpkg.com/lit-html@3.3.3/",\n "lit-element": "https://unpkg.com/lit-element@4.2.2/lit-element.js",\n "lit-element/": "https://unpkg.com/lit-element@4.2.2/",\n "@lit/reactive-element": "https://unpkg.com/@lit/reactive-element@2.1.2/reactive-element.js",\n "@lit/reactive-element/": "https://unpkg.com/@lit/reactive-element@2.1.2/",\n "@awesome.me/webawesome/": "https://unpkg.com/@awesome.me/webawesome@3.8.0/",\n "normalize.css": "https://unpkg.com/normalize.css@8.0.1/normalize.css"\n },\n "scopes": {}\n}');
13
+ var importmap = JSON.parse('{\n "imports": {\n "@node/": "/node_modules/",\n "@shgysk8zer0/kazoo/": "https://unpkg.com/@shgysk8zer0/kazoo@1.0.12/",\n "@shgysk8zer0/konami": "https://unpkg.com/@shgysk8zer0/konami@1.1.2/konami.js",\n "@shgysk8zer0/polyfills": "https://unpkg.com/@shgysk8zer0/polyfills@0.8.6/browser.min.js",\n "@shgysk8zer0/polyfills/": "https://unpkg.com/@shgysk8zer0/polyfills@0.8.6/",\n "@shgysk8zer0/jwk-utils": "https://unpkg.com/@shgysk8zer0/jwk-utils@1.2.1/jwk-utils.min.js",\n "@shgysk8zer0/jwk-utils/": "https://unpkg.com/@shgysk8zer0/jwk-utils@1.2.1/",\n "@shgysk8zer0/jswaggersheets": "https://unpkg.com/@shgysk8zer0/jswaggersheets@1.1.0/swagger.js",\n "@shgysk8zer0/jswaggersheets/": "https://unpkg.com/@shgysk8zer0/jswaggersheets@1.1.0/",\n "@shgysk8zer0/jss/": "https://unpkg.com/@shgysk8zer0/jss@1.0.1/",\n "@shgysk8zer0/consts/": "https://unpkg.com/@shgysk8zer0/consts@1.0.8/",\n "@shgysk8zer0/http/": "https://unpkg.com/@shgysk8zer0/http@1.0.5/",\n "@shgysk8zer0/http-status": "https://unpkg.com/@shgysk8zer0/http-status@1.1.4/http-status.js",\n "@shgysk8zer0/aes-gcm": "https://unpkg.com/@shgysk8zer0/aes-gcm@1.1.0/aes-gcm.min.js",\n "@shgysk8zer0/aes-gcm/": "https://unpkg.com/@shgysk8zer0/aes-gcm@1.1.0/",\n "@shgysk8zer0/squish": "https://unpkg.com/@shgysk8zer0/squish@1.0.2/squish.min.js",\n "@shgysk8zer0/squish/": "https://unpkg.com/@shgysk8zer0/squish@1.0.2/",\n "@shgysk8zer0/suid": "https://unpkg.com/@shgysk8zer0/suid@1.0.0/suid.min.js",\n "@shgysk8zer0/suid/": "https://unpkg.com/@shgysk8zer0/suid@1.0.0/",\n "@shgysk8zer0/geoutils": "https://unpkg.com/@shgysk8zer0/geoutils@1.0.6/geoutils.min.js",\n "@shgysk8zer0/geoutils/": "https://unpkg.com/@shgysk8zer0/geoutils@1.0.6/",\n "@shgysk8zer0/core-css/": "https://unpkg.com/@shgysk8zer0/core-css@3.0.0/",\n "@shgysk8zer0/signals": "https://unpkg.com/@shgysk8zer0/signals@0.1.0/signals.min.js",\n "@shgysk8zer0/signals/": "https://unpkg.com/@shgysk8zer0/signals@0.1.0/",\n "@shgysk8zer0/importmap": "https://unpkg.com/@shgysk8zer0/importmap@1.10.3/importmap.js",\n "@shgysk8zer0/importmap/": "https://unpkg.com/@shgysk8zer0/importmap@1.10.3/",\n "@shgysk8zer0/components/": "https://unpkg.com/@shgysk8zer0/components@0.3.23/",\n "@aegisjsproject/trusted-types": "https://unpkg.com/@aegisjsproject/trusted-types@1.1.0/bundle.min.js",\n "@aegisjsproject/trusted-types/": "https://unpkg.com/@aegisjsproject/trusted-types@1.1.0/",\n "@aegisjsproject/parsers": "https://unpkg.com/@aegisjsproject/parsers@0.2.0/bundle.min.js",\n "@aegisjsproject/parsers/": "https://unpkg.com/@aegisjsproject/parsers@0.2.0/",\n "@aegisjsproject/sanitizer": "https://unpkg.com/@aegisjsproject/sanitizer@0.3.0/sanitizer.js",\n "@aegisjsproject/sanitizer/": "https://unpkg.com/@aegisjsproject/sanitizer@0.3.0/",\n "@aegisjsproject/core": "https://unpkg.com/@aegisjsproject/core@0.3.0/core.js",\n "@aegisjsproject/core/": "https://unpkg.com/@aegisjsproject/core@0.3.0/",\n "@aegisjsproject/styles": "https://unpkg.com/@aegisjsproject/styles@0.4.0/styles.js",\n "@aegisjsproject/styles/": "https://unpkg.com/@aegisjsproject/styles@0.4.0/",\n "@aegisjsproject/component": "https://unpkg.com/@aegisjsproject/component@0.2.0/component.js",\n "@aegisjsproject/component/": "https://unpkg.com/@aegisjsproject/component@0.2.0/",\n "@aegisjsproject/markdown": "https://unpkg.com/@aegisjsproject/markdown@0.1.7/markdown.min.js",\n "@aegisjsproject/markdown/": "https://unpkg.com/@aegisjsproject/markdown@0.1.7/",\n "@aegisjsproject/aegis-md": "https://unpkg.com/@aegisjsproject/aegis-md@0.0.4/aegis-md.js",\n "@aegisjsproject/aegis-md/": "https://unpkg.com/@aegisjsproject/aegis-md@0.0.4/",\n "@aegisjsproject/url": "https://unpkg.com/@aegisjsproject/url@1.1.0/url.min.js",\n "@aegisjsproject/url/": "https://unpkg.com/@aegisjsproject/url@1.1.0/",\n "@aegisjsproject/idb/": "https://unpkg.com/@aegisjsproject/idb@1.1.0/",\n "@aegisjsproject/idb": "https://unpkg.com/@aegisjsproject/idb@1.1.0/idb.min.js",\n "@aegisjsproject/otp/": "https://unpkg.com/@aegisjsproject/otp@1.0.2/",\n "@aegisjsproject/otp": "https://unpkg.com/@aegisjsproject/otp@1.0.2/otp.min.js",\n "@aegisjsproject/md-editor": "https://unpkg.com/@aegisjsproject/md-editor@1.0.0/md-editor.js",\n "@aegisjsproject/md-editor/": "https://unpkg.com/@aegisjsproject/md-editor@1.0.0/",\n "@aegisjsproject/barcodescanner": "https://unpkg.com/@aegisjsproject/barcodescanner@1.2.3/scanner.min.js",\n "@aegisjsproject/barcodescanner/": "https://unpkg.com/@aegisjsproject/barcodescanner@1.2.3/",\n "@aegisjsproject/state": "https://unpkg.com/@aegisjsproject/state@1.1.0/state.mjs",\n "@aegisjsproject/state/": "https://unpkg.com/@aegisjsproject/state@1.1.0/",\n "@aegisjsproject/router": "https://unpkg.com/@aegisjsproject/router@1.3.0/router.mjs",\n "@aegisjsproject/router/": "https://unpkg.com/@aegisjsproject/router@1.3.0/",\n "@aegisjsproject/callback-registry": "https://unpkg.com/@aegisjsproject/callback-registry@2.1.0/callbackRegistry.js",\n "@aegisjsproject/callback-registry/": "https://unpkg.com/@aegisjsproject/callback-registry@2.1.0/",\n "@aegisjsproject/attempt": "https://unpkg.com/@aegisjsproject/attempt@1.0.7/attempt.js",\n "@aegisjsproject/attempt/": "https://unpkg.com/@aegisjsproject/attempt@1.0.7/",\n "@aegisjsproject/secret-store": "https://unpkg.com/@aegisjsproject/secret-store@1.1.1/commands.min.js",\n "@aegisjsproject/commands/": "https://unpkg.com/@aegisjsproject/commands@1.0.2/",\n "@aegisjsproject/commands": "https://unpkg.com/@aegisjsproject/commands@1.0.2/commands.min.js",\n "@aegisjsproject/firebase-account-routes": "https://unpkg.com/@aegisjsproject/firebase-account-routes@0.0.6/main.js",\n "@aegisjsproject/firebase-account-routes/": "https://unpkg.com/@aegisjsproject/firebase-account-routes@0.0.6/",\n "@aegisjsproject/secret-store/": "https://unpkg.com/@aegisjsproject/secret-store@1.1.1/",\n "@aegisjsproject/qr-encoder": "https://unpkg.com/@aegisjsproject/qr-encoder@1.0.1/index.min.js",\n "@aegisjsproject/qr-encoder/": "https://unpkg.com/@aegisjsproject/qr-encoder@1.0.1/",\n "@aegisjsproject/escape": "https://unpkg.com/@aegisjsproject/escape@1.1.0/index.min.js",\n "@aegisjsproject/escape/": "https://unpkg.com/@aegisjsproject/escape@1.1.0/",\n "@aegisjsproject/disposable": "https://unpkg.com/@aegisjsproject/disposable@1.0.3/disposable.min.js",\n "@aegisjsproject/disposable/": "https://unpkg.com/@aegisjsproject/disposable@1.0.3/",\n "@aegisjsproject/iota": "https://unpkg.com/@aegisjsproject/iota@1.0.12/iota.min.js",\n "@aegisjsproject/iota/": "https://unpkg.com/@aegisjsproject/iota@1.0.12/",\n "@aegisjsproject/disposable-registry": "https://unpkg.com/@aegisjsproject/disposable-registry@1.1.0/registry.js",\n "@aegisjsproject/disposable-registry/": "https://unpkg.com/@aegisjsproject/disposable-registry@1.1.0/",\n "@aegisjsproject/hermes": "https://unpkg.com/@aegisjsproject/hermes@1.1.0/hermes.js",\n "@aegisjsproject/hermes/": "https://unpkg.com/@aegisjsproject/hermes@1.1.0/",\n "@aegisjsproject/pwa-prompt": "https://unpkg.com/@aegisjsproject/pwa-prompt@1.0.1/prompt.js",\n "@aegisjsproject/pwa-prompt/": "https://unpkg.com/@aegisjsproject/pwa-prompt@1.0.1/",\n "@aegisjsproject/button": "https://unpkg.com/@aegisjsproject/button@1.0.1/button.min.js",\n "@aegisjsproject/button/": "https://unpkg.com/@aegisjsproject/button@1.0.1/",\n "@aegisjsproject/atlas": "https://unpkg.com/@aegisjsproject/atlas@1.1.0/atlas.min.js",\n "@aegisjsproject/atlas/": "https://unpkg.com/@aegisjsproject/atlas@1.1.0/",\n "@aegisjsproject/toast-message": "https://unpkg.com/@aegisjsproject/toast-message@1.0.3/toast-message.min.js",\n "@aegisjsproject/toast-message/": "https://unpkg.com/@aegisjsproject/toast-message@1.0.3/",\n "@kernvalley/components/": "https://unpkg.com/@kernvalley/components@2.0.10/",\n "@webcomponents/custom-elements": "https://unpkg.com/@webcomponents/custom-elements@1.6.0/custom-elements.min.js",\n "leaflet": "https://unpkg.com/leaflet@1.9.4/dist/leaflet-src.esm.js",\n "leaflet/": "https://unpkg.com/leaflet@1.9.4/dist/",\n "urlpattern-polyfill": "https://unpkg.com/urlpattern-polyfill@10.1.0/index.js",\n "highlight.js": "https://unpkg.com/@highlightjs/cdn-assets@11.11.1/es/core.min.js",\n "highlight.js/": "https://unpkg.com/@highlightjs/cdn-assets@11.11.1/es/",\n "highlight.js/styles/": "https://unpkg.com/@highlightjs/cdn-assets@11.11.1/styles/",\n "@highlightjs/cdn-assets": "https://unpkg.com/@highlightjs/cdn-assets@11.11.1/es/core.min.js",\n "@highlightjs/cdn-assets/": "https://unpkg.com/@highlightjs/cdn-assets@11.11.1/es/",\n "@highlightjs/cdn-assets/styles/": "https://unpkg.com/@highlightjs/cdn-assets@11.11.1/styles/",\n "marked": "https://unpkg.com/marked@18.0.6/lib/marked.esm.js",\n "marked-highlight": "https://unpkg.com/marked-highlight@2.2.4/src/index.js",\n "yaml": "https://unpkg.com/yaml@2.9.0/browser/dist/index.js",\n "yaml/": "https://unpkg.com/yaml@2.9.0/browser/dist/",\n "firebase/": "https://www.gstatic.com/firebasejs/12.12.1/",\n "firebase/app": "https://www.gstatic.com/firebasejs/12.12.1/firebase-app.js",\n "firebase/app-check": "https://www.gstatic.com/firebasejs/12.12.1/firebase-app-check.js",\n "firebase/auth": "https://www.gstatic.com/firebasejs/12.12.1/firebase-auth.js",\n "firebase/database": "https://www.gstatic.com/firebasejs/12.12.1/firebase-database.js",\n "firebase/firestore": "https://www.gstatic.com/firebasejs/12.12.1/firebase-firestore.js",\n "firebase/functions": "https://www.gstatic.com/firebasejs/12.12.1/firebase-functions.js",\n "firebase/messaging": "https://www.gstatic.com/firebasejs/12.12.1/firebase-messaging.js",\n "firebase/performance": "https://www.gstatic.com/firebasejs/12.12.1/firebase-performance.js",\n "firebase/remote-config": "https://www.gstatic.com/firebasejs/12.12.1/firebase-remote-config.js",\n "firebase/storage": "https://www.gstatic.com/firebasejs/12.12.1/firebase-storage.js",\n "firebase/analytics": "https://www.gstatic.com/firebasejs/12.12.1/firebase-analytics.js",\n "qr": "https://unpkg.com/qr@0.6.0/index.js",\n "qr/": "https://unpkg.com/qr@0.6.0/",\n "lit": "https://unpkg.com/lit@3.3.3/index.js",\n "lit/": "https://unpkg.com/lit@3.3.3/",\n "lit-html": "https://unpkg.com/lit-html@3.3.3/lit-html.js",\n "lit-html/": "https://unpkg.com/lit-html@3.3.3/",\n "lit-element": "https://unpkg.com/lit-element@4.2.2/lit-element.js",\n "lit-element/": "https://unpkg.com/lit-element@4.2.2/",\n "@lit/reactive-element": "https://unpkg.com/@lit/reactive-element@2.1.2/reactive-element.js",\n "@lit/reactive-element/": "https://unpkg.com/@lit/reactive-element@2.1.2/",\n "@awesome.me/webawesome/": "https://unpkg.com/@awesome.me/webawesome@3.10.0/",\n "normalize.css": "https://unpkg.com/normalize.css@8.0.1/normalize.css"\n },\n "scopes": {}\n}');
13
14
 
14
15
  function guessFileType(file) {
15
16
  const ext = extname(file).toLowerCase();
package/html.cjs CHANGED
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env node
1
2
  'use strict';
2
3
 
3
4
  var commander = require('commander');
@@ -7,7 +8,9 @@ require('@shgysk8zer0/npm-utils/yaml.js');
7
8
  require('@shgysk8zer0/npm-utils/json.js');
8
9
  require('@shgysk8zer0/npm-utils/path.js');
9
10
 
11
+ const SHA256 = 'SHA-256';
10
12
  const SHA384 = 'SHA-384';
13
+ const SHA512 = 'SHA-512';
11
14
  const DEFAULT_ALGO = SHA384;
12
15
 
13
16
  const BASE64 = 'base64';
@@ -44,12 +47,207 @@ async function hash(data, { algo = DEFAULT_ALGO, output = BUFFER } = {}) {
44
47
 
45
48
  const sri = async(data, { algo = SHA384 } = {}) => hash(data, { algo, output: SRI });
46
49
 
47
- var data = JSON.parse('{\n "imports": {\n "@node/": "/node_modules/",\n "@shgysk8zer0/kazoo/": "https://unpkg.com/@shgysk8zer0/kazoo@1.0.12/",\n "@shgysk8zer0/konami": "https://unpkg.com/@shgysk8zer0/konami@1.1.2/konami.js",\n "@shgysk8zer0/polyfills": "https://unpkg.com/@shgysk8zer0/polyfills@0.8.4/browser.min.js",\n "@shgysk8zer0/polyfills/": "https://unpkg.com/@shgysk8zer0/polyfills@0.8.4/",\n "@shgysk8zer0/jwk-utils": "https://unpkg.com/@shgysk8zer0/jwk-utils@1.2.0/jwk-utils.min.js",\n "@shgysk8zer0/jwk-utils/": "https://unpkg.com/@shgysk8zer0/jwk-utils@1.2.0/",\n "@shgysk8zer0/jswaggersheets": "https://unpkg.com/@shgysk8zer0/jswaggersheets@1.1.0/swagger.js",\n "@shgysk8zer0/jswaggersheets/": "https://unpkg.com/@shgysk8zer0/jswaggersheets@1.1.0/",\n "@shgysk8zer0/jss/": "https://unpkg.com/@shgysk8zer0/jss@1.0.1/",\n "@shgysk8zer0/consts/": "https://unpkg.com/@shgysk8zer0/consts@1.0.8/",\n "@shgysk8zer0/http/": "https://unpkg.com/@shgysk8zer0/http@1.0.5/",\n "@shgysk8zer0/http-status": "https://unpkg.com/@shgysk8zer0/http-status@1.1.4/http-status.js",\n "@shgysk8zer0/aes-gcm": "https://unpkg.com/@shgysk8zer0/aes-gcm@1.0.9/aes-gcm.min.js",\n "@shgysk8zer0/aes-gcm/": "https://unpkg.com/@shgysk8zer0/aes-gcm@1.0.9/",\n "@shgysk8zer0/squish": "https://unpkg.com/@shgysk8zer0/squish@1.0.2/squish.min.js",\n "@shgysk8zer0/squish/": "https://unpkg.com/@shgysk8zer0/squish@1.0.2/",\n "@shgysk8zer0/suid": "https://unpkg.com/@shgysk8zer0/suid@1.0.0/suid.min.js",\n "@shgysk8zer0/suid/": "https://unpkg.com/@shgysk8zer0/suid@1.0.0/",\n "@shgysk8zer0/geoutils": "https://unpkg.com/@shgysk8zer0/geoutils@1.0.6/geoutils.min.js",\n "@shgysk8zer0/geoutils/": "https://unpkg.com/@shgysk8zer0/geoutils@1.0.6/",\n "@shgysk8zer0/core-css/": "https://unpkg.com/@shgysk8zer0/core-css@3.0.0/",\n "@shgysk8zer0/signals": "https://unpkg.com/@shgysk8zer0/signals@0.0.3/signals.min.js",\n "@shgysk8zer0/signals/": "https://unpkg.com/@shgysk8zer0/signals@0.0.3/",\n "@shgysk8zer0/importmap": "https://unpkg.com/@shgysk8zer0/importmap@1.10.1/importmap.js",\n "@shgysk8zer0/importmap/": "https://unpkg.com/@shgysk8zer0/importmap@1.10.1/",\n "@shgysk8zer0/components/": "https://unpkg.com/@shgysk8zer0/components@0.3.23/",\n "@aegisjsproject/trusted-types": "https://unpkg.com/@aegisjsproject/trusted-types@1.0.2/bundle.min.js",\n "@aegisjsproject/trusted-types/": "https://unpkg.com/@aegisjsproject/trusted-types@1.0.2/",\n "@aegisjsproject/parsers": "https://unpkg.com/@aegisjsproject/parsers@0.1.6/bundle.min.js",\n "@aegisjsproject/parsers/": "https://unpkg.com/@aegisjsproject/parsers@0.1.6/",\n "@aegisjsproject/sanitizer": "https://unpkg.com/@aegisjsproject/sanitizer@0.2.4/sanitizer.js",\n "@aegisjsproject/sanitizer/": "https://unpkg.com/@aegisjsproject/sanitizer@0.2.4/",\n "@aegisjsproject/core": "https://unpkg.com/@aegisjsproject/core@0.2.34/core.js",\n "@aegisjsproject/core/": "https://unpkg.com/@aegisjsproject/core@0.2.34/",\n "@aegisjsproject/styles": "https://unpkg.com/@aegisjsproject/styles@0.3.4/styles.js",\n "@aegisjsproject/styles/": "https://unpkg.com/@aegisjsproject/styles@0.3.4/",\n "@aegisjsproject/component": "https://unpkg.com/@aegisjsproject/component@0.1.8/component.js",\n "@aegisjsproject/component/": "https://unpkg.com/@aegisjsproject/component@0.1.8/",\n "@aegisjsproject/markdown": "https://unpkg.com/@aegisjsproject/markdown@0.1.7/markdown.min.js",\n "@aegisjsproject/markdown/": "https://unpkg.com/@aegisjsproject/markdown@0.1.7/",\n "@aegisjsproject/aegis-md": "https://unpkg.com/@aegisjsproject/aegis-md@0.0.4/aegis-md.js",\n "@aegisjsproject/aegis-md/": "https://unpkg.com/@aegisjsproject/aegis-md@0.0.4/",\n "@aegisjsproject/url": "https://unpkg.com/@aegisjsproject/url@1.0.3/url.min.js",\n "@aegisjsproject/url/": "https://unpkg.com/@aegisjsproject/url@1.0.3/",\n "@aegisjsproject/idb/": "https://unpkg.com/@aegisjsproject/idb@1.0.6/",\n "@aegisjsproject/idb": "https://unpkg.com/@aegisjsproject/idb@1.0.6/idb.min.js",\n "@aegisjsproject/otp/": "https://unpkg.com/@aegisjsproject/otp@1.0.2/",\n "@aegisjsproject/otp": "https://unpkg.com/@aegisjsproject/otp@1.0.2/otp.min.js",\n "@aegisjsproject/md-editor": "https://unpkg.com/@aegisjsproject/md-editor@1.0.0/md-editor.js",\n "@aegisjsproject/md-editor/": "https://unpkg.com/@aegisjsproject/md-editor@1.0.0/",\n "@aegisjsproject/barcodescanner": "https://unpkg.com/@aegisjsproject/barcodescanner@1.2.3/scanner.min.js",\n "@aegisjsproject/barcodescanner/": "https://unpkg.com/@aegisjsproject/barcodescanner@1.2.3/",\n "@aegisjsproject/state": "https://unpkg.com/@aegisjsproject/state@1.0.7/state.mjs",\n "@aegisjsproject/state/": "https://unpkg.com/@aegisjsproject/state@1.0.7/",\n "@aegisjsproject/router": "https://unpkg.com/@aegisjsproject/router@1.2.1/router.mjs",\n "@aegisjsproject/router/": "https://unpkg.com/@aegisjsproject/router@1.2.1/",\n "@aegisjsproject/callback-registry": "https://unpkg.com/@aegisjsproject/callback-registry@2.0.4/callbackRegistry.js",\n "@aegisjsproject/callback-registry/": "https://unpkg.com/@aegisjsproject/callback-registry@2.0.4/",\n "@aegisjsproject/attempt": "https://unpkg.com/@aegisjsproject/attempt@1.0.7/attempt.js",\n "@aegisjsproject/attempt/": "https://unpkg.com/@aegisjsproject/attempt@1.0.7/",\n "@aegisjsproject/secret-store": "https://unpkg.com/@aegisjsproject/secret-store@1.1.1/commands.min.js",\n "@aegisjsproject/commands/": "https://unpkg.com/@aegisjsproject/commands@1.0.2/",\n "@aegisjsproject/commands": "https://unpkg.com/@aegisjsproject/commands@1.0.2/commands.min.js",\n "@aegisjsproject/firebase-account-routes": "https://unpkg.com/@aegisjsproject/firebase-account-routes@0.0.6/main.js",\n "@aegisjsproject/firebase-account-routes/": "https://unpkg.com/@aegisjsproject/firebase-account-routes@0.0.6/",\n "@aegisjsproject/secret-store/": "https://unpkg.com/@aegisjsproject/secret-store@1.1.1/",\n "@aegisjsproject/qr-encoder": "https://unpkg.com/@aegisjsproject/qr-encoder@1.0.1/index.min.js",\n "@aegisjsproject/qr-encoder/": "https://unpkg.com/@aegisjsproject/qr-encoder@1.0.1/",\n "@aegisjsproject/escape": "https://unpkg.com/@aegisjsproject/escape@1.0.4/index.min.js",\n "@aegisjsproject/escape/": "https://unpkg.com/@aegisjsproject/escape@1.0.4/",\n "@aegisjsproject/disposable": "https://unpkg.com/@aegisjsproject/disposable@1.0.3/disposable.min.js",\n "@aegisjsproject/disposable/": "https://unpkg.com/@aegisjsproject/disposable@1.0.3/",\n "@aegisjsproject/iota": "https://unpkg.com/@aegisjsproject/iota@1.0.12/iota.min.js",\n "@aegisjsproject/iota/": "https://unpkg.com/@aegisjsproject/iota@1.0.12/",\n "@aegisjsproject/disposable-registry": "https://unpkg.com/@aegisjsproject/disposable-registry@1.0.2/registry.js",\n "@aegisjsproject/disposable-registry/": "https://unpkg.com/@aegisjsproject/disposable-registry@1.0.2/",\n "@aegisjsproject/hermes": "https://unpkg.com/@aegisjsproject/hermes@1.1.0/hermes.js",\n "@aegisjsproject/hermes/": "https://unpkg.com/@aegisjsproject/hermes@1.1.0/",\n "@aegisjsproject/pwa-prompt": "https://unpkg.com/@aegisjsproject/pwa-prompt@1.0.1/prompt.js",\n "@aegisjsproject/pwa-prompt/": "https://unpkg.com/@aegisjsproject/pwa-prompt@1.0.1/",\n "@aegisjsproject/button": "https://unpkg.com/@aegisjsproject/button@1.0.1/button.min.js",\n "@aegisjsproject/button/": "https://unpkg.com/@aegisjsproject/button@1.0.1/",\n "@aegisjsproject/atlas": "https://unpkg.com/@aegisjsproject/atlas@1.0.2/atlas.min.js",\n "@aegisjsproject/atlas/": "https://unpkg.com/@aegisjsproject/atlas@1.0.2/",\n "@aegisjsproject/toast-message": "https://unpkg.com/@aegisjsproject/toast-message@1.0.3/toast-message.min.js",\n "@aegisjsproject/toast-message/": "https://unpkg.com/@aegisjsproject/toast-message@1.0.3/",\n "@kernvalley/components/": "https://unpkg.com/@kernvalley/components@2.0.10/",\n "@webcomponents/custom-elements": "https://unpkg.com/@webcomponents/custom-elements@1.6.0/custom-elements.min.js",\n "leaflet": "https://unpkg.com/leaflet@1.9.4/dist/leaflet-src.esm.js",\n "leaflet/": "https://unpkg.com/leaflet@1.9.4/dist/",\n "urlpattern-polyfill": "https://unpkg.com/urlpattern-polyfill@10.1.0/index.js",\n "highlight.js": "https://unpkg.com/@highlightjs/cdn-assets@11.11.1/es/core.min.js",\n "highlight.js/": "https://unpkg.com/@highlightjs/cdn-assets@11.11.1/es/",\n "highlight.js/styles/": "https://unpkg.com/@highlightjs/cdn-assets@11.11.1/styles/",\n "@highlightjs/cdn-assets": "https://unpkg.com/@highlightjs/cdn-assets@11.11.1/es/core.min.js",\n "@highlightjs/cdn-assets/": "https://unpkg.com/@highlightjs/cdn-assets@11.11.1/es/",\n "@highlightjs/cdn-assets/styles/": "https://unpkg.com/@highlightjs/cdn-assets@11.11.1/styles/",\n "marked": "https://unpkg.com/marked@18.0.5/lib/marked.esm.js",\n "marked-highlight": "https://unpkg.com/marked-highlight@2.2.4/src/index.js",\n "yaml": "https://unpkg.com/yaml@2.9.0/browser/dist/index.js",\n "yaml/": "https://unpkg.com/yaml@2.9.0/browser/dist/",\n "firebase/": "https://www.gstatic.com/firebasejs/12.12.1/",\n "firebase/app": "https://www.gstatic.com/firebasejs/12.12.1/firebase-app.js",\n "firebase/app-check": "https://www.gstatic.com/firebasejs/12.12.1/firebase-app-check.js",\n "firebase/auth": "https://www.gstatic.com/firebasejs/12.12.1/firebase-auth.js",\n "firebase/database": "https://www.gstatic.com/firebasejs/12.12.1/firebase-database.js",\n "firebase/firestore": "https://www.gstatic.com/firebasejs/12.12.1/firebase-firestore.js",\n "firebase/functions": "https://www.gstatic.com/firebasejs/12.12.1/firebase-functions.js",\n "firebase/messaging": "https://www.gstatic.com/firebasejs/12.12.1/firebase-messaging.js",\n "firebase/performance": "https://www.gstatic.com/firebasejs/12.12.1/firebase-performance.js",\n "firebase/remote-config": "https://www.gstatic.com/firebasejs/12.12.1/firebase-remote-config.js",\n "firebase/storage": "https://www.gstatic.com/firebasejs/12.12.1/firebase-storage.js",\n "firebase/analytics": "https://www.gstatic.com/firebasejs/12.12.1/firebase-analytics.js",\n "qr": "https://unpkg.com/qr@0.6.0/index.js",\n "qr/": "https://unpkg.com/qr@0.6.0/",\n "lit": "https://unpkg.com/lit@3.3.3/index.js",\n "lit/": "https://unpkg.com/lit@3.3.3/",\n "lit-html": "https://unpkg.com/lit-html@3.3.3/lit-html.js",\n "lit-html/": "https://unpkg.com/lit-html@3.3.3/",\n "lit-element": "https://unpkg.com/lit-element@4.2.2/lit-element.js",\n "lit-element/": "https://unpkg.com/lit-element@4.2.2/",\n "@lit/reactive-element": "https://unpkg.com/@lit/reactive-element@2.1.2/reactive-element.js",\n "@lit/reactive-element/": "https://unpkg.com/@lit/reactive-element@2.1.2/",\n "@awesome.me/webawesome/": "https://unpkg.com/@awesome.me/webawesome@3.8.0/",\n "normalize.css": "https://unpkg.com/normalize.css@8.0.1/normalize.css"\n },\n "scopes": {}\n}');
50
+ class Importmap {
51
+ #imports = {};
52
+ #scopes = {};
53
+ #base = globalThis?.document?.baseURI ?? null;
54
+
55
+ constructor({ imports: i = {}, scopes: s = {} } = {}) {
56
+ this.#imports = i;
57
+ this.#scopes = s;
58
+ }
59
+
60
+ get imports() {
61
+ return structuredClone(this.#imports);
62
+ }
63
+
64
+ get scopes() {
65
+ return structuredClone(this.#scopes);
66
+ }
67
+
68
+ delete(key) {
69
+ return Reflect.deleteProperty(this.#imports, key);
70
+ }
71
+
72
+ get(key) {
73
+ return Reflect.get(this.#imports, key);
74
+ }
75
+
76
+ has(key) {
77
+ return Reflect.has(this.#imports, key);
78
+ }
79
+
80
+ set(key, newValue) {
81
+ return Reflect.set(this.#imports, key, newValue);
82
+ }
83
+
84
+ toJSON() {
85
+ return { imports: this.#imports, scopes: this.#scopes };
86
+ }
87
+
88
+ toString() {
89
+ return JSON.stringify(this);
90
+ }
91
+
92
+ get baseUrl() {
93
+ return this.#base;
94
+ }
95
+
96
+ set baseUrl(val) {
97
+ if (typeof val === 'string' && URL.canParse(val)) {
98
+ this.#base = val;
99
+ }
100
+ }
101
+
102
+ resolve(specifier, base = this.baseUrl) {
103
+ console.log({ specifier, base });
104
+ if (specifier instanceof URL) {
105
+ return specifier.href;
106
+ } else if (typeof specifier !== 'string') {
107
+ return null;
108
+ } else if (this.has(specifier)) {
109
+ return URL.parse(this.get(specifier), base)?.href ?? null;
110
+ } else if (URL.canParse(specifier)) {
111
+ return specifier;
112
+ } else if (! specifier.startsWith('.')) {
113
+ // Find the longest match
114
+ const matches = Object.keys(this.imports)
115
+ .filter(key => key.endsWith('/') && specifier.startsWith(key))
116
+ .sort((a, b) => b.length - a.length);
117
+
118
+ if (matches.length === 0) {
119
+ return null;
120
+ } else {
121
+ const imports = this.#imports;
122
+ const match = matches[0];
123
+ const target = imports[match];
124
+ const subpath = specifier.slice(match.length);
125
+ // Resolve the mapping target against the map's base, then the subpath against that
126
+ const resolvedTarget = new URL(target, base);
127
+ return new URL(subpath, resolvedTarget).href;
128
+ }
129
+ } else if (typeof base === 'string') {
130
+ return URL.parse(specifier, base)?.href ?? null;
131
+ } else {
132
+ return null;
133
+ }
134
+ }
135
+
136
+ async importLocalPackage(name = 'package.json', { signal } = {}) {
137
+ const [{ join }, { readFile }] = await Promise.all([
138
+ import('node:path'),
139
+ import('node:fs/promises'),
140
+ ]);
141
+
142
+ const path = join(process.cwd(), name);
143
+ const pkg = await readFile(path, { encoding: 'utf8', signal });
144
+
145
+ return this.setLocalPackage(JSON.parse(pkg));
146
+ }
147
+
148
+ setLocalPackage({ name, module, exports = {} }) {
149
+ if (typeof name !== 'string') {
150
+ return false;
151
+ } else if (typeof exports === 'string' ) {
152
+ this.set(name, exports);
153
+ return true;
154
+ } else if (typeof exports === 'object') {
155
+ Object.entries(exports).forEach(([key, value]) => {
156
+ if (key.startsWith('.')) {
157
+ const importKey = key === '.' ? name : `${name}${key.substring(1)}`;
158
+ const resolved = typeof value === 'string' ? value : value.import ?? value.default;
159
+
160
+ if (typeof resolved === 'string' && resolved.startsWith('./')) {
161
+ if (importKey.includes('*') && resolved.includes('*')) {
162
+ const [prefix, suffix] = importKey.split('*');
163
+
164
+ if (resolved.endsWith('*' + suffix)) {
165
+ this.set(prefix, resolved.substring(1).replace('*' + suffix, ''));
166
+ }
167
+ } else {
168
+ this.set(importKey, resolved.substring(1));
169
+ }
170
+ }
171
+ }
172
+ });
173
+
174
+ return true;
175
+ } else if (typeof module === 'string') {
176
+ this.set(name, module);
177
+ return true;
178
+ } else {
179
+ this.set(name, '/');
180
+ return true;
181
+ }
182
+ }
183
+
184
+ async getScript({ algo = DEFAULT_ALGO, alphabet = BASE64, name, signal } = {}) {
185
+ const integrity = await this.getIntegrity({ algo, alphabet, signal });
186
+
187
+ return typeof name === 'string'
188
+ ? `<script type="importmap" name="${name}" integrity="${integrity}">${JSON.stringify(this)}</script>`
189
+ : `<script type="importmap" integrity="${integrity}">${JSON.stringify(this)}</script>`;
190
+ }
191
+
192
+ async getIntegrity({ algo = DEFAULT_ALGO, alphabet = BASE64, signal } = {}) {
193
+ if (signal instanceof AbortSignal && signal.aborted) {
194
+ throw signal.reason;
195
+ } else {
196
+ const prefix = algo.toLowerCase().replace('-', '') + '-';
197
+ const encoded = new TextEncoder().encode(this);
198
+ const hash = await crypto.subtle.digest(algo, encoded);
199
+
200
+ return prefix + new Uint8Array(hash).toBase64({ alphabet });
201
+ }
202
+ }
203
+
204
+ static get SHA256() {
205
+ return SHA256;
206
+ }
207
+
208
+ static get SHA384() {
209
+ return SHA384;
210
+ }
211
+
212
+ static get SHA512() {
213
+ return SHA512;
214
+ }
215
+
216
+ static importFromScript(script) {
217
+ if (! ('HTMLScriptElement' in globalThis)) {
218
+ throw new Error('Attempting to import from the wrong environment.');
219
+ } else if (typeof script === 'string') {
220
+ return this.importFromScript(globalThis.document.scripts.namedItem(script));
221
+ } else if (typeof script === 'number') {
222
+ return this.importFromScript(globalThis.document.scripts.item(script));
223
+ } else if (! (script instanceof globalThis.HTMLScriptElement)) {
224
+ throw new TypeError('Can only import from a <script>.');
225
+ } else if (script.type !== 'importmap') {
226
+ throw new TypeError(`Cannot import importmap from a <script type="${script.type ?? 'application/jacascript'}">.`);
227
+ } else {
228
+ return new this(JSON.parse(script.textContent));
229
+ }
230
+ }
231
+
232
+ static async importFromFile(path = 'importmap.json', { signal } = {}) {
233
+ const [{ join }, { readFile }] = await Promise.all([
234
+ import('node:path'),
235
+ import('node:fs/promises'),
236
+ ]);
237
+ const fullPath = join(process.cwd(), path);
238
+ const importmap = await readFile(fullPath, { encoding: 'utf8', signal });
239
+
240
+ return new Importmap(JSON.parse(importmap));
241
+ }
242
+ }
243
+
244
+ var data = JSON.parse('{\n "imports": {\n "@node/": "/node_modules/",\n "@shgysk8zer0/kazoo/": "https://unpkg.com/@shgysk8zer0/kazoo@1.0.12/",\n "@shgysk8zer0/konami": "https://unpkg.com/@shgysk8zer0/konami@1.1.2/konami.js",\n "@shgysk8zer0/polyfills": "https://unpkg.com/@shgysk8zer0/polyfills@0.8.6/browser.min.js",\n "@shgysk8zer0/polyfills/": "https://unpkg.com/@shgysk8zer0/polyfills@0.8.6/",\n "@shgysk8zer0/jwk-utils": "https://unpkg.com/@shgysk8zer0/jwk-utils@1.2.1/jwk-utils.min.js",\n "@shgysk8zer0/jwk-utils/": "https://unpkg.com/@shgysk8zer0/jwk-utils@1.2.1/",\n "@shgysk8zer0/jswaggersheets": "https://unpkg.com/@shgysk8zer0/jswaggersheets@1.1.0/swagger.js",\n "@shgysk8zer0/jswaggersheets/": "https://unpkg.com/@shgysk8zer0/jswaggersheets@1.1.0/",\n "@shgysk8zer0/jss/": "https://unpkg.com/@shgysk8zer0/jss@1.0.1/",\n "@shgysk8zer0/consts/": "https://unpkg.com/@shgysk8zer0/consts@1.0.8/",\n "@shgysk8zer0/http/": "https://unpkg.com/@shgysk8zer0/http@1.0.5/",\n "@shgysk8zer0/http-status": "https://unpkg.com/@shgysk8zer0/http-status@1.1.4/http-status.js",\n "@shgysk8zer0/aes-gcm": "https://unpkg.com/@shgysk8zer0/aes-gcm@1.1.0/aes-gcm.min.js",\n "@shgysk8zer0/aes-gcm/": "https://unpkg.com/@shgysk8zer0/aes-gcm@1.1.0/",\n "@shgysk8zer0/squish": "https://unpkg.com/@shgysk8zer0/squish@1.0.2/squish.min.js",\n "@shgysk8zer0/squish/": "https://unpkg.com/@shgysk8zer0/squish@1.0.2/",\n "@shgysk8zer0/suid": "https://unpkg.com/@shgysk8zer0/suid@1.0.0/suid.min.js",\n "@shgysk8zer0/suid/": "https://unpkg.com/@shgysk8zer0/suid@1.0.0/",\n "@shgysk8zer0/geoutils": "https://unpkg.com/@shgysk8zer0/geoutils@1.0.6/geoutils.min.js",\n "@shgysk8zer0/geoutils/": "https://unpkg.com/@shgysk8zer0/geoutils@1.0.6/",\n "@shgysk8zer0/core-css/": "https://unpkg.com/@shgysk8zer0/core-css@3.0.0/",\n "@shgysk8zer0/signals": "https://unpkg.com/@shgysk8zer0/signals@0.1.0/signals.min.js",\n "@shgysk8zer0/signals/": "https://unpkg.com/@shgysk8zer0/signals@0.1.0/",\n "@shgysk8zer0/importmap": "https://unpkg.com/@shgysk8zer0/importmap@1.10.3/importmap.js",\n "@shgysk8zer0/importmap/": "https://unpkg.com/@shgysk8zer0/importmap@1.10.3/",\n "@shgysk8zer0/components/": "https://unpkg.com/@shgysk8zer0/components@0.3.23/",\n "@aegisjsproject/trusted-types": "https://unpkg.com/@aegisjsproject/trusted-types@1.1.0/bundle.min.js",\n "@aegisjsproject/trusted-types/": "https://unpkg.com/@aegisjsproject/trusted-types@1.1.0/",\n "@aegisjsproject/parsers": "https://unpkg.com/@aegisjsproject/parsers@0.2.0/bundle.min.js",\n "@aegisjsproject/parsers/": "https://unpkg.com/@aegisjsproject/parsers@0.2.0/",\n "@aegisjsproject/sanitizer": "https://unpkg.com/@aegisjsproject/sanitizer@0.3.0/sanitizer.js",\n "@aegisjsproject/sanitizer/": "https://unpkg.com/@aegisjsproject/sanitizer@0.3.0/",\n "@aegisjsproject/core": "https://unpkg.com/@aegisjsproject/core@0.3.0/core.js",\n "@aegisjsproject/core/": "https://unpkg.com/@aegisjsproject/core@0.3.0/",\n "@aegisjsproject/styles": "https://unpkg.com/@aegisjsproject/styles@0.4.0/styles.js",\n "@aegisjsproject/styles/": "https://unpkg.com/@aegisjsproject/styles@0.4.0/",\n "@aegisjsproject/component": "https://unpkg.com/@aegisjsproject/component@0.2.0/component.js",\n "@aegisjsproject/component/": "https://unpkg.com/@aegisjsproject/component@0.2.0/",\n "@aegisjsproject/markdown": "https://unpkg.com/@aegisjsproject/markdown@0.1.7/markdown.min.js",\n "@aegisjsproject/markdown/": "https://unpkg.com/@aegisjsproject/markdown@0.1.7/",\n "@aegisjsproject/aegis-md": "https://unpkg.com/@aegisjsproject/aegis-md@0.0.4/aegis-md.js",\n "@aegisjsproject/aegis-md/": "https://unpkg.com/@aegisjsproject/aegis-md@0.0.4/",\n "@aegisjsproject/url": "https://unpkg.com/@aegisjsproject/url@1.1.0/url.min.js",\n "@aegisjsproject/url/": "https://unpkg.com/@aegisjsproject/url@1.1.0/",\n "@aegisjsproject/idb/": "https://unpkg.com/@aegisjsproject/idb@1.1.0/",\n "@aegisjsproject/idb": "https://unpkg.com/@aegisjsproject/idb@1.1.0/idb.min.js",\n "@aegisjsproject/otp/": "https://unpkg.com/@aegisjsproject/otp@1.0.2/",\n "@aegisjsproject/otp": "https://unpkg.com/@aegisjsproject/otp@1.0.2/otp.min.js",\n "@aegisjsproject/md-editor": "https://unpkg.com/@aegisjsproject/md-editor@1.0.0/md-editor.js",\n "@aegisjsproject/md-editor/": "https://unpkg.com/@aegisjsproject/md-editor@1.0.0/",\n "@aegisjsproject/barcodescanner": "https://unpkg.com/@aegisjsproject/barcodescanner@1.2.3/scanner.min.js",\n "@aegisjsproject/barcodescanner/": "https://unpkg.com/@aegisjsproject/barcodescanner@1.2.3/",\n "@aegisjsproject/state": "https://unpkg.com/@aegisjsproject/state@1.1.0/state.mjs",\n "@aegisjsproject/state/": "https://unpkg.com/@aegisjsproject/state@1.1.0/",\n "@aegisjsproject/router": "https://unpkg.com/@aegisjsproject/router@1.3.0/router.mjs",\n "@aegisjsproject/router/": "https://unpkg.com/@aegisjsproject/router@1.3.0/",\n "@aegisjsproject/callback-registry": "https://unpkg.com/@aegisjsproject/callback-registry@2.1.0/callbackRegistry.js",\n "@aegisjsproject/callback-registry/": "https://unpkg.com/@aegisjsproject/callback-registry@2.1.0/",\n "@aegisjsproject/attempt": "https://unpkg.com/@aegisjsproject/attempt@1.0.7/attempt.js",\n "@aegisjsproject/attempt/": "https://unpkg.com/@aegisjsproject/attempt@1.0.7/",\n "@aegisjsproject/secret-store": "https://unpkg.com/@aegisjsproject/secret-store@1.1.1/commands.min.js",\n "@aegisjsproject/commands/": "https://unpkg.com/@aegisjsproject/commands@1.0.2/",\n "@aegisjsproject/commands": "https://unpkg.com/@aegisjsproject/commands@1.0.2/commands.min.js",\n "@aegisjsproject/firebase-account-routes": "https://unpkg.com/@aegisjsproject/firebase-account-routes@0.0.6/main.js",\n "@aegisjsproject/firebase-account-routes/": "https://unpkg.com/@aegisjsproject/firebase-account-routes@0.0.6/",\n "@aegisjsproject/secret-store/": "https://unpkg.com/@aegisjsproject/secret-store@1.1.1/",\n "@aegisjsproject/qr-encoder": "https://unpkg.com/@aegisjsproject/qr-encoder@1.0.1/index.min.js",\n "@aegisjsproject/qr-encoder/": "https://unpkg.com/@aegisjsproject/qr-encoder@1.0.1/",\n "@aegisjsproject/escape": "https://unpkg.com/@aegisjsproject/escape@1.1.0/index.min.js",\n "@aegisjsproject/escape/": "https://unpkg.com/@aegisjsproject/escape@1.1.0/",\n "@aegisjsproject/disposable": "https://unpkg.com/@aegisjsproject/disposable@1.0.3/disposable.min.js",\n "@aegisjsproject/disposable/": "https://unpkg.com/@aegisjsproject/disposable@1.0.3/",\n "@aegisjsproject/iota": "https://unpkg.com/@aegisjsproject/iota@1.0.12/iota.min.js",\n "@aegisjsproject/iota/": "https://unpkg.com/@aegisjsproject/iota@1.0.12/",\n "@aegisjsproject/disposable-registry": "https://unpkg.com/@aegisjsproject/disposable-registry@1.1.0/registry.js",\n "@aegisjsproject/disposable-registry/": "https://unpkg.com/@aegisjsproject/disposable-registry@1.1.0/",\n "@aegisjsproject/hermes": "https://unpkg.com/@aegisjsproject/hermes@1.1.0/hermes.js",\n "@aegisjsproject/hermes/": "https://unpkg.com/@aegisjsproject/hermes@1.1.0/",\n "@aegisjsproject/pwa-prompt": "https://unpkg.com/@aegisjsproject/pwa-prompt@1.0.1/prompt.js",\n "@aegisjsproject/pwa-prompt/": "https://unpkg.com/@aegisjsproject/pwa-prompt@1.0.1/",\n "@aegisjsproject/button": "https://unpkg.com/@aegisjsproject/button@1.0.1/button.min.js",\n "@aegisjsproject/button/": "https://unpkg.com/@aegisjsproject/button@1.0.1/",\n "@aegisjsproject/atlas": "https://unpkg.com/@aegisjsproject/atlas@1.1.0/atlas.min.js",\n "@aegisjsproject/atlas/": "https://unpkg.com/@aegisjsproject/atlas@1.1.0/",\n "@aegisjsproject/toast-message": "https://unpkg.com/@aegisjsproject/toast-message@1.0.3/toast-message.min.js",\n "@aegisjsproject/toast-message/": "https://unpkg.com/@aegisjsproject/toast-message@1.0.3/",\n "@kernvalley/components/": "https://unpkg.com/@kernvalley/components@2.0.10/",\n "@webcomponents/custom-elements": "https://unpkg.com/@webcomponents/custom-elements@1.6.0/custom-elements.min.js",\n "leaflet": "https://unpkg.com/leaflet@1.9.4/dist/leaflet-src.esm.js",\n "leaflet/": "https://unpkg.com/leaflet@1.9.4/dist/",\n "urlpattern-polyfill": "https://unpkg.com/urlpattern-polyfill@10.1.0/index.js",\n "highlight.js": "https://unpkg.com/@highlightjs/cdn-assets@11.11.1/es/core.min.js",\n "highlight.js/": "https://unpkg.com/@highlightjs/cdn-assets@11.11.1/es/",\n "highlight.js/styles/": "https://unpkg.com/@highlightjs/cdn-assets@11.11.1/styles/",\n "@highlightjs/cdn-assets": "https://unpkg.com/@highlightjs/cdn-assets@11.11.1/es/core.min.js",\n "@highlightjs/cdn-assets/": "https://unpkg.com/@highlightjs/cdn-assets@11.11.1/es/",\n "@highlightjs/cdn-assets/styles/": "https://unpkg.com/@highlightjs/cdn-assets@11.11.1/styles/",\n "marked": "https://unpkg.com/marked@18.0.6/lib/marked.esm.js",\n "marked-highlight": "https://unpkg.com/marked-highlight@2.2.4/src/index.js",\n "yaml": "https://unpkg.com/yaml@2.9.0/browser/dist/index.js",\n "yaml/": "https://unpkg.com/yaml@2.9.0/browser/dist/",\n "firebase/": "https://www.gstatic.com/firebasejs/12.12.1/",\n "firebase/app": "https://www.gstatic.com/firebasejs/12.12.1/firebase-app.js",\n "firebase/app-check": "https://www.gstatic.com/firebasejs/12.12.1/firebase-app-check.js",\n "firebase/auth": "https://www.gstatic.com/firebasejs/12.12.1/firebase-auth.js",\n "firebase/database": "https://www.gstatic.com/firebasejs/12.12.1/firebase-database.js",\n "firebase/firestore": "https://www.gstatic.com/firebasejs/12.12.1/firebase-firestore.js",\n "firebase/functions": "https://www.gstatic.com/firebasejs/12.12.1/firebase-functions.js",\n "firebase/messaging": "https://www.gstatic.com/firebasejs/12.12.1/firebase-messaging.js",\n "firebase/performance": "https://www.gstatic.com/firebasejs/12.12.1/firebase-performance.js",\n "firebase/remote-config": "https://www.gstatic.com/firebasejs/12.12.1/firebase-remote-config.js",\n "firebase/storage": "https://www.gstatic.com/firebasejs/12.12.1/firebase-storage.js",\n "firebase/analytics": "https://www.gstatic.com/firebasejs/12.12.1/firebase-analytics.js",\n "qr": "https://unpkg.com/qr@0.6.0/index.js",\n "qr/": "https://unpkg.com/qr@0.6.0/",\n "lit": "https://unpkg.com/lit@3.3.3/index.js",\n "lit/": "https://unpkg.com/lit@3.3.3/",\n "lit-html": "https://unpkg.com/lit-html@3.3.3/lit-html.js",\n "lit-html/": "https://unpkg.com/lit-html@3.3.3/",\n "lit-element": "https://unpkg.com/lit-element@4.2.2/lit-element.js",\n "lit-element/": "https://unpkg.com/lit-element@4.2.2/",\n "@lit/reactive-element": "https://unpkg.com/@lit/reactive-element@2.1.2/reactive-element.js",\n "@lit/reactive-element/": "https://unpkg.com/@lit/reactive-element@2.1.2/",\n "@awesome.me/webawesome/": "https://unpkg.com/@awesome.me/webawesome@3.10.0/",\n "normalize.css": "https://unpkg.com/normalize.css@8.0.1/normalize.css"\n },\n "scopes": {}\n}');
48
245
 
49
246
  const IMPORTMAP_EXP = /<script\b(?=[^>]*\btype=["']importmap["'])(?=(?:[^>]*\bnonce=["'](?<nonce>[^"']*)["'])?)(?=(?:[^>]*\bname=["'](?<name>[^"']*)["'])?)[^>]*>(?<content>[\s\S]*?)<\/script>/i;
50
247
 
51
248
  const imports = data.imports;
52
249
  const scopes = data.scopes;
250
+ new Importmap(data);
53
251
 
54
252
  /**
55
253
  *
@@ -128,7 +326,7 @@ async function updateImportmap(fileName = 'index.html', {
128
326
  }
129
327
  }
130
328
 
131
- var pkg = JSON.parse('{\n "name": "@shgysk8zer0/importmap",\n "version": "1.10.1",\n "engines": {\n "node": ">=20.10.0"\n },\n "description": "Front-End dependencies based on `<script type=\\"importmap\\">`",\n "type": "module",\n "module": "./index.js",\n "main": "./index.cjs",\n "unpkg": "./importmap.js",\n "exports": {\n ".": {\n "import": "./index.js",\n "require": "./index.cjs"\n },\n "./importmap": {\n "import": "./importmap.js"\n },\n "./*.json": {\n "import": "./*.json"\n },\n "./*.js": {\n "import": "./*.js",\n "require": "./*.cjs"\n },\n "./*.mjs": {\n "import": "./*.js"\n },\n "./*.cjs": {\n "require": "./*.cjs"\n },\n "./*": {\n "import": "./*.js",\n "require": "./*.cjs"\n }\n },\n "bin": {\n "importmap-utils": "cli.js",\n "importmap-html": "html.js"\n },\n "scripts": {\n "start": "npx @shgysk8zer0/http-server -c ./http.config.js",\n "test": "npm run lint:js && npm run run:tests && npm run test:imports",\n "preversion": "npm test",\n "postversion": "npm run update",\n "prepare": "npm test && npm run build",\n "update": "node ./update.js",\n "lint:js": "eslint . --ignore-pattern \'importmap.mjs\'",\n "fix:js": "eslint . --fix",\n "build": "npm run build:js",\n "build:js": "rollup -c",\n "test:imports": "rollup -c rollup.test.config.js",\n "run:tests": "node --test *.test.js",\n "create:lock": "npm i --package-lock-only --ignore-scripts --no-audit --no-fund",\n "version:bump": "npm run version:bump:patch",\n "version:bump:patch": "npm version --no-git-tag-version patch && npm run create:lock",\n "version:bump:minor": "npm version --no-git-tag-version minor && npm run create:lock",\n "version:bump:major": "npm version --no-git-tag-version major && npm run create:lock"\n },\n "repository": {\n "type": "git",\n "url": "git+https://github.com/shgysk8zer0/importmap.git"\n },\n "author": "Chris Zuber <admin@kernvalley.us>",\n "license": "MIT",\n "bugs": {\n "url": "https://github.com/shgysk8zer0/importmap/issues"\n },\n "homepage": "https://github.com/shgysk8zer0/importmap#readme",\n "devDependencies": {\n "@shgysk8zer0/eslint-config": "^1.0.9",\n "@shgysk8zer0/js-utils": "^1.0.6",\n "@shgysk8zer0/rollup-import": "^2.0.3",\n "eslint": "^10.4.1"\n },\n "dependencies": {\n "@shgysk8zer0/npm-utils": "^1.2.0",\n "@shgysk8zer0/polyfills": "^0.8.0",\n "commander": "^15.0.0"\n },\n "allowScripts": {\n "fsevents@2.3.3": true\n }\n}\n');
329
+ var pkg = JSON.parse('{\n "name": "@shgysk8zer0/importmap",\n "version": "1.10.3",\n "engines": {\n "node": ">=20.10.0"\n },\n "description": "Front-End dependencies based on `<script type=\\"importmap\\">`",\n "type": "module",\n "module": "./index.js",\n "main": "./index.cjs",\n "unpkg": "./importmap.js",\n "exports": {\n ".": {\n "import": "./index.js",\n "require": "./index.cjs"\n },\n "./importmap": {\n "import": "./importmap.js"\n },\n "./*.json": {\n "import": "./*.json"\n },\n "./*.js": {\n "import": "./*.js",\n "require": "./*.cjs"\n },\n "./*.mjs": {\n "import": "./*.js"\n },\n "./*.cjs": {\n "require": "./*.cjs"\n },\n "./*": {\n "import": "./*.js",\n "require": "./*.cjs"\n }\n },\n "bin": {\n "importmap-utils": "cli.js",\n "importmap-html": "html.js"\n },\n "scripts": {\n "start": "npx @shgysk8zer0/http-server -c ./http.config.js",\n "test": "npm run lint:js && npm run run:tests && npm run test:imports",\n "preversion": "npm test",\n "postversion": "npm run update",\n "prepare": "npm test && npm run build",\n "update": "node ./update.js",\n "lint:js": "eslint . --ignore-pattern \'importmap.mjs\'",\n "fix:js": "eslint . --fix",\n "build": "npm run build:js",\n "build:js": "rollup -c",\n "test:imports": "rollup -c rollup.test.config.js",\n "run:tests": "node --test *.test.js",\n "create:lock": "npm i --package-lock-only --ignore-scripts --no-audit --no-fund",\n "version:bump": "npm run version:bump:patch",\n "version:bump:patch": "npm version --no-git-tag-version patch && npm run create:lock",\n "version:bump:minor": "npm version --no-git-tag-version minor && npm run create:lock",\n "version:bump:major": "npm version --no-git-tag-version major && npm run create:lock"\n },\n "repository": {\n "type": "git",\n "url": "git+https://github.com/shgysk8zer0/importmap.git"\n },\n "author": "Chris Zuber <admin@kernvalley.us>",\n "license": "MIT",\n "bugs": {\n "url": "https://github.com/shgysk8zer0/importmap/issues"\n },\n "homepage": "https://github.com/shgysk8zer0/importmap#readme",\n "devDependencies": {\n "@shgysk8zer0/eslint-config": "^1.1.0",\n "@shgysk8zer0/js-utils": "^1.1.0",\n "@shgysk8zer0/rollup-import": "^2.1.0",\n "eslint": "^10.6.0"\n },\n "dependencies": {\n "@shgysk8zer0/npm-utils": "^1.2.0",\n "@shgysk8zer0/polyfills": "^0.8.6",\n "commander": "^15.0.0"\n },\n "allowScripts": {\n "fsevents@2.3.3": true\n }\n}\n');
132
330
 
133
331
  async function init() {
134
332
  commander.program