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.3.3 to 0.3.4

1

dist/src/errors.d.ts

@@ -15,2 +15,3 @@ export type ErrorFn<From, To> = (value: From) => ErrorsAnd<To>;

export declare function mapErrorsK<T, T1>(t: ErrorsAnd<T>, fn: (t: T) => Promise<ErrorsAnd<T1>>): Promise<ErrorsAnd<T1>>;
export declare function prefixAnyErrors<T>(t: ErrorsAnd<T>, ...prefix: string[]): ErrorsAnd<T>;
export declare function flattenErrors<T>(t: ErrorsAnd<ErrorsAnd<T>>): ErrorsAnd<T>;

@@ -17,0 +18,0 @@ export declare function flatMapErrors<T, T1>(t: ErrorsAnd<T>, fn: (t: T) => ErrorsAnd<T1>): ErrorsAnd<T1>;

@@ -12,3 +12,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.composeErrorFnAndThen = exports.composeErrorFn = exports.foldErrorsK = exports.foldErrors = exports.flatMapErrorsK = exports.flatMapErrors = exports.flattenErrors = exports.mapErrorsK = exports.allValuesIn = exports.allErrorsIn = exports.mapAndforEachErrorFn = exports.mapErrors = exports.value = exports.errors = exports.ignoreErrorK = exports.ignoreError = exports.hasErrors = exports.reportErrors = exports.mapArrayOfErrorsAnd = void 0;
exports.composeErrorFnAndThen = exports.composeErrorFn = exports.foldErrorsK = exports.foldErrors = exports.flatMapErrorsK = exports.flatMapErrors = exports.flattenErrors = exports.prefixAnyErrors = exports.mapErrorsK = exports.allValuesIn = exports.allErrorsIn = exports.mapAndforEachErrorFn = exports.mapErrors = exports.value = exports.errors = exports.ignoreErrorK = exports.ignoreError = exports.hasErrors = exports.reportErrors = exports.mapArrayOfErrorsAnd = void 0;
const utils_1 = require("./utils");

@@ -86,2 +86,6 @@ function mapArrayOfErrorsAnd(ts, fn) {

exports.mapErrorsK = mapErrorsK;
function prefixAnyErrors(t, ...prefix) {
return hasErrors(t) ? [...prefix, ...errors(t)] : t;
}
exports.prefixAnyErrors = prefixAnyErrors;
function flattenErrors(t) {

@@ -88,0 +92,0 @@ return hasErrors(t) ? (0, utils_1.flatten)(t) : t;

2

package.json
{
"name": "@dbpath/utils",
"description": "",
"version": "0.3.3",
"version": "0.3.4",
"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