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

parse-s3-url

Package Overview
Dependencies
Maintainers
7
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parse-s3-url - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

package.json
{
"name": "parse-s3-url",
"description": "Re-sign potentially already signed S3 urls.",
"version": "1.0.2",
"version": "1.0.3",
"author": "Tim Allen <tim@noblesamurai.com>",

@@ -6,0 +6,0 @@ "license": "BSD",

@@ -11,3 +11,3 @@ const { URL } = require('url');

const [ , bucket, key ] = match;
return { bucket, key };
return { bucket, key: decodeURIComponent(key) };
} catch (_err) {

@@ -14,0 +14,0 @@ return false;

const expect = require('chai').expect;
const testUrl = 'https://s3.amazonaws.com/contentsamurai.com/transcoded/1-1/uploads/users/848384/videos/a12ee30e-7267-4da8-b5d8-899dc728f902/outr-drip.mp4?AWSAccessKeyId=AKIAJC2SSEDWQDBZ56UA&Expires=1519259943&Signature=BHjeZc49yH9EBwg3BuZDuHh%2BW3g%3D';
const testUrl = 'https://s3.amazonaws.com/contentsamurai.com/transcoded/1-1/uploads/users/848384/videos/a12ee30e-7267-4da8-b5d8-899dc728f902/outr-drip%20space.mp4?AWSAccessKeyId=AKIAJC2SSEDWQDBZ56UA&Expires=1519259943&Signature=BHjeZc49yH9EBwg3BuZDuHh%2BW3g%3D';

@@ -20,2 +20,6 @@ const parseS3Url = require('..');

});
it('unescape the key', function () {
expect(parseS3Url(testUrl).key).to.equal('transcoded/1-1/uploads/users/848384/videos/a12ee30e-7267-4da8-b5d8-899dc728f902/outr-drip space.mp4');
});
});
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