Socket
Socket
Sign inDemoInstall

serverless-rack

Package Overview
Dependencies
8
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.7 to 1.0.8

22

CHANGELOG.md

@@ -0,1 +1,23 @@

# 1.0.8
- Add types to command arguments to avoid deprecation warnings (#25)
_Dave Nicolson_
- Properly close Rack response body (#26)
_Zac Bristow_
- Spawn commands correctly on Windows (#29)
_Shalvah_
- Add missing stringio requirement (#31)
_Hirohisa Mitsuishi_
- Add user flag to docker option (#32)
_Hirohisa Mitsuishi_
# 1.0.7

@@ -2,0 +24,0 @@

40

index.js

@@ -11,2 +11,3 @@ "use strict";

const crypto = require("crypto");
const os = require("os");

@@ -31,7 +32,9 @@ class ServerlessRack {

if (_.isBoolean(this.serverless.service.custom.rack.enableBundler)) {
this.enableBundler = this.serverless.service.custom.rack.enableBundler;
this.enableBundler =
this.serverless.service.custom.rack.enableBundler;
}
if (_.isBoolean(this.serverless.service.custom.rack.dockerizeBundler)) {
this.dockerizeBundler = this.serverless.service.custom.rack.dockerizeBundler;
this.dockerizeBundler =
this.serverless.service.custom.rack.dockerizeBundler;
}

@@ -106,3 +109,4 @@

) {
config.text_mime_types = this.serverless.service.custom.rack.textMimeTypes;
config.text_mime_types =
this.serverless.service.custom.rack.textMimeTypes;
}

@@ -377,2 +381,8 @@ if (

const { uid, gid } = os.userInfo();
if (0 <= uid && 0 <= gid) {
// uid == -1 and gid == -1 on Windows
args.push("--user", `${uid}:${gid}`);
}
if (this.bundlerArgs) {

@@ -386,3 +396,4 @@ args.push("-e", `BUNDLER_ARGS=${this.bundlerArgs}`);

const res = child_process.spawnSync("docker", args, {
stdio: "inherit"
stdio: "inherit",
shell: os.platform() === "win32",
});

@@ -412,3 +423,6 @@ if (res.error) {

const res = child_process.spawnSync(this.bundlerBin, args);
const res = child_process.spawnSync(this.bundlerBin, args, {
shell: os.platform() === "win32",
stdio: "inherit",
});
if (res.error) {

@@ -585,5 +599,8 @@ if (res.error.code == "ENOENT") {

this.serverless.pluginManager.cliOptions.type = null;
this.serverless.pluginManager.cliOptions.f = this.serverless.pluginManager.cliOptions.function;
this.serverless.pluginManager.cliOptions.d = this.serverless.pluginManager.cliOptions.data;
this.serverless.pluginManager.cliOptions.t = this.serverless.pluginManager.cliOptions.type;
this.serverless.pluginManager.cliOptions.f =
this.serverless.pluginManager.cliOptions.function;
this.serverless.pluginManager.cliOptions.d =
this.serverless.pluginManager.cliOptions.data;
this.serverless.pluginManager.cliOptions.t =
this.serverless.pluginManager.cliOptions.type;

@@ -680,5 +697,7 @@ // The invoke plugin prints the response to the console as JSON. When invoking commands

shortcut: "p",
type: "string",
},
host: {
usage: "Server host, defaults to 'localhost'",
type: "string",
},

@@ -702,2 +721,3 @@ },

shortcut: "c",
type: "string",
},

@@ -707,2 +727,3 @@ file: {

shortcut: "f",
type: "string",
},

@@ -718,2 +739,3 @@ },

shortcut: "c",
type: "string",
},

@@ -723,2 +745,3 @@ file: {

shortcut: "f",
type: "string",
},

@@ -735,2 +758,3 @@ },

required: true,
type: "string",
},

@@ -737,0 +761,0 @@ },

14

package.json
{
"name": "serverless-rack",
"version": "1.0.7",
"version": "1.0.8",
"engines": {

@@ -47,13 +47,13 @@ "node": ">=4.0"

"devDependencies": {
"chai": "^4.3.4",
"chai": "^4.3.6",
"chai-as-promised": "^7.0.0",
"eslint": "^7.25.0",
"eslint": "^8.24.0",
"istanbul": "^0.4.4",
"mocha": "^8.3.2",
"sinon": "^10.0.0"
"mocha": "^10.0.0",
"sinon": "^14.0.0"
},
"dependencies": {
"bluebird": "^3.7.2",
"empty-dir": "^2.0.0",
"fs-extra": "^9.1.0",
"empty-dir": "^3.0.0",
"fs-extra": "^10.1.0",
"lodash": "^4.17.21",

@@ -60,0 +60,0 @@ "string-argv": "^0.3.1"

@@ -87,3 +87,3 @@ <p align="center">

- http: ANY /
- http: ANY {proxy+}
- http: ANY /{proxy+}
```

@@ -90,0 +90,0 @@

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc