@poppinss/utils
Advanced tools
Comparing version 3.1.4 to 3.1.5
@@ -1,2 +0,2 @@ | ||
declare type ReplacerFn = (this: any, key: string, value: any) => any; | ||
import { ReplacerFn } from './fast-safe-stringify'; | ||
/** | ||
@@ -6,2 +6,1 @@ * Safely stringifies a Javascript native value | ||
export declare function safeStringify(value: any, replacer?: ReplacerFn, space?: string | number): string; | ||
export {}; |
@@ -10,8 +10,5 @@ "use strict"; | ||
*/ | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.safeStringify = void 0; | ||
const fast_safe_stringify_1 = __importDefault(require("fast-safe-stringify")); | ||
const fast_safe_stringify_1 = require("./fast-safe-stringify"); | ||
/** | ||
@@ -40,5 +37,5 @@ * Replacer to handle bigints and remove Circular values all together | ||
catch { | ||
return fast_safe_stringify_1.default(value, jsonStringifyReplacer(replacer, true), space); | ||
return fast_safe_stringify_1.stringify(value, jsonStringifyReplacer(replacer, true), space); | ||
} | ||
} | ||
exports.safeStringify = safeStringify; |
{ | ||
"name": "@poppinss/utils", | ||
"version": "3.1.4", | ||
"version": "3.1.5", | ||
"description": "Handy utilities for repetitive work", | ||
@@ -82,3 +82,2 @@ "main": "build/index.js", | ||
"cuid": "^2.1.8", | ||
"fast-safe-stringify": "^2.0.8", | ||
"fs-readdir-recursive": "^1.1.0", | ||
@@ -85,0 +84,0 @@ "he": "^1.2.0", |
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
105970
16
54
2087
- Removedfast-safe-stringify@^2.0.8
- Removedfast-safe-stringify@2.1.1(transitive)