@shgysk8zer0/importmap 1.3.15 → 1.4.2
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 +18 -0
- package/firebase.js +24 -0
- package/importmap.json +26 -13
- package/index.cjs +30 -12
- package/index.mjs +30 -12
- package/package.json +6 -6
- package/unpkg.js +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [v1.4.2] - 2024-08-04
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- Add specifiers for `firebase/*`
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
- More version updates
|
|
16
|
+
|
|
17
|
+
## [v1.4.1] - 2024-07-14
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
- More updates, as usual
|
|
21
|
+
|
|
22
|
+
## [v1.4.0] - 2024-04-24
|
|
23
|
+
|
|
24
|
+
### Added
|
|
25
|
+
- Add `yaml` package
|
|
26
|
+
|
|
9
27
|
## [v1.3.15] - 2024-04-16
|
|
10
28
|
|
|
11
29
|
### Changed
|
package/firebase.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const VERSION_PATTERN = /^[0-9]+\.[0-9]+\.[0-9]+$/;
|
|
2
|
+
const FIREBASE = /^https:\/www\.gstatic.com\/firebasejs\/\d+\.\d+\.\d+\//;
|
|
3
|
+
|
|
4
|
+
export async function getLatestVersion() {
|
|
5
|
+
const { versions } = await fetch('https://registry.npmjs.org/firebase').then(resp => resp.json());
|
|
6
|
+
|
|
7
|
+
return Object.keys(versions)
|
|
8
|
+
.filter(v => VERSION_PATTERN.test(v))
|
|
9
|
+
.sort((a, b) => parseFloat(a) > parseFloat(b)).at(-1);
|
|
10
|
+
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export async function updateFirebase(importmap) {
|
|
14
|
+
const version = await getLatestVersion();
|
|
15
|
+
const { imports = {}, scope = {}, ...rest } = importmap;
|
|
16
|
+
|
|
17
|
+
const firebase = Object.fromEntries(
|
|
18
|
+
Object.entries(importmap.imports)
|
|
19
|
+
.filter(([key]) => key.startsWith('firebase/'))
|
|
20
|
+
.map(([key, value]) => [key, value.replace(FIREBASE, `https://www.gstatic.com/firebasejs/${version}/`)])
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
return { imports: { ...imports, ...firebase }, scope, ...rest };
|
|
24
|
+
}
|
package/importmap.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"imports": {
|
|
3
|
-
"@shgysk8zer0/kazoo/": "https://unpkg.com/@shgysk8zer0/kazoo@1.0.
|
|
3
|
+
"@shgysk8zer0/kazoo/": "https://unpkg.com/@shgysk8zer0/kazoo@1.0.7/",
|
|
4
4
|
"@shgysk8zer0/konami": "https://unpkg.com/@shgysk8zer0/konami@1.1.1/konami.js",
|
|
5
|
-
"@shgysk8zer0/polyfills": "https://unpkg.com/@shgysk8zer0/polyfills@0.3.
|
|
6
|
-
"@shgysk8zer0/polyfills/": "https://unpkg.com/@shgysk8zer0/polyfills@0.3.
|
|
5
|
+
"@shgysk8zer0/polyfills": "https://unpkg.com/@shgysk8zer0/polyfills@0.3.14/all.min.js",
|
|
6
|
+
"@shgysk8zer0/polyfills/": "https://unpkg.com/@shgysk8zer0/polyfills@0.3.14/",
|
|
7
7
|
"@shgysk8zer0/jswaggersheets": "https://unpkg.com/@shgysk8zer0/jswaggersheets@1.1.0/swagger.js",
|
|
8
8
|
"@shgysk8zer0/jswaggersheets/": "https://unpkg.com/@shgysk8zer0/jswaggersheets@1.1.0/",
|
|
9
9
|
"@shgysk8zer0/jss/": "https://unpkg.com/@shgysk8zer0/jss@1.0.1/",
|
|
@@ -26,18 +26,31 @@
|
|
|
26
26
|
"@aegisjsproject/markdown/": "https://unpkg.com/@aegisjsproject/markdown@0.1.2/",
|
|
27
27
|
"@aegisjsproject/aegis-md": "https://unpkg.com/@aegisjsproject/aegis-md@0.0.2/aegis-md.js",
|
|
28
28
|
"@aegisjsproject/aegis-md/": "https://unpkg.com/@aegisjsproject/aegis-md@0.0.2/",
|
|
29
|
-
"@shgysk8zer0/components/": "https://unpkg.com/@shgysk8zer0/components@0.
|
|
30
|
-
"@kernvalley/components/": "https://unpkg.com/@kernvalley/components@2.0.
|
|
29
|
+
"@shgysk8zer0/components/": "https://unpkg.com/@shgysk8zer0/components@0.3.10/",
|
|
30
|
+
"@kernvalley/components/": "https://unpkg.com/@kernvalley/components@2.0.5/",
|
|
31
31
|
"@webcomponents/custom-elements": "https://unpkg.com/@webcomponents/custom-elements@1.6.0/custom-elements.min.js",
|
|
32
32
|
"leaflet": "https://unpkg.com/leaflet@1.9.4/dist/leaflet-src.esm.js",
|
|
33
33
|
"urlpattern-polyfill": "https://unpkg.com/urlpattern-polyfill@10.0.0/index.js",
|
|
34
|
-
"highlight.js": "https://unpkg.com/@highlightjs/cdn-assets@11.
|
|
35
|
-
"highlight.js/": "https://unpkg.com/@highlightjs/cdn-assets@11.
|
|
36
|
-
"@highlightjs/cdn-assets": "https://unpkg.com/@highlightjs/cdn-assets@11.
|
|
37
|
-
"@highlightjs/cdn-assets/": "https://unpkg.com/@highlightjs/cdn-assets@11.
|
|
38
|
-
"marked": "https://unpkg.com/marked@
|
|
39
|
-
"marked-highlight": "https://unpkg.com/marked-highlight@2.1.
|
|
40
|
-
"
|
|
34
|
+
"highlight.js": "https://unpkg.com/@highlightjs/cdn-assets@11.10.0/es/core.min.js",
|
|
35
|
+
"highlight.js/": "https://unpkg.com/@highlightjs/cdn-assets@11.10.0/es/",
|
|
36
|
+
"@highlightjs/cdn-assets": "https://unpkg.com/@highlightjs/cdn-assets@11.10.0/es/core.min.js",
|
|
37
|
+
"@highlightjs/cdn-assets/": "https://unpkg.com/@highlightjs/cdn-assets@11.10.0/es/",
|
|
38
|
+
"marked": "https://unpkg.com/marked@13.0.3/lib/marked.esm.js",
|
|
39
|
+
"marked-highlight": "https://unpkg.com/marked-highlight@2.1.3/src/index.js",
|
|
40
|
+
"yaml": "https://unpkg.com/yaml@2.5.0/browser/dist/index.js",
|
|
41
|
+
"yaml/": "https://unpkg.com/yaml@2.5.0/browser/dist/",
|
|
42
|
+
"firebase/": "https://www.gstatic.com/firebasejs/10.12.1/",
|
|
43
|
+
"firebase/app": "https://www.gstatic.com/firebasejs/10.12.1/firebase-app.js",
|
|
44
|
+
"firebase/app-check": "https://www.gstatic.com/firebasejs/10.12.1/firebase-app-check.js",
|
|
45
|
+
"firebase/auth": "https://www.gstatic.com/firebasejs/10.12.1/firebase-auth.js",
|
|
46
|
+
"firebase/database": "https://www.gstatic.com/firebasejs/10.12.1/firebase-database.js",
|
|
47
|
+
"firebase/firestore": "https://www.gstatic.com/firebasejs/10.12.1/firebase-firestore.js",
|
|
48
|
+
"firebase/functions": "https://www.gstatic.com/firebasejs/10.12.1/firebase-functions.js",
|
|
49
|
+
"firebase/messaging": "https://www.gstatic.com/firebasejs/10.12.1/firebase-messaging.js",
|
|
50
|
+
"firebase/performance": "https://www.gstatic.com/firebasejs/10.12.1/firebase-performance.js",
|
|
51
|
+
"firebase/remote-config": "https://www.gstatic.com/firebasejs/10.12.1/firebase-remote-config.js",
|
|
52
|
+
"firebase/storage": "https://www.gstatic.com/firebasejs/10.12.1/firebase-storage.js",
|
|
53
|
+
"firebase/analytics": "https://www.gstatic.com/firebasejs/10.12.1/firebase-analytics.js"
|
|
41
54
|
},
|
|
42
55
|
"scope": {}
|
|
43
|
-
}
|
|
56
|
+
}
|
package/index.cjs
CHANGED
|
@@ -6,10 +6,10 @@ var json_js = require('@shgysk8zer0/npm-utils/json.js');
|
|
|
6
6
|
var path_js = require('@shgysk8zer0/npm-utils/path.js');
|
|
7
7
|
|
|
8
8
|
const imports$1 = {
|
|
9
|
-
"@shgysk8zer0/kazoo/": "https://unpkg.com/@shgysk8zer0/kazoo@1.0.
|
|
9
|
+
"@shgysk8zer0/kazoo/": "https://unpkg.com/@shgysk8zer0/kazoo@1.0.7/",
|
|
10
10
|
"@shgysk8zer0/konami": "https://unpkg.com/@shgysk8zer0/konami@1.1.1/konami.js",
|
|
11
|
-
"@shgysk8zer0/polyfills": "https://unpkg.com/@shgysk8zer0/polyfills@0.3.
|
|
12
|
-
"@shgysk8zer0/polyfills/": "https://unpkg.com/@shgysk8zer0/polyfills@0.3.
|
|
11
|
+
"@shgysk8zer0/polyfills": "https://unpkg.com/@shgysk8zer0/polyfills@0.3.14/all.min.js",
|
|
12
|
+
"@shgysk8zer0/polyfills/": "https://unpkg.com/@shgysk8zer0/polyfills@0.3.14/",
|
|
13
13
|
"@shgysk8zer0/jswaggersheets": "https://unpkg.com/@shgysk8zer0/jswaggersheets@1.1.0/swagger.js",
|
|
14
14
|
"@shgysk8zer0/jswaggersheets/": "https://unpkg.com/@shgysk8zer0/jswaggersheets@1.1.0/",
|
|
15
15
|
"@shgysk8zer0/jss/": "https://unpkg.com/@shgysk8zer0/jss@1.0.1/",
|
|
@@ -32,18 +32,31 @@ const imports$1 = {
|
|
|
32
32
|
"@aegisjsproject/markdown/": "https://unpkg.com/@aegisjsproject/markdown@0.1.2/",
|
|
33
33
|
"@aegisjsproject/aegis-md": "https://unpkg.com/@aegisjsproject/aegis-md@0.0.2/aegis-md.js",
|
|
34
34
|
"@aegisjsproject/aegis-md/": "https://unpkg.com/@aegisjsproject/aegis-md@0.0.2/",
|
|
35
|
-
"@shgysk8zer0/components/": "https://unpkg.com/@shgysk8zer0/components@0.
|
|
36
|
-
"@kernvalley/components/": "https://unpkg.com/@kernvalley/components@2.0.
|
|
35
|
+
"@shgysk8zer0/components/": "https://unpkg.com/@shgysk8zer0/components@0.3.10/",
|
|
36
|
+
"@kernvalley/components/": "https://unpkg.com/@kernvalley/components@2.0.5/",
|
|
37
37
|
"@webcomponents/custom-elements": "https://unpkg.com/@webcomponents/custom-elements@1.6.0/custom-elements.min.js",
|
|
38
38
|
leaflet: "https://unpkg.com/leaflet@1.9.4/dist/leaflet-src.esm.js",
|
|
39
39
|
"urlpattern-polyfill": "https://unpkg.com/urlpattern-polyfill@10.0.0/index.js",
|
|
40
|
-
"highlight.js": "https://unpkg.com/@highlightjs/cdn-assets@11.
|
|
41
|
-
"highlight.js/": "https://unpkg.com/@highlightjs/cdn-assets@11.
|
|
42
|
-
"@highlightjs/cdn-assets": "https://unpkg.com/@highlightjs/cdn-assets@11.
|
|
43
|
-
"@highlightjs/cdn-assets/": "https://unpkg.com/@highlightjs/cdn-assets@11.
|
|
44
|
-
marked: "https://unpkg.com/marked@
|
|
45
|
-
"marked-highlight": "https://unpkg.com/marked-highlight@2.1.
|
|
46
|
-
|
|
40
|
+
"highlight.js": "https://unpkg.com/@highlightjs/cdn-assets@11.10.0/es/core.min.js",
|
|
41
|
+
"highlight.js/": "https://unpkg.com/@highlightjs/cdn-assets@11.10.0/es/",
|
|
42
|
+
"@highlightjs/cdn-assets": "https://unpkg.com/@highlightjs/cdn-assets@11.10.0/es/core.min.js",
|
|
43
|
+
"@highlightjs/cdn-assets/": "https://unpkg.com/@highlightjs/cdn-assets@11.10.0/es/",
|
|
44
|
+
marked: "https://unpkg.com/marked@13.0.3/lib/marked.esm.js",
|
|
45
|
+
"marked-highlight": "https://unpkg.com/marked-highlight@2.1.3/src/index.js",
|
|
46
|
+
yaml: "https://unpkg.com/yaml@2.5.0/browser/dist/index.js",
|
|
47
|
+
"yaml/": "https://unpkg.com/yaml@2.5.0/browser/dist/",
|
|
48
|
+
"firebase/": "https://www.gstatic.com/firebasejs/10.12.1/",
|
|
49
|
+
"firebase/app": "https://www.gstatic.com/firebasejs/10.12.1/firebase-app.js",
|
|
50
|
+
"firebase/app-check": "https://www.gstatic.com/firebasejs/10.12.1/firebase-app-check.js",
|
|
51
|
+
"firebase/auth": "https://www.gstatic.com/firebasejs/10.12.1/firebase-auth.js",
|
|
52
|
+
"firebase/database": "https://www.gstatic.com/firebasejs/10.12.1/firebase-database.js",
|
|
53
|
+
"firebase/firestore": "https://www.gstatic.com/firebasejs/10.12.1/firebase-firestore.js",
|
|
54
|
+
"firebase/functions": "https://www.gstatic.com/firebasejs/10.12.1/firebase-functions.js",
|
|
55
|
+
"firebase/messaging": "https://www.gstatic.com/firebasejs/10.12.1/firebase-messaging.js",
|
|
56
|
+
"firebase/performance": "https://www.gstatic.com/firebasejs/10.12.1/firebase-performance.js",
|
|
57
|
+
"firebase/remote-config": "https://www.gstatic.com/firebasejs/10.12.1/firebase-remote-config.js",
|
|
58
|
+
"firebase/storage": "https://www.gstatic.com/firebasejs/10.12.1/firebase-storage.js",
|
|
59
|
+
"firebase/analytics": "https://www.gstatic.com/firebasejs/10.12.1/firebase-analytics.js"
|
|
47
60
|
};
|
|
48
61
|
const scope$1 = {
|
|
49
62
|
};
|
|
@@ -167,6 +180,10 @@ async function update(imports) {
|
|
|
167
180
|
return { imports: Object.fromEntries(entries), updated };
|
|
168
181
|
}
|
|
169
182
|
|
|
183
|
+
async function updateUnpkg(imports) {
|
|
184
|
+
return update(imports);
|
|
185
|
+
}
|
|
186
|
+
|
|
170
187
|
async function updateYAML(file) {
|
|
171
188
|
if (typeof file === 'string') {
|
|
172
189
|
return await updateJSON(path_js.getFileURL(file));
|
|
@@ -208,6 +225,7 @@ var unpkg = /*#__PURE__*/Object.freeze({
|
|
|
208
225
|
__proto__: null,
|
|
209
226
|
update: update,
|
|
210
227
|
updateJSON: updateJSON,
|
|
228
|
+
updateUnpkg: updateUnpkg,
|
|
211
229
|
updateYAML: updateYAML
|
|
212
230
|
});
|
|
213
231
|
|
package/index.mjs
CHANGED
|
@@ -4,10 +4,10 @@ import { readJSONFile, writeJSONFile } from '@shgysk8zer0/npm-utils/json.js';
|
|
|
4
4
|
import { getFileURL } from '@shgysk8zer0/npm-utils/path.js';
|
|
5
5
|
|
|
6
6
|
const imports$1 = {
|
|
7
|
-
"@shgysk8zer0/kazoo/": "https://unpkg.com/@shgysk8zer0/kazoo@1.0.
|
|
7
|
+
"@shgysk8zer0/kazoo/": "https://unpkg.com/@shgysk8zer0/kazoo@1.0.7/",
|
|
8
8
|
"@shgysk8zer0/konami": "https://unpkg.com/@shgysk8zer0/konami@1.1.1/konami.js",
|
|
9
|
-
"@shgysk8zer0/polyfills": "https://unpkg.com/@shgysk8zer0/polyfills@0.3.
|
|
10
|
-
"@shgysk8zer0/polyfills/": "https://unpkg.com/@shgysk8zer0/polyfills@0.3.
|
|
9
|
+
"@shgysk8zer0/polyfills": "https://unpkg.com/@shgysk8zer0/polyfills@0.3.14/all.min.js",
|
|
10
|
+
"@shgysk8zer0/polyfills/": "https://unpkg.com/@shgysk8zer0/polyfills@0.3.14/",
|
|
11
11
|
"@shgysk8zer0/jswaggersheets": "https://unpkg.com/@shgysk8zer0/jswaggersheets@1.1.0/swagger.js",
|
|
12
12
|
"@shgysk8zer0/jswaggersheets/": "https://unpkg.com/@shgysk8zer0/jswaggersheets@1.1.0/",
|
|
13
13
|
"@shgysk8zer0/jss/": "https://unpkg.com/@shgysk8zer0/jss@1.0.1/",
|
|
@@ -30,18 +30,31 @@ const imports$1 = {
|
|
|
30
30
|
"@aegisjsproject/markdown/": "https://unpkg.com/@aegisjsproject/markdown@0.1.2/",
|
|
31
31
|
"@aegisjsproject/aegis-md": "https://unpkg.com/@aegisjsproject/aegis-md@0.0.2/aegis-md.js",
|
|
32
32
|
"@aegisjsproject/aegis-md/": "https://unpkg.com/@aegisjsproject/aegis-md@0.0.2/",
|
|
33
|
-
"@shgysk8zer0/components/": "https://unpkg.com/@shgysk8zer0/components@0.
|
|
34
|
-
"@kernvalley/components/": "https://unpkg.com/@kernvalley/components@2.0.
|
|
33
|
+
"@shgysk8zer0/components/": "https://unpkg.com/@shgysk8zer0/components@0.3.10/",
|
|
34
|
+
"@kernvalley/components/": "https://unpkg.com/@kernvalley/components@2.0.5/",
|
|
35
35
|
"@webcomponents/custom-elements": "https://unpkg.com/@webcomponents/custom-elements@1.6.0/custom-elements.min.js",
|
|
36
36
|
leaflet: "https://unpkg.com/leaflet@1.9.4/dist/leaflet-src.esm.js",
|
|
37
37
|
"urlpattern-polyfill": "https://unpkg.com/urlpattern-polyfill@10.0.0/index.js",
|
|
38
|
-
"highlight.js": "https://unpkg.com/@highlightjs/cdn-assets@11.
|
|
39
|
-
"highlight.js/": "https://unpkg.com/@highlightjs/cdn-assets@11.
|
|
40
|
-
"@highlightjs/cdn-assets": "https://unpkg.com/@highlightjs/cdn-assets@11.
|
|
41
|
-
"@highlightjs/cdn-assets/": "https://unpkg.com/@highlightjs/cdn-assets@11.
|
|
42
|
-
marked: "https://unpkg.com/marked@
|
|
43
|
-
"marked-highlight": "https://unpkg.com/marked-highlight@2.1.
|
|
44
|
-
|
|
38
|
+
"highlight.js": "https://unpkg.com/@highlightjs/cdn-assets@11.10.0/es/core.min.js",
|
|
39
|
+
"highlight.js/": "https://unpkg.com/@highlightjs/cdn-assets@11.10.0/es/",
|
|
40
|
+
"@highlightjs/cdn-assets": "https://unpkg.com/@highlightjs/cdn-assets@11.10.0/es/core.min.js",
|
|
41
|
+
"@highlightjs/cdn-assets/": "https://unpkg.com/@highlightjs/cdn-assets@11.10.0/es/",
|
|
42
|
+
marked: "https://unpkg.com/marked@13.0.3/lib/marked.esm.js",
|
|
43
|
+
"marked-highlight": "https://unpkg.com/marked-highlight@2.1.3/src/index.js",
|
|
44
|
+
yaml: "https://unpkg.com/yaml@2.5.0/browser/dist/index.js",
|
|
45
|
+
"yaml/": "https://unpkg.com/yaml@2.5.0/browser/dist/",
|
|
46
|
+
"firebase/": "https://www.gstatic.com/firebasejs/10.12.1/",
|
|
47
|
+
"firebase/app": "https://www.gstatic.com/firebasejs/10.12.1/firebase-app.js",
|
|
48
|
+
"firebase/app-check": "https://www.gstatic.com/firebasejs/10.12.1/firebase-app-check.js",
|
|
49
|
+
"firebase/auth": "https://www.gstatic.com/firebasejs/10.12.1/firebase-auth.js",
|
|
50
|
+
"firebase/database": "https://www.gstatic.com/firebasejs/10.12.1/firebase-database.js",
|
|
51
|
+
"firebase/firestore": "https://www.gstatic.com/firebasejs/10.12.1/firebase-firestore.js",
|
|
52
|
+
"firebase/functions": "https://www.gstatic.com/firebasejs/10.12.1/firebase-functions.js",
|
|
53
|
+
"firebase/messaging": "https://www.gstatic.com/firebasejs/10.12.1/firebase-messaging.js",
|
|
54
|
+
"firebase/performance": "https://www.gstatic.com/firebasejs/10.12.1/firebase-performance.js",
|
|
55
|
+
"firebase/remote-config": "https://www.gstatic.com/firebasejs/10.12.1/firebase-remote-config.js",
|
|
56
|
+
"firebase/storage": "https://www.gstatic.com/firebasejs/10.12.1/firebase-storage.js",
|
|
57
|
+
"firebase/analytics": "https://www.gstatic.com/firebasejs/10.12.1/firebase-analytics.js"
|
|
45
58
|
};
|
|
46
59
|
const scope$1 = {
|
|
47
60
|
};
|
|
@@ -165,6 +178,10 @@ async function update(imports) {
|
|
|
165
178
|
return { imports: Object.fromEntries(entries), updated };
|
|
166
179
|
}
|
|
167
180
|
|
|
181
|
+
async function updateUnpkg(imports) {
|
|
182
|
+
return update(imports);
|
|
183
|
+
}
|
|
184
|
+
|
|
168
185
|
async function updateYAML(file) {
|
|
169
186
|
if (typeof file === 'string') {
|
|
170
187
|
return await updateJSON(getFileURL(file));
|
|
@@ -206,6 +223,7 @@ var unpkg = /*#__PURE__*/Object.freeze({
|
|
|
206
223
|
__proto__: null,
|
|
207
224
|
update: update,
|
|
208
225
|
updateJSON: updateJSON,
|
|
226
|
+
updateUnpkg: updateUnpkg,
|
|
209
227
|
updateYAML: updateYAML
|
|
210
228
|
});
|
|
211
229
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shgysk8zer0/importmap",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=18.0.0"
|
|
6
6
|
},
|
|
@@ -59,15 +59,15 @@
|
|
|
59
59
|
},
|
|
60
60
|
"homepage": "https://github.com/shgysk8zer0/importmap#readme",
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@babel/eslint-parser": "^7.24.
|
|
63
|
-
"@babel/eslint-plugin": "^7.
|
|
64
|
-
"@babel/plugin-syntax-import-assertions": "^7.24.
|
|
62
|
+
"@babel/eslint-parser": "^7.24.8",
|
|
63
|
+
"@babel/eslint-plugin": "^7.24.7",
|
|
64
|
+
"@babel/plugin-syntax-import-assertions": "^7.24.7",
|
|
65
65
|
"@rollup/plugin-json": "^6.1.0",
|
|
66
66
|
"@shgysk8zer0/js-utils": "^1.0.1",
|
|
67
67
|
"@shgysk8zer0/rollup-import": "^1.2.2"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@shgysk8zer0/npm-utils": "^1.1.
|
|
71
|
-
"commander": "^12.
|
|
70
|
+
"@shgysk8zer0/npm-utils": "^1.1.3",
|
|
71
|
+
"commander": "^12.1.0"
|
|
72
72
|
}
|
|
73
73
|
}
|
package/unpkg.js
CHANGED
|
@@ -23,6 +23,10 @@ export async function update(imports) {
|
|
|
23
23
|
return { imports: Object.fromEntries(entries), updated };
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
export async function updateUnpkg(imports) {
|
|
27
|
+
return update(imports);
|
|
28
|
+
}
|
|
29
|
+
|
|
26
30
|
export async function updateYAML(file) {
|
|
27
31
|
if (typeof file === 'string') {
|
|
28
32
|
return await updateJSON(getFileURL(file));
|