@equinor/mad-insights 0.2.1 → 0.3.0
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 +11 -0
- package/dist/AppInsightsInitializer.js +4 -4
- package/dist/appInsights.js +2 -2
- package/dist/{chunk-YSLSGXQP.js → chunk-HBTKADNX.js} +1 -1
- package/dist/{chunk-ESHZZFTG.js → chunk-PGH7K4VG.js} +1 -1
- package/dist/{chunk-7IKLEQVH.js → chunk-PHO4BZGR.js} +1 -1
- package/dist/{chunk-YOM52B44.js → chunk-UDTSFJ3J.js} +1 -1
- package/dist/encrypt.d.ts +2 -2
- package/dist/encrypt.js +1 -1
- package/dist/index.js +4 -4
- package/dist/useAppInsights.js +3 -3
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @equinor/mad-insights
|
|
2
2
|
|
|
3
|
+
## 0.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 7ef5dfb: Expo Upgraded. Skia draw upgraded and will not support onLayout any longer. Instead, the
|
|
8
|
+
onSize prop is to be used
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- 85f9531: GHAS vulnerability fixes added
|
|
13
|
+
|
|
3
14
|
## 0.2.1
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AppInsightsInitializer
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-PGH7K4VG.js";
|
|
4
|
+
import "./chunk-UDTSFJ3J.js";
|
|
5
|
+
import "./chunk-PHO4BZGR.js";
|
|
6
|
+
import "./chunk-HBTKADNX.js";
|
|
7
7
|
export {
|
|
8
8
|
AppInsightsInitializer
|
|
9
9
|
};
|
package/dist/appInsights.js
CHANGED
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
trackNavigation,
|
|
17
17
|
trackShortTerm,
|
|
18
18
|
validateAppInsightsInit
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-PHO4BZGR.js";
|
|
20
|
+
import "./chunk-HBTKADNX.js";
|
|
21
21
|
export {
|
|
22
22
|
addTelemetryInitializer,
|
|
23
23
|
appInsightsHasBeenInitialized,
|
|
@@ -5,7 +5,7 @@ function obfuscateUser(username, userIdentifier, useSHA1) {
|
|
|
5
5
|
if (username.includes("@") === false) domain = "no domain";
|
|
6
6
|
else domain = username.split("@")[1].toLowerCase();
|
|
7
7
|
const stringToEncrypt = `${userIdentifier}`;
|
|
8
|
-
const hash =
|
|
8
|
+
const hash = CryptoJS.SHA256(stringToEncrypt);
|
|
9
9
|
return { id: hash.toString(), domain };
|
|
10
10
|
}
|
|
11
11
|
|
package/dist/encrypt.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Obfuscate user identity using
|
|
2
|
+
* Obfuscate user identity using SHA-256 hashing. Used in app insights.
|
|
3
3
|
* @param username - e.g. 'user@equinor.com'
|
|
4
4
|
* @param userIdentifier - GUID
|
|
5
|
-
* @param useSHA1 -
|
|
5
|
+
* @param useSHA1 - deprecated; ignored. SHA-1 is not secure and is no longer supported.
|
|
6
6
|
*/
|
|
7
7
|
export declare function obfuscateUser(username: string, userIdentifier: string,
|
|
8
8
|
/**@deprecated */
|
package/dist/encrypt.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AppInsightsInitializer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PGH7K4VG.js";
|
|
4
4
|
import "./chunk-6F4PWJZI.js";
|
|
5
5
|
import {
|
|
6
6
|
useAppInsights
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UDTSFJ3J.js";
|
|
8
8
|
import {
|
|
9
9
|
addTelemetryInitializer,
|
|
10
10
|
appInsightsHasBeenInitialized,
|
|
@@ -23,8 +23,8 @@ import {
|
|
|
23
23
|
trackNavigation,
|
|
24
24
|
trackShortTerm,
|
|
25
25
|
validateAppInsightsInit
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-PHO4BZGR.js";
|
|
27
|
+
import "./chunk-HBTKADNX.js";
|
|
28
28
|
export {
|
|
29
29
|
AppInsightsInitializer,
|
|
30
30
|
addTelemetryInitializer,
|
package/dist/useAppInsights.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/mad-insights",
|
|
3
3
|
"description": "Application Insights implementation for the mad team",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.3.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Equinor Mobile App Delivery team (MAD)"
|
|
7
7
|
},
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"license": "MIT",
|
|
37
37
|
"main": "./dist/index.js",
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"react": "^19.
|
|
40
|
-
"react-dom": "^19.
|
|
41
|
-
"react-native": "~0.
|
|
39
|
+
"react": "^19.2.0",
|
|
40
|
+
"react-dom": "^19.2.0",
|
|
41
|
+
"react-native": "~0.83.6",
|
|
42
42
|
"react-native-device-info": "^10.9.0"
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|