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.18.0 to 0.19.0

2

package.json
{
"name": "@json-layout/vocabulary",
"version": "0.18.0",
"version": "0.19.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",

@@ -122,2 +122,3 @@ import { validateLayoutKeyword, isComponentName, isPartialCompObject, isPartialChildren, isPartialSwitch, isPartialGetItemsExpr, isPartialGetItemsObj, isPartialSlotMarkdown, isPartialGetItemsFetch, isPartialChildComposite } from './layout-keyword/index.js'

if (typeof partial.getItems.url === 'string' && partial.getItems.url.includes('{q}')) return 'autocomplete'
if (typeof partial.getItems.url === 'object' && typeof partial.getItems.url.expr === 'string' && partial.getItems.url.expr.includes('{q}')) return 'autocomplete'
}

@@ -308,4 +309,5 @@ return 'select'

partial.getItems.expr = JSON.stringify(items)
partial.getItems.immutable = true
} else {
partial.getItems = JSON.stringify(items)
partial.getItems = { expr: JSON.stringify(items), immutable: true }
}

@@ -312,0 +314,0 @@ }

@@ -352,2 +352,5 @@

"$ref": "#/$defs/expression"
},
"immutable": {
"type": "boolean"
}

@@ -354,0 +357,0 @@ }

@@ -188,3 +188,4 @@ {

"itemValue": {"$ref": "#/$defs/expression"},
"itemIcon": {"$ref": "#/$defs/expression"}
"itemIcon": {"$ref": "#/$defs/expression"},
"immutable": {"type": "boolean"}
}

@@ -191,0 +192,0 @@ },

@@ -118,2 +118,3 @@ /**

itemIcon?: Expression;
immutable?: boolean;
[k: string]: unknown;

@@ -120,0 +121,0 @@ } & (Expression | GetItemsFetch);

@@ -302,2 +302,5 @@ declare namespace _default {

};
immutable: {
type: string;
};
};

@@ -304,0 +307,0 @@ oneOf?: undefined;

@@ -115,2 +115,3 @@ /**

itemIcon?: Expression;
immutable?: boolean;
[k: string]: unknown;

@@ -117,0 +118,0 @@ } & (Expression | GetItemsFetch);

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