mirror of
https://github.com/systemjs/systemjs.git
synced 2026-01-25 14:57:38 +00:00
3.1.3
This commit is contained in:
parent
af700ef99e
commit
e57027fd40
@ -1,3 +1,7 @@
|
||||
SystemJS 3.1.3 (2019/04/18)
|
||||
* Add Web Worker support to the s.js build (https://github.com/systemjs/systemjs/commits/cbea1530a194d7)
|
||||
* Fix an IE11 bug due to object shorthand (https://github.com/systemjs/systemjs/commits/551b2e8ec7bda1)
|
||||
|
||||
SystemJS 3.1.2 (2019/04/13)
|
||||
* Fix an async execution bug in s.js (https://github.com/systemjs/systemjs/issues/1924, https://github.com/systemjs/systemjs/commits/c274caa172b03b24)
|
||||
|
||||
|
||||
2
dist/extras/amd.js
vendored
2
dist/extras/amd.js
vendored
@ -101,7 +101,7 @@
|
||||
if (typeof name === 'string') {
|
||||
if (amdDefineDeps) {
|
||||
if (!System.registerRegistry)
|
||||
throw new Error('Include the named register extension named AMD support in SystemJS.');
|
||||
throw new Error('Include the named register extension for SystemJS named AMD support.');
|
||||
System.registerRegistry[name] = createAMDRegister(deps, execute);
|
||||
amdDefineDeps = [];
|
||||
amdDefineExec = emptyFn;
|
||||
|
||||
2
dist/extras/amd.min.js
vendored
2
dist/extras/amd.min.js
vendored
@ -1 +1 @@
|
||||
!function(e){const t=System.constructor.prototype,r=[[],function(){return{}}];function n(){throw new Error("AMD require not supported.")}function o(){}const s=["require","exports","module"];function i(e,t){const r={},o={exports:r},s=[],i=[];let u=0;for(let t=0;t<e.length;t++){const f=e[t],c=i.length;if("require"===f)s[t]=n,u++;else if("module"===f)s[t]=o,u++;else if("exports"===f)s[t]=r,u++;else{const e=t;i.push(function(t){s[e]=t.default})}u&&(e[c]=f)}u&&(e.length-=u);const f=t;return[e,function(e){return e("default",r),{setters:i,execute:function(){o.exports=f.apply(r,s)||o.exports,r!==o.exports&&e("default",o.exports)}}}]}let u;const f=t.register;3===f.length?t.register=function(e,t,r){"string"!=typeof e&&(u=t),f.apply(this,arguments)}:t.register=function(e,t){u=t,f.apply(this,arguments)};const c=t.getRegister;let l,p;t.getRegister=function(){const e=c.call(this);if(e&&e[1]===u)return e;if(!l)return e||r;const t=i(l,p);return l=null,t},e.define=function(e,t,r){if("string"==typeof e){if(l){if(!System.registerRegistry)throw new Error("Include the named register extension named AMD support in SystemJS.");return System.registerRegistry[e]=i(t,r),l=[],void(p=o)}System.registerRegistry&&(System.registerRegistry[e]=i(t,r)),e=t,t=r}e instanceof Array?(l=e,p=t):"object"==typeof e?(l=[],p=function(){return e}):"function"==typeof e&&(l=s,p=e)},e.define.amd={}}("undefined"!=typeof self?self:global);
|
||||
!function(e){const t=System.constructor.prototype,r=[[],function(){return{}}];function n(){throw new Error("AMD require not supported.")}function o(){}const s=["require","exports","module"];function i(e,t){const r={},o={exports:r},s=[],i=[];let f=0;for(let t=0;t<e.length;t++){const u=e[t],c=i.length;if("require"===u)s[t]=n,f++;else if("module"===u)s[t]=o,f++;else if("exports"===u)s[t]=r,f++;else{const e=t;i.push(function(t){s[e]=t.default})}f&&(e[c]=u)}f&&(e.length-=f);const u=t;return[e,function(e){return e("default",r),{setters:i,execute:function(){o.exports=u.apply(r,s)||o.exports,r!==o.exports&&e("default",o.exports)}}}]}let f;const u=t.register;3===u.length?t.register=function(e,t,r){"string"!=typeof e&&(f=t),u.apply(this,arguments)}:t.register=function(e,t){f=t,u.apply(this,arguments)};const c=t.getRegister;let l,p;t.getRegister=function(){const e=c.call(this);if(e&&e[1]===f)return e;if(!l)return e||r;const t=i(l,p);return l=null,t},e.define=function(e,t,r){if("string"==typeof e){if(l){if(!System.registerRegistry)throw new Error("Include the named register extension for SystemJS named AMD support.");return System.registerRegistry[e]=i(t,r),l=[],void(p=o)}System.registerRegistry&&(System.registerRegistry[e]=i(t,r)),e=t,t=r}e instanceof Array?(l=e,p=t):"object"==typeof e?(l=[],p=function(){return e}):"function"==typeof e&&(l=s,p=e)},e.define.amd={}}("undefined"!=typeof self?self:global);
|
||||
2
dist/extras/amd.min.js.map
vendored
2
dist/extras/amd.min.js.map
vendored
@ -1 +1 @@
|
||||
{"version":3,"sources":["amd.js"],"names":["global","systemPrototype","System","constructor","prototype","emptyInstantiation","unsupportedRequire","Error","emptyFn","requireExportsModule","createAMDRegister","amdDefineDeps","amdDefineExec","exports","module","depModules","setters","splice","i","length","id","index","idx","push","ns","default","amdExec","_export","execute","apply","lastRegisterDeclare","systemRegister","register","name","deps","declare","this","arguments","getRegister","call","registration","define","registerRegistry","Array","amd","self"],"mappings":"CAGA,SAAWA,GACT,MAAMC,EAAkBC,OAAOC,YAAYC,UAErCC,EAAqB,CAAC,GAAI,WAAc,MAAO,KAErD,SAASC,IACP,MAAM,IAAIC,MAAM,8BAGlB,SAASC,KAET,MAAMC,EAAuB,CAAC,UAAW,UAAW,UAEpD,SAASC,EAAmBC,EAAeC,GACzC,MAAMC,EAAU,GACVC,EAAS,CAAED,QAASA,GACpBE,EAAa,GACbC,EAAU,GAChB,IAAIC,EAAS,EACb,IAAK,IAAIC,EAAI,EAAGA,EAAIP,EAAcQ,OAAQD,IAAK,CAC7C,MAAME,EAAKT,EAAcO,GACnBG,EAAQL,EAAQG,OACtB,GAAW,YAAPC,EACFL,EAAWG,GAAKZ,EAChBW,SAEG,GAAW,WAAPG,EACPL,EAAWG,GAAKJ,EAChBG,SAEG,GAAW,YAAPG,EACPL,EAAWG,GAAKL,EAChBI,QAEG,CAEH,MAAMK,EAAMJ,EACZF,EAAQO,KAAK,SAAUC,GACrBT,EAAWO,GAAOE,EAAGC,UAGrBR,IACFN,EAAcU,GAASD,GAEvBH,IACFN,EAAcQ,QAAUF,GAC1B,MAAMS,EAAUd,EAChB,MAAO,CAACD,EAAe,SAAUgB,GAE/B,OADAA,EAAQ,UAAWd,GACZ,CACLG,QAASA,EACTY,QAAS,WACPd,EAAOD,QAAUa,EAAQG,MAAMhB,EAASE,IAAeD,EAAOD,QAC1DA,IAAYC,EAAOD,SACrBc,EAAQ,UAAWb,EAAOD,aAOpC,IAAIiB,EACJ,MAAMC,EAAiB9B,EAAgB+B,SAET,IAA1BD,EAAeZ,OACjBlB,EAAgB+B,SAAW,SAAUC,EAAMC,EAAMC,GAC3B,iBAATF,IACTH,EAAsBI,GACxBH,EAAeF,MAAMO,KAAMC,YAI7BpC,EAAgB+B,SAAW,SAAUE,EAAMC,GACzCL,EAAsBK,EACtBJ,EAAeF,MAAMO,KAAMC,YAI/B,MAAMC,EAAcrC,EAAgBqC,YAgBpC,IAAI3B,EAAeC,EAfnBX,EAAgBqC,YAAc,WAC5B,MAAMN,EAAWM,EAAYC,KAAKH,MAElC,GAAIJ,GAAYA,EAAS,KAAOF,EAC9B,OAAOE,EAIT,IAAKrB,EACH,OAAOqB,GAAY3B,EAErB,MAAMmC,EAAe9B,EAAkBC,EAAeC,GAEtD,OADAD,EAAgB,KACT6B,GAGTxC,EAAOyC,OAAS,SAAUR,EAAMC,EAAMN,GAEpC,GAAoB,iBAATK,EAAmB,CAC5B,GAAItB,EAAe,CACjB,IAAKT,OAAOwC,iBACV,MAAM,IAAInC,MAAM,uEAIlB,OAHAL,OAAOwC,iBAAiBT,GAAQvB,EAAkBwB,EAAMN,GACxDjB,EAAgB,QAChBC,EAAgBJ,GAIZN,OAAOwC,mBACTxC,OAAOwC,iBAAiBT,GAAQvB,EAAkBwB,EAAMN,IAC1DK,EAAOC,EACPA,EAAON,EAIPK,aAAgBU,OAClBhC,EAAgBsB,EAChBrB,EAAgBsB,GAGO,iBAATD,GACdtB,EAAgB,GAChBC,EAAgB,WAAc,OAAOqB,IAGd,mBAATA,IACdtB,EAAgBF,EAChBG,EAAgBqB,IAGpBjC,EAAOyC,OAAOG,IAAM,GAjItB,CAkImB,oBAATC,KAAuBA,KAAO7C"}
|
||||
{"version":3,"sources":["amd.js"],"names":["global","systemPrototype","System","constructor","prototype","emptyInstantiation","unsupportedRequire","Error","emptyFn","requireExportsModule","createAMDRegister","amdDefineDeps","amdDefineExec","exports","module","depModules","setters","splice","i","length","id","index","idx","push","ns","default","amdExec","_export","execute","apply","lastRegisterDeclare","systemRegister","register","name","deps","declare","this","arguments","getRegister","call","registration","define","registerRegistry","Array","amd","self"],"mappings":"CAGA,SAAWA,GACT,MAAMC,EAAkBC,OAAOC,YAAYC,UAErCC,EAAqB,CAAC,GAAI,WAAc,MAAO,KAErD,SAASC,IACP,MAAM,IAAIC,MAAM,8BAGlB,SAASC,KAET,MAAMC,EAAuB,CAAC,UAAW,UAAW,UAEpD,SAASC,EAAmBC,EAAeC,GACzC,MAAMC,EAAU,GACVC,EAAS,CAAED,QAASA,GACpBE,EAAa,GACbC,EAAU,GAChB,IAAIC,EAAS,EACb,IAAK,IAAIC,EAAI,EAAGA,EAAIP,EAAcQ,OAAQD,IAAK,CAC7C,MAAME,EAAKT,EAAcO,GACnBG,EAAQL,EAAQG,OACtB,GAAW,YAAPC,EACFL,EAAWG,GAAKZ,EAChBW,SAEG,GAAW,WAAPG,EACPL,EAAWG,GAAKJ,EAChBG,SAEG,GAAW,YAAPG,EACPL,EAAWG,GAAKL,EAChBI,QAEG,CAEH,MAAMK,EAAMJ,EACZF,EAAQO,KAAK,SAAUC,GACrBT,EAAWO,GAAOE,EAAGC,UAGrBR,IACFN,EAAcU,GAASD,GAEvBH,IACFN,EAAcQ,QAAUF,GAC1B,MAAMS,EAAUd,EAChB,MAAO,CAACD,EAAe,SAAUgB,GAE/B,OADAA,EAAQ,UAAWd,GACZ,CACLG,QAASA,EACTY,QAAS,WACPd,EAAOD,QAAUa,EAAQG,MAAMhB,EAASE,IAAeD,EAAOD,QAC1DA,IAAYC,EAAOD,SACrBc,EAAQ,UAAWb,EAAOD,aAOpC,IAAIiB,EACJ,MAAMC,EAAiB9B,EAAgB+B,SAET,IAA1BD,EAAeZ,OACjBlB,EAAgB+B,SAAW,SAAUC,EAAMC,EAAMC,GAC3B,iBAATF,IACTH,EAAsBI,GACxBH,EAAeF,MAAMO,KAAMC,YAI7BpC,EAAgB+B,SAAW,SAAUE,EAAMC,GACzCL,EAAsBK,EACtBJ,EAAeF,MAAMO,KAAMC,YAI/B,MAAMC,EAAcrC,EAAgBqC,YAgBpC,IAAI3B,EAAeC,EAfnBX,EAAgBqC,YAAc,WAC5B,MAAMN,EAAWM,EAAYC,KAAKH,MAElC,GAAIJ,GAAYA,EAAS,KAAOF,EAC9B,OAAOE,EAIT,IAAKrB,EACH,OAAOqB,GAAY3B,EAErB,MAAMmC,EAAe9B,EAAkBC,EAAeC,GAEtD,OADAD,EAAgB,KACT6B,GAGTxC,EAAOyC,OAAS,SAAUR,EAAMC,EAAMN,GAEpC,GAAoB,iBAATK,EAAmB,CAC5B,GAAItB,EAAe,CACjB,IAAKT,OAAOwC,iBACV,MAAM,IAAInC,MAAM,wEAIlB,OAHAL,OAAOwC,iBAAiBT,GAAQvB,EAAkBwB,EAAMN,GACxDjB,EAAgB,QAChBC,EAAgBJ,GAIZN,OAAOwC,mBACTxC,OAAOwC,iBAAiBT,GAAQvB,EAAkBwB,EAAMN,IAC1DK,EAAOC,EACPA,EAAON,EAIPK,aAAgBU,OAClBhC,EAAgBsB,EAChBrB,EAAgBsB,GAGO,iBAATD,GACdtB,EAAgB,GAChBC,EAAgB,WAAc,OAAOqB,IAGd,mBAATA,IACdtB,EAAgBF,EAChBG,EAAgBqB,IAGpBjC,EAAOyC,OAAOG,IAAM,GAjItB,CAkImB,oBAATC,KAAuBA,KAAO7C"}
|
||||
20
dist/s.js
vendored
20
dist/s.js
vendored
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SJS 3.1.2
|
||||
* SJS 3.1.3
|
||||
* Minimal SystemJS Build
|
||||
*/
|
||||
(function () {
|
||||
@ -395,6 +395,24 @@
|
||||
});
|
||||
};
|
||||
|
||||
/*
|
||||
* Supports loading System.register in workers
|
||||
*/
|
||||
|
||||
if (hasSelf && typeof importScripts === 'function')
|
||||
systemJSPrototype.instantiate = function (url) {
|
||||
const loader = this;
|
||||
return new Promise(function (resolve, reject) {
|
||||
try {
|
||||
importScripts(url);
|
||||
}
|
||||
catch (e) {
|
||||
reject(e);
|
||||
}
|
||||
resolve(loader.getRegister());
|
||||
});
|
||||
};
|
||||
|
||||
systemJSPrototype.resolve = function (id, parentUrl) {
|
||||
const resolved = resolveIfNotPlainOrUrl(id, parentUrl || baseUrl);
|
||||
if (!resolved) {
|
||||
|
||||
2
dist/s.min.js
vendored
2
dist/s.min.js
vendored
@ -1 +1 @@
|
||||
!function(){const e="undefined"!=typeof self?self:global;let n;if("undefined"!=typeof location){const e=(n=location.href.split("#")[0].split("?")[0]).lastIndexOf("/");-1!==e&&(n=n.slice(0,e+1))}const t=/\\/g,r="undefined"!=typeof Symbol,o=r&&Symbol.toStringTag,i=r?Symbol():"@";function l(){this[i]={}}const c=l.prototype;let u;c.import=function(e,n){const t=this;return Promise.resolve(t.resolve(e,n)).then(function(e){const n=function e(n,t,r){let l=n[i][t];if(l)return l;const c=[],u=Object.create(null);o&&Object.defineProperty(u,o,{value:"Module"});let s=Promise.resolve().then(function(){return n.instantiate(t,r)}).then(function(e){if(!e)throw new Error("Module "+t+" did not instantiate");const r=e[1](function(e,n){l.h=!0;let t=!1;if("object"!=typeof e)e in u&&u[e]===n||(u[e]=n,t=!0);else for(let n in e){let r=e[n];n in u&&u[n]===r||(u[n]=r,t=!0)}if(t)for(let e=0;e<c.length;e++)c[e](u);return n},2===e[1].length?{import:function(e){return n.import(e,t)},meta:n.createContext(t)}:void 0);return l.e=r.execute||function(){},[e[0],r.setters||[]]});const f=s.then(function(r){return Promise.all(r[0].map(function(o,i){const l=r[1][i];return Promise.resolve(n.resolve(o,t)).then(function(r){const o=e(n,r,t);return Promise.resolve(o.I).then(function(){return l&&(o.i.push(l),!o.h&&o.I||l(o.n)),o})})})).then(function(e){l.d=e})});return f.catch(function(e){l.e=null,l.er=e}),l=n[i][t]={id:t,i:c,n:u,I:s,L:f,h:!1,d:void 0,e:void 0,er:void 0,E:void 0,C:void 0}}(t,e);return n.C||function(e,n){return n.C=function e(n,t,r){if(!r[t.id])return r[t.id]=!0,Promise.resolve(t.L).then(function(){return Promise.all(t.d.map(function(t){return e(n,t,r)}))})}(e,n,{}).then(function(){return function e(n,t,r){if(r[t.id])return;if(r[t.id]=!0,!t.e){if(t.er)throw t.er;return t.E?t.E:void 0}let o;return t.d.forEach(function(t){{const i=e(n,t,r);i&&(o=o||[]).push(i)}}),o?Promise.all(o).then(i):i();function i(){try{let e=t.e.call(s);if(e)return e=e.then(function(){t.C=t.n,t.E=null}),t.E=t.E||e;t.C=t.n}catch(e){throw t.er=e,e}finally{t.L=t.I=void 0,t.e=null}}}(e,n,{})}).then(function(){return n.n})}(t,n)})},c.createContext=function(e){return{url:e}},c.register=function(e,n){u=[e,n]},c.getRegister=function(){const e=u;return u=void 0,e};const s=Object.freeze(Object.create(null));let f;e.System=new l,"undefined"!=typeof window&&window.addEventListener("error",function(e){f=e.error});const d=c.register;c.register=function(e,n){f=void 0,d.call(this,e,n)},c.instantiate=function(e,n){const t=this;return new Promise(function(r,o){const i=document.createElement("script");i.charset="utf-8",i.async=!0,i.crossOrigin="anonymous",i.addEventListener("error",function(){o(new Error("Error loading "+e+(n?" from "+n:"")))}),i.addEventListener("load",function(){if(document.head.removeChild(i),f)return o(f),f=void 0;r(t.getRegister())}),i.src=e,document.head.appendChild(i)})},c.resolve=function(e,r){const o=function(e,n){if(-1!==e.indexOf("\\")&&(e=e.replace(t,"/")),"/"===e[0]&&"/"===e[1])return n.slice(0,n.indexOf(":")+1)+e;if("."===e[0]&&("/"===e[1]||"."===e[1]&&("/"===e[2]||2===e.length&&(e+="/"))||1===e.length&&(e+="/"))||"/"===e[0]){const t=n.slice(0,n.indexOf(":")+1);let r;if(r="/"===n[t.length+1]?"file:"!==t?(r=n.slice(t.length+2)).slice(r.indexOf("/")+1):n.slice(8):n.slice(t.length+("/"===n[t.length])),"/"===e[0])return n.slice(0,n.length-r.length-1)+e;const o=r.slice(0,r.lastIndexOf("/")+1)+e,i=[];let l=-1;for(let e=0;e<o.length;e++)-1!==l?"/"===o[e]&&(i.push(o.slice(l,e+1)),l=-1):"."===o[e]?"."!==o[e+1]||"/"!==o[e+2]&&e+2!==o.length?"/"===o[e+1]||e+1===o.length?e+=1:l=e:(i.pop(),e+=2):l=e;return-1!==l&&i.push(o.slice(l)),n.slice(0,n.length-r.length)+i.join("")}}(e,r||n);if(!o){if(-1!==e.indexOf(":"))return Promise.resolve(e);throw new Error('Cannot resolve "'+e+(r?'" from '+r:'"'))}return Promise.resolve(o)}}();
|
||||
!function(){const e="undefined"!=typeof self,n=e?self:global;let t;if("undefined"!=typeof location){const e=(t=location.href.split("#")[0].split("?")[0]).lastIndexOf("/");-1!==e&&(t=t.slice(0,e+1))}const r=/\\/g,i="undefined"!=typeof Symbol,o=i&&Symbol.toStringTag,c=i?Symbol():"@";function l(){this[c]={}}const s=l.prototype;let u;s.import=function(e,n){const t=this;return Promise.resolve(t.resolve(e,n)).then(function(e){const n=function e(n,t,r){let i=n[c][t];if(i)return i;const l=[],s=Object.create(null);o&&Object.defineProperty(s,o,{value:"Module"});let u=Promise.resolve().then(function(){return n.instantiate(t,r)}).then(function(e){if(!e)throw new Error("Module "+t+" did not instantiate");const r=e[1](function(e,n){i.h=!0;let t=!1;if("object"!=typeof e)e in s&&s[e]===n||(s[e]=n,t=!0);else for(let n in e){let r=e[n];n in s&&s[n]===r||(s[n]=r,t=!0)}if(t)for(let e=0;e<l.length;e++)l[e](s);return n},2===e[1].length?{import:function(e){return n.import(e,t)},meta:n.createContext(t)}:void 0);return i.e=r.execute||function(){},[e[0],r.setters||[]]});const f=u.then(function(r){return Promise.all(r[0].map(function(i,o){const c=r[1][o];return Promise.resolve(n.resolve(i,t)).then(function(r){const i=e(n,r,t);return Promise.resolve(i.I).then(function(){return c&&(i.i.push(c),!i.h&&i.I||c(i.n)),i})})})).then(function(e){i.d=e})});return f.catch(function(e){i.e=null,i.er=e}),i=n[c][t]={id:t,i:l,n:s,I:u,L:f,h:!1,d:void 0,e:void 0,er:void 0,E:void 0,C:void 0}}(t,e);return n.C||function(e,n){return n.C=function e(n,t,r){if(!r[t.id])return r[t.id]=!0,Promise.resolve(t.L).then(function(){return Promise.all(t.d.map(function(t){return e(n,t,r)}))})}(e,n,{}).then(function(){return function e(n,t,r){if(r[t.id])return;if(r[t.id]=!0,!t.e){if(t.er)throw t.er;return t.E?t.E:void 0}let i;return t.d.forEach(function(t){{const o=e(n,t,r);o&&(i=i||[]).push(o)}}),i?Promise.all(i).then(o):o();function o(){try{let e=t.e.call(f);if(e)return e=e.then(function(){t.C=t.n,t.E=null}),t.E=t.E||e;t.C=t.n}catch(e){throw t.er=e,e}finally{t.L=t.I=void 0,t.e=null}}}(e,n,{})}).then(function(){return n.n})}(t,n)})},s.createContext=function(e){return{url:e}},s.register=function(e,n){u=[e,n]},s.getRegister=function(){const e=u;return u=void 0,e};const f=Object.freeze(Object.create(null));let d;n.System=new l,"undefined"!=typeof window&&window.addEventListener("error",function(e){d=e.error});const h=s.register;s.register=function(e,n){d=void 0,h.call(this,e,n)},s.instantiate=function(e,n){const t=this;return new Promise(function(r,i){const o=document.createElement("script");o.charset="utf-8",o.async=!0,o.crossOrigin="anonymous",o.addEventListener("error",function(){i(new Error("Error loading "+e+(n?" from "+n:"")))}),o.addEventListener("load",function(){if(document.head.removeChild(o),d)return i(d),d=void 0;r(t.getRegister())}),o.src=e,document.head.appendChild(o)})},e&&"function"==typeof importScripts&&(s.instantiate=function(e){const n=this;return new Promise(function(t,r){try{importScripts(e)}catch(e){r(e)}t(n.getRegister())})}),s.resolve=function(e,n){const i=function(e,n){if(-1!==e.indexOf("\\")&&(e=e.replace(r,"/")),"/"===e[0]&&"/"===e[1])return n.slice(0,n.indexOf(":")+1)+e;if("."===e[0]&&("/"===e[1]||"."===e[1]&&("/"===e[2]||2===e.length&&(e+="/"))||1===e.length&&(e+="/"))||"/"===e[0]){const t=n.slice(0,n.indexOf(":")+1);let r;if(r="/"===n[t.length+1]?"file:"!==t?(r=n.slice(t.length+2)).slice(r.indexOf("/")+1):n.slice(8):n.slice(t.length+("/"===n[t.length])),"/"===e[0])return n.slice(0,n.length-r.length-1)+e;const i=r.slice(0,r.lastIndexOf("/")+1)+e,o=[];let c=-1;for(let e=0;e<i.length;e++)-1!==c?"/"===i[e]&&(o.push(i.slice(c,e+1)),c=-1):"."===i[e]?"."!==i[e+1]||"/"!==i[e+2]&&e+2!==i.length?"/"===i[e+1]||e+1===i.length?e+=1:c=e:(o.pop(),e+=2):c=e;return-1!==c&&o.push(i.slice(c)),n.slice(0,n.length-r.length)+o.join("")}}(e,n||t);if(!i){if(-1!==e.indexOf(":"))return Promise.resolve(e);throw new Error('Cannot resolve "'+e+(n?'" from '+n:'"'))}return Promise.resolve(i)}}();
|
||||
2
dist/s.min.js.map
vendored
2
dist/s.min.js.map
vendored
File diff suppressed because one or more lines are too long
4
dist/system.js
vendored
4
dist/system.js
vendored
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SystemJS 3.1.2
|
||||
* SystemJS 3.1.3
|
||||
*/
|
||||
(function () {
|
||||
const hasSelf = typeof self !== 'undefined';
|
||||
@ -775,7 +775,7 @@
|
||||
const loader = this, keys = Object.keys(loader[REGISTRY]);
|
||||
let index = 0, ns, key;
|
||||
return {
|
||||
next () {
|
||||
next: function () {
|
||||
while (
|
||||
(key = keys[index++]) !== undefined &&
|
||||
(ns = loader.get(key)) === undefined
|
||||
|
||||
4
dist/system.min.js
vendored
4
dist/system.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/system.min.js.map
vendored
2
dist/system.min.js.map
vendored
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "systemjs",
|
||||
"version": "3.1.2",
|
||||
"version": "3.1.3",
|
||||
"description": "Dynamic ES module loader",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user