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

@json-layout/core

Package Overview
Dependencies
Maintainers
0
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@json-layout/core - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

4

package.json
{
"name": "@json-layout/core",
"version": "1.0.1",
"version": "1.0.2",
"description": "Compilation and state management utilities for JSON Layout.",

@@ -62,3 +62,3 @@ "type": "module",

"dependencies": {
"@json-layout/vocabulary": "^1.0.0",
"@json-layout/vocabulary": "~1.0.0",
"ajv": "^8.12.0",

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

@@ -274,2 +274,3 @@ // eslint-disable-next-line import/no-named-default

activatedItems: this.activatedItems,
autoActivatedItems: {},
autofocusTarget: this._autofocusTarget,

@@ -307,2 +308,5 @@ currentInput: this._currentInput,

this.files = shallowProduceArray(this.files, createStateTreeContext.files)
for (const activatedKey in createStateTreeContext.autoActivatedItems) {
this.activatedItems = produce(this.activatedItems, draft => { draft[activatedKey] = createStateTreeContext.autoActivatedItems[activatedKey] })
}
}

@@ -309,0 +313,0 @@

@@ -427,3 +427,3 @@ import { isSwitchStruct, childIsCompObject, isCompositeLayout, isFocusableLayout, isItemsLayout, isGetItemsExpression, isGetItemsFetch, isListLayout } from '@json-layout/vocabulary'

if (activeChildTreeIndex !== -1) {
if (context.initial) context.activatedItems[fullKey] = activeChildTreeIndex
if (!(fullKey in context.activatedItems)) context.autoActivatedItems[fullKey] = activeChildTreeIndex
context.errors = context.errors?.filter(error => {

@@ -430,0 +430,0 @@ const originalError = error.params?.errors?.[0] ?? error

@@ -68,2 +68,3 @@ import { type ErrorObject } from 'ajv/dist/2019.js'

activatedItems: Record<string, number>
autoActivatedItems: Record<string, number>
autofocusTarget: string | null

@@ -70,0 +71,0 @@ currentInput: string | null

@@ -37,2 +37,3 @@ import { type ErrorObject } from 'ajv/dist/2019.js';

activatedItems: Record<string, number>;
autoActivatedItems: Record<string, number>;
autofocusTarget: string | null;

@@ -39,0 +40,0 @@ currentInput: string | null;

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