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

nodecaf

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodecaf - npm Package Compare versions

Comparing version 0.11.0-rc3 to 0.11.0-rc4

1

lib/api.js

@@ -138,2 +138,3 @@ const assert = require('assert');

let params = {};
let handler = matchRoute.apply(this, [ method, path, params ]);

@@ -140,0 +141,0 @@

2

package.json
{
"name": "nodecaf",
"version": "0.11.0-rc3",
"version": "0.11.0-rc4",
"description": "Nodecaf is a light framework for developing RESTful Apps in a quick and convenient manner.",

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

@@ -321,2 +321,3 @@ const assert = require('assert');

let app = new Nodecaf({
conf: { port: 80 },
api({ all }){

@@ -330,4 +331,4 @@ all(({ res, params }) => {

await app.start();
(await base.get('foo/bar')).assert.status.is(200);
(await base.post('bah/baz')).assert.status.is(200);
assert.strictEqual((await app.trigger('post', '/foo/bar')).status, 200);
assert.strictEqual((await app.trigger('get', '/foo/baz')).status, 200);
await app.stop();

@@ -334,0 +335,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