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

knox

Package Overview
Dependencies
Maintainers
2
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

knox - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

3

lib/client.js

@@ -121,2 +121,5 @@ /*!

if ('token' in this)
headers['x-amz-security-token'] = this.token;
// Authorization header

@@ -123,0 +126,0 @@ headers.Authorization = auth.authorization({

2

package.json

@@ -5,3 +5,3 @@ {

"keywords": ["aws", "amazon", "s3"],
"version": "0.4.0",
"version": "0.4.1",
"author": "TJ Holowaychuk <tj@learnboost.com>",

@@ -8,0 +8,0 @@ "contributors": [

@@ -215,2 +215,19 @@ # knox

### Multipart Upload
S3's [multipart upload][] is their [rather-complicated][] way of uploading large
files. In particular, it is the only way of streaming files without knowing
their Content-Length ahead of time.
Adding the complexity of multipart upload directly to knox is not a great idea.
For example, it requires buffering at least 5 MiB of data at a time in memory,
which you want to avoid if possible. Fortunately, [@nathanoehlman][] has created
the excellent [knox-mpu][] package to let you use multipart upload with knox if
you need it!
[multipart upload]: aws.typepad.com/aws/2010/11/amazon-s3-multipart-upload.html
[rather-complicated]: http://stackoverflow.com/q/8653146/3191
[@nathanoehlman]: https://github.com/nathanoehlman
[knox-mpu]: https://npmjs.org/package/knox-mpu
## Client Creation Options

@@ -264,2 +281,11 @@

### `token`
If you are using the [AWS Security Token Service][sts] APIs, you can construct
the client with a `token` parameter containing the temporary security
credentials token. This simply sets the _x-amz-security-token_ header on every
request made by the client.
[sts]: http://docs.amazonwebservices.com/STS/latest/UsingSTS/Welcome.html
### `agent`

@@ -266,0 +292,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