@metamask-previews/kyc-controller 0.0.0-preview-a38f058 → 0.0.0-preview-1cf7cc7b3

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
@@ -42,7 +42,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
42
42
  - **BREAKING:** Require `sumsubTncSigned` and `idosTncSigned` on `acceptTermsAndStartSession` for every vendor, so callers explicitly declare T&C2 acceptance. Zero-argument calls and omitted flags fail instead of defaulting to `true`. ([#9908](https://github.com/MetaMask/core/pull/9908))
43
43
  - Rename `CreateUkycSessionParams.vendorId` to `vendor` for consistency with other service methods. ([#9908](https://github.com/MetaMask/core/pull/9908))
44
44
  - Bump `@metamask/base-data-service` from `^0.1.3` to `^1.0.0` ([#9972](https://github.com/MetaMask/core/pull/9972))
45
- - Replace `KycController` `console.error` tracing with the `@metamask/utils` debug logger (`createProjectLogger` / `createModuleLogger`), so flow diagnostics are opt-in via `DEBUG=kyc-controller*` instead of always printing to the console. ([#10054](https://github.com/MetaMask/core/pull/10054))
46
45
 
47
46
  ### Fixed
48
47
 
@@ -18,7 +18,6 @@ const utils_1 = require("@metamask/utils");
18
18
  const ed25519_1 = require("@noble/curves/ed25519");
19
19
  const crypto_js_1 = require("./crypto.cjs");
20
20
  const encoding_js_1 = require("./encoding.cjs");
21
- const logger_js_1 = require("./logger.cjs");
22
21
  const deriveClientMaterial_js_1 = require("./ukyc/deriveClientMaterial.cjs");
23
22
  const jwtChain_js_1 = require("./ukyc/jwtChain.cjs");
24
23
  const localUserSecret_js_1 = require("./ukyc/localUserSecret.cjs");
@@ -1243,7 +1242,7 @@ async function _KycController_startConsentsSession(consents) {
1243
1242
  await this.refreshKycStatus();
1244
1243
  }
1245
1244
  catch (statusError) {
1246
- (0, logger_js_1.controllerLog)('KYC status refresh failed:', statusError);
1245
+ console.error('KYC status refresh failed:', statusError);
1247
1246
  }
1248
1247
  __classPrivateFieldGet(this, _KycController_instances, "m", _KycController_updateIfCurrent).call(this, generation, (state) => {
1249
1248
  state.phase = 'done';
@@ -1279,7 +1278,7 @@ async function _KycController_startConsentsSession(consents) {
1279
1278
  await this.refreshKycStatus();
1280
1279
  }
1281
1280
  catch (statusError) {
1282
- (0, logger_js_1.controllerLog)('KYC status refresh failed:', statusError);
1281
+ console.error('KYC status refresh failed:', statusError);
1283
1282
  }
1284
1283
  __classPrivateFieldGet(this, _KycController_instances, "m", _KycController_updateIfCurrent).call(this, generation, (state) => {
1285
1284
  if (state.phase !== 'error' && state.phase !== 'done') {
@@ -1307,7 +1306,7 @@ async function _KycController_startConsentsSession(consents) {
1307
1306
  });
1308
1307
  return;
1309
1308
  }
1310
- (0, logger_js_1.controllerLog)('Consents session failed:', error);
1309
+ console.error('Consents session failed:', error);
1311
1310
  if (__classPrivateFieldGet(this, _KycController_generation, "f") !== generation) {
1312
1311
  return;
1313
1312
  }
@@ -1438,7 +1437,7 @@ async function _KycController_createSession() {
1438
1437
  });
1439
1438
  }
1440
1439
  catch (error) {
1441
- (0, logger_js_1.controllerLog)('Session creation failed:', error);
1440
+ console.error('Session creation failed:', error);
1442
1441
  // A reset() superseded this flow while the request was in flight; leave
1443
1442
  // the idle controller alone rather than forcing it back to `terms`.
1444
1443
  if (__classPrivateFieldGet(this, _KycController_generation, "f") !== generation) {