@module-federation/runtime 2.0.0 → 2.0.1
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/README.md +1 -1
- package/dist/helpers.cjs.cjs +18 -9
- package/dist/helpers.cjs.cjs.map +1 -1
- package/dist/helpers.esm.js +12 -8
- package/dist/helpers.esm.js.map +1 -1
- package/dist/src/helpers.d.ts +26 -0
- package/package.json +7 -4
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
## Documentation
|
|
8
8
|
|
|
9
|
-
See [https://module-federation.io/guide/
|
|
9
|
+
See [https://module-federation.io/guide/runtime/index.html](https://module-federation.io/guide/runtime/index.html) for details.
|
|
10
10
|
|
|
11
11
|
## License
|
|
12
12
|
|
package/dist/helpers.cjs.cjs
CHANGED
|
@@ -1,15 +1,24 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
var runtimeCore = require('@module-federation/runtime-core');
|
|
4
|
-
var utils = require('./utils.cjs.cjs');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
...runtimeCore.helpers,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
var utils$1 = require('./utils.cjs.cjs');
|
|
7
|
+
|
|
8
|
+
const global = {
|
|
9
|
+
...runtimeCore.helpers.global,
|
|
10
|
+
getGlobalFederationInstance: utils$1.getGlobalFederationInstance,
|
|
11
|
+
};
|
|
12
|
+
const share = runtimeCore.helpers.share;
|
|
13
|
+
const utils = runtimeCore.helpers.utils;
|
|
14
|
+
const runtimeHelpers = {
|
|
15
|
+
global,
|
|
16
|
+
share,
|
|
17
|
+
utils,
|
|
12
18
|
};
|
|
13
19
|
|
|
14
|
-
|
|
20
|
+
exports.default = runtimeHelpers;
|
|
21
|
+
exports.global = global;
|
|
22
|
+
exports.share = share;
|
|
23
|
+
exports.utils = utils;
|
|
15
24
|
//# sourceMappingURL=helpers.cjs.cjs.map
|
package/dist/helpers.cjs.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.cjs.cjs","sources":["../src/helpers.ts"],"sourcesContent":[null],"names":["helpers","getGlobalFederationInstance"],"mappings":"
|
|
1
|
+
{"version":3,"file":"helpers.cjs.cjs","sources":["../src/helpers.ts"],"sourcesContent":[null],"names":["helpers","getGlobalFederationInstance"],"mappings":";;;;;;;AAQO,MAAM,MAAM,GAAG;IACpB,GAAGA,mBAAO,CAAC,MAAM;iCACjBC,mCAA2B;;AAGtB,MAAM,KAAK,GAAGD,mBAAO,CAAC;AAEtB,MAAM,KAAK,GAAGA,mBAAO,CAAC;AAE7B,MAAM,cAAc,GAAG;IACrB,MAAM;IACN,KAAK;IACL,KAAK;;;;;;;;"}
|
package/dist/helpers.esm.js
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import { helpers
|
|
1
|
+
import { helpers } from '@module-federation/runtime-core';
|
|
2
2
|
import { g as getGlobalFederationInstance } from './utils.esm.js';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
...helpers
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
const global = {
|
|
5
|
+
...helpers.global,
|
|
6
|
+
getGlobalFederationInstance,
|
|
7
|
+
};
|
|
8
|
+
const share = helpers.share;
|
|
9
|
+
const utils = helpers.utils;
|
|
10
|
+
const runtimeHelpers = {
|
|
11
|
+
global,
|
|
12
|
+
share,
|
|
13
|
+
utils,
|
|
10
14
|
};
|
|
11
15
|
|
|
12
|
-
export {
|
|
16
|
+
export { runtimeHelpers as default, global, share, utils };
|
|
13
17
|
//# sourceMappingURL=helpers.esm.js.map
|
package/dist/helpers.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.esm.js","sources":["../src/helpers.ts"],"sourcesContent":[null],"names":[
|
|
1
|
+
{"version":3,"file":"helpers.esm.js","sources":["../src/helpers.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAQO,MAAM,MAAM,GAAG;IACpB,GAAG,OAAO,CAAC,MAAM;IACjB,2BAA2B;;AAGtB,MAAM,KAAK,GAAG,OAAO,CAAC;AAEtB,MAAM,KAAK,GAAG,OAAO,CAAC;AAE7B,MAAM,cAAc,GAAG;IACrB,MAAM;IACN,KAAK;IACL,KAAK;;;;;"}
|
package/dist/src/helpers.d.ts
CHANGED
|
@@ -1,6 +1,32 @@
|
|
|
1
1
|
import { helpers } from '@module-federation/runtime-core';
|
|
2
2
|
import { getGlobalFederationInstance } from './utils';
|
|
3
3
|
export type { IGlobalUtils, IShareUtils, } from '@module-federation/runtime-core';
|
|
4
|
+
export declare const global: {
|
|
5
|
+
getGlobalFederationInstance: typeof getGlobalFederationInstance;
|
|
6
|
+
Global: typeof import("@module-federation/runtime-core").Global;
|
|
7
|
+
nativeGlobal: typeof globalThis.global;
|
|
8
|
+
resetFederationGlobalInfo: typeof import("@module-federation/runtime-core").resetFederationGlobalInfo;
|
|
9
|
+
setGlobalFederationInstance: typeof import("@module-federation/runtime-core").setGlobalFederationInstance;
|
|
10
|
+
getGlobalFederationConstructor: typeof import("@module-federation/runtime-core").getGlobalFederationConstructor;
|
|
11
|
+
setGlobalFederationConstructor: typeof import("@module-federation/runtime-core").setGlobalFederationConstructor;
|
|
12
|
+
getInfoWithoutType: typeof import("@module-federation/runtime-core").getInfoWithoutType;
|
|
13
|
+
getGlobalSnapshot: typeof import("@module-federation/runtime-core").getGlobalSnapshot;
|
|
14
|
+
getTargetSnapshotInfoByModuleInfo: typeof import("packages/runtime-core/dist/src/global").getTargetSnapshotInfoByModuleInfo;
|
|
15
|
+
getGlobalSnapshotInfoByModuleInfo: typeof import("packages/runtime-core/dist/src/global").getGlobalSnapshotInfoByModuleInfo;
|
|
16
|
+
setGlobalSnapshotInfoByModuleInfo: typeof import("packages/runtime-core/dist/src/global").setGlobalSnapshotInfoByModuleInfo;
|
|
17
|
+
addGlobalSnapshot: typeof import("@module-federation/runtime-core").addGlobalSnapshot;
|
|
18
|
+
getRemoteEntryExports: typeof import("packages/runtime-core/dist/src/global").getRemoteEntryExports;
|
|
19
|
+
registerGlobalPlugins: typeof import("@module-federation/runtime-core").registerGlobalPlugins;
|
|
20
|
+
getGlobalHostPlugins: typeof import("packages/runtime-core/dist/src/global").getGlobalHostPlugins;
|
|
21
|
+
getPreloaded: typeof import("packages/runtime-core/dist/src/global").getPreloaded;
|
|
22
|
+
setPreloaded: typeof import("packages/runtime-core/dist/src/global").setPreloaded;
|
|
23
|
+
};
|
|
24
|
+
export declare const share: import("@module-federation/runtime-core").IShareUtils;
|
|
25
|
+
export declare const utils: {
|
|
26
|
+
matchRemoteWithNameAndExpose: typeof import("@module-federation/runtime-core").matchRemoteWithNameAndExpose;
|
|
27
|
+
preloadAssets: typeof import("packages/runtime-core/dist/src/utils/preload").preloadAssets;
|
|
28
|
+
getRemoteInfo: typeof import("@module-federation/runtime-core").getRemoteInfo;
|
|
29
|
+
};
|
|
4
30
|
declare const _default: {
|
|
5
31
|
global: typeof helpers.global & {
|
|
6
32
|
getGlobalFederationInstance: typeof getGlobalFederationInstance;
|
package/package.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/runtime",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "zhouxiao <codingzx@gmail.com>",
|
|
6
6
|
"main": "./dist/index.cjs.cjs",
|
|
7
7
|
"module": "./dist/index.esm.js",
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
9
|
+
"browser": {
|
|
10
|
+
"url": false
|
|
11
|
+
},
|
|
9
12
|
"license": "MIT",
|
|
10
13
|
"publishConfig": {
|
|
11
14
|
"access": "public"
|
|
@@ -79,8 +82,8 @@
|
|
|
79
82
|
}
|
|
80
83
|
},
|
|
81
84
|
"dependencies": {
|
|
82
|
-
"@module-federation/
|
|
83
|
-
"@module-federation/
|
|
84
|
-
"@module-federation/
|
|
85
|
+
"@module-federation/error-codes": "2.0.1",
|
|
86
|
+
"@module-federation/runtime-core": "2.0.1",
|
|
87
|
+
"@module-federation/sdk": "2.0.1"
|
|
85
88
|
}
|
|
86
89
|
}
|