@byjohann/utils
Advanced tools
Comparing version 0.2.1 to 0.3.0
@@ -0,1 +1,3 @@ | ||
export { getPathname, joinURL, withLeadingSlash, withTrailingSlash, withoutBase, withoutTrailingSlash } from './path/index.js'; | ||
type MaybeArray<T> = T | T[]; | ||
@@ -21,3 +23,3 @@ | ||
*/ | ||
declare function tryParseJson<T = unknown>(value: unknown): T; | ||
declare function tryParseJSON<T = unknown>(value: unknown): T; | ||
@@ -47,2 +49,5 @@ declare function interopDefault<T>(m: T | Promise<T>): Promise<T extends { | ||
* Generates a random string. | ||
* | ||
* @remarks Ported from nanoid. | ||
* @see https://github.com/ai/nanoid | ||
*/ | ||
@@ -56,2 +61,2 @@ declare function generateRandomId(size?: number, dict?: string): string; | ||
export { type MaybeArray, createCsv, deepApply, escapeCsvValue, generateRandomId, interopDefault, objectEntries, objectKeys, template, toArray, tryParseJson, unindent }; | ||
export { type MaybeArray, createCsv, deepApply, escapeCsvValue, generateRandomId, interopDefault, objectEntries, objectKeys, template, toArray, tryParseJSON, unindent }; |
{ | ||
"name": "@byjohann/utils", | ||
"type": "module", | ||
"version": "0.2.1", | ||
"version": "0.3.0", | ||
"packageManager": "pnpm@9.5.0", | ||
@@ -22,2 +22,6 @@ "description": "A collection of utilities for my projects", | ||
"default": "./dist/index.mjs" | ||
}, | ||
"./path": { | ||
"types": "./dist/path/index.d.mts", | ||
"default": "./dist/path/index.mjs" | ||
} | ||
@@ -24,0 +28,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
12498
9
196