@arrirpc/schema 0.82.0 → 0.83.0
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/adapters.d.cts +1 -1
- package/dist/adapters.d.mts +1 -1
- package/dist/adapters.d.ts +1 -1
- package/dist/adapters.mjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/shared/{schema.puFjotry.d.cts → schema.B7X75nHd.d.cts} +2 -2
- package/dist/shared/{schema.puFjotry.d.mts → schema.B7X75nHd.d.mts} +2 -2
- package/dist/shared/{schema.puFjotry.d.ts → schema.B7X75nHd.d.ts} +2 -2
- package/dist/shared/{schema.CZrExOkx.mjs → schema.DZuWIe5B.mjs} +1 -1
- package/package.json +2 -2
package/dist/adapters.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StandardSchemaV1 } from '@standard-schema/spec';
|
|
2
|
-
import {
|
|
2
|
+
import { D as ValidationContext, m as ASchema } from './shared/schema.B7X75nHd.cjs';
|
|
3
3
|
import '@arrirpc/type-defs';
|
|
4
4
|
|
|
5
5
|
declare function createStandardSchemaProperty<T>(validate: (input: unknown) => input is T, parse: (input: unknown, ctx: ValidationContext) => T | undefined, vendor?: string): StandardSchemaV1<T>['~standard'];
|
package/dist/adapters.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StandardSchemaV1 } from '@standard-schema/spec';
|
|
2
|
-
import {
|
|
2
|
+
import { D as ValidationContext, m as ASchema } from './shared/schema.B7X75nHd.mjs';
|
|
3
3
|
import '@arrirpc/type-defs';
|
|
4
4
|
|
|
5
5
|
declare function createStandardSchemaProperty<T>(validate: (input: unknown) => input is T, parse: (input: unknown, ctx: ValidationContext) => T | undefined, vendor?: string): StandardSchemaV1<T>['~standard'];
|
package/dist/adapters.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StandardSchemaV1 } from '@standard-schema/spec';
|
|
2
|
-
import {
|
|
2
|
+
import { D as ValidationContext, m as ASchema } from './shared/schema.B7X75nHd.js';
|
|
3
3
|
import '@arrirpc/type-defs';
|
|
4
4
|
|
|
5
5
|
declare function createStandardSchemaProperty<T>(validate: (input: unknown) => input is T, parse: (input: unknown, ctx: ValidationContext) => T | undefined, vendor?: string): StandardSchemaV1<T>['~standard'];
|
package/dist/adapters.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { c as createStandardSchemaProperty, h as hideInvalidProperties } from './shared/schema.DZuWIe5B.mjs';
|
|
2
2
|
import '@arrirpc/type-defs';
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Schema } from '@arrirpc/type-defs';
|
|
2
2
|
import { StandardSchemaV1 } from '@standard-schema/spec';
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
3
|
+
import { m as ASchema, o as ASchemaStrict, v as InferType, y as Result, C as SchemaValidator, V as VALIDATOR_KEY, n as ASchemaOptions, p as ASchemaWithAdapters, A as AArraySchema, W as WithAdapters, l as AScalarSchemaWithAdapters, d as AObjectSchema, c as ADiscriminatorSchemaWithAdapters, x as ResolveObject, r as AStringEnumSchemaWithAdapters, f as AObjectSchemaWithAdapters, e as AObjectSchemaOptions, s as InferObjectOutput, D as ValidationContext, h as ARecordSchemaWithAdapters, i as ARefSchema, F as ValueError, u as InferSubType } from './shared/schema.B7X75nHd.cjs';
|
|
4
|
+
export { a as AArraySchemaWithAdapters, b as ADiscriminatorSchema, g as ARecordSchema, j as ARefSchemaWithAdapters, k as AScalarSchema, q as AStringEnumSchema, I as InferObjectOptionalKeys, t as InferObjectRawType, M as MaybeNullable, N as NumberType, w as NumberTypeValues, P as PartialBy, R as Resolve, z as ResultFailure, B as ResultSuccess, S as SchemaMetadata, E as ValidationException, G as errorMessageFromErrors, H as isAAraySchema, J as isADiscriminatorSchema, K as isAObjectSchema, L as isARecordSchema, O as isARefSchema, Q as isAScalarSchema, T as isASchema, U as isAStringEnumSchema, X as isObject, Y as isValidationException, Z as isValueError, _ as newValidationContext } from './shared/schema.B7X75nHd.cjs';
|
|
5
5
|
|
|
6
6
|
declare function createParsingTemplate(input: string, schema: Schema, shouldCoerce?: boolean): string;
|
|
7
7
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Schema } from '@arrirpc/type-defs';
|
|
2
2
|
import { StandardSchemaV1 } from '@standard-schema/spec';
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
3
|
+
import { m as ASchema, o as ASchemaStrict, v as InferType, y as Result, C as SchemaValidator, V as VALIDATOR_KEY, n as ASchemaOptions, p as ASchemaWithAdapters, A as AArraySchema, W as WithAdapters, l as AScalarSchemaWithAdapters, d as AObjectSchema, c as ADiscriminatorSchemaWithAdapters, x as ResolveObject, r as AStringEnumSchemaWithAdapters, f as AObjectSchemaWithAdapters, e as AObjectSchemaOptions, s as InferObjectOutput, D as ValidationContext, h as ARecordSchemaWithAdapters, i as ARefSchema, F as ValueError, u as InferSubType } from './shared/schema.B7X75nHd.mjs';
|
|
4
|
+
export { a as AArraySchemaWithAdapters, b as ADiscriminatorSchema, g as ARecordSchema, j as ARefSchemaWithAdapters, k as AScalarSchema, q as AStringEnumSchema, I as InferObjectOptionalKeys, t as InferObjectRawType, M as MaybeNullable, N as NumberType, w as NumberTypeValues, P as PartialBy, R as Resolve, z as ResultFailure, B as ResultSuccess, S as SchemaMetadata, E as ValidationException, G as errorMessageFromErrors, H as isAAraySchema, J as isADiscriminatorSchema, K as isAObjectSchema, L as isARecordSchema, O as isARefSchema, Q as isAScalarSchema, T as isASchema, U as isAStringEnumSchema, X as isObject, Y as isValidationException, Z as isValueError, _ as newValidationContext } from './shared/schema.B7X75nHd.mjs';
|
|
5
5
|
|
|
6
6
|
declare function createParsingTemplate(input: string, schema: Schema, shouldCoerce?: boolean): string;
|
|
7
7
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Schema } from '@arrirpc/type-defs';
|
|
2
2
|
import { StandardSchemaV1 } from '@standard-schema/spec';
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
3
|
+
import { m as ASchema, o as ASchemaStrict, v as InferType, y as Result, C as SchemaValidator, V as VALIDATOR_KEY, n as ASchemaOptions, p as ASchemaWithAdapters, A as AArraySchema, W as WithAdapters, l as AScalarSchemaWithAdapters, d as AObjectSchema, c as ADiscriminatorSchemaWithAdapters, x as ResolveObject, r as AStringEnumSchemaWithAdapters, f as AObjectSchemaWithAdapters, e as AObjectSchemaOptions, s as InferObjectOutput, D as ValidationContext, h as ARecordSchemaWithAdapters, i as ARefSchema, F as ValueError, u as InferSubType } from './shared/schema.B7X75nHd.js';
|
|
4
|
+
export { a as AArraySchemaWithAdapters, b as ADiscriminatorSchema, g as ARecordSchema, j as ARefSchemaWithAdapters, k as AScalarSchema, q as AStringEnumSchema, I as InferObjectOptionalKeys, t as InferObjectRawType, M as MaybeNullable, N as NumberType, w as NumberTypeValues, P as PartialBy, R as Resolve, z as ResultFailure, B as ResultSuccess, S as SchemaMetadata, E as ValidationException, G as errorMessageFromErrors, H as isAAraySchema, J as isADiscriminatorSchema, K as isAObjectSchema, L as isARecordSchema, O as isARefSchema, Q as isAScalarSchema, T as isASchema, U as isAStringEnumSchema, X as isObject, Y as isValidationException, Z as isValueError, _ as newValidationContext } from './shared/schema.B7X75nHd.js';
|
|
5
5
|
|
|
6
6
|
declare function createParsingTemplate(input: string, schema: Schema, shouldCoerce?: boolean): string;
|
|
7
7
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isSchemaFormProperties, isSchemaFormValues, isSchemaFormElements, isSchemaFormDiscriminator, isSchemaFormEmpty, isSchemaFormType, isSchemaFormEnum, isSchemaFormRef } from '@arrirpc/type-defs';
|
|
2
|
-
import {
|
|
3
|
-
export { N as NumberTypeValues,
|
|
2
|
+
import { f as isAScalarSchema, b as isAObjectSchema, j as isAStringEnumSchema, i as isAAraySchema, d as isARecordSchema, a as isADiscriminatorSchema, e as isARefSchema, c as createStandardSchemaProperty, n as newValidationContext, h as hideInvalidProperties, V as VALIDATOR_KEY, k as isObject } from './shared/schema.DZuWIe5B.mjs';
|
|
3
|
+
export { N as NumberTypeValues, g as isASchema } from './shared/schema.DZuWIe5B.mjs';
|
|
4
4
|
import { camelCase } from 'scule';
|
|
5
5
|
|
|
6
6
|
const int8Min = -128;
|
|
@@ -176,5 +176,5 @@ interface ARefSchema<T> extends ASchema<T> {
|
|
|
176
176
|
declare function isARefSchema(input: unknown): input is ARefSchema<any>;
|
|
177
177
|
type ARefSchemaWithAdapters<T> = ARefSchema<T> & WithAdapters<T>;
|
|
178
178
|
|
|
179
|
-
export { ValidationException as
|
|
180
|
-
export type {
|
|
179
|
+
export { ValidationException as E, errorMessageFromErrors as G, isAAraySchema as H, isADiscriminatorSchema as J, isAObjectSchema as K, isARecordSchema as L, isARefSchema as O, isAScalarSchema as Q, isASchema as T, isAStringEnumSchema as U, VALIDATOR_KEY as V, isObject as X, isValidationException as Y, isValueError as Z, newValidationContext as _, NumberTypeValues as w };
|
|
180
|
+
export type { AArraySchema as A, ResultSuccess as B, SchemaValidator as C, ValidationContext as D, ValueError as F, InferObjectOptionalKeys as I, MaybeNullable as M, NumberType as N, PartialBy as P, Resolve as R, SchemaMetadata as S, WithAdapters as W, AArraySchemaWithAdapters as a, ADiscriminatorSchema as b, ADiscriminatorSchemaWithAdapters as c, AObjectSchema as d, AObjectSchemaOptions as e, AObjectSchemaWithAdapters as f, ARecordSchema as g, ARecordSchemaWithAdapters as h, ARefSchema as i, ARefSchemaWithAdapters as j, AScalarSchema as k, AScalarSchemaWithAdapters as l, ASchema as m, ASchemaOptions as n, ASchemaStrict as o, ASchemaWithAdapters as p, AStringEnumSchema as q, AStringEnumSchemaWithAdapters as r, InferObjectOutput as s, InferObjectRawType as t, InferSubType as u, InferType as v, ResolveObject as x, Result as y, ResultFailure as z };
|
|
@@ -176,5 +176,5 @@ interface ARefSchema<T> extends ASchema<T> {
|
|
|
176
176
|
declare function isARefSchema(input: unknown): input is ARefSchema<any>;
|
|
177
177
|
type ARefSchemaWithAdapters<T> = ARefSchema<T> & WithAdapters<T>;
|
|
178
178
|
|
|
179
|
-
export { ValidationException as
|
|
180
|
-
export type {
|
|
179
|
+
export { ValidationException as E, errorMessageFromErrors as G, isAAraySchema as H, isADiscriminatorSchema as J, isAObjectSchema as K, isARecordSchema as L, isARefSchema as O, isAScalarSchema as Q, isASchema as T, isAStringEnumSchema as U, VALIDATOR_KEY as V, isObject as X, isValidationException as Y, isValueError as Z, newValidationContext as _, NumberTypeValues as w };
|
|
180
|
+
export type { AArraySchema as A, ResultSuccess as B, SchemaValidator as C, ValidationContext as D, ValueError as F, InferObjectOptionalKeys as I, MaybeNullable as M, NumberType as N, PartialBy as P, Resolve as R, SchemaMetadata as S, WithAdapters as W, AArraySchemaWithAdapters as a, ADiscriminatorSchema as b, ADiscriminatorSchemaWithAdapters as c, AObjectSchema as d, AObjectSchemaOptions as e, AObjectSchemaWithAdapters as f, ARecordSchema as g, ARecordSchemaWithAdapters as h, ARefSchema as i, ARefSchemaWithAdapters as j, AScalarSchema as k, AScalarSchemaWithAdapters as l, ASchema as m, ASchemaOptions as n, ASchemaStrict as o, ASchemaWithAdapters as p, AStringEnumSchema as q, AStringEnumSchemaWithAdapters as r, InferObjectOutput as s, InferObjectRawType as t, InferSubType as u, InferType as v, ResolveObject as x, Result as y, ResultFailure as z };
|
|
@@ -176,5 +176,5 @@ interface ARefSchema<T> extends ASchema<T> {
|
|
|
176
176
|
declare function isARefSchema(input: unknown): input is ARefSchema<any>;
|
|
177
177
|
type ARefSchemaWithAdapters<T> = ARefSchema<T> & WithAdapters<T>;
|
|
178
178
|
|
|
179
|
-
export { ValidationException as
|
|
180
|
-
export type {
|
|
179
|
+
export { ValidationException as E, errorMessageFromErrors as G, isAAraySchema as H, isADiscriminatorSchema as J, isAObjectSchema as K, isARecordSchema as L, isARefSchema as O, isAScalarSchema as Q, isASchema as T, isAStringEnumSchema as U, VALIDATOR_KEY as V, isObject as X, isValidationException as Y, isValueError as Z, newValidationContext as _, NumberTypeValues as w };
|
|
180
|
+
export type { AArraySchema as A, ResultSuccess as B, SchemaValidator as C, ValidationContext as D, ValueError as F, InferObjectOptionalKeys as I, MaybeNullable as M, NumberType as N, PartialBy as P, Resolve as R, SchemaMetadata as S, WithAdapters as W, AArraySchemaWithAdapters as a, ADiscriminatorSchema as b, ADiscriminatorSchemaWithAdapters as c, AObjectSchema as d, AObjectSchemaOptions as e, AObjectSchemaWithAdapters as f, ARecordSchema as g, ARecordSchemaWithAdapters as h, ARefSchema as i, ARefSchemaWithAdapters as j, AScalarSchema as k, AScalarSchemaWithAdapters as l, ASchema as m, ASchemaOptions as n, ASchemaStrict as o, ASchemaWithAdapters as p, AStringEnumSchema as q, AStringEnumSchemaWithAdapters as r, InferObjectOutput as s, InferObjectRawType as t, InferSubType as u, InferType as v, ResolveObject as x, Result as y, ResultFailure as z };
|
|
@@ -93,4 +93,4 @@ function hideInvalidProperties(schema) {
|
|
|
93
93
|
Object.defineProperty(schema, "~standard", { enumerable: false });
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
export { NumberTypeValues as N, VALIDATOR_KEY as V,
|
|
96
|
+
export { NumberTypeValues as N, VALIDATOR_KEY as V, isADiscriminatorSchema as a, isAObjectSchema as b, createStandardSchemaProperty as c, isARecordSchema as d, isARefSchema as e, isAScalarSchema as f, isASchema as g, hideInvalidProperties as h, isAAraySchema as i, isAStringEnumSchema as j, isObject as k, newValidationContext as n };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arrirpc/schema",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.83.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@standard-schema/spec": "1.1.0",
|
|
26
26
|
"scule": "^1.3.0",
|
|
27
27
|
"uncrypto": "^0.1.3",
|
|
28
|
-
"@arrirpc/type-defs": "0.
|
|
28
|
+
"@arrirpc/type-defs": "0.83.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@samchon/openapi": "^6.0.1",
|