@shgysk8zer0/importmap 1.0.1 → 1.0.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 CHANGED
@@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [v1.0.2] - 2023-06-01
10
+
11
+ ### Fixed
12
+ - Fix more typos in `importmap.imports`
13
+ - Add `exports` to handle use via `import` vs `require()`
14
+
9
15
  ## [v1.0.1] - 2023-06-01
10
16
 
11
17
  ### Added
package/index.cjs CHANGED
@@ -24,8 +24,8 @@ const imports = {
24
24
  '@shgysk8zer0/components/': `https://unpkg.com/@shgysk8zer0/components@${versions['@shgysk8zer0/components']}/`,
25
25
  '@kernvalley/components/': `https://unpkg.com/@shgysk8zer0/components@${versions['@shgysk8zer0/components']}/krv/`,
26
26
  '@shgysk8zer0/http-status': `https://unpkg.com/@shgysk8zer0/http-status@${versions['@shgysk8zer0/http-status']}/http-status.js`,
27
- 'leaflet': `https://unpkg.com/leaflet@[${versions.leaflet}]/dist/leaflet-src.esm.js`,
28
- 'firebase/': `https://www.gstatic.com/firebasejs${versions.firebase}/`,
27
+ 'leaflet': `https://unpkg.com/leaflet@${versions.leaflet}/dist/leaflet-src.esm.js`,
28
+ 'firebase/': `https://www.gstatic.com/firebasejs/${versions.firebase}/`,
29
29
  'url-pattern': `https://unpkg.com/urlpattern-polyfill@${versions['url-pattern']}/index.js`,
30
30
  'custom-elements': `https://unpkg.com/@webcomponents/custom-elements@${versions['@webcomponents/custom-elements']}/custom-elements.min.js`,
31
31
  'highlight.js': `https://unpkg.com/@highlightjs/cdn-assets@${versions['highlight.js']}/es/highlight.min.js`,
package/index.js CHANGED
@@ -10,8 +10,8 @@ export const imports = {
10
10
  '@shgysk8zer0/components/': `https://unpkg.com/@shgysk8zer0/components@${versions['@shgysk8zer0/components']}/`,
11
11
  '@kernvalley/components/': `https://unpkg.com/@shgysk8zer0/components@${versions['@shgysk8zer0/components']}/krv/`,
12
12
  '@shgysk8zer0/http-status': `https://unpkg.com/@shgysk8zer0/http-status@${versions['@shgysk8zer0/http-status']}/http-status.js`,
13
- 'leaflet': `https://unpkg.com/leaflet@[${versions.leaflet}]/dist/leaflet-src.esm.js`,
14
- 'firebase/': `https://www.gstatic.com/firebasejs${versions.firebase}/`,
13
+ 'leaflet': `https://unpkg.com/leaflet@${versions.leaflet}/dist/leaflet-src.esm.js`,
14
+ 'firebase/': `https://www.gstatic.com/firebasejs/${versions.firebase}/`,
15
15
  'url-pattern': `https://unpkg.com/urlpattern-polyfill@${versions['url-pattern']}/index.js`,
16
16
  'custom-elements': `https://unpkg.com/@webcomponents/custom-elements@${versions['@webcomponents/custom-elements']}/custom-elements.min.js`,
17
17
  'highlight.js': `https://unpkg.com/@highlightjs/cdn-assets@${versions['highlight.js']}/es/highlight.min.js`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shgysk8zer0/importmap",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "engines": {
5
5
  "node": ">=18.0.0"
6
6
  },
@@ -8,6 +8,10 @@
8
8
  "type": "module",
9
9
  "module": "index.js",
10
10
  "main": "index.cjs",
11
+ "exports": {
12
+ "import": "./index.js",
13
+ "require": "./index.cjs"
14
+ },
11
15
  "scripts": {
12
16
  "test": "npm run lint:js && npm run build",
13
17
  "preversion": "npm test",