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

@symbo.ls/atoms

Package Overview
Dependencies
Maintainers
7
Versions
216
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@symbo.ls/atoms - npm Package Compare versions

Comparing version 2.10.290 to 2.11.5

28

Collection.js
'use strict'
import { isState } from 'domql/src/element/state'
import { isNot, isArray, isObject, isObjectLike, diff, deepClone } from '@domql/utils'

@@ -34,3 +35,3 @@

if (!param) return
if (param.parse) param = param.parse()
if (isState(param)) param = param.parse()
if (isNot(param)('array', 'object')) return

@@ -53,10 +54,5 @@

const set = () => {
el.set(obj, { preventDefineUpdate: '$setStateCollection' })
}
el.removeContent()
el.content = obj
if (el.props.lazyLoad) {
window.requestAnimationFrame(set)
} else set()
return obj

@@ -67,2 +63,3 @@ },

if (!param) return
if (isState(param)) param = param.parse()
if (isNot(param)('array', 'object')) return

@@ -76,10 +73,13 @@

const set = () => {
el.set(obj, { preventDefineUpdate: '$setPropsCollection' })
}
el.removeContent()
el.content = obj
if (el.props.lazyLoad) {
window.requestAnimationFrame(set)
} else set()
// const set = () => {
// el.set(obj, { preventDefineUpdate: '$setPropsCollection' })
// }
// if (el.props && el.props.lazyLoad) {
// window.requestAnimationFrame(set)
// } else set()
return obj

@@ -86,0 +86,0 @@ }

@@ -122,3 +122,3 @@ 'use strict'

const initUpdate = element => {
const initUpdate = (changes, element) => {
const { props, context, class: className } = element

@@ -134,3 +134,3 @@ const globalTheme = context.designSystem.globalTheme

preventRecursive: true,
ignoreInitUpdate: true
preventInitUpdateListener: true
})

@@ -151,3 +151,7 @@ }

themeModifier: globalTheme
}, { preventRecursive: true, ignoreInitUpdate: true, preventDefineUpdate: '$setStateCollection' })
}, {
preventRecursive: true,
preventInitUpdateListener: true,
preventDefineUpdate: true
})
} else if (key === 'true') applyTrueProps(props[key], CLASS_NAMES, element)

@@ -154,0 +158,0 @@ if (setter) setter(key, props[key], CLASS_NAMES, element)

{
"name": "@symbo.ls/atoms",
"version": "2.10.290",
"version": "2.11.5",
"main": "index.js",
"license": "MIT",
"gitHead": "d845374987c8f39a9d683e981f6060040b5b2dde",
"gitHead": "d5256e4c77123737a42641919ddbddb5acb6615c",
"dependencies": {

@@ -8,0 +8,0 @@ "@domql/utils": "latest",

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