You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@forklaunch/validator

Package Overview
Dependencies
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@forklaunch/validator - npm Package Compare versions

Comparing version

to
0.7.0

lib/schema.types-DuGvAboK.d.mts

10

lib/__test__/utils/mockSchemaValidator.d.ts
import { SchemaObject } from 'openapi3-ts/oas31';
import { S as SchemaValidator, L as LiteralSchema, a as ParseResult } from '../../schema.types-CDVoqb4z.js';
import { S as SchemaValidator, L as LiteralSchema, a as ParseResult } from '../../schema.types-DuGvAboK.js';
import '@forklaunch/common';

@@ -8,10 +8,2 @@ import '@sinclair/typebox';

declare module '@forklaunch/validator' {
interface SchemaResolve<T> {
Mock: T;
}
interface SchemaTranslate<T> {
Mock: T;
}
}
/**

@@ -18,0 +10,0 @@ * Creates a union type string from an array of string literals.

@@ -1,3 +0,3 @@

import { P as ParseError } from './schema.types-CDVoqb4z.js';
export { A as AnySchemaValidator, I as IdiomaticSchema, e as Increment, K as KeyTypes, L as LiteralSchema, a as ParseResult, d as Schema, b as SchemaResolve, c as SchemaTranslate, S as SchemaValidator, U as UnboxedObjectSchema } from './schema.types-CDVoqb4z.js';
import { P as ParseError } from './schema.types-DuGvAboK.js';
export { A as AnySchemaValidator, I as IdiomaticSchema, e as Increment, K as KeyTypes, L as LiteralSchema, a as ParseResult, d as Schema, b as SchemaResolve, c as SchemaTranslate, S as SchemaValidator, U as UnboxedObjectSchema } from './schema.types-DuGvAboK.js';
import '@forklaunch/common';

@@ -4,0 +4,0 @@ import 'openapi3-ts/oas31';

@@ -1,6 +0,6 @@

import { T as TypeboxSchemaValidator } from '../../schema.types-CDVoqb4z.js';
export { f as TCatchall, l as TIdiomaticSchema, i as TObject, h as TObjectShape, g as TOuterArray, o as TResolve, j as TSchemaTranslate, m as TUnionTupleContainer, k as UnboxedTObjectSchema, n as UnionTupleTResolve } from '../../schema.types-CDVoqb4z.js';
export * from '@sinclair/typebox';
import { T as TypeboxSchemaValidator } from '../../schema.types-DuGvAboK.js';
export { i as SafeTObject, f as TCatchall, l as TIdiomaticSchema, h as TObjectShape, g as TOuterArray, o as TResolve, j as TSchemaTranslate, m as TUnionTupleContainer, k as UnboxedTObjectSchema, n as UnionTupleTResolve } from '../../schema.types-DuGvAboK.js';
import '@forklaunch/common';
import 'openapi3-ts/oas31';
import '@sinclair/typebox';
import '@sinclair/typebox/compiler';

@@ -7,0 +7,0 @@ import 'zod';

@@ -18,2 +18,3 @@ "use strict";

};
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

@@ -25,2 +26,3 @@

SchemaValidator: () => SchemaValidator,
TypeboxSchemaValidator: () => TypeboxSchemaValidator,
any: () => any,

@@ -60,2 +62,3 @@ array: () => array,

module.exports = __toCommonJS(typebox_exports);
__reExport(typebox_exports, require("@sinclair/typebox"), module.exports);

@@ -263,8 +266,6 @@ // src/typebox/typeboxSchemaValidator.ts

format: "binary",
example: "a utf-8 encodable string",
example: "a utf-8 encodable blob or file",
title: "File"
})
).Decode(
(value) => (name, type2) => new import_common.InMemoryFile(value, name, { type: type2 })
).Encode((value) => value("name", "type").content);
).Decode((value) => new import_common.InMemoryBlob(value)).Encode((value) => value.content);
type = () => this.any;

@@ -570,2 +571,3 @@ /**

SchemaValidator,
TypeboxSchemaValidator,
any,

@@ -602,3 +604,4 @@ array,

validate,
void_
void_,
...require("@sinclair/typebox")
});

@@ -1,4 +0,4 @@

import { Z as ZodSchemaValidator } from '../../schema.types-CDVoqb4z.js';
export { p as OriginalZodObject, x as TupleZodResolve, u as UnboxedZodObjectSchema, z as UnionZodResolve, q as ZodCatchall, v as ZodIdiomaticSchema, p as ZodObject, s as ZodObjectShape, r as ZodOuterArray, C as ZodRecordKey, B as ZodResolve, t as ZodSchemaTranslate, w as ZodTupleContainer, y as ZodUnionContainer } from '../../schema.types-CDVoqb4z.js';
export { ZodArray, ZodEffects, ZodLiteral, ZodNever, ZodPipeline, ZodRawShape, ZodType, ZodTypeAny, ZodUnknown } from 'zod';
export { ZodAny, ZodArray, ZodBigInt, ZodBoolean, ZodDate, ZodEffects, ZodEnum, ZodFunction, ZodLiteral, ZodNever, ZodNull, ZodNumber, ZodObject, ZodOptional, ZodPipeline, ZodPromise, ZodRawShape, ZodRecord, ZodString, ZodSymbol, ZodTuple, ZodType, ZodTypeAny, ZodUndefined, ZodUnion, ZodUnknown, ZodVoid } from 'zod';
import { Z as ZodSchemaValidator } from '../../schema.types-DuGvAboK.js';
export { w as TupleZodResolve, t as UnboxedZodObjectSchema, y as UnionZodResolve, p as ZodCatchall, u as ZodIdiomaticSchema, r as ZodObjectShape, q as ZodOuterArray, B as ZodRecordKey, z as ZodResolve, s as ZodSchemaTranslate, v as ZodTupleContainer, x as ZodUnionContainer } from '../../schema.types-DuGvAboK.js';
import '@forklaunch/common';

@@ -5,0 +5,0 @@ import 'openapi3-ts/oas31';

@@ -24,2 +24,3 @@ "use strict";

SchemaValidator: () => SchemaValidator,
ZodSchemaValidator: () => ZodSchemaValidator,
any: () => any,

@@ -198,6 +199,3 @@ array: () => array,

file = import_zod.z.string().transform((val) => {
return (name, type2) => new File([val], name, {
type: type2,
lastModified: Date.now()
});
return new Blob([val]);
}).openapi({

@@ -207,3 +205,3 @@ title: "File",

format: "binary",
example: "a utf-8 encodable string"
example: "a utf-8 encodable blob or file"
});

@@ -430,2 +428,3 @@ type = () => this.any;

SchemaValidator,
ZodSchemaValidator,
any,

@@ -432,0 +431,0 @@ array,

{
"name": "@forklaunch/validator",
"version": "0.6.16",
"version": "0.7.0",
"description": "Schema validator for ForkLaunch components.",

@@ -62,25 +62,25 @@ "homepage": "https://github.com/forklaunch/forklaunch-js#readme",

"@anatine/zod-openapi": "^2.2.8",
"@sinclair/typebox": "^0.34.35",
"@sinclair/typebox": "^0.34.37",
"zod": "^3.25.67",
"@forklaunch/common": "0.3.14"
"@forklaunch/common": "0.4.0"
},
"devDependencies": {
"@eslint/js": "^9.29.0",
"@eslint/js": "^9.30.0",
"@types/jest": "^30.0.0",
"@types/node": "^24.0.3",
"@typescript/native-preview": "7.0.0-dev.20250619.1",
"@types/node": "^24.0.7",
"@typescript/native-preview": "7.0.0-dev.20250630.1",
"@vitest/coverage-v8": "^3.2.4",
"eslint-config-prettier": "^10.1.5",
"eslint-plugin-prettier": "^5.5.0",
"eslint-plugin-prettier": "^5.5.1",
"globals": "^16.2.0",
"jest": "^30.0.2",
"openapi3-ts": "^4.4.0",
"jest": "^30.0.3",
"openapi3-ts": "^4.5.0",
"ts-jest": "^29.4.0",
"ts-node": "^10.9.2",
"tsup": "^8.5.0",
"typedoc": "^0.28.5",
"typescript-eslint": "^8.34.1"
"typedoc": "^0.28.7",
"typescript-eslint": "^8.35.1"
},
"scripts": {
"build": "tsc --noEmit && tsup index.ts src/typebox/index.ts src/zod/index.ts __test__/utils/mockSchemaValidator.ts --format cjs,esm --no-splitting --tsconfig tsconfig.json --outDir lib --dts --clean",
"build": "tsgo --noEmit && tsup index.ts src/typebox/index.ts src/zod/index.ts __test__/utils/mockSchemaValidator.ts --format cjs,esm --no-splitting --tsconfig tsconfig.json --outDir lib --dts --clean",
"check": "depcheck",

@@ -87,0 +87,0 @@ "clean": "rm -rf lib pnpm.lock.yaml node_modules",

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