@vercel/static-config
Advanced tools
Comparing version 2.0.16 to 2.0.17
@@ -27,3 +27,3 @@ import { Project } from 'ts-morph'; | ||
}; | ||
export declare type BaseFunctionConfig = FromSchema<typeof BaseFunctionConfigSchema>; | ||
export type BaseFunctionConfig = FromSchema<typeof BaseFunctionConfigSchema>; | ||
export declare function getConfig<T extends JSONSchema = typeof BaseFunctionConfigSchema>(project: Project, sourcePath: string, schema?: T): FromSchema<T> | null; |
@@ -32,3 +32,3 @@ "use strict"; | ||
// @ts-ignore | ||
return validation_1.validate(schema || exports.BaseFunctionConfigSchema, config); | ||
return (0, validation_1.validate)(schema || exports.BaseFunctionConfigSchema, config); | ||
} | ||
@@ -35,0 +35,0 @@ exports.getConfig = getConfig; |
import type { Module } from '@swc/core'; | ||
import { FromSchema, JSONSchema } from 'json-schema-to-ts'; | ||
export declare type Value = undefined | null | boolean | string | number | any[] | Record<string, any>; | ||
export type Value = undefined | null | boolean | string | number | any[] | Record<string, any>; | ||
export declare class UnsupportedValueError extends Error { | ||
@@ -5,0 +5,0 @@ } |
@@ -127,4 +127,5 @@ "use strict"; | ||
if (schema) { | ||
validation_1.validate(schema, data); | ||
(0, validation_1.validate)(schema, data); | ||
} | ||
// @ts-expect-error - this seems to work just fine, but TS complains it could be infinite nesting | ||
return data; | ||
@@ -131,0 +132,0 @@ } |
@@ -15,2 +15,3 @@ "use strict"; | ||
} | ||
// @ts-expect-error - this seems to work just fine, but TS complains it could be infinite nesting | ||
return data; | ||
@@ -17,0 +18,0 @@ } |
{ | ||
"name": "@vercel/static-config", | ||
"version": "2.0.16", | ||
"version": "2.0.17", | ||
"license": "Apache-2.0", | ||
@@ -28,5 +28,5 @@ "main": "./dist/index", | ||
"@types/node": "14.18.33", | ||
"typescript": "4.3.4" | ||
"typescript": "4.9.5" | ||
}, | ||
"gitHead": "a63b9d960bec291e152308c30074843aab802c8d" | ||
"gitHead": "2de365f9cfea3ce283d2bf855507c71209f1e3d8" | ||
} |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28371
289