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

new-error

Package Overview
Dependencies
Maintainers
2
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

new-error - npm Package Compare versions

Comparing version 1.2.9 to 1.2.10

6

build/utils.d.ts

@@ -1,2 +0,2 @@

import { GenerateHighLevelErrorOpts, GenerateLowLevelErrorOpts, HighLevelErrorInternal, LowLevelErrorDef } from './interfaces';
import { GenerateHighLevelErrorOpts, GenerateLowLevelErrorOpts, HighLevelErrorInternal, LowLevelErrorInternal } from './interfaces';
/**

@@ -7,3 +7,3 @@ * For a given set of error definitions, generate the className and code based on the property name.

*/
export declare function generateHighLevelErrors<T extends HighLevelErrorInternal = HighLevelErrorInternal>(errorDefs: Record<string, Partial<T>>, opts?: GenerateHighLevelErrorOpts): Record<string, Partial<T>>;
export declare function generateHighLevelErrors<HLError extends Record<keyof HLError, HLInternal>, HLInternal extends HighLevelErrorInternal>(errorDefs: Record<keyof HLError, Partial<HLInternal>>, opts?: GenerateHighLevelErrorOpts): HLError;
/**

@@ -13,2 +13,2 @@ * For a given set of error definitions, generate the subCode based on the property name.

*/
export declare function generateLowLevelErrors<T extends LowLevelErrorDef = LowLevelErrorDef>(errorDefs: Record<string, Partial<T>>, opts?: GenerateLowLevelErrorOpts): Record<string, Partial<T>>;
export declare function generateLowLevelErrors<LLErrorName extends Record<keyof LLErrorName, LLInternal>, LLInternal extends LowLevelErrorInternal>(errorDefs: Record<keyof LLErrorName, Partial<LLInternal>>, opts?: GenerateLowLevelErrorOpts): LLErrorName;

@@ -0,1 +1,7 @@

## 1.2.10 - Fri Mar 12 2021 02:21:26
**Contributor:** Theo Gravity
- Fix typescript error when using utility helpers with registry and calling newError
## 1.2.9 - Tue Mar 09 2021 22:34:18

@@ -2,0 +8,0 @@

{
"name": "new-error",
"version": "1.2.9",
"version": "1.2.10",
"description": "A production-grade error creation and serialization library designed for Typescript",

@@ -5,0 +5,0 @@ "main": "build/index.js",

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