Socket
Socket
Sign inDemoInstall

@json-layout/vocabulary

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@json-layout/vocabulary - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

2

package.json
{
"name": "@json-layout/vocabulary",
"version": "0.6.0",
"version": "0.7.0",
"description": "Main JSON Layout vocabulary as JSON schemas and Typescript types. Also contains some small utility functions to validate and normalize annotations.",

@@ -5,0 +5,0 @@ "type": "module",

@@ -297,6 +297,10 @@ import { validateLayoutKeyword, isComponentName, isPartialCompObject, isPartialChildren, isPartialSwitch, isPartialGetItemsExpr, isPartialGetItemsObj, isPartialSlotMarkdown, isPartialGetItemsFetch } from './layout-keyword/index.js'

if (partial.defaultData) partial.defaultData = normalizeExpression(partial.defaultData)
if (partial.constData) partial.constData = normalizeExpression(partial.constData)
if (partial.transformData) partial.transformData = normalizeExpression(partial.transformData)
if (!partial.defaultData && schemaFragment.type === 'string' && schemaPath.split('#').pop() === '') {
partial.defaultData = '""'
}
if (partial.defaultData !== undefined) partial.defaultData = normalizeExpression(partial.defaultData)
if (partial.constData !== undefined) partial.constData = normalizeExpression(partial.constData)
if (partial.transformData !== undefined) partial.transformData = normalizeExpression(partial.transformData)
if (partial.getItems && isPartialGetItemsExpr(partial.getItems)) partial.getItems = normalizeExpression(partial.getItems)

@@ -303,0 +307,0 @@ if (partial.getItems && isPartialGetItemsObj(partial.getItems)) {

@@ -36,2 +36,3 @@ import validate from './validate.js'

* @typedef {import('./types.js').Combobox} Combobox
* @typedef {import('./types.js').Markdown} Markdown
* @typedef {import('./types.js').FileInput} FileInput

@@ -38,0 +39,0 @@ * @typedef {import('./types.js').Cols} Cols

@@ -60,2 +60,3 @@ export function isSwitchStruct(layout: NormalizedLayout): layout is import("./types.js").SwitchStruct;

* @typedef {import('./types.js').Combobox} Combobox
* @typedef {import('./types.js').Markdown} Markdown
* @typedef {import('./types.js').FileInput} FileInput

@@ -102,2 +103,3 @@ * @typedef {import('./types.js').Cols} Cols

export type Combobox = import('./types.js').Combobox;
export type Markdown = import('./types.js').Markdown;
export type FileInput = import('./types.js').FileInput;

@@ -104,0 +106,0 @@ export type Cols = import('./types.js').Cols;

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