@apia/util 4.0.28 → 4.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -347,6 +347,7 @@ declare class Url {
|
|
|
347
347
|
addParameter(name: string, value: unknown, allowMultiple?: boolean): void;
|
|
348
348
|
addParameters(parameters: IParameter[]): void;
|
|
349
349
|
getParameter(name: string): string | string[];
|
|
350
|
+
getParameters(): [string, string | string[]][];
|
|
350
351
|
toString(): string;
|
|
351
352
|
}
|
|
352
353
|
|
package/dist/index.js
CHANGED
|
@@ -878,6 +878,9 @@ class Url {
|
|
|
878
878
|
getParameter(name) {
|
|
879
879
|
return __privateGet$3(this, _parameters)[name];
|
|
880
880
|
}
|
|
881
|
+
getParameters() {
|
|
882
|
+
return Object.entries(__privateGet$3(this, _parameters));
|
|
883
|
+
}
|
|
881
884
|
toString() {
|
|
882
885
|
const parametersArray = Object.entries(__privateGet$3(this, _parameters));
|
|
883
886
|
return `${this.base}${parametersArray.length > 0 ? `?${parametersArray.map(
|