@lunora/values 1.0.0-alpha.60 → 1.0.0-alpha.62
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 +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.mjs +1 -1
- package/dist/packem_shared/cyrb53-CFiior4X.mjs +1 -0
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -38,6 +38,13 @@ declare const describeValue: (value: unknown, options?: {
|
|
|
38
38
|
literal?: boolean;
|
|
39
39
|
}) => string;
|
|
40
40
|
declare const formatPath: (path: ValidationPath) => string;
|
|
41
|
+
/**
|
|
42
|
+
* A cyrb53 string hash — fast, well-distributed, 53-bit, with good avalanche
|
|
43
|
+
* behaviour. Public-domain (bryc). Two independent accumulators seeded from
|
|
44
|
+
* `seed` are mixed and combined; we down-fold the 53-bit result to an unsigned
|
|
45
|
+
* 32-bit integer for faker's seed.
|
|
46
|
+
*/
|
|
47
|
+
declare const cyrb53: (text: string, seed?: number) => number;
|
|
41
48
|
/** Branded id type, e.g. `Id<"users">`. */
|
|
42
49
|
type Id<TableName extends string> = string & {
|
|
43
50
|
readonly __table: TableName;
|
|
@@ -712,4 +719,4 @@ declare const installCompiledValidatorMap: (validators: object, compiled: Compil
|
|
|
712
719
|
* which case the interpreted loop below runs and owns the result (and any error).
|
|
713
720
|
*/
|
|
714
721
|
declare const parseValidatorMap: (validators: ValidatorMap, source: Record<string, unknown>, label: string) => Record<string, unknown>;
|
|
715
|
-
export { type ArrayColumnValidator, type CheckOptions, type Column, type ColumnMeta, type ColumnValidator, type CompiledValidatorMap, DEFER_VALIDATION, type GeoPoint, type Id, type Infer, type InferInsert, type InferSelect, type InferStandardInput, type InferStandardOutput, type InferValidatorMap, type InsertShape, type JsonSchema, type JsonSchemaFragment, type MetaOptions, type NumberColumnValidator, type ObjectColumnValidator, type ParseOptions, type SchemaNodeReader, type SelectShape, type ServerDefaultContext, type StringColumnValidator, type TimestampColumnValidator, ValidationError, type ValidationPath, type Validator, type ValidatorKind, type ValidatorMap, acceptsAbsent, argsToJsonSchema, describeValue, formatPath, installCompiledValidatorMap, isOrWrapsFromValidator, jsonSchemaFromNode, objectSchemaFromNodes, optionalInner, parseValidatorMap, toJsonSchema, v };
|
|
722
|
+
export { type ArrayColumnValidator, type CheckOptions, type Column, type ColumnMeta, type ColumnValidator, type CompiledValidatorMap, DEFER_VALIDATION, type GeoPoint, type Id, type Infer, type InferInsert, type InferSelect, type InferStandardInput, type InferStandardOutput, type InferValidatorMap, type InsertShape, type JsonSchema, type JsonSchemaFragment, type MetaOptions, type NumberColumnValidator, type ObjectColumnValidator, type ParseOptions, type SchemaNodeReader, type SelectShape, type ServerDefaultContext, type StringColumnValidator, type TimestampColumnValidator, ValidationError, type ValidationPath, type Validator, type ValidatorKind, type ValidatorMap, acceptsAbsent, argsToJsonSchema, cyrb53, describeValue, formatPath, installCompiledValidatorMap, isOrWrapsFromValidator, jsonSchemaFromNode, objectSchemaFromNodes, optionalInner, parseValidatorMap, toJsonSchema, v };
|
package/dist/index.d.ts
CHANGED
|
@@ -38,6 +38,13 @@ declare const describeValue: (value: unknown, options?: {
|
|
|
38
38
|
literal?: boolean;
|
|
39
39
|
}) => string;
|
|
40
40
|
declare const formatPath: (path: ValidationPath) => string;
|
|
41
|
+
/**
|
|
42
|
+
* A cyrb53 string hash — fast, well-distributed, 53-bit, with good avalanche
|
|
43
|
+
* behaviour. Public-domain (bryc). Two independent accumulators seeded from
|
|
44
|
+
* `seed` are mixed and combined; we down-fold the 53-bit result to an unsigned
|
|
45
|
+
* 32-bit integer for faker's seed.
|
|
46
|
+
*/
|
|
47
|
+
declare const cyrb53: (text: string, seed?: number) => number;
|
|
41
48
|
/** Branded id type, e.g. `Id<"users">`. */
|
|
42
49
|
type Id<TableName extends string> = string & {
|
|
43
50
|
readonly __table: TableName;
|
|
@@ -712,4 +719,4 @@ declare const installCompiledValidatorMap: (validators: object, compiled: Compil
|
|
|
712
719
|
* which case the interpreted loop below runs and owns the result (and any error).
|
|
713
720
|
*/
|
|
714
721
|
declare const parseValidatorMap: (validators: ValidatorMap, source: Record<string, unknown>, label: string) => Record<string, unknown>;
|
|
715
|
-
export { type ArrayColumnValidator, type CheckOptions, type Column, type ColumnMeta, type ColumnValidator, type CompiledValidatorMap, DEFER_VALIDATION, type GeoPoint, type Id, type Infer, type InferInsert, type InferSelect, type InferStandardInput, type InferStandardOutput, type InferValidatorMap, type InsertShape, type JsonSchema, type JsonSchemaFragment, type MetaOptions, type NumberColumnValidator, type ObjectColumnValidator, type ParseOptions, type SchemaNodeReader, type SelectShape, type ServerDefaultContext, type StringColumnValidator, type TimestampColumnValidator, ValidationError, type ValidationPath, type Validator, type ValidatorKind, type ValidatorMap, acceptsAbsent, argsToJsonSchema, describeValue, formatPath, installCompiledValidatorMap, isOrWrapsFromValidator, jsonSchemaFromNode, objectSchemaFromNodes, optionalInner, parseValidatorMap, toJsonSchema, v };
|
|
722
|
+
export { type ArrayColumnValidator, type CheckOptions, type Column, type ColumnMeta, type ColumnValidator, type CompiledValidatorMap, DEFER_VALIDATION, type GeoPoint, type Id, type Infer, type InferInsert, type InferSelect, type InferStandardInput, type InferStandardOutput, type InferValidatorMap, type InsertShape, type JsonSchema, type JsonSchemaFragment, type MetaOptions, type NumberColumnValidator, type ObjectColumnValidator, type ParseOptions, type SchemaNodeReader, type SelectShape, type ServerDefaultContext, type StringColumnValidator, type TimestampColumnValidator, ValidationError, type ValidationPath, type Validator, type ValidatorKind, type ValidatorMap, acceptsAbsent, argsToJsonSchema, cyrb53, describeValue, formatPath, installCompiledValidatorMap, isOrWrapsFromValidator, jsonSchemaFromNode, objectSchemaFromNodes, optionalInner, parseValidatorMap, toJsonSchema, v };
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ValidationError as a,describeValue as e,formatPath as t}from"./packem_shared/ValidationError-BdVoGndu.mjs";import{acceptsAbsent as
|
|
1
|
+
import{ValidationError as a,describeValue as e,formatPath as t}from"./packem_shared/ValidationError-BdVoGndu.mjs";import{cyrb53 as p}from"./packem_shared/cyrb53-CFiior4X.mjs";import{acceptsAbsent as i,jsonSchemaFromNode as c,objectSchemaFromNodes as l}from"./packem_shared/acceptsAbsent-Biqy6mRN.mjs";import{argsToJsonSchema as d,toJsonSchema as f}from"./packem_shared/argsToJsonSchema-ATrQFtr_.mjs";import{isOrWrapsFromValidator as V,optionalInner as h,v as b}from"./packem_shared/isOrWrapsFromValidator-Bf5Axakp.mjs";import{DEFER_VALIDATION as S,installCompiledValidatorMap as A,parseValidatorMap as E}from"./packem_shared/DEFER_VALIDATION-C0nIiPG-.mjs";export{S as DEFER_VALIDATION,a as ValidationError,i as acceptsAbsent,d as argsToJsonSchema,p as cyrb53,e as describeValue,t as formatPath,A as installCompiledValidatorMap,V as isOrWrapsFromValidator,c as jsonSchemaFromNode,l as objectSchemaFromNodes,h as optionalInner,E as parseValidatorMap,f as toJsonSchema,b as v};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const m=(i,u=0)=>{let t=3735928559^u,h=1103547991^u;for(let l=0;l<i.length;l+=1){const a=i.codePointAt(l)??0;t=Math.imul(t^a,2654435761),h=Math.imul(h^a,1597334677)}return t=Math.imul(t^t>>>16,2246822507),t^=Math.imul(h^h>>>13,3266489909),h=Math.imul(h^h>>>16,2246822507),h^=Math.imul(t^t>>>13,3266489909),4294967296*(2097151&h)+(t>>>0)};export{m as cyrb53};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lunora/values",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.62",
|
|
4
4
|
"description": "Validators for Lunora: the v.* validator suite with end-to-end return-type inference",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@lunora/errors": "1.0.0-alpha.
|
|
49
|
+
"@lunora/errors": ">=1.0.0-alpha.51 <2.0.0-0",
|
|
50
50
|
"@standard-schema/spec": "1.1.0"
|
|
51
51
|
},
|
|
52
52
|
"engines": {
|