New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@bscotch/validation

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bscotch/validation - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

2

dist/lib/jsonSchema.d.ts
import { JsonSchemaTypeName } from './jsonSchema.lib.js';
import type { JsonSchema } from './jsonSchema.types.js';
export * from './jsonSchema.types.js';
export declare type JsonPointerParsed = (string | number)[];
export type JsonPointerParsed = (string | number)[];
/**

@@ -6,0 +6,0 @@ * Convert a JSON Schema into a collection of

import type { JsonSchema, JsonSchemaArray, JsonSchemaBoolean, JsonSchemaConst, JsonSchemaEnum, JsonSchemaNumber, JsonSchemaObject, JsonSchemaRef, JsonSchemaString } from './jsonSchema.types.js';
export declare type JsonSchemaTypeName<Schema extends JsonSchema> = Schema extends JsonSchemaArray ? 'array' : Schema extends JsonSchemaBoolean ? 'boolean' : Schema extends JsonSchemaConst ? 'const' : Schema extends JsonSchemaEnum ? 'enum' : Schema extends JsonSchemaNumber ? 'number' : Schema extends JsonSchemaObject ? 'object' : Schema extends JsonSchemaString ? 'string' : Schema extends JsonSchemaRef ? 'ref' : never;
export type JsonSchemaTypeName<Schema extends JsonSchema> = Schema extends JsonSchemaArray ? 'array' : Schema extends JsonSchemaBoolean ? 'boolean' : Schema extends JsonSchemaConst ? 'const' : Schema extends JsonSchemaEnum ? 'enum' : Schema extends JsonSchemaNumber ? 'number' : Schema extends JsonSchemaObject ? 'object' : Schema extends JsonSchemaString ? 'string' : Schema extends JsonSchemaRef ? 'ref' : never;
export declare function schemaType<Schema extends JsonSchema>(schema: JsonSchema): JsonSchemaTypeName<Schema>;

@@ -4,0 +4,0 @@ export declare const is: {

@@ -22,3 +22,3 @@ /**

*/
export declare type JsonSchemaTypeName = 'string' | 'number' | 'integer' | 'boolean' | 'object' | 'array' | 'null';
export type JsonSchemaTypeName = 'string' | 'number' | 'integer' | 'boolean' | 'object' | 'array' | 'null';
/**

@@ -28,5 +28,5 @@ * Primitive type

*/
export declare type JsonData = any;
export declare type JsonArray = JsonData[];
export declare type JsonObject = {
export type JsonData = any;
export type JsonArray = JsonData[];
export type JsonObject = {
[key: string]: JsonData;

@@ -45,4 +45,4 @@ };

*/
export declare type JsonSchemaVersion = string;
export declare type JsonSchemaDefinitionField = '$defs' | 'definitions';
export type JsonSchemaVersion = string;
export type JsonSchemaDefinitionField = '$defs' | 'definitions';
export interface JsonSchemaConditional {

@@ -156,3 +156,3 @@ /**

}
export declare type JsonSchema<T = any> = JsonSchemaRef | JsonSchemaEnum<T> | JsonSchemaConst<T> | (T extends boolean ? JsonSchemaBoolean : T extends null ? JsonSchemaNull : T extends number ? JsonSchemaNumber : T extends string ? JsonSchemaString<T> : T extends Array<any> ? JsonSchemaArray<T> : T extends JsonObject ? JsonSchemaObject<T> : never);
export type JsonSchema<T = any> = JsonSchemaRef | JsonSchemaEnum<T> | JsonSchemaConst<T> | (T extends boolean ? JsonSchemaBoolean : T extends null ? JsonSchemaNull : T extends number ? JsonSchemaNumber : T extends string ? JsonSchemaString<T> : T extends Array<any> ? JsonSchemaArray<T> : T extends JsonObject ? JsonSchemaObject<T> : never);
//# sourceMappingURL=jsonSchema.types.d.ts.map
{
"name": "@bscotch/validation",
"version": "0.2.1",
"version": "0.2.2",
"type": "module",

@@ -25,6 +25,7 @@ "exports": {

"devDependencies": {
"@types/chalk": "^2.2.0",
"@local/helpers": "0.0.0",
"@types/source-map-support": "^0.5.4",
"rimraf": "^3.0.2",
"ts-toolbelt": "^9.6.0",
"typescript": "^4.8.0-beta"
"typescript": "4.9.1-beta"
},

@@ -35,6 +36,6 @@ "publishConfig": {

"scripts": {
"build": "tsc --build",
"test": "treb test",
"build": "tsc-x --build",
"clean": "rimraf build dist *.tsbuildinfo **/*.tsbuildinfo",
"watch": "tsc --build --watch"
}
}

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc