Comparing version 1.0.10 to 1.0.11
@@ -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", |
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
5419
9
149