@sinclair/typebox
Advanced tools
+7
-3
| { | ||
| "name": "@sinclair/typebox", | ||
| "version": "0.27.8", | ||
| "version": "0.27.9", | ||
| "description": "JSONSchema Type Builder with Static Type Resolution for TypeScript", | ||
@@ -24,3 +24,3 @@ "keywords": [ | ||
| "type": "git", | ||
| "url": "https://github.com/sinclairzx81/typebox" | ||
| "url": "https://github.com/sinclairzx81/typebox-legacy" | ||
| }, | ||
@@ -34,2 +34,3 @@ "scripts": { | ||
| "build": "hammer task build", | ||
| "build:native": "hammer task build_native", | ||
| "publish": "hammer task publish" | ||
@@ -41,3 +42,3 @@ }, | ||
| "@types/mocha": "^9.1.1", | ||
| "@types/node": "^18.11.9", | ||
| "@types/node": "^18.19.130", | ||
| "ajv": "^8.12.0", | ||
@@ -49,3 +50,6 @@ "ajv-formats": "^2.1.1", | ||
| "typescript": "^5.0.2" | ||
| }, | ||
| "dependencies": { | ||
| "@typescript/native-preview": "^7.0.0-dev.20260203.1" | ||
| } | ||
| } |
+3
-9
@@ -137,5 +137,3 @@ export declare const Modifier: unique symbol; | ||
| export type TExtends<L extends TSchema, R extends TSchema, T extends TSchema, U extends TSchema> = (Static<L> extends Static<R> ? T : U) extends infer O ? UnionToTuple<O> extends [infer X, infer Y] ? TUnion<[Assert<X, TSchema>, Assert<Y, TSchema>]> : Assert<O, TSchema> : never; | ||
| export type TExcludeTemplateLiteralResult<T extends string> = TUnionResult<Assert<UnionToTuple<{ | ||
| [K in T]: TLiteral<K>; | ||
| }[T]>, TSchema[]>>; | ||
| export type TExcludeTemplateLiteralResult<T extends string> = TString; | ||
| export type TExcludeTemplateLiteral<T extends TTemplateLiteral, U extends TSchema> = Exclude<Static<T>, Static<U>> extends infer S ? TExcludeTemplateLiteralResult<Assert<S, string>> : never; | ||
@@ -146,5 +144,3 @@ export type TExcludeArray<T extends TSchema[], U extends TSchema> = Assert<UnionToTuple<{ | ||
| export type TExclude<T extends TSchema, U extends TSchema> = T extends TTemplateLiteral ? TExcludeTemplateLiteral<T, U> : T extends TUnion<infer S> ? TExcludeArray<S, U> : T extends U ? TNever : T; | ||
| export type TExtractTemplateLiteralResult<T extends string> = TUnionResult<Assert<UnionToTuple<{ | ||
| [K in T]: TLiteral<K>; | ||
| }[T]>, TSchema[]>>; | ||
| export type TExtractTemplateLiteralResult<T extends string> = TString; | ||
| export type TExtractTemplateLiteral<T extends TTemplateLiteral, U extends TSchema> = Extract<Static<T>, Static<U>> extends infer S ? TExtractTemplateLiteralResult<Assert<S, string>> : never; | ||
@@ -382,5 +378,3 @@ export type TExtractArray<T extends TSchema[], U extends TSchema> = Assert<UnionToTuple<{ | ||
| export type TUnionResult<T extends TSchema[]> = T extends [] ? TNever : T extends [infer S] ? S : TUnion<T>; | ||
| export type TUnionTemplateLiteral<T extends TTemplateLiteral, S extends string = Static<T>> = Ensure<TUnionResult<Assert<UnionToTuple<{ | ||
| [K in S]: TLiteral<K>; | ||
| }[S]>, TLiteral[]>>>; | ||
| export type TUnionTemplateLiteral<T extends TTemplateLiteral, S extends string = Static<T>> = (string); | ||
| export interface TUnion<T extends TSchema[] = TSchema[]> extends TSchema { | ||
@@ -387,0 +381,0 @@ [Kind]: 'Union'; |
+1
-1
@@ -143,3 +143,3 @@ "use strict"; | ||
| function TryConvertString(value) { | ||
| return IsValueToString(value) ? value.toString() : IsSymbol(value) && value.description !== undefined ? value.description.toString() : value; | ||
| return IsValueToString(value) ? value.toString() : value; | ||
| } | ||
@@ -146,0 +146,0 @@ function TryConvertNumber(value) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
440389
-0.38%1
Infinity%7346
-0.08%17
6.25%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added