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

@maverick-js/signals

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maverick-js/signals - npm Package Compare versions

Comparing version 5.9.1 to 5.9.2

dist/dev/chunks/chunk-LO36VLGV.js

2

dist/dev/index.js

@@ -1,1 +0,1 @@

export { SCOPE, computed, createComputation, createScope, effect, getContext, getScope, isFunction, isNotEqual, isReadSignal, isWriteSignal, onDispose, onError, peek, readonly, root, scoped, setContext, signal, tick, untrack } from './chunks/chunk-HX3SCMVU.js';
export { SCOPE, computed, createComputation, createScope, effect, getContext, getScope, isFunction, isNotEqual, isReadSignal, isWriteSignal, onDispose, onError, peek, readonly, root, scoped, setContext, signal, tick, untrack } from './chunks/chunk-LO36VLGV.js';

@@ -1,2 +0,2 @@

import { effect, write, onDispose, read, isNotEqual, createComputation, createScope, scoped, dispose, compute } from './chunks/chunk-HX3SCMVU.js';
import { effect, write, onDispose, read, isNotEqual, createComputation, createScope, scoped, dispose, compute } from './chunks/chunk-LO36VLGV.js';

@@ -22,3 +22,4 @@ // src/selector.ts

function Selector(key, initialValue, nodes) {
this._state = 0;
this._state = /** CLEAN */
0;
this._key = key;

@@ -25,0 +26,0 @@ this._value = initialValue;

@@ -1,1 +0,1 @@

export { SCOPE, computed, createComputation, createScope, effect, getContext, getScope, isFunction, isNotEqual, isReadSignal, isWriteSignal, onDispose, onError, peek, readonly, root, scoped, setContext, signal, tick, untrack } from './chunks/chunk-JI2WIKTK.js';
export { SCOPE, computed, createComputation, createScope, effect, getContext, getScope, isFunction, isNotEqual, isReadSignal, isWriteSignal, onDispose, onError, peek, readonly, root, scoped, setContext, signal, tick, untrack } from './chunks/chunk-SICBCST5.js';

@@ -1,2 +0,2 @@

import { effect, write, onDispose, read, isNotEqual, createComputation, createScope, scoped, dispose, compute } from './chunks/chunk-JI2WIKTK.js';
import { effect, write, onDispose, read, isNotEqual, createComputation, createScope, scoped, dispose, compute } from './chunks/chunk-SICBCST5.js';

@@ -22,3 +22,4 @@ // src/selector.ts

function Selector(key, initialValue, nodes) {
this.f = 0;
this.e = /** CLEAN */
0;
this.u = key;

@@ -31,3 +32,3 @@ this.j = initialValue;

var SelectorProto = Selector.prototype;
SelectorProto.p = isNotEqual;
SelectorProto.q = isNotEqual;
SelectorProto.call = function() {

@@ -52,3 +53,3 @@ this.r -= 1;

n: map,
e: [],
f: [],
c: []

@@ -67,3 +68,3 @@ }),

this.g = [];
this.e = [];
this.f = [];
this.h = 0;

@@ -78,3 +79,3 @@ this.c = [];

} else if (i >= this.g.length) {
this.e[i] = compute(
this.f[i] = compute(
this.c[i] = createComputation(newItems[i], null),

@@ -90,5 +91,5 @@ mapper,

this.g = newItems.slice(0);
this.e = this.e.slice(0, this.h);
this.f = this.f.slice(0, this.h);
}, this.m);
return this.e;
return this.f;
}

@@ -105,3 +106,3 @@ function computedKeyedMap(list, map, options) {

n: map,
e: [],
f: [],
c: []

@@ -122,10 +123,10 @@ }),

