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

@byjohann/utils

Package Overview
Dependencies
Maintainers
0
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@byjohann/utils - npm Package Compare versions

Comparing version 0.2.1 to 0.3.0

dist/path/index.d.mts

9

dist/index.d.ts

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

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