New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

express-decorated

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-decorated - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

24

dist/example.js

@@ -29,3 +29,3 @@ "use strict";

const wait = (time) => new Promise(resolve => setTimeout(resolve, time));
let test = class test {
let Test = class Test {
test(req, res, query) {

@@ -61,3 +61,3 @@ return __awaiter(this, void 0, void 0, function* () {

__metadata("design:returntype", Promise)
], test.prototype, "test", null);
], Test.prototype, "test", null);
__decorate([

@@ -69,3 +69,3 @@ Router_1.Route('/plain'),

__metadata("design:returntype", void 0)
], test.prototype, "plain", null);
], Test.prototype, "plain", null);
__decorate([

@@ -76,7 +76,7 @@ Router_1.Route('/async'),

__metadata("design:returntype", Promise)
], test.prototype, "async", null);
test = __decorate([
], Test.prototype, "async", null);
Test = __decorate([
Router_1.Router('/hello')
], test);
let myRouter = class myRouter {
], Test);
let MyRouter = class MyRouter {
myRoute(req, res) {

@@ -91,8 +91,8 @@ res.redirect('/hello/test?q=5');

__metadata("design:returntype", void 0)
], myRouter.prototype, "myRoute", null);
myRouter = __decorate([
], MyRouter.prototype, "myRoute", null);
MyRouter = __decorate([
Router_1.Router()
], myRouter);
Router_1.bind(app, test);
Router_1.bind(app, myRouter);
], MyRouter);
Router_1.bind(app, Test); // can bind either way
Router_1.bind(app, new MyRouter());
app.listen('1337');

@@ -83,4 +83,4 @@ "use strict";

function bind(app, obj) {
obj.prototype.enable(app);
(obj.prototype || obj).enable(app);
}
exports.bind = bind;
{
"name": "express-decorated",
"version": "1.0.0",
"version": "1.0.1",
"description": "Typescript decorators for expressjs.",

@@ -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