@symbo.ls/atoms
Advanced tools
Comparing version 2.11.36 to 2.11.81
'use strict' | ||
import { isState } from '@domql/state' | ||
import { isNot, isArray, isObject, isObjectLike, diff, deepClone } from '@domql/utils' | ||
import { isState, getChildStateInKey } from '@domql/state' | ||
import { isString, isNot, isArray, isObject, isObjectLike, diff, deepClone } from '@domql/utils' | ||
@@ -11,2 +11,7 @@ export const Collection = { | ||
if (isString(param)) { | ||
if (param === 'state') param = state.parse() | ||
else param = getChildStateInKey(param, state) | ||
} | ||
let data = isArray(param) ? param : [] | ||
@@ -36,2 +41,7 @@ | ||
if (!param) return | ||
if (isString(param)) { | ||
if (param === 'state') param = state.parse() | ||
else param = getChildStateInKey(param, state) | ||
} | ||
if (isState(param)) param = param.parse() | ||
@@ -63,2 +73,7 @@ if (isNot(param)('array', 'object')) return | ||
if (!param) return | ||
if (isString(param)) { | ||
if (param === 'state') param = state.parse() | ||
else param = getChildStateInKey(param, state) | ||
} | ||
if (isState(param)) param = param.parse() | ||
@@ -65,0 +80,0 @@ if (isNot(param)('array', 'object')) return |
{ | ||
"name": "@symbo.ls/atoms", | ||
"version": "2.11.36", | ||
"version": "2.11.81", | ||
"main": "index.js", | ||
"license": "MIT", | ||
"gitHead": "dcbcb0c3da036cfdb2fa14632c7dd32f8041af2a", | ||
"gitHead": "824ee1c1b1ef055b058ae21296b39493503dca98", | ||
"dependencies": { | ||
@@ -8,0 +8,0 @@ "@domql/state": "latest", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40801
1143