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

alien-signals

Package Overview
Dependencies
Maintainers
0
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alien-signals - npm Package Compare versions

Comparing version 1.0.0-alpha.1 to 1.0.0-alpha.2

2

package.json
{
"name": "alien-signals",
"version": "1.0.0-alpha.1",
"version": "1.0.0-alpha.2",
"sideEffects": false,

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -20,16 +20,20 @@ export interface Dependency {

Tracking = 1,
Recursed = 2,
InnerEffectsPending = 4,
ToCheckDirty = 8,
Dirty = 16,
Notified = 28
Notified = 2,
Recursed = 4,
PendingInnerEffects = 8,
CheckRequired = 16,
Dirty = 32,
Propagated = 56
}
export declare function createSystem<Computed extends Dependency & Subscriber, Effect extends Subscriber>({ isComputed, isEffect, updateComputed, notifyEffect, }: {
isComputed(sub: Subscriber): sub is Computed;
isEffect(sub: Subscriber): sub is Effect;
updateComputed(sub: Computed): boolean;
notifyEffect(sub: Effect): void;
export declare function createSystem<Computed extends Dependency & Subscriber, Effect extends Subscriber>({ computed: { is: isComputed, update: updateComputed, }, effect: { is: isEffect, notify: notifyEffect, }, }: {
computed: {
is(sub: Dependency & Subscriber): sub is Computed;
update(computed: Computed): boolean;
};
effect: {
is(sub: Subscriber): sub is Effect;
notify(effect: Effect): boolean;
};
}): {
link: (dep: Dependency, sub: Subscriber) => boolean;
shallowPropagate: (link: Link) => void;
propagate: (link: Link) => void;

@@ -39,4 +43,5 @@ startTrack: (sub: Subscriber) => void;

isDirty: (sub: Subscriber, flags: SubscriberFlags) => boolean;
drainQueuedEffects: () => void;
runInnerEffects: (link: Link) => void;
processComputedUpdate: (computed: Computed, flags: SubscriberFlags) => void;
processInnerEffects: (effect: Effect, flags: SubscriberFlags) => boolean;
processQueuedEffects: () => void;
};

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