Skip to content

Commit

Permalink
Merge pull request #30 from tonlabs/0.24.0-rc
Browse files Browse the repository at this point in the history
Version 0.24.0
  • Loading branch information
diserere authored Jun 17, 2020
2 parents a981597 + d3ee279 commit 8dd88d5
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 18 deletions.
22 changes: 12 additions & 10 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,18 @@ pipeline {
echo "Job: ${JOB_NAME}"
script {
def params = [
// [
// $class: 'StringParameterValue',
// name: 'dockerimage_compilers',
// value: "tonlabs/compilers:latest"
// ],
// [
// $class: 'StringParameterValue',
// name: 'dockerimage_local_node',
// value: "tonlabs/local-node:latest"
// ],
[
$class: 'StringParameterValue',
name: 'ton_client_js_commit',
value: "master"
// value: "0.24.0-rc"
],
[
$class: 'BooleanParameterValue',
name: 'CHANGE_JS_DEPS',
value: false
// value: true
],
[
$class: 'StringParameterValue',
name: 'ton_client_web_js_branch',
Expand Down
2 changes: 1 addition & 1 deletion example/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ window.addEventListener('load', () => {
servers: ['net.ton.dev']
});
debugLog(`Client creation time: ${(Date.now() - createStart)}`);
debugLog(`Client version: ${await client.config.getVersion()}`);
debugLog(`Client uses binary version: ${await client.config.getVersion()}`);
debugLog(`Client connected to: ${await client.config.data.servers}`);
const queryStart = Date.now();
const accounts = await client.queries.accounts.query({}, 'id balance(format:DEC)', [{path:'balance', direction:'DESC'}], 10);
Expand Down
8 changes: 4 additions & 4 deletions install.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ const fs = require('fs');
const path = require('path');
const http = require('http');
const zlib = require('zlib');
const {version, binaries_version} = require('./package.json');
const {version} = require('./package.json');

const bv = (binaries_version || version).split('.')[0];
const bv = process.env.TON_SDK_BIN_VERSION || (version).split('.')[0];

const root = process.cwd();
const binariesHost = 'sdkbinaries-ws.tonlabs.io';
Expand All @@ -16,7 +16,7 @@ function downloadAndGunzip(dest, url) {
const request = http.get(url, response => {
if (response.statusCode !== 200) {
reject({
message: `Download failed with ${response.statusCode}: ${response.statusMessage}`,
message: `Download from ${url} failed with ${response.statusCode}: ${response.statusMessage}`,
});
return;
}
Expand Down Expand Up @@ -72,7 +72,7 @@ function downloadAndGunzip(dest, url) {
async function dl(dst, src) {
const dst_path = `${root}/${dst}`;
const src_url = `http://${binariesHost}/${src}.gz`;
process.stdout.write(`Downloading ${dst} from ${src_url} to ${dst_path} ...`);
process.stdout.write(`Downloading from ${src_url} to ${dst_path} ...`);
await downloadAndGunzip(dst_path, src_url);
process.stdout.write('\n');
}
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "ton-client-web-js",
"version": "0.23.1",
"binaries_version": "0.23.1",
"version": "0.24.0",
"description": "TON Client Library for Web",
"scripts": {
"install": "node install.js"
Expand All @@ -26,7 +25,7 @@
},
"homepage": "https://ton.dev/node-se",
"dependencies": {
"ton-client-js": "^0.23.0"
"ton-client-js": "^0.24.0"
},
"main": "index.js"
}

0 comments on commit 8dd88d5

Please sign in to comment.