You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@domql/state

Package Overview
Dependencies
Maintainers
3
Versions
146
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

to
2.3.137

6

dist/cjs/updateState.js

@@ -40,2 +40,3 @@ "use strict";

const element = state.__element;
console.log(options);
if (!options.updateByState)

@@ -105,3 +106,3 @@ (0, import_utils.merge)(options, STATE_UPDATE_OPTIONS);

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

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

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

@@ -125,0 +127,0 @@ ...options,

{
"name": "@domql/state",
"version": "2.3.132",
"version": "2.3.137",
"license": "MIT",

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

},
"gitHead": "2df037bb2c72a090715d27e3368c39c605dac733"
"gitHead": "07ca3db13100667ebe3915db37a18b6e694a3ce3"
}

@@ -21,2 +21,3 @@ 'use strict'

const element = state.__element
console.log(options)

@@ -36,3 +37,2 @@ if (!options.updateByState) merge(options, STATE_UPDATE_OPTIONS)

applyOverwrite(state, obj, options)
const updateIsHoisted = hoistStateUpdate(state, obj, options)

@@ -95,3 +95,3 @@ if (updateIsHoisted) return state

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

@@ -113,3 +113,4 @@ triggerEventOnUpdate('stateUpdated', obj, element, options)

const element = state.__element
if (!options.preventUpdate) {
console.log('update', element.key)
if (options.preventUpdate !== true) {
element.update({}, {

@@ -116,0 +117,0 @@ ...options,