@shakerquiz/utilities 0.5.205 → 0.5.207
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
CHANGED
|
@@ -13,12 +13,6 @@ export const VersionTitle = Object.freeze({
|
|
|
13
13
|
[Version['Legacy']]: 'Старая',
|
|
14
14
|
})
|
|
15
15
|
|
|
16
|
-
export const VersionIcon = Object.freeze({
|
|
17
|
-
[Version['Actual']]: 'hero/outline/no-symbol',
|
|
18
|
-
[Version['Legacy']]: 'hero/outline/no-symbol',
|
|
19
|
-
['Unknown']: 'hero/outline/no-symbol',
|
|
20
|
-
})
|
|
21
|
-
|
|
22
16
|
const ValueChatappVersion = Object.freeze({
|
|
23
17
|
'false': Version['Actual'],
|
|
24
18
|
'true': Version['Legacy'],
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export const Pattern = Object.freeze({
|
|
2
2
|
UUID: /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/,
|
|
3
3
|
JWT: /^[A-Za-z0-9-_=]+\.[A-Za-z0-9-_=]+\.?[A-Za-z0-9-_.+/=]*$/,
|
|
4
|
+
COUNTRY: /[A-Z]{2}/,
|
|
4
5
|
CURRENCY: /[A-Z]{3}/,
|
|
5
6
|
ZONE: /[A-Za-z]+\/(?:[A-Za-z]+(?:_[A-Za-z]+)?)+/,
|
|
6
7
|
})
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export const toStringTag = Object.freeze(x => Object.prototype.toString.call(x).slice(8, -1))
|
|
2
2
|
|
|
3
3
|
export const isStringTag = Object.freeze((tag, x) => tag === Object.prototype.toString.call(x).slice(8, -1))
|
|
4
|
+
|
|
5
|
+
export const isValue = Object.freeze((x, ...tags) => tags.includes(toStringTag(x)))
|