every-plugin 0.1.2 → 0.1.3
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/dist/runtime/index.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export interface IPluginRuntime {
|
|
|
14
14
|
readonly shutdown: () => Effect.Effect<void, never, never>;
|
|
15
15
|
}
|
|
16
16
|
declare const PluginRuntime_base: import("effect/Context").TagClass<PluginRuntime, "PluginRuntime", IPluginRuntime> & Effect.Tag.Proxy<PluginRuntime, IPluginRuntime> & {
|
|
17
|
-
use: <X>(body: (_: IPluginRuntime) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E,
|
|
17
|
+
use: <X>(body: (_: IPluginRuntime) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, R | PluginRuntime> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1, import("effect/Cause").UnknownException, PluginRuntime> : Effect.Effect<X, never, PluginRuntime>;
|
|
18
18
|
};
|
|
19
19
|
export declare class PluginRuntime extends PluginRuntime_base {
|
|
20
20
|
static Live: (config: PluginRuntimeConfig) => Layer.Layer<PluginRuntime, never, never>;
|
|
@@ -5,7 +5,7 @@ export interface IModuleFederationService {
|
|
|
5
5
|
readonly loadRemoteConstructor: (pluginId: string, url: string) => Effect.Effect<any, ModuleFederationError>;
|
|
6
6
|
}
|
|
7
7
|
declare const ModuleFederationService_base: import("effect/Context").TagClass<ModuleFederationService, "ModuleFederationService", IModuleFederationService> & Effect.Tag.Proxy<ModuleFederationService, IModuleFederationService> & {
|
|
8
|
-
use: <X>(body: (_: IModuleFederationService) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E,
|
|
8
|
+
use: <X>(body: (_: IModuleFederationService) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, ModuleFederationService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1, import("effect/Cause").UnknownException, ModuleFederationService> : Effect.Effect<X, never, ModuleFederationService>;
|
|
9
9
|
};
|
|
10
10
|
export declare class ModuleFederationService extends ModuleFederationService_base {
|
|
11
11
|
static Live: Layer.Layer<ModuleFederationService, never, never>;
|
|
@@ -21,9 +21,9 @@ declare const PluginService_base: import("effect/Context").TagClass<PluginServic
|
|
|
21
21
|
use: <X>(body: (_: IPluginService) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, R | PluginService> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1, import("effect/Cause").UnknownException, PluginService> : Effect.Effect<X, never, PluginService>;
|
|
22
22
|
};
|
|
23
23
|
export declare class PluginService extends PluginService_base {
|
|
24
|
-
static Live: (registry: PluginRegistry, secrets: SecretsConfig) => Layer.Layer<PluginService, never, PluginLoggerTag |
|
|
24
|
+
static Live: (registry: PluginRegistry, secrets: SecretsConfig) => Layer.Layer<PluginService, never, PluginLoggerTag | ModuleFederationService | SecretsService>;
|
|
25
25
|
}
|
|
26
26
|
export declare const PluginServiceTag: typeof PluginService;
|
|
27
|
-
export declare const PluginServiceLive: (registry: PluginRegistry, secrets: SecretsConfig) => Layer.Layer<PluginService, never, PluginLoggerTag |
|
|
27
|
+
export declare const PluginServiceLive: (registry: PluginRegistry, secrets: SecretsConfig) => Layer.Layer<PluginService, never, PluginLoggerTag | ModuleFederationService | SecretsService>;
|
|
28
28
|
export {};
|
|
29
29
|
//# sourceMappingURL=plugin.service.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,59 +1,76 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
2
|
+
"name": "every-plugin",
|
|
3
|
+
"version": "0.1.3",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"types": "dist/index.d.ts",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"default": "./dist/index.js"
|
|
10
|
+
},
|
|
11
|
+
"./runtime": {
|
|
12
|
+
"types": "./dist/runtime/index.d.ts",
|
|
13
|
+
"default": "./dist/runtime/index.js"
|
|
14
|
+
},
|
|
15
|
+
"./testing": {
|
|
16
|
+
"types": "./dist/testing/index.d.ts",
|
|
17
|
+
"default": "./dist/testing/index.js"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"dist"
|
|
22
|
+
],
|
|
23
|
+
"scripts": {
|
|
24
|
+
"build": "tsc -b",
|
|
25
|
+
"test": "vitest run --config vitest.unit.config.ts",
|
|
26
|
+
"test:unit": "vitest run --config vitest.unit.config.ts",
|
|
27
|
+
"test:integration": "npm run test:build-plugin && vitest run --config vitest.integration.config.ts",
|
|
28
|
+
"test:all": "npm run test:unit && npm run test:integration",
|
|
29
|
+
"test:watch": "vitest --config vitest.unit.config.ts --watch",
|
|
30
|
+
"test:watch:integration": "vitest --config vitest.integration.config.ts --watch",
|
|
31
|
+
"test:ui": "vitest --ui",
|
|
32
|
+
"test:build-plugin": "cd __tests__/test-plugin && NODE_ENV=test npm run build"
|
|
33
|
+
},
|
|
34
|
+
"peerDependencies": {
|
|
35
|
+
"typescript": "^5.0.0"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@effect/language-service": "^0.38.1",
|
|
39
|
+
"@effect/vitest": "^0.25.1",
|
|
40
|
+
"@rspack/cli": "^1.5.2",
|
|
41
|
+
"@rspack/core": "^1.5.2",
|
|
42
|
+
"@types/bun": "^1.2.21",
|
|
43
|
+
"@types/node": "^24.3.1",
|
|
44
|
+
"@vitest/ui": "3.2.4",
|
|
45
|
+
"bun-types": "^1.2.21",
|
|
46
|
+
"sirv": "^3.0.2",
|
|
47
|
+
"vitest": "^3.2.4"
|
|
48
|
+
},
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"@better-fetch/fetch": "^1.1.18",
|
|
51
|
+
"@module-federation/enhanced": "^0.18.3",
|
|
52
|
+
"@module-federation/node": "^2.7.15",
|
|
53
|
+
"@module-federation/runtime-core": "^0.18.3",
|
|
54
|
+
"@orpc/contract": "^1.8.6",
|
|
55
|
+
"@orpc/server": "^1.8.6",
|
|
56
|
+
"effect": "^3.17.13",
|
|
57
|
+
"zod": "^4.1.5"
|
|
58
|
+
},
|
|
59
|
+
"keywords": [
|
|
60
|
+
"plugin",
|
|
61
|
+
"module-federation",
|
|
62
|
+
"orpc",
|
|
63
|
+
"zod",
|
|
64
|
+
"typescript"
|
|
65
|
+
],
|
|
66
|
+
"author": "everything.near",
|
|
67
|
+
"license": "MIT",
|
|
68
|
+
"repository": {
|
|
69
|
+
"type": "git",
|
|
70
|
+
"url": "https://github.com/near-everything/every-plugin.git"
|
|
71
|
+
},
|
|
72
|
+
"bugs": {
|
|
73
|
+
"url": "https://github.com/near-everything/every-plugin/issues"
|
|
74
|
+
},
|
|
75
|
+
"homepage": "https://plugin.everything.dev"
|
|
59
76
|
}
|