cocoon-sdk 0.1.0 → 0.1.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/dist/index.js CHANGED
@@ -1319,7 +1319,7 @@ function buildHandshakeCloseError(stage, error) {
1319
1319
  async function performLongAuth(conn, connected, nonce, onLongAuthRequired, missingHandlerMessage) {
1320
1320
  if (!onLongAuthRequired) {
1321
1321
  throw new AuthenticationError(
1322
- `${missingHandlerMessage}. Provide SECRET for short auth, or keep automatic long-auth registration enabled`
1322
+ `${missingHandlerMessage}. Provide SECRET for short auth, or explicitly enable automatic long-auth registration`
1323
1323
  );
1324
1324
  }
1325
1325
  await onLongAuthRequired({
@@ -2389,7 +2389,8 @@ var Cocoon = class {
2389
2389
  network: "mainnet",
2390
2390
  timeout: 12e4,
2391
2391
  useTls: true,
2392
- autoRegisterOnLongAuth: true,
2392
+ // Safety-first default for SDK consumers: don't submit on-chain tx implicitly.
2393
+ autoRegisterOnLongAuth: false,
2393
2394
  longAuthRegisterAmountTon: "1",
2394
2395
  ...options
2395
2396
  };