@jsenv/core 24.4.3 → 24.4.8

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.
Files changed (26) hide show
  1. package/dist/browser_runtime/asset-manifest.json +1 -1
  2. package/dist/browser_runtime/{browser_runtime-015d0fc5.js → browser_runtime-c7288751.js} +36 -88
  3. package/dist/browser_runtime/{browser_runtime-015d0fc5.js.map → browser_runtime-c7288751.js.map} +4 -9
  4. package/dist/build_manifest.js +5 -5
  5. package/dist/compile_proxy/asset-manifest.json +2 -2
  6. package/dist/{redirector/assets/s.js-55849eca.map → compile_proxy/assets/s.js-fcba0e35.map} +4 -10
  7. package/dist/compile_proxy/{compile_proxy-2eabd1f7.html → compile_proxy-e666f204.html} +36 -88
  8. package/dist/redirector/asset-manifest.json +2 -2
  9. package/dist/{toolbar/assets/s.js-55849eca.map → redirector/assets/s.js-fcba0e35.map} +4 -10
  10. package/dist/redirector/{redirector-3029c4d3.html → redirector-bee67b92.html} +36 -88
  11. package/dist/toolbar/asset-manifest.json +2 -2
  12. package/dist/{compile_proxy/assets/s.js-55849eca.map → toolbar/assets/s.js-fcba0e35.map} +4 -10
  13. package/dist/toolbar/{toolbar-40bcd3a0.html → toolbar-d13f2c3c.html} +43 -90
  14. package/dist/toolbar/{toolbar.main-53e1ab2b.js.map → toolbar.main-320b0544.js.map} +3 -3
  15. package/dist/toolbar_injector/asset-manifest.json +1 -1
  16. package/dist/toolbar_injector/{toolbar_injector-0a9d5d4c.js → toolbar_injector-828ec83b.js} +2 -2
  17. package/dist/toolbar_injector/{toolbar_injector-0a9d5d4c.js.map → toolbar_injector-828ec83b.js.map} +4 -4
  18. package/package.json +5 -3
  19. package/readme.md +32 -36
  20. package/src/internal/dev_server/toolbar/util/dom.js +5 -0
  21. package/src/internal/executing/coverage_utils/v8_coverage_from_directory.js +9 -1
  22. package/src/internal/executing/createSummaryLog.js +4 -4
  23. package/src/internal/executing/executeConcurrently.js +1 -0
  24. package/src/internal/executing/executePlan.js +24 -10
  25. package/src/internal/executing/executionLogs.js +1 -1
  26. package/src/internal/runtime/s.js +25 -67
@@ -1,3 +1,3 @@
1
1
  {
2
- "browser_runtime.js": "browser_runtime-015d0fc5.js"
2
+ "browser_runtime.js": "browser_runtime-c7288751.js"
3
3
  }
@@ -4127,15 +4127,17 @@
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];
4134
4134
  var lastAutoImportUrl;
4135
4135
  lastAutoImportDeps = deps;
4136
4136
 
4137
- if (lastScript) {
4137
+ if (lastScript && lastScript.src) {
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,42 @@
4256
4258
  })();
4257
4259
 
4258
4260
  (function () {
4259
- /*
4260
- * SystemJS named register extension
4261
- * Supports System.register('name', [..deps..], function (_export, _context) { ... })
4262
- *
4263
- * Names are written to the registry as-is
4264
- * System.register('x', ...) can be imported as System.import('x')
4265
- */
4266
- (function (global) {
4267
- var System = global.System;
4268
- setRegisterRegistry(System);
4269
- var systemJSPrototype = System.constructor.prototype;
4270
- var constructor = System.constructor;
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
+ return System.prepareImport().then(function () {
4270
+ var url = System.resolve("./".concat(name));
4271
+ registerRegistry[url] = define;
4272
+ return register.call(System, deps, declare, url);
4273
+ });
4274
+ };
4324
4275
 
4325
- if (result) {
4326
- this.registerRegistry[url] = null;
4327
- return result;
4328
- } else {
4329
- return instantiate.call(this, url, firstParentUrl);
4330
- }
4331
- };
4276
+ var instantiate = System.instantiate;
4332
4277
 
4333
- var getRegister = systemJSPrototype.getRegister;
4278
+ System.instantiate = function (url, firstParentUrl) {
4279
+ var result = registerRegistry[url];
4334
4280
 
4335
- systemJSPrototype.getRegister = function (url) {
4336
- // Calling getRegister() because other extras need to know it was called so they can perform side effects
4337
- var register = getRegister.call(this, url);
4281
+ if (result) {
4282
+ registerRegistry[url] = null;
4283
+ return result;
4284
+ } else {
4285
+ return instantiate.call(this, url, firstParentUrl);
4286
+ }
4287
+ };
4338
4288
 
4339
- if (firstName && url) {
4340
- this.namedRegisterAliases[firstName] = url;
4341
- }
4289
+ var getRegister = System.getRegister;
4342
4290
 
4343
- var result = firstNamedDefine || register;
4344
- firstNamedDefine = null;
4345
- firstName = null;
4346
- return result;
4347
- };
4348
- })(typeof self !== 'undefined' ? self : global);
4291
+ System.getRegister = function (url) {
4292
+ // Calling getRegister() because other extras need to know it was called so they can perform side effects
4293
+ var register = getRegister.call(this, url);
4294
+ var result = registerRegistry[url] || register;
4295
+ return result;
4296
+ };
4349
4297
  })();
4350
4298
 
4351
4299
  /* eslint-env browser */
@@ -5227,4 +5175,4 @@
5227
5175
 
5228
5176
  })();
5229
5177
 
5230
- //# sourceMappingURL=browser_runtime-015d0fc5.js.map
5178
+ //# sourceMappingURL=browser_runtime-c7288751.js.map