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

deep-state-observer

Package Overview
Dependencies
Maintainers
1
Versions
225
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deep-state-observer - npm Package Compare versions

Comparing version 5.5.12 to 5.5.13

index.cjs.d.ts

2

index.d.ts

@@ -202,3 +202,3 @@ export interface PathInfo {

destroy(): void;
private match;
match(first: string, second: string, nested?: boolean): boolean;
private indices;

@@ -205,0 +205,0 @@ private getIndicesOf;

@@ -394,3 +394,3 @@ import WildcardObject from "./wildcard-object-scan";

private match(first: string, second: string, nested: boolean = true): boolean {
public match(first: string, second: string, nested: boolean = true): boolean {
if (this.is_match) return this.is_match(first, second);

@@ -397,0 +397,0 @@ if (first === second) return true;

{
"name": "deep-state-observer",
"version": "5.5.12",
"version": "5.5.13",
"description": "Deep state observer is an state management library that will fire listeners only when specified object node (which also can be a wildcard) was changed.",
"main": "index.esm.js",
"types": "index.d.ts",
"type": "module",
"scripts": {
"build": "npm run types && rollup -c",
"types": "tsc -d index.ts --downlevelIteration",
"types": "tsc -d index.ts --downlevelIteration && cp index.d.ts index.umd.d.ts && cp index.d.ts index.cjs.d.ts && cp index.d.ts index.esm.d.ts",
"test": "node --max-old-space-size=8192 node_modules/jasmine/bin/jasmine.js --config=./jasmine.json",

@@ -52,3 +53,3 @@ "bench": "node benchmark.js",

"benchmark": "^2.1.4",
"jasmine": "^3.4.0",
"jasmine": "^4.2.1",
"loglevel": "^1.6.4",

@@ -55,0 +56,0 @@ "prettier": "^2.0.5",

@@ -24,2 +24,3 @@ import resolve from "@rollup/plugin-node-resolve";

format: "cjs",
exports: "default",
},

@@ -40,2 +41,3 @@ plugins: [

format: "umd",
exports: "default",
},

@@ -42,0 +44,0 @@ plugins: [

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

const State = require("../index.cjs.js");
const path = require("path");
const fs = require("fs");
import State from "../index.esm.js";
import path from "path";
import fs from "fs";

@@ -1504,2 +1504,9 @@ describe("State", () => {

});
it("should replace array properly", () => {
const state = new State({ something: { a: [["a"], ["b"]] } });
state.update("something", { a: [["a"]] });
const something = state.get("something");
expect(something).toEqual({ a: [["a"]] });
});
});

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

const State = require("../index.cjs.js");
const path = require("path");
const fs = require("fs");
import State from "../index.esm.js";
import path from "path";
import fs from "fs";

@@ -5,0 +5,0 @@ describe("Bulk value", () => {

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

const State = require("../index.cjs.js");
import State from "../index.esm.js";

@@ -3,0 +3,0 @@ describe("Collection", () => {

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

const State = require("../index.cjs.js");
import State from "../index.esm.js";

@@ -3,0 +3,0 @@ describe("Group", () => {

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

const State = require("../index.cjs.js");
import State from "../index.esm.js";

@@ -3,0 +3,0 @@ describe("Group", () => {

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

const State = require("../index.cjs.js");
import State from "../index.esm.js";

@@ -3,0 +3,0 @@ describe("Multi", () => {

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

const State = require("../index.cjs.js");
const path = require("path");
const fs = require("fs");
import State from "../index.esm.js";
import path from "path";
import fs from "fs";

@@ -5,0 +5,0 @@ describe("Trace", () => {

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