@orpc/shared 0.0.0-next.5a89db9 → 0.0.0-next.5c351e3
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.d.mts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.mjs +8 -1
- package/package.json +6 -1
package/dist/index.d.mts
CHANGED
|
@@ -96,6 +96,9 @@ declare function isTypescriptObject(value: unknown): value is object & Record<Pr
|
|
|
96
96
|
declare function clone<T>(value: T): T;
|
|
97
97
|
declare function get(object: object, path: readonly string[]): unknown;
|
|
98
98
|
declare function isPropertyKey(value: unknown): value is PropertyKey;
|
|
99
|
+
declare const NullProtoObj: ({
|
|
100
|
+
new <T extends Record<PropertyKey, unknown>>(): T;
|
|
101
|
+
});
|
|
99
102
|
|
|
100
103
|
interface AsyncIdQueueCloseOptions {
|
|
101
104
|
id?: number;
|
|
@@ -117,5 +120,5 @@ declare class AsyncIdQueue<T> {
|
|
|
117
120
|
type Value<T, TArgs extends any[] = []> = T | ((...args: TArgs) => T);
|
|
118
121
|
declare function value<T, TArgs extends any[]>(value: Value<T, TArgs>, ...args: NoInfer<TArgs>): T extends Value<infer U, any> ? U : never;
|
|
119
122
|
|
|
120
|
-
export { AsyncIdQueue, SequentialIdGenerator, clone, createAsyncIteratorObject, findDeepMatches, get, intercept, isAsyncIteratorObject, isObject, isPropertyKey, isTypescriptObject, onError, onFinish, onStart, onSuccess, once, parseEmptyableJSON, resolveMaybeOptionalOptions, sequential, splitInHalf, stringifyJSON, toArray, value };
|
|
123
|
+
export { AsyncIdQueue, NullProtoObj, SequentialIdGenerator, clone, createAsyncIteratorObject, findDeepMatches, get, intercept, isAsyncIteratorObject, isObject, isPropertyKey, isTypescriptObject, onError, onFinish, onStart, onSuccess, once, parseEmptyableJSON, resolveMaybeOptionalOptions, sequential, splitInHalf, stringifyJSON, toArray, value };
|
|
121
124
|
export type { AnyFunction, AsyncIdQueueCloseOptions, CreateAsyncIteratorObjectCleanupFn, InterceptableOptions, Interceptor, InterceptorOptions, IntersectPick, MaybeOptionalOptions, OmitChainMethodDeep, OnFinishState, PromiseWithError, Registry, Segment, SetOptional, ThrowableError, Value };
|
package/dist/index.d.ts
CHANGED
|
@@ -96,6 +96,9 @@ declare function isTypescriptObject(value: unknown): value is object & Record<Pr
|
|
|
96
96
|
declare function clone<T>(value: T): T;
|
|
97
97
|
declare function get(object: object, path: readonly string[]): unknown;
|
|
98
98
|
declare function isPropertyKey(value: unknown): value is PropertyKey;
|
|
99
|
+
declare const NullProtoObj: ({
|
|
100
|
+
new <T extends Record<PropertyKey, unknown>>(): T;
|
|
101
|
+
});
|
|
99
102
|
|
|
100
103
|
interface AsyncIdQueueCloseOptions {
|
|
101
104
|
id?: number;
|
|
@@ -117,5 +120,5 @@ declare class AsyncIdQueue<T> {
|
|
|
117
120
|
type Value<T, TArgs extends any[] = []> = T | ((...args: TArgs) => T);
|
|
118
121
|
declare function value<T, TArgs extends any[]>(value: Value<T, TArgs>, ...args: NoInfer<TArgs>): T extends Value<infer U, any> ? U : never;
|
|
119
122
|
|
|
120
|
-
export { AsyncIdQueue, SequentialIdGenerator, clone, createAsyncIteratorObject, findDeepMatches, get, intercept, isAsyncIteratorObject, isObject, isPropertyKey, isTypescriptObject, onError, onFinish, onStart, onSuccess, once, parseEmptyableJSON, resolveMaybeOptionalOptions, sequential, splitInHalf, stringifyJSON, toArray, value };
|
|
123
|
+
export { AsyncIdQueue, NullProtoObj, SequentialIdGenerator, clone, createAsyncIteratorObject, findDeepMatches, get, intercept, isAsyncIteratorObject, isObject, isPropertyKey, isTypescriptObject, onError, onFinish, onStart, onSuccess, once, parseEmptyableJSON, resolveMaybeOptionalOptions, sequential, splitInHalf, stringifyJSON, toArray, value };
|
|
121
124
|
export type { AnyFunction, AsyncIdQueueCloseOptions, CreateAsyncIteratorObjectCleanupFn, InterceptableOptions, Interceptor, InterceptorOptions, IntersectPick, MaybeOptionalOptions, OmitChainMethodDeep, OnFinishState, PromiseWithError, Registry, Segment, SetOptional, ThrowableError, Value };
|
package/dist/index.mjs
CHANGED
|
@@ -221,6 +221,13 @@ function isPropertyKey(value) {
|
|
|
221
221
|
const type = typeof value;
|
|
222
222
|
return type === "string" || type === "number" || type === "symbol";
|
|
223
223
|
}
|
|
224
|
+
const NullProtoObj = /* @__PURE__ */ (() => {
|
|
225
|
+
const e = function() {
|
|
226
|
+
};
|
|
227
|
+
e.prototype = /* @__PURE__ */ Object.create(null);
|
|
228
|
+
Object.freeze(e.prototype);
|
|
229
|
+
return e;
|
|
230
|
+
})();
|
|
224
231
|
|
|
225
232
|
class AsyncIdQueue {
|
|
226
233
|
openIds = /* @__PURE__ */ new Set();
|
|
@@ -305,4 +312,4 @@ function value(value2, ...args) {
|
|
|
305
312
|
return value2;
|
|
306
313
|
}
|
|
307
314
|
|
|
308
|
-
export { AsyncIdQueue, SequentialIdGenerator, clone, createAsyncIteratorObject, findDeepMatches, get, intercept, isAsyncIteratorObject, isObject, isPropertyKey, isTypescriptObject, onError, onFinish, onStart, onSuccess, once, parseEmptyableJSON, resolveMaybeOptionalOptions, sequential, splitInHalf, stringifyJSON, toArray, value };
|
|
315
|
+
export { AsyncIdQueue, NullProtoObj, SequentialIdGenerator, clone, createAsyncIteratorObject, findDeepMatches, get, intercept, isAsyncIteratorObject, isObject, isPropertyKey, isTypescriptObject, onError, onFinish, onStart, onSuccess, once, parseEmptyableJSON, resolveMaybeOptionalOptions, sequential, splitInHalf, stringifyJSON, toArray, value };
|
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.5c351e3",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://orpc.unnoq.com",
|
|
7
7
|
"repository": {
|
|
@@ -27,6 +27,11 @@
|
|
|
27
27
|
"radash": "^12.1.0",
|
|
28
28
|
"type-fest": "^4.39.1"
|
|
29
29
|
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"arktype": "2.1.20",
|
|
32
|
+
"valibot": "^1.1.0",
|
|
33
|
+
"zod": "^3.25.23"
|
|
34
|
+
},
|
|
30
35
|
"scripts": {
|
|
31
36
|
"build": "unbuild",
|
|
32
37
|
"build:watch": "pnpm run build --watch",
|