deep-state-observer
Advanced tools
Comparing version 5.5.12 to 5.5.13
@@ -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", () => { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
583763
14991
Yes
42