@nativerent/js-utils 1.0.6 → 1.0.7
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/package.json +1 -1
- package/src/index.ts +2 -2
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -219,7 +219,7 @@ export function encodeQueryString(url: string): string {
|
|
|
219
219
|
if (url.length > 0) {
|
|
220
220
|
const index = url.indexOf("?");
|
|
221
221
|
if (index >= 0) {
|
|
222
|
-
return url.
|
|
222
|
+
return url.substring(0, index) + parseURL(url).search;
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
|
|
@@ -288,7 +288,7 @@ export function createHtmlElement(
|
|
|
288
288
|
*/
|
|
289
289
|
export function insertHtmlElements(
|
|
290
290
|
nodes: NodeListOf<Node>,
|
|
291
|
-
appendTo?: Element,
|
|
291
|
+
appendTo?: Element | ShadowRoot,
|
|
292
292
|
) {
|
|
293
293
|
appendTo = appendTo || document.body;
|
|
294
294
|
|