@wireapp/core 42.26.0 → 42.26.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.
@@ -20,6 +20,7 @@ export declare const E2EIStorage: {
20
20
  certificateData: () => boolean;
21
21
  };
22
22
  remove: {
23
+ initialData: () => void;
23
24
  temporaryData: () => void;
24
25
  certificateData: () => void;
25
26
  all: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"E2EIStorage.d.ts","sourceRoot":"","sources":["../../../../../src/messagingProtocols/mls/E2EIdentityService/Storage/E2EIStorage.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,QAAQ,EAAkB,WAAW,EAAqB,SAAS,EAAC,MAAM,sBAAsB,CAAC;AAuFzG,eAAO,MAAM,WAAW;;yBA3EK,MAAM;yBAEN,QAAQ;0BADP,SAAS;4BAEP,WAAW;4BACX,MAAM;;;2BA0BX,WAAW;+BAoBP,MAAM;;wBA9BJ,QAAQ;yBAoBP,SAAS;;;;;;;;;;;;CA4D1C,CAAC"}
1
+ {"version":3,"file":"E2EIStorage.d.ts","sourceRoot":"","sources":["../../../../../src/messagingProtocols/mls/E2EIdentityService/Storage/E2EIStorage.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,QAAQ,EAAkB,WAAW,EAAqB,SAAS,EAAC,MAAM,sBAAsB,CAAC;AAuFzG,eAAO,MAAM,WAAW;;yBA3EK,MAAM;yBAEN,QAAQ;0BADP,SAAS;4BAEP,WAAW;4BACX,MAAM;;;2BAwBX,WAAW;+BAkBP,MAAM;;wBA3BJ,QAAQ;yBAkBP,SAAS;;;;;;;;;;;;;CAgE1C,CAAC"}
@@ -40,7 +40,6 @@ const getAndVerifyHandle = () => {
40
40
  if (!handle) {
41
41
  throw new Error('ACME: No handle found');
42
42
  }
43
- storage.remove(HandleKey);
44
43
  const atob = window.atob(handle);
45
44
  return atob;
46
45
  };
@@ -49,7 +48,6 @@ const getAndVerifyAuthData = () => {
49
48
  if (!data) {
50
49
  throw new Error('ACME: AuthData not found');
51
50
  }
52
- storage.remove(AuthDataKey);
53
51
  const atob = window.atob(data);
54
52
  return E2EIStorage_schema_1.AuthDataSchema.parse(JSON.parse(atob));
55
53
  };
@@ -58,7 +56,6 @@ const getInitialData = () => {
58
56
  if (!data) {
59
57
  throw new Error('ACME: InitialData not found');
60
58
  }
61
- storage.remove(InitialDataKey);
62
59
  const atob = window.atob(data);
63
60
  return E2EIStorage_schema_1.InitialDataSchema.parse(JSON.parse(atob));
64
61
  };
@@ -67,7 +64,6 @@ const getAndVerifyOrderData = () => {
67
64
  if (!data) {
68
65
  throw new Error('ACME: OrderData not found');
69
66
  }
70
- storage.remove(OderDataKey);
71
67
  const atob = window.atob(data);
72
68
  return JSON.parse(atob);
73
69
  };
@@ -79,11 +75,13 @@ const getCertificateData = () => {
79
75
  const atob = window.atob(data);
80
76
  return atob;
81
77
  };
78
+ const removeInitialData = () => {
79
+ storage.remove(InitialDataKey);
80
+ };
82
81
  const removeTemporaryData = () => {
83
82
  storage.remove(HandleKey);
84
83
  storage.remove(AuthDataKey);
85
84
  storage.remove(OderDataKey);
86
- storage.remove(InitialDataKey);
87
85
  };
88
86
  const removeCertificateData = () => {
89
87
  storage.remove(CertificateDataKey);
@@ -91,6 +89,7 @@ const removeCertificateData = () => {
91
89
  const removeAll = () => {
92
90
  removeTemporaryData();
93
91
  removeCertificateData();
92
+ removeInitialData();
94
93
  };
95
94
  exports.E2EIStorage = {
96
95
  store: {
@@ -113,6 +112,7 @@ exports.E2EIStorage = {
113
112
  certificateData: hasCertificateData,
114
113
  },
115
114
  remove: {
115
+ initialData: removeInitialData,
116
116
  temporaryData: removeTemporaryData,
117
117
  certificateData: removeCertificateData,
118
118
  all: removeAll,
package/package.json CHANGED
@@ -61,6 +61,6 @@
61
61
  "test:coverage": "jest --coverage",
62
62
  "watch": "tsc --watch"
63
63
  },
64
- "version": "42.26.0",
65
- "gitHead": "1e08169f812d1b037c67b3dd715df3ead3dfb683"
64
+ "version": "42.26.2",
65
+ "gitHead": "cf8237c2b4839d1b6680b30b79af3c2d350f1ed1"
66
66
  }