@module-federation/runtime 0.1.5 → 0.1.7

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 (48) hide show
  1. package/dist/LICENSE +21 -0
  2. package/dist/helpers.cjs.d.ts +2 -0
  3. package/dist/helpers.cjs.js +34 -0
  4. package/dist/helpers.esm.js +32 -0
  5. package/dist/index.cjs.d.ts +1 -0
  6. package/dist/index.cjs.js +1808 -0
  7. package/dist/index.esm.js +1788 -0
  8. package/dist/package.json +50 -0
  9. package/dist/share.cjs.js +878 -0
  10. package/dist/share.esm.js +839 -0
  11. package/dist/src/constant.d.ts +2 -0
  12. package/dist/src/core.d.ts +170 -0
  13. package/dist/src/global.d.ts +43 -0
  14. package/dist/src/helpers.d.ts +33 -0
  15. package/dist/src/index.d.ts +15 -0
  16. package/dist/src/module/index.d.ts +19 -0
  17. package/dist/src/plugins/generate-preload-assets.d.ts +8 -0
  18. package/dist/src/plugins/snapshot/SnapshotHandler.d.ts +44 -0
  19. package/dist/src/plugins/snapshot/index.d.ts +5 -0
  20. package/dist/src/type/config.d.ts +104 -0
  21. package/dist/src/type/index.d.ts +3 -0
  22. package/dist/src/type/plugin.d.ts +20 -0
  23. package/dist/src/type/preload.d.ts +26 -0
  24. package/dist/src/types.d.ts +1 -0
  25. package/dist/src/utils/env.d.ts +4 -0
  26. package/dist/src/utils/hooks/asyncHook.d.ts +6 -0
  27. package/dist/src/utils/hooks/asyncWaterfallHooks.d.ts +10 -0
  28. package/dist/src/utils/hooks/index.d.ts +6 -0
  29. package/dist/src/utils/hooks/pluginSystem.d.ts +15 -0
  30. package/dist/src/utils/hooks/syncHook.d.ts +12 -0
  31. package/dist/src/utils/hooks/syncWaterfallHook.d.ts +9 -0
  32. package/dist/src/utils/index.d.ts +6 -0
  33. package/dist/src/utils/load.d.ts +18 -0
  34. package/dist/src/utils/logger.d.ts +3 -0
  35. package/dist/src/utils/manifest.d.ts +7 -0
  36. package/dist/src/utils/plugin.d.ts +4 -0
  37. package/dist/src/utils/preload.d.ts +6 -0
  38. package/dist/src/utils/semver/compare.d.ts +9 -0
  39. package/dist/src/utils/semver/constants.d.ts +10 -0
  40. package/dist/src/utils/semver/index.d.ts +2 -0
  41. package/dist/src/utils/semver/parser.d.ts +9 -0
  42. package/dist/src/utils/semver/utils.d.ts +11 -0
  43. package/dist/src/utils/share.d.ts +22 -0
  44. package/dist/src/utils/tool.d.ts +13 -0
  45. package/dist/types.cjs.d.ts +1 -0
  46. package/dist/types.cjs.js +2 -0
  47. package/dist/types.esm.js +1 -0
  48. package/package.json +2 -2
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "@module-federation/runtime",
3
+ "version": "0.1.7",
4
+ "author": "zhouxiao <codingzx@gmail.com>",
5
+ "main": "./index.cjs.js",
6
+ "module": "./index.esm.js",
7
+ "types": "./dist/index.cjs.d.ts",
8
+ "license": "MIT",
9
+ "publishConfig": {
10
+ "access": "public"
11
+ },
12
+ "files": [
13
+ "dist/",
14
+ "README.md"
15
+ ],
16
+ "exports": {
17
+ ".": {
18
+ "types": "./dist/index.cjs.d.ts",
19
+ "import": "./dist/index.esm.js",
20
+ "require": "./dist/index.cjs.js"
21
+ },
22
+ "./helpers": {
23
+ "types": "./dist/helpers.cjs.d.ts",
24
+ "import": "./dist/helpers.esm.js",
25
+ "require": "./dist/helpers.cjs.js"
26
+ },
27
+ "./types": {
28
+ "types": "./dist/types.cjs.d.ts",
29
+ "import": "./dist/types.esm.js",
30
+ "require": "./dist/types.cjs.js"
31
+ },
32
+ "./*": "./*"
33
+ },
34
+ "typesVersions": {
35
+ "*": {
36
+ ".": [
37
+ "./dist/index.cjs.d.ts"
38
+ ],
39
+ "helpers": [
40
+ "./dist/helpers.cjs.d.ts"
41
+ ],
42
+ "types": [
43
+ "./dist/types.cjs.d.ts"
44
+ ]
45
+ }
46
+ },
47
+ "dependencies": {
48
+ "@module-federation/sdk": "workspace:*"
49
+ }
50
+ }