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

quarx

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

quarx - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

12

dist/index.js

@@ -15,3 +15,4 @@ var __defProp = Object.defineProperty;

createAtom: () => createAtom,
observable: () => observable
observable: () => observable,
untracked: () => untracked
});

@@ -146,2 +147,8 @@

}
function untracked(fn) {
stack.push(null);
const result = fn();
stack.pop();
return result;
}

@@ -210,3 +217,4 @@ // src/computed.js

createAtom,
observable
observable,
untracked
});

@@ -12,2 +12,5 @@ declare module 'quarx' {

export function batch(changes: () => void): void;
export function untracked<T>(fn: () => T): T;
export interface Observable<T> {

@@ -14,0 +17,0 @@ get: () => T;

2

index.js

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

export { createAtom, autorun, batch } from './src/core';
export { createAtom, autorun, batch, untracked } from './src/core';
export { computed } from './src/computed';
import { box } from './src/box'
export const observable = { box };

@@ -7,3 +7,3 @@ {

"name": "quarx",
"version": "2.0.0",
"version": "2.1.0",
"description": "Simple dependency graph engine, MobX inspired",

@@ -10,0 +10,0 @@ "main": "dist/index.js",

@@ -71,2 +71,3 @@ # 🜉 Quarx

export function batch(changes: () => void): void;
export function untracked<T>(fn: () => T): T;
```

@@ -73,0 +74,0 @@ #### NOTE

@@ -148,1 +148,8 @@ const stack = [];

}
export function untracked(fn) {
stack.push(null);
const result = fn();
stack.pop();
return result;
}
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