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

@squiz/dx-json-schema-lib

Package Overview
Dependencies
Maintainers
39
Versions
489
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@squiz/dx-json-schema-lib - npm Package Compare versions

Comparing version 1.3.4-alpha.2 to 1.5.1-alpha.0

lib/formatted-text/v1/resolveFormattedTextNodes.d.ts

18

CHANGELOG.md

@@ -6,3 +6,3 @@ # Change Log

## [1.3.4-alpha.2](https://gitlab.squiz.net/developer-experience/cmp/compare/v1.2.2...v1.3.4-alpha.2) (2023-01-17)
## [1.5.1-alpha.0](https://gitlab.squiz.net/developer-experience/cmp/compare/v1.3.3...v1.5.1-alpha.0) (2023-01-24)

@@ -15,2 +15,18 @@ **Note:** Version bump only for package @squiz/dx-json-schema-lib

# [1.5.0](https://gitlab.squiz.net/developer-experience/cmp/compare/v1.3.3...v1.5.0) (2023-01-20)
**Note:** Version bump only for package @squiz/dx-json-schema-lib
# [1.4.0](https://gitlab.squiz.net/developer-experience/cmp/compare/v1.3.3...v1.4.0) (2023-01-20)
**Note:** Version bump only for package @squiz/dx-json-schema-lib
## [1.3.4-alpha.1](https://gitlab.squiz.net/developer-experience/cmp/compare/v1.2.2...v1.3.4-alpha.1) (2023-01-17)

@@ -17,0 +33,0 @@

2

lib/index.d.ts

@@ -5,5 +5,5 @@ export * as MANIFEST_MODELS from './manifest/v1/manifestModels';

export * as FORMATTED_TEXT_SCHEMAS from './formatted-text/v1/formattedTextSchemas';
export * from './formatted-text/v1/higherOrderFormattedTextToBaseFormattedText';
export * from './formatted-text/v1/resolveFormattedTextNodes';
export * as SUB_SCHEMAS from './manifest/v1/subSchemas';
export * from './JsonValidationService';
export * from './errors/SchemaValidationError';

@@ -34,3 +34,3 @@ "use strict";

exports.FORMATTED_TEXT_SCHEMAS = __importStar(require("./formatted-text/v1/formattedTextSchemas"));
__exportStar(require("./formatted-text/v1/higherOrderFormattedTextToBaseFormattedText"), exports);
__exportStar(require("./formatted-text/v1/resolveFormattedTextNodes"), exports);
exports.SUB_SCHEMAS = __importStar(require("./manifest/v1/subSchemas"));

@@ -37,0 +37,0 @@ __exportStar(require("./JsonValidationService"), exports);

@@ -1,2 +0,4 @@

