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

@dbpath/utils

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dbpath/utils - npm Package Compare versions

Comparing version 0.2.8 to 0.2.9

2

dist/src/errors.d.ts
export type ErrorFn<From, To> = (value: From) => ErrorsAnd<To>;
export type ErrorsAnd<T> = T | string[];
export declare function mapArrayOfErrorsAnd<T, T1>(ts: ErrorsAnd<T>[], fn: (ts: T[]) => T1): ErrorsAnd<T1>;
export declare function reportErrors(e: string[]): string[];
export declare function reportErrors<T>(e: ErrorsAnd<T>): ErrorsAnd<T>;
export declare function hasErrors<T>(t: ErrorsAnd<T>): t is string[];

@@ -6,0 +6,0 @@ export declare function errors<T>(t: ErrorsAnd<T>): string[];

@@ -14,3 +14,4 @@ "use strict";

function reportErrors(e) {
e.forEach(e => console.error(e));
if (hasErrors(e))
e.forEach(e => console.error(e));
return e;

@@ -17,0 +18,0 @@ }

{
"name": "@dbpath/utils",
"description": "",
"version": "0.2.8",
"version": "0.2.9",
"main": "dist/index",

@@ -6,0 +6,0 @@ "types": "dist/index",

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