@jsenv/core 24.3.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.
Files changed (39) hide show
  1. package/dist/browser_runtime/asset-manifest.json +3 -0
  2. package/dist/browser_runtime/{browser_runtime-fbd309a1.js → browser_runtime-75fe4f45.js} +41 -2
  3. package/dist/browser_runtime/{browser_runtime-fbd309a1.js.map → browser_runtime-75fe4f45.js.map} +6 -3
  4. package/dist/build_manifest.js +5 -5
  5. package/dist/compile_proxy/asset-manifest.json +4 -0
  6. package/dist/compile_proxy/assets/{s.js-749702e8.map → s.js-6192a06c.map} +8 -4
  7. package/dist/compile_proxy/{compile_proxy-405777e6.html → compile_proxy-58947390.html} +46 -5
  8. package/dist/compile_proxy/{compile_proxy.html__inline__20-39c0801c.js.map → compile_proxy.html__inline__20-672ba17c.js.map} +0 -0
  9. package/dist/event_source_client/asset-manifest.json +3 -0
  10. package/dist/redirector/asset-manifest.json +4 -0
  11. package/dist/{toolbar/assets/s.js-749702e8.map → redirector/assets/s.js-6192a06c.map} +8 -4
  12. package/dist/redirector/{redirector-237cd168.html → redirector-3c40c078.html} +46 -5
  13. package/dist/redirector/{redirector.html__inline__15-33acb0b9.js.map → redirector.html__inline__15-4d453af0.js.map} +0 -0
  14. package/dist/toolbar/asset-manifest.json +13 -0
  15. package/dist/{redirector/assets/s.js-749702e8.map → toolbar/assets/s.js-6192a06c.map} +8 -4
  16. package/dist/toolbar/{toolbar-29e91dcd.html → toolbar-37d80823.html} +41 -2
  17. package/dist/toolbar_injector/asset-manifest.json +4 -0
  18. package/dist/toolbar_injector/{toolbar_injector-0af91b43.js → toolbar_injector-b162830d.js} +2 -2
  19. package/dist/toolbar_injector/{toolbar_injector-0af91b43.js.map → toolbar_injector-b162830d.js.map} +2 -2
  20. package/package.json +11 -18
  21. package/src/executeTestPlan.js +7 -1
  22. package/src/internal/browser_launcher/from_playwright.js +314 -0
  23. package/src/internal/building/buildUsingRollup.js +2 -2
  24. package/src/internal/building/createJsenvRollupPlugin.js +67 -41
  25. package/src/internal/building/css/parseCssRessource.js +4 -1
  26. package/src/internal/building/html/parseHtmlRessource.js +16 -3
  27. package/src/internal/building/js/parseJsRessource.js +2 -0
  28. package/src/internal/building/ressource_builder.js +27 -37
  29. package/src/internal/building/ressource_builder_util.js +10 -137
  30. package/src/internal/building/svg/parseSvgRessource.js +2 -0
  31. package/src/internal/building/url_loader.js +3 -1
  32. package/src/internal/building/webmanifest/parseWebmanifestRessource.js +2 -1
  33. package/src/internal/executing/executeConcurrently.js +15 -9
  34. package/src/internal/executing/executePlan.js +2 -0
  35. package/src/internal/runtime/s.js +39 -1
  36. package/src/launchBrowser.js +33 -501
  37. package/dist/browser_system/browser_system-29eda202.js +0 -5160
  38. package/dist/browser_system/browser_system-29eda202.js.map +0 -1065
  39. package/src/internal/browser_launcher/createSharing.js +0 -70
@@ -0,0 +1,3 @@
1
+ {
2
+ "browser_runtime.js": "browser_runtime-75fe4f45.js"
3
+ }
@@ -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;
@@ -4255,6 +4257,43 @@
4255
4257
  };
4256
4258
  })();
4257
4259
 
4260
+ (function () {
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
+ };
4273
+
4274
+ var instantiate = System.instantiate;
4275
+
4276
+ System.instantiate = function (url, firstParentUrl) {
4277
+ var result = registerRegistry[url];
4278
+
4279
+ if (result) {
4280
+ registerRegistry[url] = null;
4281
+ return result;
4282
+ } else {
4283
+ return instantiate.call(this, url, firstParentUrl);
4284
+ }
4285
+ };
4286
+
4287
+ var getRegister = System.getRegister;
4288
+
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
+ };
4295
+ })();
4296
+
4258
4297
  /* eslint-env browser */
4259
4298
 
4260
4299
  function _await$2(value, then, direct) {
@@ -5134,4 +5173,4 @@
5134
5173
 
5135
5174
  })();
5136
5175
 
5137
- //# sourceMappingURL=browser_runtime-fbd309a1.js.map
5176
+ //# sourceMappingURL=browser_runtime-75fe4f45.js.map