You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

proxy-state-tree

Package Overview
Dependencies
Maintainers
2
Versions
896
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

proxy-state-tree - npm Package Compare versions

Comparing version

to
6.3.1-1743428488913

16

es/index.js

@@ -7,7 +7,15 @@ import { MutationTree } from './MutationTree';

export class ProxyStateTree {
flushCallbacks = [];
mutationCallbacks = [];
currentFlushId = 0;
currentTree;
previousTree;
mutationTree;
proxifier;
master;
pathDependencies = {};
state;
sourceState;
options;
constructor(state, options = {}) {
this.flushCallbacks = [];
this.mutationCallbacks = [];
this.currentFlushId = 0;
this.pathDependencies = {};
if (typeof options.devmode === 'undefined') {

@@ -14,0 +22,0 @@ options.devmode = true;

import { Proxifier } from './Proxyfier';
export class MutationTree {
mutationCallbacks = [];
root;
state;
proxifier;
mutations = [];
objectChanges = new Set();
isTracking = false;
isBlocking = false;
trackPathListeners = [];
constructor(root, proxifier) {
this.mutationCallbacks = [];
this.mutations = [];
this.objectChanges = new Set();
this.isTracking = false;
this.isBlocking = false;
this.trackPathListeners = [];
this.isTracking = true;

@@ -11,0 +14,0 @@ this.root = root;

@@ -43,5 +43,8 @@ const ENVIRONMENT = (() => {

export class Proxifier {
tree;
CACHED_PROXY = Symbol('CACHED_PROXY');
delimiter;
ssr;
constructor(tree) {
this.tree = tree;
this.CACHED_PROXY = Symbol('CACHED_PROXY');
this.delimiter = tree.root.options.delimiter;

@@ -48,0 +51,0 @@ this.ssr = Boolean(tree.root.options.ssr);

export class TrackStateTree {
disposeOnReset;
root;
pathDependencies = new Set();
state;
proxifier;
trackPathListeners = [];
constructor(root) {
this.pathDependencies = new Set();
this.trackPathListeners = [];
this.root = root;

@@ -6,0 +10,0 @@ this.proxifier = root.proxifier;

{
"name": "proxy-state-tree",
"version": "6.3.1-1743089349615",
"version": "6.3.1-1743428488913",
"description": "An implementation of the Mobx/Vue state tracking approach, for library authors",

@@ -11,3 +11,3 @@ "main": "lib/index.js",

"build:lib": "tsc --outDir lib --module commonjs",
"build:es": "tsc --outDir es --module ES2020 --target ES2020",
"build:es": "tsc --outDir es --module ES2022 --target ES2022",
"build:dist": "webpack --config webpack.config.js",

@@ -14,0 +14,0 @@ "clean": "rimraf es lib coverage",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet