@exodus/analytics-validation 1.0.1-alpha.3 → 1.0.1-alpha.4
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.0.1-alpha.4](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@1.0.1-alpha.3...@exodus/analytics-validation@1.0.1-alpha.4) (2023-04-16)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **analytics-validation:** property fixes for mobile ([#1265](https://github.com/ExodusMovement/exodus-hydra/issues/1265)) ([d08e348](https://github.com/ExodusMovement/exodus-hydra/commit/d08e3489d4c03600230acf20e16ed240882fc248))
|
|
11
|
+
|
|
6
12
|
## [1.0.1-alpha.3](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@1.0.1-alpha.2...@exodus/analytics-validation@1.0.1-alpha.3) (2023-04-14)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/analytics-validation",
|
|
3
|
-
"version": "1.0.1-alpha.
|
|
3
|
+
"version": "1.0.1-alpha.4",
|
|
4
4
|
"description": "The analytics-validation library",
|
|
5
5
|
"author": "Exodus Movement Inc",
|
|
6
6
|
"repository": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"bugs": {
|
|
13
13
|
"url": "https://github.com/ExodusMovement/exodus-hydra/issues?q=is%3Aissue+is%3Aopen+label%3Aanalytics-validation"
|
|
14
14
|
},
|
|
15
|
-
"main": "./
|
|
15
|
+
"main": "./index.js",
|
|
16
16
|
"files": [
|
|
17
17
|
"src",
|
|
18
18
|
"!**/__tests__",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"eslint": "^8.33.0",
|
|
33
33
|
"jest": "^29.1.2"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "81cb733290310e7f045fb62f6db792368e916398"
|
|
36
36
|
}
|
package/schemasafe.config.js
CHANGED
|
@@ -24,13 +24,14 @@ for (const schemaName of schemaNames) {
|
|
|
24
24
|
const semVerRegEx =
|
|
25
25
|
/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[A-Za-z-][\dA-Za-z-]*)(?:\.(?:0|[1-9]\d*|\d*[A-Za-z-][\dA-Za-z-]*))*))?(?:\+([\dA-Za-z-]+(?:\.[\dA-Za-z-]+)*))?$/
|
|
26
26
|
const localeRegEx = /^[A-Za-z]{2,4}([_-][A-Za-z]{2,4})?$/
|
|
27
|
-
|
|
27
|
+
const osRegEx = /^(\d+\.)?(\d+\.)?(\d+)$/
|
|
28
28
|
// NOTE: this is exported so consumers can use the same settings at runtime
|
|
29
29
|
// as were used to compile schemas at build time
|
|
30
30
|
module.exports = {
|
|
31
31
|
formats: {
|
|
32
32
|
'any-string': (str) => typeof str === 'string',
|
|
33
33
|
'semver-string': semVerRegEx,
|
|
34
|
+
'os-version-string': osRegEx,
|
|
34
35
|
locale: localeRegEx,
|
|
35
36
|
},
|
|
36
37
|
schemas,
|
|
@@ -113,13 +113,23 @@
|
|
|
113
113
|
"type": "boolean"
|
|
114
114
|
},
|
|
115
115
|
"locale": {
|
|
116
|
-
"
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
116
|
+
"anyOf": [
|
|
117
|
+
{
|
|
118
|
+
"type": "array",
|
|
119
|
+
"items": {
|
|
120
|
+
"type": "string",
|
|
121
|
+
"format": "locale",
|
|
122
|
+
"maxLength": 10,
|
|
123
|
+
"$comment": "Max length is arbitrary"
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"type": "string",
|
|
128
|
+
"format": "locale",
|
|
129
|
+
"maxLength": 10,
|
|
130
|
+
"$comment": "Max length is arbitrary"
|
|
131
|
+
}
|
|
132
|
+
]
|
|
123
133
|
},
|
|
124
134
|
"mp_lib": {
|
|
125
135
|
"const": "Segment: unknown"
|
|
@@ -163,7 +173,7 @@
|
|
|
163
173
|
},
|
|
164
174
|
"os_version": {
|
|
165
175
|
"type": "string",
|
|
166
|
-
"format": "
|
|
176
|
+
"format": "os-version-string",
|
|
167
177
|
"maxLength": 10,
|
|
168
178
|
"$comment": "Max length is arbitrary"
|
|
169
179
|
},
|