@-0/utils
Advanced tools
Comparing version 0.2.75 to 0.2.76
@@ -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", |
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
10696
19
191