rox-react-components 0.0.13 → 0.0.14
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/es/utils.d.ts +2 -1
- package/dist/es/utils.js +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/lib/utils.d.ts +2 -1
- package/dist/lib/utils.js +1 -1
- package/package.json +1 -1
package/dist/es/utils.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
declare function sleep(timestamp?: number, result?: boolean): Promise<boolean>;
|
|
2
|
-
|
|
2
|
+
type parseUrlResponse = Record<string, string | (string | boolean)[] | boolean> | string | boolean | (string | boolean)[] | undefined;
|
|
3
|
+
declare function parseUrl(key?: string): parseUrlResponse;
|
|
3
4
|
declare const _default: {
|
|
4
5
|
sleep: typeof sleep;
|
|
5
6
|
parseUrl: typeof parseUrl;
|
package/dist/es/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as r,__generator as i}from"tslib";var n={sleep:function(n,t){return void 0===t&&(t=!1),r(this,void 0,void 0,(function(){return i(this,(function(r){return[2,new Promise((function(r){return setTimeout((function(){return r(t)}),n)}))]}))}))},parseUrl:function(){var
|
|
1
|
+
import{__awaiter as r,__generator as i}from"tslib";var n={sleep:function(n,t){return void 0===t&&(t=!1),r(this,void 0,void 0,(function(){return i(this,(function(r){return[2,new Promise((function(r){return setTimeout((function(){return r(t)}),n)}))]}))}))},parseUrl:function(r){var i=window.location.href.split("?").slice(1),n={};return i.forEach((function(r){var i=r.indexOf("/");(-1!==i?r.substring(0,i):r).split("&").forEach((function(r){var i=r.split("="),t=i[0],o=i[1],e=void 0===o||o;if(n.hasOwnProperty(t)){var s=n[t];Array.isArray(s)?s.push(e):n[t]=[e]}else n[t]=e}))})),void 0!==r?n[r]||void 0:n}};export{n as default};
|
package/dist/index.d.ts
CHANGED
|
@@ -21,7 +21,8 @@ interface SwiperExposeMethods {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
declare function sleep(timestamp?: number, result?: boolean): Promise<boolean>;
|
|
24
|
-
|
|
24
|
+
type parseUrlResponse = Record<string, string | (string | boolean)[] | boolean> | string | boolean | (string | boolean)[] | undefined;
|
|
25
|
+
declare function parseUrl(key?: string): parseUrlResponse;
|
|
25
26
|
declare const _default$1: {
|
|
26
27
|
sleep: typeof sleep;
|
|
27
28
|
parseUrl: typeof parseUrl;
|
package/dist/lib/utils.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
declare function sleep(timestamp?: number, result?: boolean): Promise<boolean>;
|
|
2
|
-
|
|
2
|
+
type parseUrlResponse = Record<string, string | (string | boolean)[] | boolean> | string | boolean | (string | boolean)[] | undefined;
|
|
3
|
+
declare function parseUrl(key?: string): parseUrlResponse;
|
|
3
4
|
declare const _default: {
|
|
4
5
|
sleep: typeof sleep;
|
|
5
6
|
parseUrl: typeof parseUrl;
|
package/dist/lib/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("tslib");var e={sleep:function(e,t){return void 0===t&&(t=!1),r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(r){return[2,new Promise((function(r){return setTimeout((function(){return r(t)}),e)}))]}))}))},parseUrl:function(){var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("tslib");var e={sleep:function(e,t){return void 0===t&&(t=!1),r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(r){return[2,new Promise((function(r){return setTimeout((function(){return r(t)}),e)}))]}))}))},parseUrl:function(r){var e=window.location.href.split("?").slice(1),t={};return e.forEach((function(r){var e=r.indexOf("/");(-1!==e?r.substring(0,e):r).split("&").forEach((function(r){var e=r.split("="),i=e[0],n=e[1],o=void 0===n||n;if(t.hasOwnProperty(i)){var s=t[i];Array.isArray(s)?s.push(o):t[i]=[o]}else t[i]=o}))})),void 0!==r?t[r]||void 0:t}};exports.default=e;
|