this.g = [];
this.e = [];
this.f = [];
this.h = 0;
}
} else if (this.h === 0) {
this.e = new Array(newLen);
this.f = new Array(newLen);
for (j = 0; j < newLen; j++) {
this.g[j] = newItems[j];
this.e[j] = compute(
this.f[j] = compute(
this.c[j] = createComputation(j, null),

@@ -142,3 +143,3 @@ mapper,

for (end = this.h - 1, newEnd = newLen - 1; end >= start && newEnd >= start && this.g[end] === newItems[newEnd]; end--, newEnd--) {
temp[newEnd] = this.e[end];
temp[newEnd] = this.f[end];
tempNodes[newEnd] = this.c[end];

@@ -158,3 +159,3 @@ }

if (j !== void 0 && j !== -1) {
temp[j] = this.e[i];
temp[j] = this.f[i];
tempNodes[j] = this.c[i];

@@ -168,7 +169,7 @@ j = newIndicesNext[j];

if (j in temp) {
this.e[j] = temp[j];
this.f[j] = temp[j];
this.c[j] = tempNodes[j];
write.call(this.c[j], j);
} else {
this.e[j] = compute(
this.f[j] = compute(
this.c[j] = createComputation(j, null),

@@ -180,9 +181,9 @@ mapper,

}
this.e = this.e.slice(0, this.h = newLen);
this.f = this.f.slice(0, this.h = newLen);
this.g = newItems.slice(0);
}
}, this.m);
return this.e;
return this.f;
}
export { computedKeyedMap, computedMap, selector };

@@ -1,1 +0,1 @@

export { SCOPE, computed, createComputation, createScope, effect, getContext, getScope, isFunction, isNotEqual, isReadSignal, isWriteSignal, onDispose, onError, peek, readonly, root, scoped, setContext, signal, tick, untrack } from './chunks/chunk-S6HB36FV.js';
export { SCOPE, computed, createComputation, createScope, effect, getContext, getScope, isFunction, isNotEqual, isReadSignal, isWriteSignal, onDispose, onError, peek, readonly, root, scoped, setContext, signal, tick, untrack } from './chunks/chunk-SE3GBBEV.js';

@@ -1,2 +0,2 @@

import { effect, write, onDispose, read, isNotEqual, createComputation, createScope, scoped, dispose, compute } from './chunks/chunk-S6HB36FV.js';
import { effect, write, onDispose, read, isNotEqual, createComputation, createScope, scoped, dispose, compute } from './chunks/chunk-SE3GBBEV.js';

@@ -22,3 +22,4 @@ // src/selector.ts

function Selector(key, initialValue, nodes) {
this.f = 0;
this.e = /** CLEAN */
0;
this.u = key;

@@ -31,3 +32,3 @@ this.j = initialValue;

var SelectorProto = Selector.prototype;
SelectorProto.p = isNotEqual;
SelectorProto.q = isNotEqual;
SelectorProto.call = function() {

@@ -52,3 +53,3 @@ this.r -= 1;

n: map,
e: [],
f: [],
c: []

@@ -67,3 +68,3 @@ }),

this.g = [];
this.e = [];
this.f = [];
this.h = 0;

@@ -78,3 +79,3 @@ this.c = [];

} else if (i >= this.g.length) {
this.e[i] = compute(
this.f[i] = compute(
this.c[i] = createComputation(newItems[i], null),

@@ -90,5 +91,5 @@ mapper,

this.g = newItems.slice(0);
this.e = this.e.slice(0, this.h);
this.f = this.f.slice(0, this.h);
}, this.m);
return this.e;
return this.f;
}

@@ -105,3 +106,3 @@ function computedKeyedMap(list, map, options) {

n: map,
e: [],
f: [],
c: []

@@ -122,10 +123,10 @@ }),

this.g = [];
this.e = [];
this.f = [];
this.h = 0;
}
} else if (this.h === 0) {
this.e = new Array(newLen);
this.f = new Array(newLen);
for (j = 0; j < newLen; j++) {
this.g[j] = newItems[j];
this.e[j] = compute(
this.f[j] = compute(
this.c[j] = createComputation(j, null),

@@ -142,3 +143,3 @@ mapper,

for (end = this.h - 1, newEnd = newLen - 1; end >= start && newEnd >= start && this.g[end] === newItems[newEnd]; end--, newEnd--) {
temp[newEnd] = this.e[end];
temp[newEnd] = this.f[end];
tempNodes[newEnd] = this.c[end];

@@ -158,3 +159,3 @@ }

if (j !== void 0 && j !== -1) {
temp[j] = this.e[i];
temp[j] = this.f[i];
tempNodes[j] = this.c[i];

@@ -168,7 +169,7 @@ j = newIndicesNext[j];

if (j in temp) {
this.e[j] = temp[j];
this.f[j] = temp[j];
this.c[j] = tempNodes[j];
write.call(this.c[j], j);
} else {
this.e[j] = compute(
this.f[j] = compute(
this.c[j] = createComputation(j, null),

@@ -180,9 +181,9 @@ mapper,

}
this.e = this.e.slice(0, this.h = newLen);
this.f = this.f.slice(0, this.h = newLen);
this.g = newItems.slice(0);
}
}, this.m);
return this.e;
return this.f;
}
export { computedKeyedMap, computedMap, selector };

@@ -78,2 +78,2 @@ import type { Callable, Computation, ComputedSignalOptions, Dispose, MaybeDisposable, Scope } from './types';

export declare function isFunction(value: unknown): value is Function;
export declare function isZombie(node: Scope): boolean;
export declare function update(node: Computation): void;

@@ -5,3 +5,3 @@ {

"license": "MIT",
"version": "5.9.1",
"version": "5.9.2",
"type": "module",

@@ -40,4 +40,4 @@ "types": "dist/types/index.d.ts",

"devDependencies": {
"@preact/signals-core": "^1.2.0",
"@reactively/core": "^0.0.6",
"@preact/signals-core": "^1.3.0",
"@reactively/core": "^0.0.8",
"@types/node": "^18.0.0",

@@ -47,11 +47,11 @@ "cellx": "^1.10.26",

"kleur": "^4.1.5",
"prettier": "^2.7.1",
"prettier": "^2.8.0",
"rimraf": "^3.0.2",
"s-js": "^0.4.9",
"solid-js": "^1.4.5",
"solid-js": "^1.7.0",
"standard-version": "^9.5.0",
"tsup": "^6.5.0",
"typescript": "^4.9.0",
"vite": "^2.9.12",
"vitest": "^0.15.2"
"tsup": "^6.7.0",
"typescript": "^5.0.0",
"vite": "^4.0.0",
"vitest": "^0.30.0"
},

@@ -58,0 +58,0 @@ "publishConfig": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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