diff --git a/package-lock.json b/package-lock.json index 7092866..6293f32 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "saito-js", - "version": "0.0.30", + "version": "0.0.31", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "saito-js", - "version": "0.0.30", + "version": "0.0.31", "license": "ISC", "dependencies": { "base-58": "^0.0.1", @@ -18,7 +18,7 @@ "morgan": "~1.10.0", "node-fetch": "^2.6.1", "process": "^0.11.10", - "saito-wasm": "^0.0.18", + "saito-wasm": "^0.0.19", "url": "^0.11.0", "util": "^0.12.5", "ws": "^8.13.0" @@ -4157,9 +4157,9 @@ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" }, "node_modules/saito-wasm": { - "version": "0.0.18", - "resolved": "https://registry.npmjs.org/saito-wasm/-/saito-wasm-0.0.18.tgz", - "integrity": "sha512-zSz9zGo26IYp7dw+YtEv21tXE0M432IgZDicFZnYIAzZLIzznhtsMK+P3qZ5CA9e5oZDcuexnmVtvN0MFC3pTg==", + "version": "0.0.19", + "resolved": "https://registry.npmjs.org/saito-wasm/-/saito-wasm-0.0.19.tgz", + "integrity": "sha512-uNruUW7L8MD08YUSKnQfZLFZZYHK4jct1KfXnv7BkPIQVbzNIxZ7yrW3FzK+TzWFYzsjGNTZsVk1yWCpKyFb6w==", "dependencies": { "cross-env": "^7.0.3", "node-fetch": "^3.3.0" @@ -8206,9 +8206,9 @@ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" }, "saito-wasm": { - "version": "0.0.18", - "resolved": "https://registry.npmjs.org/saito-wasm/-/saito-wasm-0.0.18.tgz", - "integrity": "sha512-zSz9zGo26IYp7dw+YtEv21tXE0M432IgZDicFZnYIAzZLIzznhtsMK+P3qZ5CA9e5oZDcuexnmVtvN0MFC3pTg==", + "version": "0.0.19", + "resolved": "https://registry.npmjs.org/saito-wasm/-/saito-wasm-0.0.19.tgz", + "integrity": "sha512-uNruUW7L8MD08YUSKnQfZLFZZYHK4jct1KfXnv7BkPIQVbzNIxZ7yrW3FzK+TzWFYzsjGNTZsVk1yWCpKyFb6w==", "requires": { "cross-env": "^7.0.3", "node-fetch": "^3.3.0" diff --git a/package.json b/package.json index 0b6ad0c..48297b4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "saito-js", - "version": "0.0.30", + "version": "0.0.31", "description": "js wrappings around saito-core using wasm", "scripts": { "test": "env TS_NODE_PROJECT=\"tsconfig.testing.json\" mocha --require ts-node/register 'tests/**/*.ts'", @@ -36,7 +36,7 @@ "morgan": "~1.10.0", "node-fetch": "^2.6.1", "process": "^0.11.10", - "saito-wasm": "^0.0.18", + "saito-wasm": "^0.0.19", "url": "^0.11.0", "util": "^0.12.5", "ws": "^8.13.0" diff --git a/saito.ts b/saito.ts index 4a12091..b1eb3d7 100644 --- a/saito.ts +++ b/saito.ts @@ -298,7 +298,7 @@ export default class Saito { peerIndex: bigint, waitForReply: boolean ): Promise { - console.log("saito.sendApiCall : peer = " + peerIndex + " wait for reply = " + waitForReply); + // console.log("saito.sendApiCall : peer = " + peerIndex + " wait for reply = " + waitForReply); let callbackIndex = this.callbackIndex++; if (waitForReply) { return new Promise((resolve, reject) => { @@ -336,7 +336,7 @@ export default class Saito { await this.sendApiCall(buffer, peerIndex || BigInt(0), !!callback) .then((buffer: Uint8Array) => { if (callback) { - console.log("sendTransactionWithCallback. buffer length = " + buffer.byteLength); + // console.log("sendTransactionWithCallback. buffer length = " + buffer.byteLength); let tx = this.factory.createTransaction(); tx.data = buffer; @@ -358,7 +358,7 @@ export default class Saito { callback?: any, peerIndex?: bigint ): Promise { - console.log("saito.sendRequest : peer = " + peerIndex); + // console.log("saito.sendRequest : peer = " + peerIndex); let wallet = await this.getWallet(); let publicKey = await wallet.getPublicKey(); let tx = await this.createTransaction(publicKey, BigInt(0), BigInt(0));