@jsenv/core 30.0.1 → 30.0.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.
@@ -49,8 +49,9 @@ const resolveAssociations = (associations, baseUrl) => {
49
49
  const normalizeUrlPattern = (urlPattern, baseUrl) => {
50
50
  // starts with a scheme
51
51
  if (/^[a-zA-Z]{2,}:/.test(urlPattern)) {
52
- return urlPattern;
52
+ return new URL(urlPattern).href; // to perform url encoding of url resource
53
53
  }
54
+
54
55
  return String(new URL(urlPattern, baseUrl));
55
56
  };
56
57
 
package/dist/main.js CHANGED
@@ -1394,7 +1394,7 @@ const collectFiles = async ({
1394
1394
  followLink: false
1395
1395
  });
1396
1396
  if (directoryChildNodeStats.isDirectory()) {
1397
- const subDirectoryUrl = `${decodeURIComponent(directoryChildNodeUrl)}/`;
1397
+ const subDirectoryUrl = `${directoryChildNodeUrl}/`;
1398
1398
  if (!URL_META.urlChildMayMatch({
1399
1399
  url: subDirectoryUrl,
1400
1400
  associations,
@@ -1407,7 +1407,7 @@ const collectFiles = async ({
1407
1407
  }
1408
1408
  if (directoryChildNodeStats.isFile()) {
1409
1409
  const meta = URL_META.applyAssociations({
1410
- url: decodeURIComponent(directoryChildNodeUrl),
1410
+ url: directoryChildNodeUrl,
1411
1411
  associations
1412
1412
  });
1413
1413
  if (!predicate(meta)) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/core",
3
- "version": "30.0.1",
3
+ "version": "30.0.3",
4
4
  "description": "Tool to develop, test and build js projects",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -69,16 +69,16 @@
69
69
  "@jsenv/abort": "4.2.4",
70
70
  "@jsenv/ast": "1.4.8",
71
71
  "@jsenv/babel-plugins": "1.1.0",
72
- "@jsenv/plugin-bundling": "1.0.0",
73
- "@jsenv/filesystem": "4.1.6",
72
+ "@jsenv/plugin-bundling": "1.0.1",
73
+ "@jsenv/filesystem": "4.1.8",
74
74
  "@jsenv/importmap": "1.2.1",
75
75
  "@jsenv/integrity": "0.0.1",
76
76
  "@jsenv/log": "3.3.2",
77
77
  "@jsenv/node-esm-resolution": "1.0.1",
78
- "@jsenv/server": "14.1.11",
78
+ "@jsenv/server": "14.1.12",
79
79
  "@jsenv/sourcemap": "1.0.8",
80
80
  "@jsenv/uneval": "1.6.0",
81
- "@jsenv/url-meta": "7.0.0",
81
+ "@jsenv/url-meta": "7.0.1",
82
82
  "@jsenv/urls": "1.2.8",
83
83
  "@jsenv/utils": "2.0.1",
84
84
  "construct-style-sheets-polyfill": "3.1.0",