Skip to content

Commit 87abd05

Browse files
committed
chore: downgrade jspm generator
1 parent c4a6894 commit 87abd05

4 files changed

Lines changed: 26 additions & 16 deletions

File tree

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@
285285
"@actions/glob": "^0.5.0",
286286
"@commitlint/cli": "^19.4.0",
287287
"@commitlint/config-conventional": "^19.2.2",
288-
"@jspm/generator": "^2.8.0",
288+
"@jspm/generator": "~2.7.6",
289289
"@lit/react": "^1.0.8",
290290
"@octokit/core": "^6.1.2",
291291
"@patternfly/patternfly": "^4.224.5",
Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,27 @@
1-
diff --git a/node_modules/@jspm/generator/dist/generator-2eaaa40d.js b/node_modules/@jspm/generator/dist/generator-2eaaa40d.js
2-
index b617495..ed7aedd 100644
3-
--- a/node_modules/@jspm/generator/dist/generator-2eaaa40d.js
4-
+++ b/node_modules/@jspm/generator/dist/generator-2eaaa40d.js
5-
@@ -3775,7 +3775,7 @@ function _define_property$2(obj, key, value) {
1+
diff --git a/node_modules/@jspm/generator/dist/generator-790b7aa7.js b/node_modules/@jspm/generator/dist/generator-790b7aa7.js
2+
index 269fffc..dc7527c 100644
3+
--- a/node_modules/@jspm/generator/dist/generator-790b7aa7.js
4+
+++ b/node_modules/@jspm/generator/dist/generator-790b7aa7.js
5+
@@ -3314,6 +3314,9 @@ async function extractLockConstraintsAndMap(log, map, preloadUrls, mapUrl, rootU
6+
}
7+
if (installSubpath !== false) {
8+
setResolution(locks, parsedKey.pkgName, pkgUrl, null, installSubpath);
9+
+ if (key.endsWith('/')) {
10+
+ maps.imports[key] = map.imports[key]
11+
+ }
12+
return;
13+
}
14+
}
15+
@@ -3825,7 +3828,7 @@ function _define_property$2(obj, key, value) {
616
return obj;
717
}
8-
function combineSubpaths(traceSubpath) {
18+
function combineSubpaths(installSubpath, traceSubpath) {
919
- if (traceSubpath.endsWith('/')) throw new Error('Trailing slash subpaths unsupported');
1020
+ if (traceSubpath.endsWith('/')) return traceSubpath;
11-
return traceSubpath;
21+
return installSubpath === null || installSubpath === '.' || traceSubpath === '.' ? installSubpath || traceSubpath : `${installSubpath}${traceSubpath.slice(1)}`;
1222
}
1323
class TraceMap {
14-
@@ -3819,7 +3819,7 @@ class TraceMap {
24+
@@ -3869,7 +3872,7 @@ class TraceMap {
1525
// very likely that the user has some CommonJS dependencies, but this is
1626
// something that the user has to explicitly enable:
1727
if (isBuiltinScheme(resolved)) return null;
@@ -20,7 +30,7 @@ index b617495..ed7aedd 100644
2030
try {
2131
var entry = await this.resolver.analyze(resolved);
2232
} catch (e) {
23-
@@ -5065,7 +5065,7 @@ function createFetchOptions(cache = true, fetchOptions = {}) {
33+
@@ -5112,7 +5115,7 @@ function createFetchOptions(cache = true, fetchOptions = {}) {
2434
replacer.remove(existingComment.start, existingComment.end, true);
2535
}
2636
}

tools/pfe-tools/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"@11ty/eleventy-plugin-directory-output": "^1.0.1",
6868
"@11ty/eleventy-plugin-syntaxhighlight": "^5.0.0",
6969
"@changesets/cli": "^2.28.1",
70-
"@jspm/generator": "^2.0.1",
70+
"@jspm/generator": "~2.7.6",
7171
"@koa/router": "^12.0.1",
7272
"@lit-labs/ssr": "^4.0.0",
7373
"@open-wc/testing": "^4.0.0",

0 commit comments

Comments
 (0)