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

@lcem/declarative-type

Package Overview
Dependencies
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lcem/declarative-type - npm Package Compare versions

Comparing version 0.10.0 to 0.10.1

23

dist/index.d.ts

@@ -0,1 +1,3 @@

/// <reference types="node" />
import Ajv from 'ajv/dist/2019';

@@ -101,2 +103,20 @@ import { JSONType } from 'ajv/dist/2019';

}
export interface View2 {
definition: string;
attributes?: Record<string, JsonValue>;
children?: View2[];
}
export type PropertyRenderers = Record<string, View2>;
export interface PropertySheetConfig {
propertyRenderers: PropertyRenderers;
view: View2;
}
export interface DesignConfig {
propertySheet: PropertySheetConfig;
inlineEditor?: View2;
}
export interface TypeBundle {
schema: Json;
design?: DesignConfig;
}
export declare function getDefaultValue(schema: JsonSchema, resolver?: ReferenceResolver): Promise<JsonValue | undefined>;

@@ -106,2 +126,3 @@ export interface ReferenceResolver {

}
export declare type TypeProvider = (id: string) => Promise<TypeBundle>;
export interface Keyword {

@@ -164,3 +185,3 @@ name: string;

}
export declare function getValidator(schema: JsonSchema, scope: string, initValue?: JsonValue, referenceMap?: DeclarativeTypeMap, expectedCustomKeywords?: string[]): Promise<ValidatorResult | null>;
export declare function getValidator(schema: JsonSchema, scope: string, initValue?: JsonValue, referenceMap?: DeclarativeTypeMap, expectedCustomKeywords?: string[], typeProvider?: TypeProvider): Promise<ValidatorResult | null>;
export declare function getMin(schema?: JsonSchema): number | undefined;

@@ -167,0 +188,0 @@ export declare function getMax(schema?: JsonSchema): number | undefined;

4

package.json

@@ -5,3 +5,3 @@ {

"license": "MIT",
"version": "0.10.0",
"version": "0.10.1",
"type": "module",

@@ -36,3 +36,3 @@ "main": "dist/index.js",

"dependencies": {
"@lcem/meta-schemas": "0.10.0",
"@lcem/meta-schemas": "0.10.1",
"ajv": "^8.6.0",

@@ -39,0 +39,0 @@ "ajv-errors": "^3.0.0",

Sorry, the diff of this file is too big to display

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