Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vercel/static-config

Package Overview
Dependencies
Maintainers
8
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vercel/static-config - npm Package Compare versions

Comparing version 2.0.16 to 2.0.17

2

dist/index.d.ts

@@ -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

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