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 0.34.1 to 0.35.0

2

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

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

@@ -88,4 +88,4 @@ // compileStatic is meant to produce a serializable result

const expressionsParams = expression.pure
? ['data', expression.dataAlias, 'options', 'context', 'display', 'layout', 'validates']
: ['data', expression.dataAlias, 'options', 'context', 'display', 'layout', 'validates', 'rootData', 'parent']
? ['data', expression.dataAlias, 'options', 'context', 'display', 'layout', 'readOnly', 'summary', 'validates']
: ['data', expression.dataAlias, 'options', 'context', 'display', 'layout', 'readOnly', 'summary', 'validates', 'rootData', 'parent']
/* if (expression.type === 'expr-eval') {

@@ -92,0 +92,0 @@ expressions.push(exprEvalParser.parse(expression.expr).toJSFunction(expressionsParams.join(',')))

@@ -20,2 +20,4 @@ import type ajvModule from 'ajv/dist/2019.js'

layout: BaseCompObject,
readOnly: boolean,
summary: boolean,
validates: Record<string, ValidateFunction>,

@@ -22,0 +24,0 @@ rootData?: unknown,

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

if (expression.pure) {
return compiledExpression(data, data, options, options.context, display, layout, validates)
return compiledExpression(data, data, options, options.context, display, layout, options.readOnly, options.summary, validates)
} else {
return compiledExpression(data, data, options, options.context, display, layout, validates, rootData, parentContext)
return compiledExpression(data, data, options, options.context, display, layout, options.readOnly, options.summary, validates, rootData, parentContext)
}

@@ -231,0 +231,0 @@ } catch (err) {

@@ -11,3 +11,3 @@ import type ajvModule from 'ajv/dist/2019.js';

}
export type CompiledExpression = (data: any, dataAlias: any, options: StateNodeOptionsBase, context: object, display: Display, layout: BaseCompObject, validates: Record<string, ValidateFunction>, rootData?: unknown, parent?: ParentContextExpression | null) => any;
export type CompiledExpression = (data: any, dataAlias: any, options: StateNodeOptionsBase, context: object, display: Display, layout: BaseCompObject, readOnly: boolean, summary: boolean, validates: Record<string, ValidateFunction>, rootData?: unknown, parent?: ParentContextExpression | null) => any;
export interface CompileOptions {

@@ -14,0 +14,0 @@ ajv: ajvModule.default;

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