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

libskynet

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libskynet - npm Package Compare versions

Comparing version 0.0.51 to 0.0.52

dist/downloadskylink.d.ts

2

dist/stringifyjson.js

@@ -13,3 +13,3 @@ import { addContextToErr } from "./err.js";

if (typeof v === "bigint") {
return v.toString();
return Number(v);
}

@@ -16,0 +16,0 @@ return v;

@@ -30,5 +30,11 @@ // tryStringify will try to turn the provided input into a string. If the input

// If the object does not have a custom toString, attempt to perform a
// JSON.stringify.
// JSON.stringify. We add custom handling for bigints so that objects with
// bigints in them can still be stringified.
try {
return JSON.stringify(obj);
return JSON.stringify(obj, (_, v) => {
if (typeof v === "bigint") {
return v.toString() + "n";
}
return v;
});
}

@@ -35,0 +41,0 @@ catch {

{
"name": "libskynet",
"version": "0.0.51",
"version": "0.0.52",
"author": "Skynet Labs",

@@ -5,0 +5,0 @@ "description": "helper library to interact with skynet's low level primitives",

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