Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

gulp-endpoint

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-endpoint - npm Package Compare versions

Comparing version
0.10.1
to
0.11.0
+11
-1
lib/api.js

@@ -89,2 +89,12 @@ var _ = require('lodash');

}
/**
* If the content is a JSON object, and there is a status code
* property, then set the status code to that value:
*/
let data = JSON.parse(file.contents);
if (data && data.status) {
res.status(data.status);
}
res.send(file.contents);

@@ -101,3 +111,3 @@ });

action(
Object.assign({}, req.params, req.query, req.user),
Object.assign({}, req.params, req.query, { user: req.user }),
req.method === 'POST' ? src : undefined,

@@ -104,0 +114,0 @@ dest,

+2
-2
{
"name": "gulp-endpoint",
"version": "0.10.1",
"version": "0.11.0",
"description": "A wrapper that presents a set of Gulp tasks as an API using Express.",

@@ -19,3 +19,3 @@ "main": "index.js",

"express-jwt": "^5.1.0",
"highland": "^2.10.1",
"highland": "^2.10.2",
"lodash": "^3.10.0",

@@ -22,0 +22,0 @@ "minimist": "^1.1.1",