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

@aws-sdk/util-format-url

Package Overview
Dependencies
Maintainers
4
Versions
159
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/util-format-url - npm Package Compare versions

Comparing version 0.1.0-preview.3 to 0.1.0-preview.4

build/index.js.map

4

build/index.d.ts

@@ -1,2 +0,2 @@

import { HttpRequest } from '@aws-sdk/types';
export declare function formatUrl(request: HttpRequest): string;
import { HttpRequest } from "@aws-sdk/types";
export declare function formatUrl<StreamType>(request: HttpRequest<StreamType>): string;

@@ -6,4 +6,4 @@ "use strict";

var protocol = request.protocol, path = request.path, hostname = request.hostname, port = request.port, query = request.query;
if (protocol && protocol.substr(-1) !== ':') {
protocol += ':';
if (protocol && protocol.substr(-1) !== ":") {
protocol += ":";
}

@@ -13,7 +13,7 @@ if (port) {

}
if (path && path.charAt(0) !== '/') {
if (path && path.charAt(0) !== "/") {
path = "/" + path;
}
var queryString = query ? querystring_builder_1.buildQueryString(query) : '';
if (queryString && queryString[0] !== '?') {
var queryString = query ? querystring_builder_1.buildQueryString(query) : "";
if (queryString && queryString[0] !== "?") {
queryString = "?" + queryString;

@@ -24,2 +24,2 @@ }

exports.formatUrl = formatUrl;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFJQSxvRUFBZ0U7QUFFaEUsU0FBZ0IsU0FBUyxDQUFDLE9BQW9CO0lBRXRDLElBQUEsMkJBQVEsRUFDUixtQkFBSSxFQUNKLDJCQUFRLEVBQ1IsbUJBQUksRUFDSixxQkFBSyxDQUNHO0lBQ1osSUFBRyxRQUFRLElBQUksUUFBUSxDQUFDLE1BQU0sQ0FBQyxDQUFDLENB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WVzdDtcbiAgICBpZihwcm90b2NvbCAmJiBwcm90b2NvbC5zdWJzdHIoLTEpICE9PSAnOicpIHtcbiAgICAgICAgcHJvdG9jb2wgKz0gJzonO1xuICAgIH1cbiAgICBpZiAocG9ydCkge1xuICAgICAgICBob3N0bmFtZSArPSBgOiR7cG9ydH1gO1xuICAgIH1cbiAgICBpZiAocGF0aCAmJiBwYXRoLmNoYXJBdCgwKSAhPT0gJy8nKSB7XG4gICAgICAgIHBhdGggPSBgLyR7cGF0aH1gXG4gICAgfVxuICAgIGxldCBxdWVyeVN0cmluZyA9IHF1ZXJ5ID8gYnVpbGRRdWVyeVN0cmluZyhxdWVyeSkgOiAnJztcbiAgICBpZiAocXVlcnlTdHJpbmcgJiYgcXVlcnlTdHJpbmdbMF0gIT09ICc/Jykge1xuICAgICAgICBxdWVyeVN0cmluZyA9IGA/JHtxdWVyeVN0cmluZ31gXG4gICAgfVxuICAgIHJldHVybiBgJHtwcm90b2NvbH0vLyR7aG9zdG5hbWV9JHtwYXRofSR7cXVlcnlTdHJpbmd9YFxufVxuIl19
//# sourceMappingURL=index.js.map

@@ -6,12 +6,25 @@ # Change Log

# [0.1.0-preview.3](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/util-format-url@0.1.0-preview.2...@aws-sdk/util-format-url@0.1.0-preview.3) (2019-04-19)
# [0.1.0-preview.4](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/util-format-url@0.1.0-preview.2...@aws-sdk/util-format-url@0.1.0-preview.4) (2019-07-12)
**Note:** Version bump only for package @aws-sdk/util-format-url
### Features
* add npm badges for individual packages ([#251](https://github.com/aws/aws-sdk-js-v3/issues/251)) ([8adc10c](https://github.com/aws/aws-sdk-js-v3/commit/8adc10c))
* update jest v20 to v24 ([#243](https://github.com/aws/aws-sdk-js-v3/issues/243)) ([1e156ab](https://github.com/aws/aws-sdk-js-v3/commit/1e156ab))
* **s3-request-presigner:** provide a s3 request presigner ([#266](https://github.com/aws/aws-sdk-js-v3/issues/266)) ([3f00b99](https://github.com/aws/aws-sdk-js-v3/commit/3f00b99))
# 0.1.0 (2019-04-19)
# [0.1.0-preview.3](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/util-format-url@0.1.0-preview.2...@aws-sdk/util-format-url@0.1.0-preview.3) (2019-04-19)
**Note:** Version bump only for package @aws-sdk/util-format-url
# [0.1.0-preview.2](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/util-format-url@0.1.0-preview.1...@aws-sdk/util-format-url@0.1.0-preview.2) (2019-03-27)
**Note:** Version bump only for package @aws-sdk/util-format-url
{
"name": "@aws-sdk/util-format-url",
"version": "0.1.0-preview.3",
"scripts": {
"prepublishOnly": "tsc",
"pretest": "tsc -p tsconfig.test.json",
"test": "jest"
},
"main": "./build/index.js",
"types": "./build/index.d.ts",
"author": {
"name": "AWS SDK for JavaScript Team",
"email": "aws-sdk-js@amazon.com",
"url": "https://aws.amazon.com/javascript/"
},
"license": "Apache-2.0",
"dependencies": {
"@aws-sdk/querystring-builder": "^0.1.0-preview.3",
"@aws-sdk/types": "^0.1.0-preview.3",
"tslib": "^1.8.0"
},
"devDependencies": {
"@types/jest": "^20.0.2",
"jest": "^20.0.4",
"typescript": "^3.0.0"
}
"name": "@aws-sdk/util-format-url",
"version": "0.1.0-preview.4",
"scripts": {
"prepublishOnly": "tsc",
"pretest": "tsc -p tsconfig.test.json",
"test": "jest"
},
"main": "./build/index.js",
"types": "./build/index.d.ts",
"author": {
"name": "AWS SDK for JavaScript Team",
"email": "",
"url": "https://aws.amazon.com/javascript/"
},
"license": "Apache-2.0",
"dependencies": {
"@aws-sdk/querystring-builder": "^0.1.0-preview.4",
"@aws-sdk/types": "^0.1.0-preview.4",
"tslib": "^1.8.0"
},
"devDependencies": {
"@types/jest": "^24.0.12",
"jest": "^24.7.1",
"typescript": "~3.4.0"
}
}

@@ -1,1 +0,4 @@

# util-format-url
# @aws-sdk/util-format-url
[![NPM version](https://img.shields.io/npm/v/@aws-sdk/util-format-url/preview.svg)](https://www.npmjs.com/package/@aws-sdk/util-format-url)
[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/util-format-url.svg)](https://www.npmjs.com/package/@aws-sdk/util-format-url)
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"declaration": true,
"strict": true,
"sourceMap": true,
"downlevelIteration": true,
"importHelpers": true,
"noEmitHelpers": true,
"lib": [
"es5",
"es2015.promise",
"es2015.collection",
"es2015.iterable",
"es2015.symbol.wellknown"
],
"rootDir": "./src",
"outDir": "./build"
}
}
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"declaration": true,
"strict": true,
"sourceMap": true,
"downlevelIteration": true,
"importHelpers": true,
"noEmitHelpers": true,
"lib": [
"es5",
"es2015.promise",
"es2015.collection",
"es2015.iterable",
"es2015.symbol.wellknown"
],
"rootDir": "./src",
"outDir": "./build"
}
}
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