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

skhema

Package Overview
Dependencies
Maintainers
1
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

skhema - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

17

lib/index.d.ts
import { JSONSchema6 } from 'json-schema';
export interface FilterOptions {
// force no additional properties
force: boolean;
}
export declare function merge(schema: JSONSchema6[]): JSONSchema6;
export declare function addFormat(format: string, callback: (value: any) => boolean): void;
export declare function isValid(schema: JSONSchema6, value: any): boolean;
export declare function match(schema: JSONSchema6, value: any): {
valid: boolean;
errors: string[];
};
export declare function validate(schema: JSONSchema6, value: any): void;
export declare function filter<T = any>(schema: JSONSchema6, value: any, options?: FilterOptions): Partial<T> | null;

2

package.json
{
"name": "skhema",
"version": "1.1.0",
"version": "1.1.1",
"description": "JSON Schema utility collection",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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