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

digx-nps

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

digx-nps - npm Package Compare versions

Comparing version 1.0.10 to 1.0.11

3

dist/cjs/digx.d.ts

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

export default dig;
/**

@@ -11,2 +10,2 @@ * A dig function that takes any object with a nested structure and a path,

*/
declare function dig(source: any, path: string, shouldThrow?: boolean): any;
export declare function dig(source: any, path: string, shouldThrow?: boolean): any;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = dig;
exports.dig = void 0;
/**

@@ -49,2 +49,3 @@ * A dig function that takes any object with a nested structure and a path,

}
exports.dig = dig;
const ALL_DIGITS_REGEX = /^\d+$/;

@@ -51,0 +52,0 @@ function isNum(str) {

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

import DigX from "./digx";
export default DigX;
import { dig } from "./digx";
export { dig };
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.dig = void 0;
// src/index.ts
const digx_1 = __importDefault(require("./digx"));
exports.default = digx_1.default;
const digx_1 = require("./digx");
Object.defineProperty(exports, "dig", { enumerable: true, get: function () { return digx_1.dig; } });

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

export default dig;
/**

@@ -11,2 +10,2 @@ * A dig function that takes any object with a nested structure and a path,

*/
declare function dig(source: any, path: string, shouldThrow?: boolean): any;
export declare function dig(source: any, path: string, shouldThrow?: boolean): any;

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

export default dig;
/**

@@ -11,3 +10,3 @@ * A dig function that takes any object with a nested structure and a path,

*/
function dig(source, path, shouldThrow = false) {
export function dig(source, path, shouldThrow = false) {
if (source === null || source === undefined) {

@@ -14,0 +13,0 @@ return undefined;

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

import DigX from "./digx";
export default DigX;
import { dig } from "./digx";
export { dig };
// src/index.ts
import DigX from "./digx";
export default DigX;
import { dig } from "./digx";
export { dig };
{
"name": "digx-nps",
"version": "1.0.10",
"version": "1.0.11",
"description": "Take a nested object and dig values by path",

@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js",

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