@player-ui/partial-match-registry
Advanced tools
Comparing version 0.7.4-next.4 to 0.7.5--canary.432.14776
{ | ||
"name": "@player-ui/partial-match-registry", | ||
"version": "0.7.4-next.4", | ||
"private": false, | ||
"publishConfig": { | ||
"registry": "https://registry.npmjs.org" | ||
"version": "0.7.5--canary.432.14776", | ||
"main": "dist/cjs/index.cjs", | ||
"module": "dist/index.legacy-esm.js", | ||
"types": "types/index.d.ts", | ||
"bundle": "dist/Registry.native.js", | ||
"sideEffects": false, | ||
"exports": { | ||
"./package.json": "./package.json", | ||
"./dist/index.css": "./dist/index.css", | ||
".": { | ||
"types": "./types/index.d.ts", | ||
"import": "./dist/index.mjs", | ||
"default": "./dist/cjs/index.cjs" | ||
} | ||
}, | ||
"peerDependencies": {}, | ||
"files": [ | ||
"dist", | ||
"src", | ||
"types" | ||
], | ||
"dependencies": { | ||
"@types/dlv": "^1.1.4", | ||
"dlv": "^1.1.3", | ||
"@types/dlv": "^1.1.2", | ||
"sorted-array": "^2.0.4", | ||
"@babel/runtime": "7.15.4" | ||
"tslib": "^2.6.2" | ||
}, | ||
"main": "dist/index.cjs.js", | ||
"module": "dist/index.esm.js", | ||
"typings": "dist/index.d.ts", | ||
"sideEffects": false, | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/player-ui/player-ui" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/player-ui/player-ui/issues" | ||
}, | ||
"homepage": "https://player-ui.github.io", | ||
"contributors": [ | ||
{ | ||
"name": "Adam Dierkens", | ||
"url": "https://github.com/adierkens" | ||
}, | ||
{ | ||
"name": "Spencer Hamm", | ||
"url": "https://github.com/spentacular" | ||
}, | ||
{ | ||
"name": "Harris Borawski", | ||
"url": "https://github.com/hborawski" | ||
}, | ||
{ | ||
"name": "Jeremiah Zucker", | ||
"url": "https://github.com/sugarmanz" | ||
}, | ||
{ | ||
"name": "Ketan Reddy", | ||
"url": "https://github.com/KetanReddy" | ||
}, | ||
{ | ||
"name": "Brocollie08", | ||
"url": "https://github.com/brocollie08" | ||
}, | ||
{ | ||
"name": "Kelly Harrop", | ||
"url": "https://github.com/kharrop" | ||
}, | ||
{ | ||
"name": "Alejandro Fimbres", | ||
"url": "https://github.com/lexfm" | ||
}, | ||
{ | ||
"name": "Rafael Campos", | ||
"url": "https://github.com/rafbcampos" | ||
} | ||
], | ||
"bundle": "./dist/partial-match-registry.prod.js" | ||
"peerDependencies": {} | ||
} |
@@ -1,2 +0,2 @@ | ||
import dlv from 'dlv'; | ||
import dlv from "dlv"; | ||
@@ -13,3 +13,3 @@ /** A function that checks overlapping properties against a reference value */ | ||
path: string[] = [], | ||
pairs: Map<string[], any> = new Map() | ||
pairs: Map<string[], any> = new Map(), | ||
): Map<string[], any> { | ||
@@ -19,5 +19,5 @@ for (const key of Object.keys(object)) { | ||
const nestedPath = [...path, key]; | ||
(''); | ||
(""); | ||
if (typeof val === 'object') { | ||
if (typeof val === "object") { | ||
traverseObj(val, nestedPath, pairs); | ||
@@ -39,3 +39,3 @@ } else { | ||
const matchFunction = (searchObj: object) => { | ||
for (const entry of pairs) { | ||
for (const entry of Array.from(pairs)) { | ||
const [path, value] = entry; | ||
@@ -42,0 +42,0 @@ |
@@ -1,6 +0,6 @@ | ||
import SortedArray from 'sorted-array'; | ||
import type { Matcher } from './deep-partial-matcher'; | ||
import createObjectMatcher from './deep-partial-matcher'; | ||
import SortedArray from "sorted-array"; | ||
import type { Matcher } from "./deep-partial-matcher"; | ||
import createObjectMatcher from "./deep-partial-matcher"; | ||
export { default as createObjectMatcher } from './deep-partial-matcher'; | ||
export { default as createObjectMatcher } from "./deep-partial-matcher"; | ||
@@ -47,3 +47,3 @@ /** create a matcher function that matches exactly */ | ||
const matcher = | ||
typeof match === 'object' | ||
typeof match === "object" | ||
? createObjectMatcher(match) | ||
@@ -50,0 +50,0 @@ : createBasicMatcher(match); |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
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
57093
14
867
1
2
2
1
1
+ Addedtslib@^2.6.2
+ Addedtslib@2.8.1(transitive)
- Removed@babel/runtime@7.15.4
- Removed@babel/runtime@7.15.4(transitive)
- Removedregenerator-runtime@0.13.11(transitive)
Updated@types/dlv@^1.1.4