@stoplight/common
Advanced tools
Comparing version 0.0.11-15 to 0.0.11-16
"use strict"; | ||
// adapted from https://github.com/Microsoft/vscode-uri | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const qs = require("qs"); | ||
// @ts-ignore | ||
@@ -75,3 +74,3 @@ const path_1 = require("./path"); | ||
ret._path = decodeURIComponent(data.path); | ||
ret._query = qs.parse(data.query); | ||
ret._query = decodeURIComponent(data.query); | ||
ret._fragment = decodeURIComponent(data.fragment); | ||
@@ -219,3 +218,3 @@ URI._validate(ret); | ||
if (query) { | ||
parts.push('?', qs.stringify(query)); | ||
parts.push('?', encoder(query)); | ||
} | ||
@@ -424,3 +423,3 @@ if (fragment) { | ||
if (this._query) { | ||
url += `?${qs.stringify(this._query)}`; | ||
url += `?${this._query}`; | ||
} | ||
@@ -427,0 +426,0 @@ if (this._fragment) { |
{ | ||
"name": "@stoplight/common", | ||
"version": "0.0.11-15", | ||
"version": "0.0.11-16", | ||
"description": "Stoplight common type and interface definitions.", | ||
@@ -24,6 +24,4 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@types/qs": "6.5.x", | ||
"qs": "6.5.x", | ||
"tslib": "1.x.x" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
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
1
77605
1406
- Removed@types/qs@6.5.x
- Removedqs@6.5.x
- Removed@types/qs@6.5.3(transitive)
- Removedqs@6.5.3(transitive)