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

hybrids

Package Overview
Dependencies
Maintainers
0
Versions
147
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hybrids - npm Package Compare versions

Comparing version 9.1.1 to 9.1.2

2

package.json
{
"name": "hybrids",
"version": "9.1.1",
"version": "9.1.2",
"description": "A JavaScript framework for creating fully-featured web applications, components libraries, and single web components with unique declarative and functional architecture",

@@ -5,0 +5,0 @@ "type": "module",

@@ -117,3 +117,9 @@ import * as emitter from "./emitter.js";

export function assert(target, key, value) {
export function assert(target, key, value, force) {
if (context && !force) {
throw Error(
`Try to assert value of the '${key}' inside of the value function`,
);
}
const entry = getEntry(target, key);

@@ -120,0 +126,0 @@

@@ -321,7 +321,12 @@ import * as cache from "./cache.js";

cache.assert(model, "state", {
state,
value,
error: (state === "error" ? value : lastConfig?.error) || false,
});
cache.assert(
model,
"state",
{
state,
value,
error: (state === "error" ? value : lastConfig?.error) || false,
},
true,
);

@@ -1626,3 +1631,3 @@ return model;

definitions.set(clone, config);
cache.assert(clone, "state", getModelState(nextModel));
cache.assert(clone, "state", getModelState(nextModel), true);

@@ -1629,0 +1634,0 @@ return clone;

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