Socket
Socket
Sign inDemoInstall

@poppinss/utils

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@poppinss/utils - npm Package Compare versions

Comparing version 3.1.4 to 3.1.5

build/src/fast-safe-stringify.d.ts

3

build/src/safeStringify.d.ts

@@ -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",

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