@equinor/mad-insights 0.2.1 → 0.3.1

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
@@ -1,5 +1,22 @@
1
1
  # @equinor/mad-insights
2
2
 
3
+ ## 0.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 1967046: dependency and other bug fixes after upgrading to Expo 55
8
+
9
+ ## 0.3.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 7ef5dfb: Expo Upgraded. Skia draw upgraded and will not support onLayout any longer. Instead, the
14
+ onSize prop is to be used
15
+
16
+ ### Patch Changes
17
+
18
+ - 85f9531: GHAS vulnerability fixes added
19
+
3
20
  ## 0.2.1
4
21
 
5
22
  ### Patch Changes
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  AppInsightsInitializer
3
- } from "./chunk-ESHZZFTG.js";
4
- import "./chunk-YOM52B44.js";
5
- import "./chunk-7IKLEQVH.js";
6
- import "./chunk-YSLSGXQP.js";
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
  };
@@ -16,8 +16,8 @@ import {
16
16
  trackNavigation,
17
17
  trackShortTerm,
18
18
  validateAppInsightsInit
19
- } from "./chunk-7IKLEQVH.js";
20
- import "./chunk-YSLSGXQP.js";
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 = useSHA1 ? CryptoJS.SHA1(stringToEncrypt) : CryptoJS.SHA256(stringToEncrypt);
8
+ const hash = CryptoJS.SHA256(stringToEncrypt);
9
9
  return { id: hash.toString(), domain };
10
10
  }
11
11
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useAppInsights
3
- } from "./chunk-YOM52B44.js";
3
+ } from "./chunk-UDTSFJ3J.js";
4
4
 
5
5
  // src/AppInsightsInitializer.ts
6
6
  var AppInsightsInitializer = ({ children, config }) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  obfuscateUser
3
- } from "./chunk-YSLSGXQP.js";
3
+ } from "./chunk-HBTKADNX.js";
4
4
 
5
5
  // src/appInsights.ts
6
6
  import { ReactPlugin } from "@microsoft/applicationinsights-react-js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  appInsightsHasBeenInitialized,
3
3
  appInsightsInit
4
- } from "./chunk-7IKLEQVH.js";
4
+ } from "./chunk-PHO4BZGR.js";
5
5
 
6
6
  // src/useAppInsights.ts
7
7
  import { useEffect } from "react";
package/dist/encrypt.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
- * Obfuscate user identity using sha1 or sha256 encryption. Used in app insights
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 - default false. ONLY USE SHA1 IN SPECIAL CIRCUMSTANCES, AS SHA1 IS _NOT_ SECURE
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
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  obfuscateUser
3
- } from "./chunk-YSLSGXQP.js";
3
+ } from "./chunk-HBTKADNX.js";
4
4
  export {
5
5
  obfuscateUser
6
6
  };
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  AppInsightsInitializer
3
- } from "./chunk-ESHZZFTG.js";
3
+ } from "./chunk-PGH7K4VG.js";
4
4
  import "./chunk-6F4PWJZI.js";
5
5
  import {
6
6
  useAppInsights
7
- } from "./chunk-YOM52B44.js";
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-7IKLEQVH.js";
27
- import "./chunk-YSLSGXQP.js";
26
+ } from "./chunk-PHO4BZGR.js";
27
+ import "./chunk-HBTKADNX.js";
28
28
  export {
29
29
  AppInsightsInitializer,
30
30
  addTelemetryInitializer,
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  useAppInsights
3
- } from "./chunk-YOM52B44.js";
4
- import "./chunk-7IKLEQVH.js";
5
- import "./chunk-YSLSGXQP.js";
3
+ } from "./chunk-UDTSFJ3J.js";
4
+ import "./chunk-PHO4BZGR.js";
5
+ import "./chunk-HBTKADNX.js";
6
6
  export {
7
7
  useAppInsights
8
8
  };
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.2.1",
4
+ "version": "0.3.1",
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.0.0",
40
- "react-dom": "^19.0.0",
41
- "react-native": "~0.79.5",
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": {