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

bex

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bex - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

2

package.json
{
"name": "bex",
"version": "0.2.0",
"version": "0.2.1",
"description": "Express.js application bootstrapper. Simplicity, brevity, flexibility.",

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

@@ -7,7 +7,7 @@ function __buildModule (express, requireAll, handling) {

var crudMethods = {
create: 'post &',
update: 'put &/:id',
list: 'get &',
view: 'get &/:id',
remove: 'delete &/:id'
create: 'post /&',
update: 'put /&/:id',
list: 'get /&',
view: 'get /&/:id',
remove: 'delete /&/:id'
};

@@ -14,0 +14,0 @@

@@ -22,3 +22,3 @@ var should = require('should');

method: 'post',
path: 'my-controller'
path: '/my-controller'
});

@@ -29,3 +29,3 @@ });

method: 'get',
path: 'my-controller/:id'
path: '/my-controller/:id'
});

@@ -36,3 +36,3 @@ });

method: 'get',
path: 'my-controller'
path: '/my-controller'
});

@@ -43,3 +43,3 @@ });

method: 'put',
path: 'my-controller/:id'
path: '/my-controller/:id'
});

@@ -50,3 +50,3 @@ });

method: 'delete',
path: 'my-controller/:id'
path: '/my-controller/:id'
});

@@ -141,3 +141,3 @@ });

router.should.equal(routerMock);
routerMock.post.firstCall.args.should.containEql('my-controller-1');
routerMock.post.firstCall.args.should.containEql('/my-controller-1');
delete routerMock.post;

@@ -151,3 +151,3 @@ });

router.should.equal(routerMock);
routerMock.get.firstCall.args.should.containEql('my-controller-1');
routerMock.get.firstCall.args.should.containEql('/my-controller-1');
delete routerMock.get;

@@ -161,3 +161,3 @@ });

router.should.equal(routerMock);
routerMock.get.firstCall.args.should.containEql('my-controller-1/:id');
routerMock.get.firstCall.args.should.containEql('/my-controller-1/:id');
delete routerMock.get;

@@ -171,3 +171,3 @@ });

router.should.equal(routerMock);
routerMock.put.firstCall.args.should.containEql('my-controller-1/:id');
routerMock.put.firstCall.args.should.containEql('/my-controller-1/:id');
delete routerMock.put;

@@ -181,3 +181,3 @@ });

router.should.equal(routerMock);
routerMock['delete'].firstCall.args.should.containEql('my-controller-1/:id');
routerMock['delete'].firstCall.args.should.containEql('/my-controller-1/:id');
delete routerMock['delete'];

@@ -184,0 +184,0 @@ });

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