@jscutlery/playwright-ct-angular 0.10.5 → 0.10.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.
- package/package.json +1 -1
- package/transform-angular.cjs.js +11 -13
- package/transform-angular.esm.js +11 -13
package/package.json
CHANGED
package/transform-angular.cjs.js
CHANGED
|
@@ -16,17 +16,15 @@ const apiPolyfills = {
|
|
|
16
16
|
throwVersionError(range, api.version);
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
|
-
{
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
});
|
|
29
|
-
}
|
|
19
|
+
Object.assign(apiPolyfills, {
|
|
20
|
+
targets: () => () => {
|
|
21
|
+
return {};
|
|
22
|
+
},
|
|
23
|
+
assumption: () => () => {
|
|
24
|
+
return undefined;
|
|
25
|
+
},
|
|
26
|
+
addExternalDependency: () => () => {}
|
|
27
|
+
});
|
|
30
28
|
function declare(builder) {
|
|
31
29
|
return (api, options, dirname) => {
|
|
32
30
|
let clonedApi;
|
|
@@ -41,7 +39,7 @@ function declare(builder) {
|
|
|
41
39
|
lib.declarePreset = declare;
|
|
42
40
|
function copyApiObject(api) {
|
|
43
41
|
let proto = null;
|
|
44
|
-
if (typeof api.version === "string" &&
|
|
42
|
+
if (typeof api.version === "string" && api.version.startsWith("7.")) {
|
|
45
43
|
proto = Object.getPrototypeOf(api);
|
|
46
44
|
if (proto && (!hasOwnProperty.call(proto, "version") || !hasOwnProperty.call(proto, "transform") || !hasOwnProperty.call(proto, "template") || !hasOwnProperty.call(proto, "types"))) {
|
|
47
45
|
proto = null;
|
|
@@ -64,7 +62,7 @@ function throwVersionError(range, version) {
|
|
|
64
62
|
Error.stackTraceLimit = 25;
|
|
65
63
|
}
|
|
66
64
|
let err;
|
|
67
|
-
if (version.
|
|
65
|
+
if (version.startsWith("7.")) {
|
|
68
66
|
err = new Error(`Requires Babel "^7.0.0-beta.41", but was loaded with "${version}". ` + `You'll need to update your @babel/core version.`);
|
|
69
67
|
} else {
|
|
70
68
|
err = new Error(`Requires Babel "${range}", but was loaded with "${version}". ` + `If you are sure you have a compatible version of @babel/core, ` + `it is likely that something in your build process is loading the ` + `wrong version. Inspect the stack trace of this error to look for ` + `the first entry that doesn't mention "@babel/core" or "babel-core" ` + `to see what is calling Babel.`);
|
package/transform-angular.esm.js
CHANGED
|
@@ -14,17 +14,15 @@ const apiPolyfills = {
|
|
|
14
14
|
throwVersionError(range, api.version);
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
|
-
{
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
});
|
|
27
|
-
}
|
|
17
|
+
Object.assign(apiPolyfills, {
|
|
18
|
+
targets: () => () => {
|
|
19
|
+
return {};
|
|
20
|
+
},
|
|
21
|
+
assumption: () => () => {
|
|
22
|
+
return undefined;
|
|
23
|
+
},
|
|
24
|
+
addExternalDependency: () => () => {}
|
|
25
|
+
});
|
|
28
26
|
function declare(builder) {
|
|
29
27
|
return (api, options, dirname) => {
|
|
30
28
|
let clonedApi;
|
|
@@ -39,7 +37,7 @@ function declare(builder) {
|
|
|
39
37
|
lib.declarePreset = declare;
|
|
40
38
|
function copyApiObject(api) {
|
|
41
39
|
let proto = null;
|
|
42
|
-
if (typeof api.version === "string" &&
|
|
40
|
+
if (typeof api.version === "string" && api.version.startsWith("7.")) {
|
|
43
41
|
proto = Object.getPrototypeOf(api);
|
|
44
42
|
if (proto && (!hasOwnProperty.call(proto, "version") || !hasOwnProperty.call(proto, "transform") || !hasOwnProperty.call(proto, "template") || !hasOwnProperty.call(proto, "types"))) {
|
|
45
43
|
proto = null;
|
|
@@ -62,7 +60,7 @@ function throwVersionError(range, version) {
|
|
|
62
60
|
Error.stackTraceLimit = 25;
|
|
63
61
|
}
|
|
64
62
|
let err;
|
|
65
|
-
if (version.
|
|
63
|
+
if (version.startsWith("7.")) {
|
|
66
64
|
err = new Error(`Requires Babel "^7.0.0-beta.41", but was loaded with "${version}". ` + `You'll need to update your @babel/core version.`);
|
|
67
65
|
} else {
|
|
68
66
|
err = new Error(`Requires Babel "${range}", but was loaded with "${version}". ` + `If you are sure you have a compatible version of @babel/core, ` + `it is likely that something in your build process is loading the ` + `wrong version. Inspect the stack trace of this error to look for ` + `the first entry that doesn't mention "@babel/core" or "babel-core" ` + `to see what is calling Babel.`);
|