@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nativerent/js-utils",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
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.substr(0, index) + parseURL(url).search;
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