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

@json-layout/core

Package Overview
Dependencies
Maintainers
0
Versions
82
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

to
1.7.2

2

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

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

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

export const resolveXI18n = (schema, locale, defaultLocale = 'en') => {
if (!schema || typeof schema !== 'object') return
for (const [key, value] of Object.entries(schema)) {

@@ -18,7 +19,5 @@ if (key.startsWith('x-i18n-')) {

for (const child of value) {
if (typeof child === 'object') {
resolveXI18n(child, locale, defaultLocale)
}
resolveXI18n(child, locale, defaultLocale)
}
} if (typeof value === 'object') {
} else {
resolveXI18n(value, locale, defaultLocale)

@@ -25,0 +24,0 @@ }

Sorry, the diff of this file is not supported yet