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

@browserspy/common

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@browserspy/common - npm Package Compare versions

Comparing version 0.3.1 to 0.4.0

21

dist/lib/router.js

@@ -126,2 +126,23 @@ "use strict";

.replace(/\/index$/, '');
var endpoints = controller.endpoints;
if (Array.isArray(endpoints)) {
endpoints.forEach(function (endpoint) {
var handler = [];
if (controller.before) {
middlewareParser(handler, errorHandler(controller.before));
}
handler.push.apply(handler, errorHandler(endpoint.handler));
if (controller.after) {
middlewareParser(handler, errorHandler(controller.after));
}
var method = endpoint.method.toLowerCase();
var url = "/" + name + endpoint.url;
routes.push({
method: method,
url: url,
});
app[method](url, handler);
});
delete controller.endpoints;
}
Object.keys(controller)

@@ -128,0 +149,0 @@ .forEach(function (key) {

2

package.json
{
"name": "@browserspy/common",
"version": "0.3.1",
"version": "0.4.0",
"description": "",

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

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