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

objob

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

objob - npm Package Compare versions

Comparing version 2.7.6 to 2.7.7

12

lib/objob.js

@@ -109,3 +109,4 @@ 'use strict';

if (key.startsWith(inputKey)) {
var re = new RegExp(inputKey + '\..*', 'g');
if (key.match(re) || key === inputKey) {
matchFound = true;

@@ -133,3 +134,4 @@ }

} else {
if (key.startsWith(input) === false) {
var re = new RegExp(input + '\..*', 'g');
if (!key.match(re) && key !== input) {
updatedFlattened[key] = flattened[key];

@@ -722,3 +724,4 @@ }

if (key.startsWith(inputKey)) {
var re = new RegExp(inputKey + '\..*', 'g');
if (key.match(re) || key === inputKey) {
matchFound = true;

@@ -746,3 +749,4 @@ }

} else {
if (key.startsWith(input) === true) {
var re = new RegExp(input + '\.', 'g');
if (key.match(re) || key === input) {
updatedFlattened[key] = flattened[key];

@@ -749,0 +753,0 @@ }

{
"name": "objob",
"version": "2.7.6",
"version": "2.7.7",
"description": "A tool for controlling and manipulating javascript object fields and output.",

@@ -5,0 +5,0 @@ "main": "lib/objob.js",

@@ -87,3 +87,4 @@ 'use strict';

for(let inputKey of input) {
if(key.startsWith(inputKey)) {
let re = new RegExp(inputKey+'\..*','g');
if(key.match(re) || key === inputKey) {
matchFound = true;

@@ -97,3 +98,4 @@ }

} else {
if(key.startsWith(input) === false) {
let re = new RegExp(input+'\..*','g');
if(!key.match(re) && key !== input) {
updatedFlattened[key] = flattened[key];

@@ -568,3 +570,4 @@ }

for(let inputKey of input) {
if(key.startsWith(inputKey)) {
let re = new RegExp(inputKey+'\..*','g');
if(key.match(re) || key === inputKey) {
matchFound = true;

@@ -578,3 +581,4 @@ }

} else {
if(key.startsWith(input) === true) {
let re = new RegExp(input+'\.','g');
if(key.match(re) || key === input) {
updatedFlattened[key] = flattened[key];

@@ -581,0 +585,0 @@ }

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