chayns-api 2.6.3 → 2.6.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.
|
@@ -7,7 +7,6 @@ exports.TrustedDomainsPlugin = void 0;
|
|
|
7
7
|
exports.isTrustedDomainsError = isTrustedDomainsError;
|
|
8
8
|
class TrustedDomainsError extends Error {
|
|
9
9
|
name = 'TrustedDomainsError';
|
|
10
|
-
isTrustedDomainsError = true;
|
|
11
10
|
constructor(entry) {
|
|
12
11
|
super('Remote entry ' + entry + ' is not in trusted domains');
|
|
13
12
|
}
|
|
@@ -30,5 +29,5 @@ const TrustedDomainsPlugin = (trustedDomains = []) => {
|
|
|
30
29
|
};
|
|
31
30
|
exports.TrustedDomainsPlugin = TrustedDomainsPlugin;
|
|
32
31
|
function isTrustedDomainsError(error) {
|
|
33
|
-
return error instanceof Error && error.name === 'TrustedDomainsError'
|
|
32
|
+
return error instanceof Error && error.name === 'TrustedDomainsError';
|
|
34
33
|
}
|
|
@@ -5,7 +5,6 @@ class TrustedDomainsError extends Error {
|
|
|
5
5
|
constructor(entry) {
|
|
6
6
|
super('Remote entry ' + entry + ' is not in trusted domains');
|
|
7
7
|
_defineProperty(this, "name", 'TrustedDomainsError');
|
|
8
|
-
_defineProperty(this, "isTrustedDomainsError", true);
|
|
9
8
|
}
|
|
10
9
|
}
|
|
11
10
|
export const TrustedDomainsPlugin = (trustedDomains = []) => {
|
|
@@ -25,5 +24,5 @@ export const TrustedDomainsPlugin = (trustedDomains = []) => {
|
|
|
25
24
|
};
|
|
26
25
|
};
|
|
27
26
|
export function isTrustedDomainsError(error) {
|
|
28
|
-
return error instanceof Error && error.name === 'TrustedDomainsError'
|
|
27
|
+
return error instanceof Error && error.name === 'TrustedDomainsError';
|
|
29
28
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ModuleFederationRuntimePlugin } from '@module-federation/enhanced/runtime';
|
|
2
2
|
declare class TrustedDomainsError extends Error {
|
|
3
3
|
readonly name: "TrustedDomainsError";
|
|
4
|
-
readonly isTrustedDomainsError: true;
|
|
5
4
|
constructor(entry: string);
|
|
6
5
|
}
|
|
7
6
|
export declare const TrustedDomainsPlugin: (trustedDomains?: string[]) => ModuleFederationRuntimePlugin;
|