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

@domql/state

Package Overview
Dependencies
Maintainers
1
Versions
126
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.5.190 to 2.5.193

6

dist/cjs/updateState.js

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

};
const updateState = function(obj, options = STATE_UPDATE_OPTIONS) {
const updateState = async function(obj, options = STATE_UPDATE_OPTIONS) {
const state = this;

@@ -51,3 +51,3 @@ const element = state.__element;

if (!options.preventBeforeStateUpdateListener) {
const beforeStateUpdateReturns = (0, import_event.triggerEventOnUpdate)("beforeStateUpdate", obj, element, options);
const beforeStateUpdateReturns = await (0, import_event.triggerEventOnUpdate)("beforeStateUpdate", obj, element, options);
if (beforeStateUpdateReturns === false)

@@ -63,3 +63,3 @@ return element;

if (!options.preventStateUpdateListener) {
(0, import_event.triggerEventOnUpdate)("stateUpdate", obj, element, options);
await (0, import_event.triggerEventOnUpdate)("stateUpdate", obj, element, options);
}

@@ -66,0 +66,0 @@ return state;

@@ -32,3 +32,3 @@ var __defProp = Object.defineProperty;

};
const updateState = function(obj, options = STATE_UPDATE_OPTIONS) {
const updateState = async function(obj, options = STATE_UPDATE_OPTIONS) {
const state = this;

@@ -47,3 +47,3 @@ const element = state.__element;

if (!options.preventBeforeStateUpdateListener) {
const beforeStateUpdateReturns = triggerEventOnUpdate("beforeStateUpdate", obj, element, options);
const beforeStateUpdateReturns = await triggerEventOnUpdate("beforeStateUpdate", obj, element, options);
if (beforeStateUpdateReturns === false)

@@ -59,3 +59,3 @@ return element;

if (!options.preventStateUpdateListener) {
triggerEventOnUpdate("stateUpdate", obj, element, options);
await triggerEventOnUpdate("stateUpdate", obj, element, options);
}

@@ -62,0 +62,0 @@ return state;

{
"name": "@domql/state",
"version": "2.5.190",
"version": "2.5.193",
"license": "MIT",

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

},
"gitHead": "c4e06a81317c6d43c070d9ad93bbaeba24b3bb3b"
"gitHead": "43f57cec4a807f104342f92da621aedcd0b48e3e"
}

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

export const updateState = function (obj, options = STATE_UPDATE_OPTIONS) {
export const updateState = async function (obj, options = STATE_UPDATE_OPTIONS) {
const state = this

@@ -32,3 +32,3 @@ const element = state.__element

if (!options.preventBeforeStateUpdateListener) {
const beforeStateUpdateReturns = triggerEventOnUpdate('beforeStateUpdate', obj, element, options)
const beforeStateUpdateReturns = await triggerEventOnUpdate('beforeStateUpdate', obj, element, options)
if (beforeStateUpdateReturns === false) return element

@@ -46,3 +46,3 @@ }

if (!options.preventStateUpdateListener) {
triggerEventOnUpdate('stateUpdate', obj, element, options)
await triggerEventOnUpdate('stateUpdate', obj, element, options)
}

@@ -49,0 +49,0 @@

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