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
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.5.3 to 2.5.7

12

create.js

@@ -56,16 +56,14 @@ 'use strict'

return exec(state, element)
}
if (is(state)('string', 'number')) {
} else if (is(state)('string', 'number')) {
ref.__state = state
return {}
}
if (state === true) {
} else if (state === true) {
ref.__state = element.key
return {}
}
if (state) {
} else if (state) {
ref.__hasRootState = true
return state
} else {
return false
}
return false
}

@@ -72,0 +70,0 @@

@@ -69,16 +69,14 @@ "use strict";

return (0, import_utils.exec)(state, element);
}
if ((0, import_utils.is)(state)("string", "number")) {
} else if ((0, import_utils.is)(state)("string", "number")) {
ref.__state = state;
return {};
}
if (state === true) {
} else if (state === true) {
ref.__state = element.key;
return {};
}
if (state) {
} else if (state) {
ref.__hasRootState = true;
return state;
} else {
return false;
}
return false;
};

@@ -85,0 +83,0 @@ const addProtoToArray = (state, proto) => {

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

const stateKey = ref.__state
if (!stateKey || isNot(stateKey)('number', 'string')) return false

@@ -73,0 +74,0 @@ return true

{
"name": "@domql/state",
"version": "2.5.3",
"version": "2.5.7",
"license": "MIT",

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

},
"gitHead": "8a498068958fca26ce39c39e6ad1312d0be327d7"
"gitHead": "fe6520d996b2ca837f6965928a51360ea91e9695"
}
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