@bleedingdev/modern-js-plugin-bff 3.2.0-ultramodern.5 → 3.2.0-ultramodern.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.
|
@@ -25,6 +25,7 @@ var __webpack_exports__ = {};
|
|
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
27
|
Effect: ()=>Effect_namespaceObject,
|
|
28
|
+
EffectRpcClientError: ()=>EffectRpcClientError,
|
|
28
29
|
HttpApi: ()=>httpapi_namespaceObject.HttpApi,
|
|
29
30
|
HttpApiClient: ()=>httpapi_namespaceObject.HttpApiClient,
|
|
30
31
|
HttpApiEndpoint: ()=>httpapi_namespaceObject.HttpApiEndpoint,
|
|
@@ -44,6 +45,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
44
45
|
runEffectView: ()=>runEffectView,
|
|
45
46
|
view: ()=>view
|
|
46
47
|
});
|
|
48
|
+
const Data_namespaceObject = require("effect/Data");
|
|
47
49
|
const Effect_namespaceObject = require("effect/Effect");
|
|
48
50
|
const Exit_namespaceObject = require("effect/Exit");
|
|
49
51
|
const Layer_namespaceObject = require("effect/Layer");
|
|
@@ -53,6 +55,8 @@ const http_namespaceObject = require("effect/unstable/http");
|
|
|
53
55
|
const httpapi_namespaceObject = require("effect/unstable/httpapi");
|
|
54
56
|
const rpc_namespaceObject = require("effect/unstable/rpc");
|
|
55
57
|
const Schema_namespaceObject = require("effect/Schema");
|
|
58
|
+
class EffectRpcClientError extends Data_namespaceObject.TaggedError('EffectRpcClientError') {
|
|
59
|
+
}
|
|
56
60
|
function isRecord(value) {
|
|
57
61
|
return 'object' == typeof value && null !== value && !Array.isArray(value);
|
|
58
62
|
}
|
|
@@ -129,11 +133,14 @@ function makeEffectRpcClient(group, options) {
|
|
|
129
133
|
throw error;
|
|
130
134
|
}
|
|
131
135
|
},
|
|
132
|
-
catch: (error)=>
|
|
136
|
+
catch: (error)=>new EffectRpcClientError({
|
|
137
|
+
cause: error
|
|
138
|
+
})
|
|
133
139
|
});
|
|
134
140
|
}
|
|
135
141
|
const runEffectRequest = Effect_namespaceObject.runPromise;
|
|
136
142
|
exports.Effect = __webpack_exports__.Effect;
|
|
143
|
+
exports.EffectRpcClientError = __webpack_exports__.EffectRpcClientError;
|
|
137
144
|
exports.HttpApi = __webpack_exports__.HttpApi;
|
|
138
145
|
exports.HttpApiClient = __webpack_exports__.HttpApiClient;
|
|
139
146
|
exports.HttpApiEndpoint = __webpack_exports__.HttpApiEndpoint;
|
|
@@ -154,6 +161,7 @@ exports.runEffectView = __webpack_exports__.runEffectView;
|
|
|
154
161
|
exports.view = __webpack_exports__.view;
|
|
155
162
|
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
156
163
|
"Effect",
|
|
164
|
+
"EffectRpcClientError",
|
|
157
165
|
"HttpApi",
|
|
158
166
|
"HttpApiClient",
|
|
159
167
|
"HttpApiEndpoint",
|
|
@@ -4,9 +4,12 @@ import { FetchHttpClient } from "effect/unstable/http";
|
|
|
4
4
|
import { HttpApi, HttpApiClient, HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/unstable/httpapi";
|
|
5
5
|
import { Rpc, RpcClient, RpcGroup, RpcSchema, RpcSerialization } from "effect/unstable/rpc";
|
|
6
6
|
import * as __rspack_external_effect_Schema_f8472650 from "effect/Schema";
|
|
7
|
+
import * as __rspack_external_effect_Data_7c33fca9 from "effect/Data";
|
|
7
8
|
import * as __rspack_external_effect_Exit_a10cfb96 from "effect/Exit";
|
|
8
9
|
import * as __rspack_external_effect_ManagedRuntime_94dd2709 from "effect/ManagedRuntime";
|
|
9
10
|
import * as __rspack_external_effect_Scope_3211a2d6 from "effect/Scope";
|
|
11
|
+
class EffectRpcClientError extends __rspack_external_effect_Data_7c33fca9.TaggedError('EffectRpcClientError') {
|
|
12
|
+
}
|
|
10
13
|
function isRecord(value) {
|
|
11
14
|
return 'object' == typeof value && null !== value && !Array.isArray(value);
|
|
12
15
|
}
|
|
@@ -83,8 +86,10 @@ function makeEffectRpcClient(group, options) {
|
|
|
83
86
|
throw error;
|
|
84
87
|
}
|
|
85
88
|
},
|
|
86
|
-
catch: (error)=>
|
|
89
|
+
catch: (error)=>new EffectRpcClientError({
|
|
90
|
+
cause: error
|
|
91
|
+
})
|
|
87
92
|
});
|
|
88
93
|
}
|
|
89
94
|
const runEffectRequest = __rspack_external_effect_Effect_194ac36c.runPromise;
|
|
90
|
-
export { HttpApi, HttpApiClient, HttpApiEndpoint, HttpApiGroup, HttpApiSchema, Rpc, RpcClient, RpcGroup, RpcSchema, RpcSerialization, __rspack_external_effect_Effect_194ac36c as Effect, __rspack_external_effect_Layer_16f7a8fc as Layer, __rspack_external_effect_Schema_f8472650 as Schema, makeEffectHttpApiClient, makeEffectRpcClient, mask, runEffectRequest, runEffectView, view };
|
|
95
|
+
export { EffectRpcClientError, HttpApi, HttpApiClient, HttpApiEndpoint, HttpApiGroup, HttpApiSchema, Rpc, RpcClient, RpcGroup, RpcSchema, RpcSerialization, __rspack_external_effect_Effect_194ac36c as Effect, __rspack_external_effect_Layer_16f7a8fc as Layer, __rspack_external_effect_Schema_f8472650 as Schema, makeEffectHttpApiClient, makeEffectRpcClient, mask, runEffectRequest, runEffectView, view };
|
|
@@ -5,9 +5,12 @@ import { FetchHttpClient } from "effect/unstable/http";
|
|
|
5
5
|
import { HttpApi, HttpApiClient, HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/unstable/httpapi";
|
|
6
6
|
import { Rpc, RpcClient, RpcGroup, RpcSchema, RpcSerialization } from "effect/unstable/rpc";
|
|
7
7
|
import * as __rspack_external_effect_Schema_f8472650 from "effect/Schema";
|
|
8
|
+
import * as __rspack_external_effect_Data_7c33fca9 from "effect/Data";
|
|
8
9
|
import * as __rspack_external_effect_Exit_a10cfb96 from "effect/Exit";
|
|
9
10
|
import * as __rspack_external_effect_ManagedRuntime_94dd2709 from "effect/ManagedRuntime";
|
|
10
11
|
import * as __rspack_external_effect_Scope_3211a2d6 from "effect/Scope";
|
|
12
|
+
class EffectRpcClientError extends __rspack_external_effect_Data_7c33fca9.TaggedError('EffectRpcClientError') {
|
|
13
|
+
}
|
|
11
14
|
function isRecord(value) {
|
|
12
15
|
return 'object' == typeof value && null !== value && !Array.isArray(value);
|
|
13
16
|
}
|
|
@@ -84,8 +87,10 @@ function makeEffectRpcClient(group, options) {
|
|
|
84
87
|
throw error;
|
|
85
88
|
}
|
|
86
89
|
},
|
|
87
|
-
catch: (error)=>
|
|
90
|
+
catch: (error)=>new EffectRpcClientError({
|
|
91
|
+
cause: error
|
|
92
|
+
})
|
|
88
93
|
});
|
|
89
94
|
}
|
|
90
95
|
const runEffectRequest = __rspack_external_effect_Effect_194ac36c.runPromise;
|
|
91
|
-
export { HttpApi, HttpApiClient, HttpApiEndpoint, HttpApiGroup, HttpApiSchema, Rpc, RpcClient, RpcGroup, RpcSchema, RpcSerialization, __rspack_external_effect_Effect_194ac36c as Effect, __rspack_external_effect_Layer_16f7a8fc as Layer, __rspack_external_effect_Schema_f8472650 as Schema, makeEffectHttpApiClient, makeEffectRpcClient, mask, runEffectRequest, runEffectView, view };
|
|
96
|
+
export { EffectRpcClientError, HttpApi, HttpApiClient, HttpApiEndpoint, HttpApiGroup, HttpApiSchema, Rpc, RpcClient, RpcGroup, RpcSchema, RpcSerialization, __rspack_external_effect_Effect_194ac36c as Effect, __rspack_external_effect_Layer_16f7a8fc as Layer, __rspack_external_effect_Schema_f8472650 as Schema, makeEffectHttpApiClient, makeEffectRpcClient, mask, runEffectRequest, runEffectView, view };
|
|
@@ -22,6 +22,13 @@ export type EffectViewData<T, Selection> = Selection extends true ? T : Selectio
|
|
|
22
22
|
[K in keyof Selection & keyof T]: EffectMaskedValue<T[K], Selection[K]>;
|
|
23
23
|
} : T;
|
|
24
24
|
export type EffectRpcSerialization = 'json' | 'ndjson' | 'jsonRpc' | 'ndJsonRpc' | 'msgPack';
|
|
25
|
+
declare const EffectRpcClientError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
26
|
+
readonly _tag: "EffectRpcClientError";
|
|
27
|
+
} & Readonly<A>;
|
|
28
|
+
export declare class EffectRpcClientError extends EffectRpcClientError_base<{
|
|
29
|
+
readonly cause: unknown;
|
|
30
|
+
}> {
|
|
31
|
+
}
|
|
25
32
|
type EffectRpcMiddlewareLayerOption<Rpcs extends Rpc.Any> = [
|
|
26
33
|
Rpc.MiddlewareClient<Rpcs>
|
|
27
34
|
] extends [never] ? {
|
|
@@ -43,5 +50,5 @@ export declare function runEffectView<T, const Selection extends EffectViewSelec
|
|
|
43
50
|
export declare function makeEffectHttpApiClient<ApiId extends string, Groups extends HttpApiGroup.Any>(api: HttpApi.HttpApi<ApiId, Groups>, options?: EffectHttpApiClientOptions): Effect.Effect<import("effect/Types").Simplify<{ readonly [Group in Extract<Groups, {
|
|
44
51
|
readonly topLevel: false;
|
|
45
52
|
}> as HttpApiGroup.Name<Group>]: HttpApiClient.Client.Group<Group, Group["identifier"], never, never>; } & { readonly [Method in HttpApiClient.Client.TopLevelMethods<Groups, never, never> as Method[0]]: Method[1]; }>, never, Exclude<import("effect/unstable/httpapi/HttpApiMiddleware").MiddlewareClient<HttpApiEndpoint.Middleware<HttpApiGroup.Endpoints<Groups>>>, import("effect/unstable/http/HttpClient").HttpClient>>;
|
|
46
|
-
export declare function makeEffectRpcClient<Rpcs extends Rpc.Any, const Flatten extends boolean = false>(group: RpcGroup.RpcGroup<Rpcs>, options: EffectRpcClientOptions<Rpcs, Flatten>): Effect.Effect<EffectRpcClientHandle<Rpcs, Flatten>,
|
|
53
|
+
export declare function makeEffectRpcClient<Rpcs extends Rpc.Any, const Flatten extends boolean = false>(group: RpcGroup.RpcGroup<Rpcs>, options: EffectRpcClientOptions<Rpcs, Flatten>): Effect.Effect<EffectRpcClientHandle<Rpcs, Flatten>, EffectRpcClientError, never>;
|
|
47
54
|
export declare const runEffectRequest: <A, E>(effect: Effect.Effect<A, E>, options?: Effect.RunOptions | undefined) => Promise<A>;
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"modern",
|
|
18
18
|
"modern.js"
|
|
19
19
|
],
|
|
20
|
-
"version": "3.2.0-ultramodern.
|
|
20
|
+
"version": "3.2.0-ultramodern.8",
|
|
21
21
|
"types": "./dist/types/cli.d.ts",
|
|
22
22
|
"main": "./dist/cjs/cli.js",
|
|
23
23
|
"exports": {
|
|
@@ -136,12 +136,12 @@
|
|
|
136
136
|
"effect": "4.0.0-beta.66",
|
|
137
137
|
"qs": "^6.15.1",
|
|
138
138
|
"type-is": "^2.1.0",
|
|
139
|
-
"@modern-js/bff-core": "npm:@bleedingdev/modern-js-bff-core@3.2.0-ultramodern.
|
|
140
|
-
"@modern-js/builder": "npm:@bleedingdev/modern-js-builder@3.2.0-ultramodern.
|
|
141
|
-
"@modern-js/create-request": "npm:@bleedingdev/modern-js-create-request@3.2.0-ultramodern.
|
|
142
|
-
"@modern-js/server-core": "npm:@bleedingdev/modern-js-server-core@3.2.0-ultramodern.
|
|
143
|
-
"@modern-js/
|
|
144
|
-
"@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.2.0-ultramodern.
|
|
139
|
+
"@modern-js/bff-core": "npm:@bleedingdev/modern-js-bff-core@3.2.0-ultramodern.8",
|
|
140
|
+
"@modern-js/builder": "npm:@bleedingdev/modern-js-builder@3.2.0-ultramodern.8",
|
|
141
|
+
"@modern-js/create-request": "npm:@bleedingdev/modern-js-create-request@3.2.0-ultramodern.8",
|
|
142
|
+
"@modern-js/server-core": "npm:@bleedingdev/modern-js-server-core@3.2.0-ultramodern.8",
|
|
143
|
+
"@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.2.0-ultramodern.8",
|
|
144
|
+
"@modern-js/server-utils": "npm:@bleedingdev/modern-js-server-utils@3.2.0-ultramodern.8"
|
|
145
145
|
},
|
|
146
146
|
"devDependencies": {
|
|
147
147
|
"@rsbuild/core": "2.0.6",
|
|
@@ -152,12 +152,12 @@
|
|
|
152
152
|
"@typescript/native-preview": "7.0.0-dev.20260516.1",
|
|
153
153
|
"memfs": "^4.57.2",
|
|
154
154
|
"zod": "^4.4.3",
|
|
155
|
-
"@modern-js/
|
|
156
|
-
"@modern-js/runtime": "npm:@bleedingdev/modern-js-runtime@3.2.0-ultramodern.
|
|
157
|
-
"@modern-js/plugin": "npm:@bleedingdev/modern-js-plugin@3.2.0-ultramodern.
|
|
158
|
-
"@modern-js/
|
|
159
|
-
"@
|
|
160
|
-
"@
|
|
155
|
+
"@modern-js/app-tools": "npm:@bleedingdev/modern-js-app-tools@3.2.0-ultramodern.8",
|
|
156
|
+
"@modern-js/bff-runtime": "npm:@bleedingdev/modern-js-bff-runtime@3.2.0-ultramodern.8",
|
|
157
|
+
"@modern-js/plugin": "npm:@bleedingdev/modern-js-plugin@3.2.0-ultramodern.8",
|
|
158
|
+
"@modern-js/runtime": "npm:@bleedingdev/modern-js-runtime@3.2.0-ultramodern.8",
|
|
159
|
+
"@scripts/rstest-config": "2.66.0",
|
|
160
|
+
"@modern-js/types": "npm:@bleedingdev/modern-js-types@3.2.0-ultramodern.8"
|
|
161
161
|
},
|
|
162
162
|
"sideEffects": false,
|
|
163
163
|
"publishConfig": {
|