@xyo-network/payload-builder
Advanced tools
Comparing version
@@ -1,4 +0,4 @@ | ||
import type { AnyObject, EmptyObject } from '@xylabs/object'; | ||
import type { AnyObject, DeepOmitStartsWith, EmptyObject } from '@xylabs/object'; | ||
import type { Promisable } from '@xylabs/promise'; | ||
import type { DeepOmitStartsWith, Payload, Schema, WithOptionalSchema, WithoutClientMeta, WithoutMeta, WithoutPrivateStorageMeta, WithoutSchema, WithoutStorageMeta } from '@xyo-network/payload-model'; | ||
import type { Payload, Schema, WithOptionalSchema, WithoutClientMeta, WithoutMeta, WithoutPrivateStorageMeta, WithoutSchema, WithoutStorageMeta } from '@xyo-network/payload-model'; | ||
import type { PayloadBuilderOptions } from './Options.ts'; | ||
@@ -5,0 +5,0 @@ export declare const omitByPrefix: <T extends EmptyObject, P extends string>(payload: T, prefix: P, maxDepth?: number) => DeepOmitStartsWith<T, P>; |
@@ -1,4 +0,4 @@ | ||
import type { AnyObject, EmptyObject } from '@xylabs/object'; | ||
import type { AnyObject, DeepOmitStartsWith, EmptyObject } from '@xylabs/object'; | ||
import type { Promisable } from '@xylabs/promise'; | ||
import type { DeepOmitStartsWith, Payload, Schema, WithOptionalSchema, WithoutClientMeta, WithoutMeta, WithoutPrivateStorageMeta, WithoutSchema, WithoutStorageMeta } from '@xyo-network/payload-model'; | ||
import type { Payload, Schema, WithOptionalSchema, WithoutClientMeta, WithoutMeta, WithoutPrivateStorageMeta, WithoutSchema, WithoutStorageMeta } from '@xyo-network/payload-model'; | ||
import type { PayloadBuilderOptions } from './Options.ts'; | ||
@@ -5,0 +5,0 @@ export declare const omitByPrefix: <T extends EmptyObject, P extends string>(payload: T, prefix: P, maxDepth?: number) => DeepOmitStartsWith<T, P>; |
@@ -1,4 +0,4 @@ | ||
import type { AnyObject, EmptyObject } from '@xylabs/object'; | ||
import type { AnyObject, DeepOmitStartsWith, EmptyObject } from '@xylabs/object'; | ||
import type { Promisable } from '@xylabs/promise'; | ||
import type { DeepOmitStartsWith, Payload, Schema, WithOptionalSchema, WithoutClientMeta, WithoutMeta, WithoutPrivateStorageMeta, WithoutSchema, WithoutStorageMeta } from '@xyo-network/payload-model'; | ||
import type { Payload, Schema, WithOptionalSchema, WithoutClientMeta, WithoutMeta, WithoutPrivateStorageMeta, WithoutSchema, WithoutStorageMeta } from '@xyo-network/payload-model'; | ||
import type { PayloadBuilderOptions } from './Options.ts'; | ||
@@ -5,0 +5,0 @@ export declare const omitByPrefix: <T extends EmptyObject, P extends string>(payload: T, prefix: P, maxDepth?: number) => DeepOmitStartsWith<T, P>; |
{ | ||
"name": "@xyo-network/payload-builder", | ||
"version": "3.6.0-rc.7", | ||
"version": "3.6.0-rc.8", | ||
"description": "Primary SDK for using XYO Protocol 2.0", | ||
@@ -32,9 +32,9 @@ "homepage": "https://xyo.network", | ||
"dependencies": { | ||
"@xylabs/assert": "^4.4.15", | ||
"@xylabs/hex": "^4.4.15", | ||
"@xylabs/logger": "^4.4.15", | ||
"@xylabs/object": "^4.4.15", | ||
"@xylabs/promise": "^4.4.15", | ||
"@xyo-network/hash": "^3.6.0-rc.7", | ||
"@xyo-network/payload-model": "^3.6.0-rc.7" | ||
"@xylabs/assert": "^4.4.16", | ||
"@xylabs/hex": "^4.4.16", | ||
"@xylabs/logger": "^4.4.16", | ||
"@xylabs/object": "^4.4.16", | ||
"@xylabs/promise": "^4.4.16", | ||
"@xyo-network/hash": "^3.6.0-rc.8", | ||
"@xyo-network/payload-model": "^3.6.0-rc.8" | ||
}, | ||
@@ -44,3 +44,3 @@ "devDependencies": { | ||
"@xylabs/tsconfig": "^4.2.4", | ||
"@xylabs/vitest-extended": "^4.4.15", | ||
"@xylabs/vitest-extended": "^4.4.16", | ||
"typescript": "^5.7.2", | ||
@@ -47,0 +47,0 @@ "vitest": "^2.1.8" |
import { assertEx } from '@xylabs/assert' | ||
import type { AnyObject, EmptyObject } from '@xylabs/object' | ||
import type { | ||
AnyObject, DeepOmitStartsWith, EmptyObject, | ||
} from '@xylabs/object' | ||
import { | ||
@@ -9,3 +11,2 @@ isJsonObject, omitBy, toJson, | ||
import type { | ||
DeepOmitStartsWith, | ||
Payload, Schema, | ||
@@ -98,3 +99,3 @@ WithOptionalSchema, | ||
assertEx(this._schema, () => 'Payload: Missing Schema'), | ||
// TDOD: Add verification that required fields are present | ||
// TODO: Add verification that required fields are present | ||
this._fields as WithoutSchema<T>, | ||
@@ -101,0 +102,0 @@ ) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
125773
0.01%1130
0.09%Updated
Updated
Updated
Updated
Updated