import { JSONSchema } from 'json-schema-library';
import { Draft07, JSONSchema, Draft } from 'json-schema-library';
export declare const ComponentInputSchema: Draft;
export declare const ContentSchemaSchema: Draft07;
export declare class JsonValidationService {

@@ -3,0 +5,0 @@ validateManifest(manifest: unknown, version: 'v1'): true;

@@ -6,3 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.JsonValidationService = void 0;
exports.JsonValidationService = exports.ContentSchemaSchema = exports.ComponentInputSchema = void 0;
const DxComponentInputSchema_json_1 = __importDefault(require("./manifest/v1/DxComponentInputSchema.json"));

@@ -58,4 +58,4 @@ const DxComponentIcons_json_1 = __importDefault(require("./manifest/v1/DxComponentIcons.json"));

};
const FTSchema = new json_schema_library_1.Draft07(formattedText_json_1.default);
const ComponentInputSchema = new json_schema_library_1.Draft({
const FTSchema = new json_schema_library_1.Draft07(formattedText_json_1.default, defaultConfig);
exports.ComponentInputSchema = new json_schema_library_1.Draft({
...defaultConfig,

@@ -82,11 +82,11 @@ resolveRef(schema, rootSchema) {

}, DxComponentInputSchema_json_1.default);
ComponentInputSchema.addRemoteSchema('DxComponentInputSchema.json/DxContentMetaSchema.json', DxContentMetaSchema_json_1.default);
exports.ComponentInputSchema.addRemoteSchema('DxComponentInputSchema.json/DxContentMetaSchema.json', DxContentMetaSchema_json_1.default);
const v1Schema = new json_schema_library_1.Draft07(v1_json_1.default, defaultConfig);
v1Schema.addRemoteSchema('DxComponentInputSchema.json/DxContentMetaSchema.json', DxContentMetaSchema_json_1.default);
v1Schema.addRemoteSchema('/DxComponentInputSchema.json', ComponentInputSchema.getSchema());
v1Schema.addRemoteSchema('/DxComponentInputSchema.json', exports.ComponentInputSchema.getSchema());
v1Schema.addRemoteSchema('/DxComponentIcons.json', DxComponentIcons_json_1.default);
v1Schema.addRemoteSchema('http://json-schema.org/draft-07/schema', Draft_07_json_1.default);
v1Schema.addRemoteSchema('http://json-schema.org/draft-07/schema#', Draft_07_json_1.default);
const ContentSchemaSchema = new json_schema_library_1.Draft07(DxComponentInputSchema_json_1.default, defaultConfig);
ContentSchemaSchema.addRemoteSchema('DxComponentInputSchema.json/DxContentMetaSchema.json', DxContentMetaSchema_json_1.default);
exports.ContentSchemaSchema = new json_schema_library_1.Draft07(DxComponentInputSchema_json_1.default, defaultConfig);
exports.ContentSchemaSchema.addRemoteSchema('DxComponentInputSchema.json/DxContentMetaSchema.json', DxContentMetaSchema_json_1.default);
class JsonValidationService {

@@ -104,7 +104,7 @@ validateManifest(manifest, version) {

validateContentSchema(contentSchema) {
return this.processValidationResult(ContentSchemaSchema.validate(contentSchema));
return this.processValidationResult(exports.ContentSchemaSchema.validate(contentSchema));
}
validateComponentInput(functionInputSchema, inputValue) {
const inputSchema = ComponentInputSchema.compileSchema(functionInputSchema);
const errors = ComponentInputSchema.validate(inputValue, inputSchema);
const inputSchema = exports.ComponentInputSchema.compileSchema(functionInputSchema);
const errors = exports.ComponentInputSchema.validate(inputValue, inputSchema);
return this.processValidationResult(errors);

@@ -111,0 +111,0 @@ }

{
"name": "@squiz/dx-json-schema-lib",
"version": "1.3.4-alpha.2",
"version": "1.5.1-alpha.0",
"description": "",

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

"ts-node": "10.9.1",
"typescript": "4.9.3"
"typescript": "4.9.4"
},
"dependencies": {
"@sagold/json-query": "6.0.0",
"ajv": "8.11.2",

@@ -38,3 +39,3 @@ "ajv-formats": "2.1.1",

},
"gitHead": "4f9e34a5a5c1bd225abc38a430fb8483acb594c6"
"gitHead": "4fc8b4120b11318a297e46ed39dc912d23f37e5f"
}

@@ -6,3 +6,3 @@ export * as MANIFEST_MODELS from './manifest/v1/manifestModels';

export * as FORMATTED_TEXT_SCHEMAS from './formatted-text/v1/formattedTextSchemas';
export * from './formatted-text/v1/higherOrderFormattedTextToBaseFormattedText';
export * from './formatted-text/v1/resolveFormattedTextNodes';

@@ -9,0 +9,0 @@ export * as SUB_SCHEMAS from './manifest/v1/subSchemas';

@@ -63,5 +63,5 @@ import DxComponentInputSchema from './manifest/v1/DxComponentInputSchema.json';

const FTSchema = new Draft07(FormattedText);
const FTSchema = new Draft07(FormattedText, defaultConfig);
const ComponentInputSchema = new Draft(
export const ComponentInputSchema = new Draft(
{

@@ -100,3 +100,3 @@ ...defaultConfig,

const ContentSchemaSchema = new Draft07(DxComponentInputSchema, defaultConfig);
export const ContentSchemaSchema = new Draft07(DxComponentInputSchema, defaultConfig);
ContentSchemaSchema.addRemoteSchema('DxComponentInputSchema.json/DxContentMetaSchema.json', DxContentMetaSchema);

@@ -103,0 +103,0 @@

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