@jsenv/core 23.5.2 → 23.7.0
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/{license → LICENSE} +21 -21
- package/dist/jsenv_browser_system.js +35 -35
- package/dist/jsenv_browser_system.js.map +14 -14
- package/dist/jsenv_compile_proxy.js +47 -128
- package/dist/jsenv_compile_proxy.js.map +25 -62
- package/dist/jsenv_exploring_index.js.map +5 -5
- package/dist/jsenv_exploring_redirector.js +47 -54
- package/dist/jsenv_exploring_redirector.js.map +17 -19
- package/dist/jsenv_toolbar.js +47 -128
- package/dist/jsenv_toolbar.js.map +12 -47
- package/dist/jsenv_toolbar_injector.js.map +5 -5
- package/helpers/babel/.eslintrc.cjs +24 -24
- package/helpers/babel/AsyncGenerator/AsyncGenerator.js +81 -81
- package/helpers/babel/AwaitValue/AwaitValue.js +3 -3
- package/helpers/babel/applyDecoratorDescriptor/applyDecoratorDescriptor.js +33 -33
- package/helpers/babel/arrayLikeToArray/arrayLikeToArray.js +7 -7
- package/helpers/babel/arrayWithHoles/arrayWithHoles.js +4 -4
- package/helpers/babel/arrayWithoutHoles/arrayWithoutHoles.js +6 -6
- package/helpers/babel/assertThisInitialized/assertThisInitialized.js +7 -7
- package/helpers/babel/asyncGeneratorDelegate/asyncGeneratorDelegate.js +40 -40
- package/helpers/babel/asyncIterator/asyncIterator.js +12 -12
- package/helpers/babel/asyncToGenerator/asyncToGenerator.js +34 -34
- package/helpers/babel/awaitAsyncGenerator/awaitAsyncGenerator.js +5 -5
- package/helpers/babel/classApplyDescriptorDestructureSet/classApplyDescriptorDestructureSet.js +20 -20
- package/helpers/babel/classApplyDescriptorGet/classApplyDescriptorGet.js +6 -6
- package/helpers/babel/classApplyDescriptorSet/classApplyDescriptorSet.js +13 -13
- package/helpers/babel/classCallCheck/classCallCheck.js +5 -5
- package/helpers/babel/classCheckPrivateStaticAccess/classCheckPrivateStaticAccess.js +5 -5
- package/helpers/babel/classCheckPrivateStaticFieldDescriptor/classCheckPrivateStaticFieldDescriptor.js +6 -6
- package/helpers/babel/classExtractFieldDescriptor/classExtractFieldDescriptor.js +7 -7
- package/helpers/babel/classNameTDZError/classNameTDZError.js +4 -4
- package/helpers/babel/classPrivateFieldDestructureSet/classPrivateFieldDestructureSet.js +7 -7
- package/helpers/babel/classPrivateFieldGet/classPrivateFieldGet.js +7 -7
- package/helpers/babel/classPrivateFieldLooseBase/classPrivateFieldLooseBase.js +6 -6
- package/helpers/babel/classPrivateFieldLooseKey/classPrivateFieldLooseKey.js +5 -5
- package/helpers/babel/classPrivateFieldSet/classPrivateFieldSet.js +8 -8
- package/helpers/babel/classPrivateMethodGet/classPrivateMethodGet.js +6 -6
- package/helpers/babel/classPrivateMethodSet/classPrivateMethodSet.js +3 -3
- package/helpers/babel/classStaticPrivateFieldSpecGet/classStaticPrivateFieldSpecGet.js +9 -9
- package/helpers/babel/classStaticPrivateFieldSpecSet/classStaticPrivateFieldSpecSet.js +15 -15
- package/helpers/babel/classStaticPrivateMethodGet/classStaticPrivateMethodGet.js +6 -6
- package/helpers/babel/classStaticPrivateMethodSet/classStaticPrivateMethodSet.js +3 -3
- package/helpers/babel/construct/construct.js +16 -16
- package/helpers/babel/createClass/createClass.js +15 -15
- package/helpers/babel/createForOfIteratorHelper/createForOfIteratorHelper.js +60 -60
- package/helpers/babel/createForOfIteratorHelperLoose/createForOfIteratorHelperLoose.js +23 -23
- package/helpers/babel/createRawReactElement/createRawReactElement.js +50 -50
- package/helpers/babel/createSuper/createSuper.js +22 -22
- package/helpers/babel/decorate/decorate.js +403 -403
- package/helpers/babel/defaults/defaults.js +11 -11
- package/helpers/babel/defineEnumerableProperties/defineEnumerableProperties.js +23 -23
- package/helpers/babel/defineProperty/defineProperty.js +18 -18
- package/helpers/babel/extends/extends.js +14 -14
- package/helpers/babel/get/get.js +13 -13
- package/helpers/babel/getPrototypeOf/getPrototypeOf.js +4 -4
- package/helpers/babel/inherits/inherits.js +15 -15
- package/helpers/babel/inheritsLoose/inheritsLoose.js +7 -7
- package/helpers/babel/initializerDefineProperty/initializerDefineProperty.js +10 -10
- package/helpers/babel/initializerWarningHelper/initializerWarningHelper.js +6 -6
- package/helpers/babel/instanceof/instanceof.js +6 -6
- package/helpers/babel/interopRequireDefault/interopRequireDefault.js +3 -3
- package/helpers/babel/interopRequireWildcard/interopRequireWildcard.js +37 -37
- package/helpers/babel/isNativeFunction/isNativeFunction.js +4 -4
- package/helpers/babel/isNativeReflectConstruct/isNativeReflectConstruct.js +21 -21
- package/helpers/babel/iterableToArray/iterableToArray.js +7 -7
- package/helpers/babel/iterableToArrayLimit/iterableToArrayLimit.js +36 -36
- package/helpers/babel/iterableToArrayLimitLoose/iterableToArrayLimitLoose.js +10 -10
- package/helpers/babel/jsx/jsx.js +45 -45
- package/helpers/babel/maybeArrayLike/maybeArrayLike.js +10 -10
- package/helpers/babel/newArrowCheck/newArrowCheck.js +5 -5
- package/helpers/babel/nonIterableRest/nonIterableRest.js +5 -5
- package/helpers/babel/nonIterableSpread/nonIterableSpread.js +5 -5
- package/helpers/babel/objectDestructuringEmpty/objectDestructuringEmpty.js +3 -3
- package/helpers/babel/objectSpread/objectSpread.js +23 -23
- package/helpers/babel/objectSpread2/objectSpread2.js +33 -33
- package/helpers/babel/objectWithoutProperties/objectWithoutProperties.js +19 -19
- package/helpers/babel/objectWithoutPropertiesLoose/objectWithoutPropertiesLoose.js +13 -13
- package/helpers/babel/possibleConstructorReturn/possibleConstructorReturn.js +10 -10
- package/helpers/babel/readOnlyError/readOnlyError.js +4 -4
- package/helpers/babel/readme.md +9 -9
- package/helpers/babel/set/set.js +44 -44
- package/helpers/babel/setPrototypeOf/setPrototypeOf.js +6 -6
- package/helpers/babel/skipFirstGeneratorNext/skipFirstGeneratorNext.js +8 -8
- package/helpers/babel/slicedToArray/slicedToArray.js +10 -10
- package/helpers/babel/slicedToArrayLoose/slicedToArrayLoose.js +13 -13
- package/helpers/babel/superPropBase/superPropBase.js +10 -10
- package/helpers/babel/taggedTemplateLiteral/taggedTemplateLiteral.js +10 -10
- package/helpers/babel/taggedTemplateLiteralLoose/taggedTemplateLiteralLoose.js +7 -7
- package/helpers/babel/tdz/tdz.js +4 -4
- package/helpers/babel/temporalRef/temporalRef.js +6 -6
- package/helpers/babel/temporalUndefined/temporalUndefined.js +3 -3
- package/helpers/babel/toArray/toArray.js +10 -10
- package/helpers/babel/toConsumableArray/toConsumableArray.js +10 -10
- package/helpers/babel/toPrimitive/toPrimitive.js +10 -10
- package/helpers/babel/toPropertyKey/toPropertyKey.js +6 -6
- package/helpers/babel/typeof/typeof.js +14 -14
- package/helpers/babel/unsupportedIterableToArray/unsupportedIterableToArray.js +12 -12
- package/helpers/babel/wrapAsyncGenerator/wrapAsyncGenerator.js +8 -8
- package/helpers/babel/wrapNativeSuper/wrapNativeSuper.js +30 -30
- package/helpers/babel/wrapRegExp/wrapRegExp.js +63 -63
- package/helpers/babel/writeOnlyError/writeOnlyError.js +4 -4
- package/helpers/regenerator-runtime/regenerator-runtime.js +748 -748
- package/package.json +4 -2
- package/src/buildProject.js +300 -300
- package/src/execute.js +184 -184
- package/src/internal/browser-launcher/jsenv-browser-system.js +199 -199
- package/src/internal/compiling/compile-directory/getOrGenerateCompiledFile.js +20 -30
- package/src/internal/compiling/compile-directory/validateCache.js +23 -15
- package/src/internal/compiling/compileFile.js +36 -59
- package/src/internal/compiling/compileHtml.js +1 -4
- package/src/internal/compiling/createCompiledFileService.js +290 -290
- package/src/internal/compiling/startCompileServer.js +1052 -1131
- package/src/internal/executing/coverage/babel_plugin_instrument.js +90 -90
- package/src/internal/executing/coverage/reportToCoverage.js +187 -187
- package/src/internal/executing/executePlan.js +183 -183
- package/src/internal/executing/launchAndExecute.js +458 -450
- package/src/internal/runtime/createBrowserRuntime/scanBrowserRuntimeFeatures.js +246 -250
- package/src/internal/runtime/createNodeRuntime/scanNodeRuntimeFeatures.js +112 -115
- package/src/internal/runtime/s.js +727 -727
- package/src/internal/toolbar/jsenv-logo.svg +144 -144
- package/src/internal/url_conversion.js +317 -317
- package/src/launchNode.js +210 -210
- package/src/startExploring.js +309 -309
package/{license → LICENSE}
RENAMED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2019 jsenv
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019 jsenv
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -2321,9 +2321,9 @@
|
|
|
2321
2321
|
return fn();
|
|
2322
2322
|
});
|
|
2323
2323
|
|
|
2324
|
-
/*
|
|
2325
|
-
* SJS 6.11.0
|
|
2326
|
-
* Minimal SystemJS Build
|
|
2324
|
+
/*
|
|
2325
|
+
* SJS 6.11.0
|
|
2326
|
+
* Minimal SystemJS Build
|
|
2327
2327
|
*/
|
|
2328
2328
|
(function () {
|
|
2329
2329
|
function errMsg(errCode, msg) {
|
|
@@ -2416,12 +2416,12 @@
|
|
|
2416
2416
|
return parentUrl.slice(0, parentUrl.length - pathname.length) + output.join('');
|
|
2417
2417
|
}
|
|
2418
2418
|
}
|
|
2419
|
-
/*
|
|
2420
|
-
* Import maps implementation
|
|
2421
|
-
*
|
|
2422
|
-
* To make lookups fast we pre-resolve the entire import map
|
|
2423
|
-
* and then match based on backtracked hash lookups
|
|
2424
|
-
*
|
|
2419
|
+
/*
|
|
2420
|
+
* Import maps implementation
|
|
2421
|
+
*
|
|
2422
|
+
* To make lookups fast we pre-resolve the entire import map
|
|
2423
|
+
* and then match based on backtracked hash lookups
|
|
2424
|
+
*
|
|
2425
2425
|
*/
|
|
2426
2426
|
|
|
2427
2427
|
|
|
@@ -2500,21 +2500,21 @@
|
|
|
2500
2500
|
|
|
2501
2501
|
return applyPackages(resolvedOrPlain, importMap.imports) || resolvedOrPlain.indexOf(':') !== -1 && resolvedOrPlain;
|
|
2502
2502
|
}
|
|
2503
|
-
/*
|
|
2504
|
-
* SystemJS Core
|
|
2505
|
-
*
|
|
2506
|
-
* Provides
|
|
2507
|
-
* - System.import
|
|
2508
|
-
* - System.register support for
|
|
2509
|
-
* live bindings, function hoisting through circular references,
|
|
2510
|
-
* reexports, dynamic import, import.meta.url, top-level await
|
|
2511
|
-
* - System.getRegister to get the registration
|
|
2512
|
-
* - Symbol.toStringTag support in Module objects
|
|
2513
|
-
* - Hookable System.createContext to customize import.meta
|
|
2514
|
-
* - System.onload(err, id, deps) handler for tracing / hot-reloading
|
|
2515
|
-
*
|
|
2516
|
-
* Core comes with no System.prototype.resolve or
|
|
2517
|
-
* System.prototype.instantiate implementations
|
|
2503
|
+
/*
|
|
2504
|
+
* SystemJS Core
|
|
2505
|
+
*
|
|
2506
|
+
* Provides
|
|
2507
|
+
* - System.import
|
|
2508
|
+
* - System.register support for
|
|
2509
|
+
* live bindings, function hoisting through circular references,
|
|
2510
|
+
* reexports, dynamic import, import.meta.url, top-level await
|
|
2511
|
+
* - System.getRegister to get the registration
|
|
2512
|
+
* - Symbol.toStringTag support in Module objects
|
|
2513
|
+
* - Hookable System.createContext to customize import.meta
|
|
2514
|
+
* - System.onload(err, id, deps) handler for tracing / hot-reloading
|
|
2515
|
+
*
|
|
2516
|
+
* Core comes with no System.prototype.resolve or
|
|
2517
|
+
* System.prototype.instantiate implementations
|
|
2518
2518
|
*/
|
|
2519
2519
|
|
|
2520
2520
|
|
|
@@ -2553,8 +2553,8 @@
|
|
|
2553
2553
|
systemJSPrototype.register = function (deps, declare) {
|
|
2554
2554
|
lastRegister = [deps, declare];
|
|
2555
2555
|
};
|
|
2556
|
-
/*
|
|
2557
|
-
* getRegister provides the last anonymous System.register call
|
|
2556
|
+
/*
|
|
2557
|
+
* getRegister provides the last anonymous System.register call
|
|
2558
2558
|
*/
|
|
2559
2559
|
|
|
2560
2560
|
|
|
@@ -2763,8 +2763,8 @@
|
|
|
2763
2763
|
}
|
|
2764
2764
|
|
|
2765
2765
|
envGlobal.System = new SystemJS();
|
|
2766
|
-
/*
|
|
2767
|
-
* SystemJS browser attachments for script and import map processing
|
|
2766
|
+
/*
|
|
2767
|
+
* SystemJS browser attachments for script and import map processing
|
|
2768
2768
|
*/
|
|
2769
2769
|
|
|
2770
2770
|
var importMapPromise = Promise.resolve();
|
|
@@ -2849,8 +2849,8 @@
|
|
|
2849
2849
|
|
|
2850
2850
|
resolveAndComposeImportMap(newMap, newMapUrl, importMap);
|
|
2851
2851
|
}
|
|
2852
|
-
/*
|
|
2853
|
-
* Script instantiation loading
|
|
2852
|
+
/*
|
|
2853
|
+
* Script instantiation loading
|
|
2854
2854
|
*/
|
|
2855
2855
|
|
|
2856
2856
|
|
|
@@ -2942,8 +2942,8 @@
|
|
|
2942
2942
|
});
|
|
2943
2943
|
});
|
|
2944
2944
|
};
|
|
2945
|
-
/*
|
|
2946
|
-
* Fetch loader, sets up shouldFetch and fetch hooks
|
|
2945
|
+
/*
|
|
2946
|
+
* Fetch loader, sets up shouldFetch and fetch hooks
|
|
2947
2947
|
*/
|
|
2948
2948
|
|
|
2949
2949
|
|
|
@@ -2995,8 +2995,8 @@
|
|
|
2995
2995
|
|
|
2996
2996
|
return systemInstantiate.call(this, url, firstParentUrl);
|
|
2997
2997
|
};
|
|
2998
|
-
/*
|
|
2999
|
-
* Supports loading System.register in workers
|
|
2998
|
+
/*
|
|
2999
|
+
* Supports loading System.register in workers
|
|
3000
3000
|
*/
|
|
3001
3001
|
|
|
3002
3002
|
|
|
@@ -5076,7 +5076,7 @@
|
|
|
5076
5076
|
|
|
5077
5077
|
var getBrowserRuntime = memoize(_async(function () {
|
|
5078
5078
|
var compileServerOrigin = document.location.origin;
|
|
5079
|
-
return _await(fetchUrl("".concat(compileServerOrigin, "/.jsenv/
|
|
5079
|
+
return _await(fetchUrl("".concat(compileServerOrigin, "/.jsenv/__compile_server_meta__.json")), function (compileMetaResponse) {
|
|
5080
5080
|
return _await(compileMetaResponse.json(), function (compileMeta) {
|
|
5081
5081
|
var outDirectoryRelativeUrl = compileMeta.outDirectoryRelativeUrl,
|
|
5082
5082
|
errorStackRemapping = compileMeta.errorStackRemapping;
|