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

express-response-formatter

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-response-formatter - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

6

CHANGELOG.md

@@ -8,2 +8,8 @@ # Changelog

## [2.0.1] - 2020-08-11
### Added
- Add accepted, timeout, conflict and tooManyRequests method. ([#8](https://github.com/aofleejay/express-response-formatter/pull/8))
## [2.0.0] - 2020-04-28

@@ -10,0 +16,0 @@

4

coverage/coverage-final.json

@@ -1,3 +0,3 @@

{"/home/travis/build/aofleejay/express-response-formatter/src/index.ts": {"path":"/home/travis/build/aofleejay/express-response-formatter/src/index.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":43}},"1":{"start":{"line":16,"column":25},"end":{"line":16,"column":null}},"2":{"start":{"line":16,"column":31},"end":{"line":23,"column":null}},"3":{"start":{"line":21,"column":2},"end":{"line":21,"column":null}},"4":{"start":{"line":22,"column":2},"end":{"line":22,"column":null}},"5":{"start":{"line":66,"column":9},"end":{"line":66,"column":25}},"6":{"start":{"line":25,"column":28},"end":{"line":44,"column":1}},"7":{"start":{"line":26,"column":33},"end":{"line":26,"column":35}},"8":{"start":{"line":27,"column":21},"end":{"line":27,"column":23}},"9":{"start":{"line":29,"column":2},"end":{"line":41,"column":null}},"10":{"start":{"line":30,"column":4},"end":{"line":40,"column":null}},"11":{"start":{"line":31,"column":6},"end":{"line":34,"column":null}},"12":{"start":{"line":32,"column":8},"end":{"line":32,"column":null}},"13":{"start":{"line":33,"column":8},"end":{"line":33,"column":null}},"14":{"start":{"line":36,"column":6},"end":{"line":39,"column":null}},"15":{"start":{"line":37,"column":8},"end":{"line":37,"column":null}},"16":{"start":{"line":38,"column":8},"end":{"line":38,"column":null}},"17":{"start":{"line":43,"column":2},"end":{"line":43,"column":null}},"18":{"start":{"line":51,"column":33},"end":{"line":51,"column":68}},"19":{"start":{"line":51,"column":36},"end":{"line":51,"column":40}},"20":{"start":{"line":51,"column":42},"end":{"line":51,"column":46}},"21":{"start":{"line":51,"column":67},"end":{"line":54,"column":null}},"22":{"start":{"line":61,"column":31},"end":{"line":61,"column":66}},"23":{"start":{"line":61,"column":34},"end":{"line":61,"column":39}},"24":{"start":{"line":61,"column":41},"end":{"line":61,"column":45}},"25":{"start":{"line":61,"column":65},"end":{"line":64,"column":null}}},"fnMap":{"0":{"name":"(anonymous_1)","decl":{"start":{"line":16,"column":25},"end":{"line":16,"column":31}},"loc":{"start":{"line":16,"column":25},"end":{"line":16,"column":null}}},"1":{"name":"(anonymous_2)","decl":{"start":{"line":16,"column":31},"end":{"line":16,"column":null}},"loc":{"start":{"line":19,"column":20},"end":{"line":23,"column":1}}},"2":{"name":"(anonymous_3)","decl":{"start":{"line":25,"column":28},"end":{"line":25,"column":29}},"loc":{"start":{"line":25,"column":42},"end":{"line":44,"column":1}}},"3":{"name":"(anonymous_4)","decl":{"start":{"line":29,"column":14},"end":{"line":29,"column":15}},"loc":{"start":{"line":29,"column":29},"end":{"line":41,"column":3}}},"4":{"name":"(anonymous_5)","decl":{"start":{"line":31,"column":31},"end":{"line":31,"column":32}},"loc":{"start":{"line":31,"column":52},"end":{"line":34,"column":7}}},"5":{"name":"(anonymous_6)","decl":{"start":{"line":36,"column":31},"end":{"line":36,"column":32}},"loc":{"start":{"line":36,"column":53},"end":{"line":39,"column":7}}},"6":{"name":"(anonymous_7)","decl":{"start":{"line":51,"column":33},"end":{"line":51,"column":34}},"loc":{"start":{"line":51,"column":62},"end":{"line":51,"column":68}}},"7":{"name":"(anonymous_8)","decl":{"start":{"line":61,"column":31},"end":{"line":61,"column":32}},"loc":{"start":{"line":61,"column":60},"end":{"line":61,"column":66}}}},"branchMap":{"0":{"loc":{"start":{"line":30,"column":4},"end":{"line":40,"column":null}},"type":"if","locations":[{"start":{"line":30,"column":4},"end":{"line":40,"column":null}},{"start":{"line":30,"column":4},"end":{"line":40,"column":null}}]}},"s":{"0":1,"1":1,"2":1,"3":2,"4":2,"5":1,"6":1,"7":2,"8":2,"9":2,"10":26,"11":6,"12":1,"13":1,"14":20,"15":1,"16":1,"17":2,"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1},"f":{"0":1,"1":2,"2":2,"3":26,"4":1,"5":1,"6":1,"7":1},"b":{"0":[6,20]}}
,"/home/travis/build/aofleejay/express-response-formatter/src/methods.ts": {"path":"/home/travis/build/aofleejay/express-response-formatter/src/methods.ts","statementMap":{"0":{"start":{"line":8,"column":26},"end":{"line":87,"column":null}},"1":{"start":{"line":90,"column":0},"end":{"line":90,"column":null}}},"fnMap":{},"branchMap":{},"s":{"0":1,"1":1},"f":{},"b":{}}
{"/home/travis/build/aofleejay/express-response-formatter/src/index.ts": {"path":"/home/travis/build/aofleejay/express-response-formatter/src/index.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":43}},"1":{"start":{"line":16,"column":25},"end":{"line":16,"column":null}},"2":{"start":{"line":16,"column":31},"end":{"line":23,"column":null}},"3":{"start":{"line":21,"column":2},"end":{"line":21,"column":null}},"4":{"start":{"line":22,"column":2},"end":{"line":22,"column":null}},"5":{"start":{"line":66,"column":9},"end":{"line":66,"column":25}},"6":{"start":{"line":25,"column":28},"end":{"line":44,"column":1}},"7":{"start":{"line":26,"column":33},"end":{"line":26,"column":35}},"8":{"start":{"line":27,"column":21},"end":{"line":27,"column":23}},"9":{"start":{"line":29,"column":2},"end":{"line":41,"column":null}},"10":{"start":{"line":30,"column":4},"end":{"line":40,"column":null}},"11":{"start":{"line":31,"column":6},"end":{"line":34,"column":null}},"12":{"start":{"line":32,"column":8},"end":{"line":32,"column":null}},"13":{"start":{"line":33,"column":8},"end":{"line":33,"column":null}},"14":{"start":{"line":36,"column":6},"end":{"line":39,"column":null}},"15":{"start":{"line":37,"column":8},"end":{"line":37,"column":null}},"16":{"start":{"line":38,"column":8},"end":{"line":38,"column":null}},"17":{"start":{"line":43,"column":2},"end":{"line":43,"column":null}},"18":{"start":{"line":51,"column":33},"end":{"line":51,"column":68}},"19":{"start":{"line":51,"column":36},"end":{"line":51,"column":40}},"20":{"start":{"line":51,"column":42},"end":{"line":51,"column":46}},"21":{"start":{"line":51,"column":67},"end":{"line":54,"column":null}},"22":{"start":{"line":61,"column":31},"end":{"line":61,"column":66}},"23":{"start":{"line":61,"column":34},"end":{"line":61,"column":39}},"24":{"start":{"line":61,"column":41},"end":{"line":61,"column":45}},"25":{"start":{"line":61,"column":65},"end":{"line":64,"column":null}}},"fnMap":{"0":{"name":"(anonymous_1)","decl":{"start":{"line":16,"column":25},"end":{"line":16,"column":31}},"loc":{"start":{"line":16,"column":25},"end":{"line":16,"column":null}}},"1":{"name":"(anonymous_2)","decl":{"start":{"line":16,"column":31},"end":{"line":16,"column":null}},"loc":{"start":{"line":19,"column":20},"end":{"line":23,"column":1}}},"2":{"name":"(anonymous_3)","decl":{"start":{"line":25,"column":28},"end":{"line":25,"column":29}},"loc":{"start":{"line":25,"column":42},"end":{"line":44,"column":1}}},"3":{"name":"(anonymous_4)","decl":{"start":{"line":29,"column":14},"end":{"line":29,"column":15}},"loc":{"start":{"line":29,"column":29},"end":{"line":41,"column":3}}},"4":{"name":"(anonymous_5)","decl":{"start":{"line":31,"column":31},"end":{"line":31,"column":32}},"loc":{"start":{"line":31,"column":52},"end":{"line":34,"column":7}}},"5":{"name":"(anonymous_6)","decl":{"start":{"line":36,"column":31},"end":{"line":36,"column":32}},"loc":{"start":{"line":36,"column":53},"end":{"line":39,"column":7}}},"6":{"name":"(anonymous_7)","decl":{"start":{"line":51,"column":33},"end":{"line":51,"column":34}},"loc":{"start":{"line":51,"column":62},"end":{"line":51,"column":68}}},"7":{"name":"(anonymous_8)","decl":{"start":{"line":61,"column":31},"end":{"line":61,"column":32}},"loc":{"start":{"line":61,"column":60},"end":{"line":61,"column":66}}}},"branchMap":{"0":{"loc":{"start":{"line":30,"column":4},"end":{"line":40,"column":null}},"type":"if","locations":[{"start":{"line":30,"column":4},"end":{"line":40,"column":null}},{"start":{"line":30,"column":4},"end":{"line":40,"column":null}}]}},"s":{"0":1,"1":1,"2":1,"3":2,"4":2,"5":1,"6":1,"7":2,"8":2,"9":2,"10":34,"11":8,"12":1,"13":1,"14":26,"15":1,"16":1,"17":2,"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1},"f":{"0":1,"1":2,"2":2,"3":34,"4":1,"5":1,"6":1,"7":1},"b":{"0":[8,26]}}
,"/home/travis/build/aofleejay/express-response-formatter/src/methods.ts": {"path":"/home/travis/build/aofleejay/express-response-formatter/src/methods.ts","statementMap":{"0":{"start":{"line":8,"column":26},"end":{"line":111,"column":null}},"1":{"start":{"line":114,"column":0},"end":{"line":114,"column":null}}},"fnMap":{},"branchMap":{},"s":{"0":1,"1":1},"f":{},"b":{}}
}

@@ -17,2 +17,8 @@ "use strict";

{
name: 'accepted',
code: '202',
message: 'Accepted',
isSuccess: true,
},
{
name: 'noContent',

@@ -54,2 +60,14 @@ code: '204',

{
name: 'timeout',
code: '408',
message: 'Timeout',
isSuccess: false,
},
{
name: 'conflict',
code: '409',
message: 'Conflict',
isSuccess: false,
},
{
name: 'unprocess',

@@ -61,2 +79,8 @@ code: '422',

{
name: 'tooManyRequests',
code: '429',
message: 'Too Many Requests',
isSuccess: false,
},
{
name: 'serverError',

@@ -63,0 +87,0 @@ code: '500',

{
"name": "express-response-formatter",
"version": "2.0.0",
"version": "2.0.1",
"main": "lib/index.js",

@@ -5,0 +5,0 @@ "types": "lib/index.d.ts",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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