@jsenv/core 24.4.3 → 24.4.4
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/dist/browser_runtime/asset-manifest.json +1 -1
- package/dist/browser_runtime/{browser_runtime-015d0fc5.js → browser_runtime-75fe4f45.js} +33 -87
- package/dist/browser_runtime/{browser_runtime-015d0fc5.js.map → browser_runtime-75fe4f45.js.map} +4 -9
- package/dist/build_manifest.js +5 -5
- package/dist/compile_proxy/asset-manifest.json +2 -2
- package/dist/{redirector/assets/s.js-55849eca.map → compile_proxy/assets/s.js-6192a06c.map} +4 -10
- package/dist/compile_proxy/{compile_proxy-2eabd1f7.html → compile_proxy-58947390.html} +33 -87
- package/dist/redirector/asset-manifest.json +2 -2
- package/dist/{toolbar/assets/s.js-55849eca.map → redirector/assets/s.js-6192a06c.map} +4 -10
- package/dist/redirector/{redirector-3029c4d3.html → redirector-3c40c078.html} +33 -87
- package/dist/toolbar/asset-manifest.json +2 -2
- package/dist/{compile_proxy/assets/s.js-55849eca.map → toolbar/assets/s.js-6192a06c.map} +4 -10
- package/dist/toolbar/{toolbar-40bcd3a0.html → toolbar-37d80823.html} +33 -87
- package/dist/toolbar_injector/asset-manifest.json +1 -1
- package/dist/toolbar_injector/{toolbar_injector-0a9d5d4c.js → toolbar_injector-b162830d.js} +2 -2
- package/dist/toolbar_injector/{toolbar_injector-0a9d5d4c.js.map → toolbar_injector-b162830d.js.map} +2 -2
- package/package.json +3 -2
- package/src/internal/runtime/s.js +22 -66
|
@@ -4127,7 +4127,7 @@
|
|
|
4127
4127
|
var systemRegister = systemJSPrototype.register;
|
|
4128
4128
|
var inlineScriptCount = 0;
|
|
4129
4129
|
|
|
4130
|
-
systemJSPrototype.register = function (deps, declare) {
|
|
4130
|
+
systemJSPrototype.register = function (deps, declare, autoUrl) {
|
|
4131
4131
|
if (hasDocument && document.readyState === 'loading' && typeof deps !== 'string') {
|
|
4132
4132
|
var scripts = document.querySelectorAll('script[src]');
|
|
4133
4133
|
var lastScript = scripts[scripts.length - 1];
|
|
@@ -4136,6 +4136,8 @@
|
|
|
4136
4136
|
|
|
4137
4137
|
if (lastScript) {
|
|
4138
4138
|
lastAutoImportUrl = lastScript.src;
|
|
4139
|
+
} else if (autoUrl) {
|
|
4140
|
+
lastAutoImportUrl = autoUrl;
|
|
4139
4141
|
} else {
|
|
4140
4142
|
inlineScriptCount++;
|
|
4141
4143
|
lastAutoImportUrl = document.location.href + "__inline_script__" + inlineScriptCount;
|
|
@@ -4256,96 +4258,40 @@
|
|
|
4256
4258
|
})();
|
|
4257
4259
|
|
|
4258
4260
|
(function () {
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
var
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
var SystemJS = function SystemJS() {
|
|
4273
|
-
constructor.call(this);
|
|
4274
|
-
setRegisterRegistry(this);
|
|
4275
|
-
};
|
|
4276
|
-
|
|
4277
|
-
SystemJS.prototype = systemJSPrototype;
|
|
4278
|
-
System.constructor = SystemJS;
|
|
4279
|
-
var firstNamedDefine, firstName;
|
|
4280
|
-
|
|
4281
|
-
function setRegisterRegistry(systemInstance) {
|
|
4282
|
-
systemInstance.registerRegistry = Object.create(null);
|
|
4283
|
-
systemInstance.namedRegisterAliases = Object.create(null);
|
|
4284
|
-
}
|
|
4285
|
-
|
|
4286
|
-
var register = systemJSPrototype.register;
|
|
4287
|
-
|
|
4288
|
-
systemJSPrototype.register = function (name, deps, declare) {
|
|
4289
|
-
if (typeof name !== 'string') return register.apply(this, arguments);
|
|
4290
|
-
var define = [deps, declare];
|
|
4291
|
-
this.registerRegistry[name] = define;
|
|
4292
|
-
|
|
4293
|
-
if (!firstNamedDefine) {
|
|
4294
|
-
firstNamedDefine = define;
|
|
4295
|
-
firstName = name;
|
|
4296
|
-
}
|
|
4297
|
-
|
|
4298
|
-
Promise.resolve().then(function () {
|
|
4299
|
-
firstNamedDefine = null;
|
|
4300
|
-
firstName = null;
|
|
4301
|
-
});
|
|
4302
|
-
return register.apply(this, [deps, declare]);
|
|
4303
|
-
};
|
|
4304
|
-
|
|
4305
|
-
var resolve = systemJSPrototype.resolve;
|
|
4306
|
-
|
|
4307
|
-
systemJSPrototype.resolve = function (id, parentURL) {
|
|
4308
|
-
try {
|
|
4309
|
-
// Prefer import map (or other existing) resolution over the registerRegistry
|
|
4310
|
-
return resolve.call(this, id, parentURL);
|
|
4311
|
-
} catch (err) {
|
|
4312
|
-
if (id in this.registerRegistry) {
|
|
4313
|
-
return this.namedRegisterAliases[id] || id;
|
|
4314
|
-
}
|
|
4315
|
-
|
|
4316
|
-
throw err;
|
|
4317
|
-
}
|
|
4318
|
-
};
|
|
4319
|
-
|
|
4320
|
-
var instantiate = systemJSPrototype.instantiate;
|
|
4321
|
-
|
|
4322
|
-
systemJSPrototype.instantiate = function (url, firstParentUrl) {
|
|
4323
|
-
var result = this.registerRegistry[url];
|
|
4261
|
+
var envGlobal = typeof self !== 'undefined' ? self : global;
|
|
4262
|
+
var System = envGlobal.System;
|
|
4263
|
+
var register = System.register;
|
|
4264
|
+
var registerRegistry = Object.create(null);
|
|
4265
|
+
|
|
4266
|
+
System.register = function (name, deps, declare) {
|
|
4267
|
+
if (typeof name !== 'string') return register.apply(this, arguments);
|
|
4268
|
+
var define = [deps, declare];
|
|
4269
|
+
var url = System.resolve("./".concat(name));
|
|
4270
|
+
registerRegistry[url] = define;
|
|
4271
|
+
return register.call(this, deps, declare, url);
|
|
4272
|
+
};
|
|
4324
4273
|
|
|
4325
|
-
|
|
4326
|
-
this.registerRegistry[url] = null;
|
|
4327
|
-
return result;
|
|
4328
|
-
} else {
|
|
4329
|
-
return instantiate.call(this, url, firstParentUrl);
|
|
4330
|
-
}
|
|
4331
|
-
};
|
|
4274
|
+
var instantiate = System.instantiate;
|
|
4332
4275
|
|
|
4333
|
-
|
|
4276
|
+
System.instantiate = function (url, firstParentUrl) {
|
|
4277
|
+
var result = registerRegistry[url];
|
|
4334
4278
|
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4279
|
+
if (result) {
|
|
4280
|
+
registerRegistry[url] = null;
|
|
4281
|
+
return result;
|
|
4282
|
+
} else {
|
|
4283
|
+
return instantiate.call(this, url, firstParentUrl);
|
|
4284
|
+
}
|
|
4285
|
+
};
|
|
4338
4286
|
|
|
4339
|
-
|
|
4340
|
-
this.namedRegisterAliases[firstName] = url;
|
|
4341
|
-
}
|
|
4287
|
+
var getRegister = System.getRegister;
|
|
4342
4288
|
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
}
|
|
4289
|
+
System.getRegister = function (url) {
|
|
4290
|
+
// Calling getRegister() because other extras need to know it was called so they can perform side effects
|
|
4291
|
+
var register = getRegister.call(this, url);
|
|
4292
|
+
var result = registerRegistry[url] || register;
|
|
4293
|
+
return result;
|
|
4294
|
+
};
|
|
4349
4295
|
})();
|
|
4350
4296
|
|
|
4351
4297
|
/* eslint-env browser */
|
|
@@ -5227,4 +5173,4 @@
|
|
|
5227
5173
|
|
|
5228
5174
|
})();
|
|
5229
5175
|
|
|
5230
|
-
//# sourceMappingURL=browser_runtime-
|
|
5176
|
+
//# sourceMappingURL=browser_runtime-75fe4f45.js.map
|