Skip to content

Commit

Permalink
6.15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Apr 27, 2024
1 parent a9e092a commit f6648c4
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 12 deletions.
9 changes: 7 additions & 2 deletions dist/s.js
@@ -1,5 +1,5 @@
/*!
* SJS 6.14.3
* SJS 6.15.0
*/
(function () {

Expand Down Expand Up @@ -521,6 +521,11 @@
}
return importMapPromise;
};

systemJSPrototype.getImportMap = function () {
return JSON.parse(JSON.stringify(importMap));
};

if (hasDocument) {
processScripts();
window.addEventListener('DOMContentLoaded', processScripts);
Expand Down Expand Up @@ -552,7 +557,7 @@
else if (script.type === 'systemjs-importmap') {
script.sp = true;
// The passThrough property is for letting the module types fetch implementation know that this is not a SystemJS module.
var fetchPromise = script.src ? (System.fetch || fetch)(script.src, { integrity: script.integrity, passThrough: true }).then(function (res) {
var fetchPromise = script.src ? (System.fetch || fetch)(script.src, { integrity: script.integrity, priority: script.fetchPriority, passThrough: true }).then(function (res) {
if (!res.ok)
throw Error(res.status );
return res.text();
Expand Down
4 changes: 2 additions & 2 deletions dist/s.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/s.min.js.map

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion dist/system-node.cjs
Expand Up @@ -8501,6 +8501,11 @@ systemJSPrototype.prepareImport = function (doProcessScripts) {
}
return importMapPromise;
};

systemJSPrototype.getImportMap = function () {
return JSON.parse(JSON.stringify(importMap));
};

if (hasDocument) {
processScripts();
window.addEventListener('DOMContentLoaded', processScripts);
Expand Down Expand Up @@ -8532,7 +8537,7 @@ function processScripts () {
else if (script.type === 'systemjs-importmap') {
script.sp = true;
// The passThrough property is for letting the module types fetch implementation know that this is not a SystemJS module.
var fetchPromise = script.src ? (System.fetch || fetch)(script.src, { integrity: script.integrity, passThrough: true }).then(function (res) {
var fetchPromise = script.src ? (System.fetch || fetch)(script.src, { integrity: script.integrity, priority: script.fetchPriority, passThrough: true }).then(function (res) {
if (!res.ok)
throw Error(process.env.SYSTEM_PRODUCTION ? res.status : 'Invalid status code: ' + res.status);
return res.text();
Expand Down
9 changes: 7 additions & 2 deletions dist/system.js
@@ -1,5 +1,5 @@
/*!
* SystemJS 6.14.3
* SystemJS 6.15.0
*/
(function () {

Expand Down Expand Up @@ -528,6 +528,11 @@
}
return importMapPromise;
};

systemJSPrototype.getImportMap = function () {
return JSON.parse(JSON.stringify(importMap));
};

if (hasDocument) {
processScripts();
window.addEventListener('DOMContentLoaded', processScripts);
Expand Down Expand Up @@ -559,7 +564,7 @@
else if (script.type === 'systemjs-importmap') {
script.sp = true;
// The passThrough property is for letting the module types fetch implementation know that this is not a SystemJS module.
var fetchPromise = script.src ? (System.fetch || fetch)(script.src, { integrity: script.integrity, passThrough: true }).then(function (res) {
var fetchPromise = script.src ? (System.fetch || fetch)(script.src, { integrity: script.integrity, priority: script.fetchPriority, passThrough: true }).then(function (res) {
if (!res.ok)
throw Error('Invalid status code: ' + res.status);
return res.text();
Expand Down

0 comments on commit f6648c4

Please sign in to comment.