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/README.md +75 -117
- package/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +18 -1
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
|
|
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
|
-
|
|
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
|
};
|