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

crosswalk

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crosswalk - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

.prettierignore

4

CHANGELOG.md
# Changelog
## 1.2.1
- Suppress invalid HTTP Errors <https://github.com/danvk/crosswalk/issues/6>
## 1.2

@@ -4,0 +8,0 @@

3

dist/typed-router.js

@@ -22,2 +22,3 @@ "use strict";

var ajv_1 = __importDefault(require("ajv"));
var http_1 = require("http");
/** Throw this in a handler to produce an HTTP error response */

@@ -97,3 +98,3 @@ var HTTPError = /** @class */ (function (_super) {

// With target below ES2015, instanceof doesn't work here.
if (error instanceof HTTPError || error.code) {
if (error instanceof HTTPError || (error.code && http_1.STATUS_CODES[error.code])) {
response.status(error.code).json({ error: error.message });

@@ -100,0 +101,0 @@ }

{
"name": "crosswalk",
"version": "1.2.0",
"version": "1.2.1",
"description": "Type-safe express routing with TypeScript",

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

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