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

hybrids

Package Overview
Dependencies
Maintainers
2
Versions
149
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 8.2.13 to 8.2.14

2

package.json
{
"name": "hybrids",
"version": "8.2.13",
"version": "8.2.14",
"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",

@@ -100,3 +100,5 @@ declare module "hybrids" {

? T[] | [BooleanConstructor]
: T[] | [Model<T>] | [Model<T>, { loose?: boolean }];
: T extends object
? T[] | [Model<T>] | [Model<T>, { loose?: boolean }]
: never;

@@ -146,3 +148,3 @@ type ModelIdentifier =

model: Model<M>,
options?: { draft?: false; id?: keyof E | ((host: E) => number) },
options?: { draft?: false; id?: keyof E | ((host: E) => ModelIdentifier) },
): Descriptor<E, M | undefined>;

@@ -153,3 +155,3 @@

model: Model<M>,
options: { draft: true; id?: keyof E | ((host: E) => number) },
options: { draft: true; id?: keyof E | ((host: E) => ModelIdentifier) },
): Descriptor<E, M>;

@@ -160,3 +162,3 @@

model: [Model<M>],
options?: { draft?: false; id?: keyof E | ((host: E) => number) },
options?: { draft?: false; id?: keyof E | ((host: E) => ModelIdentifier) },
): Descriptor<E, M[]>;

@@ -167,3 +169,3 @@

model: Model<M> extends Array<any> ? never : Model<M>,
options?: { draft?: false; id?: keyof E | ((host: E) => number) },
options?: { draft?: false; id?: keyof E | ((host: E) => ModelIdentifier) },
): Descriptor<E, M>;

@@ -174,3 +176,3 @@

model: Model<M> extends Array<any> ? never : Model<M>,
options: { draft: true; id?: keyof E | ((host: E) => number) },
options: { draft: true; id?: keyof E | ((host: E) => ModelIdentifier) },
): Descriptor<E, M>;

@@ -181,11 +183,17 @@

function get<M>(Model: Model<M>, id?: ModelIdentifier): M;
function get<M>(Model: [Model<M>], id?: ModelIdentifier): M[];
function get<M extends object>(Model: Model<M>, id?: ModelIdentifier): M;
function get<M extends object>(
Model: [Model<M>],
id?: ModelIdentifier,
): M[];
function set<M>(
function set<M extends object>(
model: Model<M> | M,
values: ModelValues<M> | null,
): Promise<M>;
function sync<M>(model: Model<M> | M, values: ModelValues<M> | null): M;
function clear<M>(
function sync<M extends object>(
model: Model<M> | M,
values: ModelValues<M> | null,
): M;
function clear<M extends object>(
model: Model<M> | [Model<M>] | M,

@@ -209,3 +217,6 @@ clearValue?: boolean,

function resolve<M>(model: M): Promise<M>;
function resolve<M>(model: Model<M>, id?: ModelIdentifier): Promise<M>;
function resolve<M extends object>(
model: Model<M>,
id?: ModelIdentifier,
): Promise<M>;

@@ -212,0 +223,0 @@ function ref<M>(fn: () => M): M;

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