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

amazon-s3

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amazon-s3 - npm Package Compare versions

Comparing version 0.0.6 to 1.0.0

22

index.js

@@ -9,2 +9,19 @@ var sha256 = require('crypto-js/sha256');

function encodeRfc3986(urlEncodedString) {
return urlEncodedString.replace(/[!'()*]/g, function(c) {
return '%' + c.charCodeAt(0).toString(16).toUpperCase()
})
}
function encodeRfc3986Full(str) {
return encodeRfc3986(encodeURIComponent(str))
}
function encodePath(path) {
path = decodeURIComponent(path.replace(/\+/g, ' '));
path = encodeRfc3986Full(path);
path = path.replace(/%2F/g, '/')
return path;
}
function getSignatureKey(key, dateStamp, regionName, serviceName) {

@@ -28,5 +45,6 @@ var keyDate = hmacSha256(dateStamp, "AWS4" + key);

const endpoint = `https://${host}${path}`;
const encodedPath = encodePath(path);
const endpoint = `https://${host}${encodedPath}`;
const canonicalUri = path;
const canonicalUri = encodedPath;
const canonicalQuerystring = '';

@@ -33,0 +51,0 @@ const payloadHash = sha256(body).toString();

2

package.json
{
"name": "amazon-s3",
"version": "0.0.6",
"version": "1.0.0",
"description": "Read and write to AWS S3 using fetch()",

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

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