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

@player-ui/partial-match-registry

Package Overview
Dependencies
Maintainers
0
Versions
293
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@player-ui/partial-match-registry - npm Package Compare versions

Comparing version 0.7.4-next.4 to 0.7.5--canary.432.14776

dist/cjs/index.cjs

81

package.json
{
"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);

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