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

httpexceptions

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

httpexceptions - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

httpexceptions.d.ts

2

package.json
{
"name": "httpexceptions",
"version": "1.0.5",
"version": "1.0.6",
"description": "Provide exception for HTTP Rest API",

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

@@ -70,2 +70,18 @@ # HTTPExceptions [![Build Status](https://travis-ci.org/Romakita/httpexceptions.svg?branch=master)](https://travis-ci.org/Romakita/httpexceptions)

## Use Typescript definition
This module is written in Typescript. But don't use `import HttpExceptions = require('httpexceptions')` instead of
`var httpException = require('httpexception');`. It's little buggy because, Error type in typescript is declared as
variable / interface and when you import module, the compilator fail.
So, you can find file definition `httpexceptions.d.ts` in the module.
``` typescript
/// <reference path="node_modules/httpexceptions/httpexceptions.d.ts" />
var httpException = require('httpexception');
``
## Test

@@ -72,0 +88,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