You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@aws-sdk/util-format-url

Package Overview
Dependencies
3
Maintainers
5
Versions
152
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.226.0 to 3.347.0

13

dist-cjs/index.js

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

function formatUrl(request) {
var _a, _b;
const { port, query } = request;

@@ -22,4 +23,14 @@ let { protocol, path, hostname } = request;

}
return `${protocol}//${hostname}${path}${queryString}`;
let auth = "";
if (request.username != null || request.password != null) {
const username = (_a = request.username) !== null && _a !== void 0 ? _a : "";
const password = (_b = request.password) !== null && _b !== void 0 ? _b : "";
auth = `${username}:${password}@`;
}
let fragment = "";
if (request.fragment) {
fragment = `#${request.fragment}`;
}
return `${protocol}//${auth}${hostname}${path}${queryString}${fragment}`;
}
exports.formatUrl = formatUrl;

@@ -18,3 +18,13 @@ import { buildQueryString } from "@aws-sdk/querystring-builder";

}
return `${protocol}//${hostname}${path}${queryString}`;
let auth = "";
if (request.username != null || request.password != null) {
const username = request.username ?? "";
const password = request.password ?? "";
auth = `${username}:${password}@`;
}
let fragment = "";
if (request.fragment) {
fragment = `#${request.fragment}`;
}
return `${protocol}//${auth}${hostname}${path}${queryString}${fragment}`;
}

17

package.json
{
"name": "@aws-sdk/util-format-url",
"version": "3.226.0",
"version": "3.347.0",
"scripts": {

@@ -23,5 +23,5 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",

"dependencies": {
"@aws-sdk/querystring-builder": "3.226.0",
"@aws-sdk/types": "3.226.0",
"tslib": "^2.3.1"
"@aws-sdk/querystring-builder": "3.347.0",
"@aws-sdk/types": "3.347.0",
"tslib": "^2.5.0"
},

@@ -39,3 +39,3 @@ "engines": {

"files": [
"dist-*"
"dist-*/**"
],

@@ -53,5 +53,8 @@ "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/util-format-url",

"rimraf": "3.0.2",
"typedoc": "0.19.2",
"typescript": "~4.6.2"
"typedoc": "0.23.23",
"typescript": "~4.9.5"
},
"typedoc": {
"entryPoint": "src/index.ts"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc