@trivikr-test/querystring-builder
Advanced tools
Comparing version 3.55.0 to 3.170.0-es2015
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.buildQueryString = void 0; | ||
const util_uri_escape_1 = require("@aws-sdk/util-uri-escape"); | ||
const util_uri_escape_1 = require("@trivikr-test/util-uri-escape"); | ||
function buildQueryString(query) { | ||
@@ -6,0 +6,0 @@ const parts = []; |
@@ -1,33 +0,21 @@ | ||
import { __values } from "tslib"; | ||
import { escapeUri } from "@aws-sdk/util-uri-escape"; | ||
import { escapeUri } from "@trivikr-test/util-uri-escape"; | ||
export function buildQueryString(query) { | ||
var e_1, _a; | ||
var parts = []; | ||
try { | ||
for (var _b = __values(Object.keys(query).sort()), _c = _b.next(); !_c.done; _c = _b.next()) { | ||
var key = _c.value; | ||
var value = query[key]; | ||
key = escapeUri(key); | ||
if (Array.isArray(value)) { | ||
for (var i = 0, iLen = value.length; i < iLen; i++) { | ||
parts.push("".concat(key, "=").concat(escapeUri(value[i]))); | ||
} | ||
const parts = []; | ||
for (let key of Object.keys(query).sort()) { | ||
const value = query[key]; | ||
key = escapeUri(key); | ||
if (Array.isArray(value)) { | ||
for (let i = 0, iLen = value.length; i < iLen; i++) { | ||
parts.push(`${key}=${escapeUri(value[i])}`); | ||
} | ||
else { | ||
var qsEntry = key; | ||
if (value || typeof value === "string") { | ||
qsEntry += "=".concat(escapeUri(value)); | ||
} | ||
parts.push(qsEntry); | ||
} | ||
else { | ||
let qsEntry = key; | ||
if (value || typeof value === "string") { | ||
qsEntry += `=${escapeUri(value)}`; | ||
} | ||
parts.push(qsEntry); | ||
} | ||
} | ||
catch (e_1_1) { e_1 = { error: e_1_1 }; } | ||
finally { | ||
try { | ||
if (_c && !_c.done && (_a = _b.return)) _a.call(_b); | ||
} | ||
finally { if (e_1) throw e_1.error; } | ||
} | ||
return parts.join("&"); | ||
} |
@@ -1,2 +0,2 @@ | ||
import { QueryParameterBag } from "@aws-sdk/types"; | ||
import { QueryParameterBag } from "@trivikr-test/types"; | ||
export declare function buildQueryString(query: QueryParameterBag): string; |
@@ -1,2 +0,2 @@ | ||
import { QueryParameterBag } from "@aws-sdk/types"; | ||
import { QueryParameterBag } from "@trivikr-test/types"; | ||
export declare function buildQueryString(query: QueryParameterBag): string; |
{ | ||
"name": "@trivikr-test/querystring-builder", | ||
"version": "3.55.0", | ||
"version": "3.170.0-es2015", | ||
"scripts": { | ||
@@ -8,2 +8,3 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", | ||
"build:es": "tsc -p tsconfig.es.json", | ||
"build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", | ||
"build:types": "tsc -p tsconfig.types.json", | ||
@@ -23,4 +24,4 @@ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", | ||
"dependencies": { | ||
"@trivikr-test/types": "3.55.0", | ||
"@trivikr-test/util-uri-escape": "3.55.0", | ||
"@trivikr-test/types": "3.170.0-es2015", | ||
"@trivikr-test/util-uri-escape": "3.170.0-es2015", | ||
"tslib": "^2.3.1" | ||
@@ -50,3 +51,3 @@ }, | ||
"concurrently": "7.0.0", | ||
"downlevel-dts": "0.7.0", | ||
"downlevel-dts": "0.10.1", | ||
"rimraf": "3.0.2", | ||
@@ -53,0 +54,0 @@ "typedoc": "0.19.2", |
@@ -1,10 +0,1 @@ | ||
# @aws-sdk/querystring-builder | ||
[![NPM version](https://img.shields.io/npm/v/@aws-sdk/querystring-builder/latest.svg)](https://www.npmjs.com/package/@aws-sdk/querystring-builder) | ||
[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/querystring-builder.svg)](https://www.npmjs.com/package/@aws-sdk/querystring-builder) | ||
> An internal package | ||
## Usage | ||
You probably shouldn't, at least directly. | ||
Please refer [README.md](https://github.com/aws/aws-sdk-js-v3/blob/v3.170.0/packages/querystring-builder/README.md) for v3.170.0. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14920
50
2
2
+ Added@trivikr-test/types@3.170.0-es2015(transitive)
+ Added@trivikr-test/util-uri-escape@3.170.0-es2015(transitive)
- Removed@trivikr-test/types@3.55.0(transitive)
- Removed@trivikr-test/util-uri-escape@3.55.0(transitive)