@orpc/shared 0.0.0-next.b825e0c → 0.0.0-next.bc9d3dd
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/index.js +5 -5
- package/package.json +1 -2
package/dist/index.js
CHANGED
|
@@ -76,17 +76,17 @@ function onFinish(callback) {
|
|
|
76
76
|
}
|
|
77
77
|
async function intercept(interceptors, options, main) {
|
|
78
78
|
let index = 0;
|
|
79
|
-
const next = async (
|
|
79
|
+
const next = async (options2) => {
|
|
80
80
|
const interceptor = interceptors[index++];
|
|
81
81
|
if (!interceptor) {
|
|
82
|
-
return await main(
|
|
82
|
+
return await main(options2);
|
|
83
83
|
}
|
|
84
84
|
return await interceptor({
|
|
85
|
-
...
|
|
86
|
-
next
|
|
85
|
+
...options2,
|
|
86
|
+
next: (newOptions = options2) => next(newOptions)
|
|
87
87
|
});
|
|
88
88
|
};
|
|
89
|
-
return await next();
|
|
89
|
+
return await next(options);
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
// src/json.ts
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orpc/shared",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.0-next.
|
|
4
|
+
"version": "0.0.0-next.bc9d3dd",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://orpc.unnoq.com",
|
|
7
7
|
"repository": {
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
"dist"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@standard-schema/spec": "1.0.0-beta.4",
|
|
33
32
|
"is-what": "^5.0.2",
|
|
34
33
|
"radash": "^12.1.0",
|
|
35
34
|
"type-fest": "^4.26.1"
|