@powfix/core-js 0.25.1 → 0.25.3
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.
|
@@ -28,6 +28,12 @@ var _SearchParamsUtils = /*#__PURE__*/ function() {
|
|
|
28
28
|
chunkJE77HYXB_cjs.__privateSet(this, _searchParams, searchParams);
|
|
29
29
|
}
|
|
30
30
|
_create_class(_SearchParamsUtils, [
|
|
31
|
+
{
|
|
32
|
+
key: "searchParams",
|
|
33
|
+
get: function get() {
|
|
34
|
+
return chunkJE77HYXB_cjs.__privateGet(this, _searchParams);
|
|
35
|
+
}
|
|
36
|
+
},
|
|
31
37
|
{
|
|
32
38
|
key: "getString",
|
|
33
39
|
value: function getString(key) {
|
|
@@ -39,14 +45,20 @@ var _SearchParamsUtils = /*#__PURE__*/ function() {
|
|
|
39
45
|
value: function getStrings(key) {
|
|
40
46
|
return _SearchParamsUtils.getStrings(chunkJE77HYXB_cjs.__privateGet(this, _searchParams), key);
|
|
41
47
|
}
|
|
42
|
-
}
|
|
43
|
-
], [
|
|
48
|
+
},
|
|
44
49
|
{
|
|
45
|
-
key: "
|
|
46
|
-
|
|
47
|
-
return
|
|
50
|
+
key: "getUuid",
|
|
51
|
+
value: function getUuid(key) {
|
|
52
|
+
return _SearchParamsUtils.getUuid(chunkJE77HYXB_cjs.__privateGet(this, _searchParams), key);
|
|
48
53
|
}
|
|
49
54
|
},
|
|
55
|
+
{
|
|
56
|
+
key: "getUuids",
|
|
57
|
+
value: function getUuids(key) {
|
|
58
|
+
return _SearchParamsUtils.getUuids(chunkJE77HYXB_cjs.__privateGet(this, _searchParams), key);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
], [
|
|
50
62
|
{
|
|
51
63
|
key: "getString",
|
|
52
64
|
value: function getString(searchParams, key) {
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { UUID } from "@powfix/uuid";
|
|
2
2
|
export declare class SearchParamsUtils {
|
|
3
3
|
#private;
|
|
4
|
-
private static get urlSearchParams();
|
|
5
4
|
static getString(searchParams: URLSearchParams, key: string): string | null;
|
|
6
5
|
static getStrings(searchParams: URLSearchParams, key: string): string[] | null;
|
|
7
6
|
static getUuid(searchParams: URLSearchParams, key: string): UUID | null;
|
|
8
7
|
static getUuids(searchParams: URLSearchParams, key: string): UUID[] | null;
|
|
9
8
|
static from(searchParams: URLSearchParams): SearchParamsUtils;
|
|
10
9
|
constructor(searchParams: URLSearchParams);
|
|
10
|
+
get searchParams(): URLSearchParams;
|
|
11
11
|
getString(key: string): string | null;
|
|
12
12
|
getStrings(key: string): string[] | null;
|
|
13
|
+
getUuid(key: string): UUID | null;
|
|
14
|
+
getUuids(key: string): UUID[] | null;
|
|
13
15
|
}
|
|
@@ -28,6 +28,12 @@ var _SearchParamsUtils = /*#__PURE__*/ function() {
|
|
|
28
28
|
__privateSet(this, _searchParams, searchParams);
|
|
29
29
|
}
|
|
30
30
|
_create_class(_SearchParamsUtils, [
|
|
31
|
+
{
|
|
32
|
+
key: "searchParams",
|
|
33
|
+
get: function get() {
|
|
34
|
+
return __privateGet(this, _searchParams);
|
|
35
|
+
}
|
|
36
|
+
},
|
|
31
37
|
{
|
|
32
38
|
key: "getString",
|
|
33
39
|
value: function getString(key) {
|
|
@@ -39,14 +45,20 @@ var _SearchParamsUtils = /*#__PURE__*/ function() {
|
|
|
39
45
|
value: function getStrings(key) {
|
|
40
46
|
return _SearchParamsUtils.getStrings(__privateGet(this, _searchParams), key);
|
|
41
47
|
}
|
|
42
|
-
}
|
|
43
|
-
], [
|
|
48
|
+
},
|
|
44
49
|
{
|
|
45
|
-
key: "
|
|
46
|
-
|
|
47
|
-
return
|
|
50
|
+
key: "getUuid",
|
|
51
|
+
value: function getUuid(key) {
|
|
52
|
+
return _SearchParamsUtils.getUuid(__privateGet(this, _searchParams), key);
|
|
48
53
|
}
|
|
49
54
|
},
|
|
55
|
+
{
|
|
56
|
+
key: "getUuids",
|
|
57
|
+
value: function getUuids(key) {
|
|
58
|
+
return _SearchParamsUtils.getUuids(__privateGet(this, _searchParams), key);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
], [
|
|
50
62
|
{
|
|
51
63
|
key: "getString",
|
|
52
64
|
value: function getString(searchParams, key) {
|