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

@-0/utils

Package Overview
Dependencies
Maintainers
1
Versions
125
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@-0/utils - npm Package Compare versions

Comparing version 0.2.75 to 0.2.76

lib/stringify_fn.d.ts

3

lib/index.d.ts

@@ -6,2 +6,3 @@ export { msTaskPromiseDelay } from "./taskDelay";

export { unparse, parse } from "./URL";
export { key_index_err, stringify_w_functions, xKeyError } from "./xKey";
export { key_index_err, xKeyError } from "./xKey";
export { stringify_fn } from "./stringify_fn";

@@ -6,2 +6,3 @@ export { msTaskPromiseDelay } from "./taskDelay";

export { unparse, parse } from "./URL";
export { key_index_err, stringify_w_functions, xKeyError } from "./xKey";
export { key_index_err, xKeyError } from "./xKey";
export { stringify_fn } from "./stringify_fn";

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

export declare const stringify_w_functions: (x: any, indent?: any) => string;
export declare const key_index_err: (c: any, i: any) => string;
export declare const xKeyError: (str: any, c: any, unknown: any, sub$: any, index: any) => string;

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

export const stringify_w_functions = (x, indent) => JSON.stringify(x, (key, value) => {
if (typeof value === "function") {
return (value
.toString()
.replace(/\r?\n|\r/g, "")
.replace(/\s\s+/g, " ")
.slice(0, 12) + "...");
}
else {
return value;
}
}, indent);
import { stringify_fn } from "./stringify_fn";
export const key_index_err = (c, i) => {

@@ -35,3 +24,3 @@ const idx_dict0 = Array.from(Array(19).keys()).reduce((a, idx) => (Object.assign(Object.assign({}, a), { [idx]: `${idx + 1}th` })), {});

🤔 ${!index && count > 3 && !source$ ? `${Object.entries(unknown)[0][0]}: <Stream>` : stringify_w_functions(unknown, 2)}`
🤔 ${!index && count > 3 && !source$ ? `${Object.entries(unknown)[0][0]}: <Stream>` : stringify_fn(unknown, 2)}`
: ""} 🤔

@@ -38,0 +27,0 @@

@@ -5,3 +5,3 @@ {

"license": "MIT",
"version": "0.2.75",
"version": "0.2.76",
"description": "utilities for the `-0` org/framework built on @thi.ng/umbrella ecosystem",

@@ -8,0 +8,0 @@ "main": "./lib/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