@gedit/utils
Advanced tools
Comparing version 0.1.61 to 0.1.62
@@ -64,2 +64,3 @@ /******************************************************************************** | ||
}): URI; | ||
removeQueryObject(key: string): URI; | ||
/** | ||
@@ -66,0 +67,0 @@ * return this URI without a query |
@@ -206,2 +206,9 @@ "use strict"; | ||
}; | ||
URI.prototype.removeQueryObject = function (key) { | ||
var queryObj = __assign({}, this.queryObject); | ||
if (key in queryObj) { | ||
delete queryObj[key]; | ||
} | ||
return this.withQuery(URI.objectToQueryString(queryObj)); | ||
}; | ||
/** | ||
@@ -208,0 +215,0 @@ * return this URI without a query |
{ | ||
"name": "@gedit/utils", | ||
"version": "0.1.61", | ||
"version": "0.1.62", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "lib/common/index", |
@@ -178,2 +178,10 @@ /******************************************************************************** | ||
removeQueryObject(key: string): URI { | ||
const queryObj = { ...this.queryObject } as { [key: string]: string }; | ||
if (key in queryObj) { | ||
delete queryObj[key]; | ||
} | ||
return this.withQuery(URI.objectToQueryString(queryObj)); | ||
} | ||
/** | ||
@@ -180,0 +188,0 @@ * return this URI without a query |
Sorry, the diff of this file is not supported yet
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 3 instances 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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 3 instances in 1 package
552546
10454