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

@domql/state

Package Overview
Dependencies
Maintainers
3
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@domql/state - npm Package Compare versions

Comparing version 2.3.140 to 2.3.141

7

createState.js

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

export const createState = function (element, parent, options) {
const skip = (options && options.skip) ? options.skip : false
const skipApplyMethods = Boolean(options?.skipApplyMethods)

@@ -30,3 +30,6 @@ const objectizeState = checkForTypes(element)

// NOTE: Only true when 'onlyResolveExtends' option is set to true
if (skip) return element.state
if (skipApplyMethods) {
state.parent = element.parent.state
return element.state
}

@@ -33,0 +36,0 @@ applyMethods(element)

@@ -44,3 +44,3 @@ "use strict";

};
const getChildStateInKey = (stateKey, parentState, options = {}) => {
const getChildStateInKey = (stateKey, parentState, options) => {
const arr = stateKey.split("/");

@@ -47,0 +47,0 @@ const arrLength = arr.length - 1;

@@ -104,3 +104,3 @@ "use strict";

});
const hasNotUpdated = options.preventUpdate !== true || !options.preventHoistElementUpdate;
const hasNotUpdated = !options.preventUpdate || !options.preventHoistElementUpdate;
if (!options.preventStateUpdateListener && hasNotUpdated) {

@@ -121,3 +121,3 @@ (0, import_event.triggerEventOnUpdate)("stateUpdated", obj, element, options);

const element = state.__element;
if (options.preventUpdate !== true) {
if (!options.preventUpdate) {
element.update({}, {

@@ -124,0 +124,0 @@ ...options,

{
"name": "@domql/state",
"version": "2.3.140",
"version": "2.3.141",
"license": "MIT",

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

},
"gitHead": "0194cc2107dc429d3ac8da467eaf8aa73bac6fb3"
"gitHead": "c867d7db9e2450d67e97a15ffc7b61692713c234"
}
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