@exodus/analytics-validation 2.52.0 → 2.52.2
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,18 @@
|
|
|
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
|
+
## [2.52.2](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@2.52.1...@exodus/analytics-validation@2.52.2) (2025-03-13)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- fix: rename property value of mode_activated from card to cards in WalletStyleCardsDonutToggle event (#11770)
|
|
11
|
+
|
|
12
|
+
## [2.52.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@2.52.0...@exodus/analytics-validation@2.52.1) (2025-03-10)
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
- fix(analytics-validation): harden object and do not follow links (#11583)
|
|
17
|
+
|
|
6
18
|
## [2.52.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@2.51.3...@exodus/analytics-validation@2.52.0) (2025-02-24)
|
|
7
19
|
|
|
8
20
|
### Features
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/analytics-validation",
|
|
3
|
-
"version": "2.52.
|
|
3
|
+
"version": "2.52.2",
|
|
4
4
|
"description": "JSON schemas for analytics events, to prevent sensitive data from being sent up to the infamous cloud",
|
|
5
5
|
"author": "Exodus Movement, Inc.",
|
|
6
6
|
"repository": {
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"publishConfig": {
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "ba6980c0d04a44712afd63c54c0605a9828fec4c"
|
|
47
47
|
}
|
package/schemasafe.config.js
CHANGED
|
@@ -8,12 +8,14 @@ const getSchemas = ({ schemaDir, schemaNames }) => {
|
|
|
8
8
|
if (schemaName === 'main.schemasafe.json') continue
|
|
9
9
|
const schemaPath = path.join(schemaDir, schemaName)
|
|
10
10
|
|
|
11
|
-
if (fs.
|
|
11
|
+
if (fs.lstatSync(schemaPath).isDirectory()) {
|
|
12
12
|
if (schemaName === '__tests__') continue
|
|
13
13
|
getSchemas({ schemaDir: schemaPath, schemaNames: fs.readdirSync(schemaPath) })
|
|
14
14
|
} else if (schemaName.endsWith('.json')) {
|
|
15
15
|
// primitive-type.schemafe.json -> primitive-type
|
|
16
16
|
const name = schemaName.slice(0, schemaName.indexOf('.'))
|
|
17
|
+
if (name in Object.prototype) continue
|
|
18
|
+
|
|
17
19
|
const schemaString = fs.readFileSync(schemaPath, 'utf8')
|
|
18
20
|
schemas[name] = JSON.parse(schemaString)
|
|
19
21
|
}
|