Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@polkadot/api",
"version": "0.2.4",
"version": "0.3.0",
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
"main": "lib/index.js",
"main": "index.js",
"keywords": [
"Polkadot",
"JsonRPC"
Expand Down Expand Up @@ -67,9 +67,9 @@
"sinon-chai": "^2.14.0"
},
"dependencies": {
"@polkadot/api-format": "^0.2.0",
"@polkadot/jsonrpc": "^0.2.0",
"@polkadot/util": "^0.2.0",
"@polkadot/api-format": "~0.3.0",
"@polkadot/jsonrpc": "~0.3.0",
"@polkadot/util": "~0.3.0",
"babel-runtime": "^6.26.0",
"isomorphic-fetch": "^2.2.1"
}
Expand Down
13 changes: 8 additions & 5 deletions scripts/travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,19 @@ if [ -n "$(git status --untracked-files=no --porcelain)" ]; then
git commit -m "[CI Skip] Build artifacts"
fi

echo "Publishing to npm"
echo "Incrementing package version"

npm run ci:makeshift
npm --no-git-tag-version version
npm version patch -m "[CI Skip] Version bump"
npm publish
git push --quiet origin HEAD:refs/heads/$TRAVIS_BRANCH > /dev/null 2>&1

echo "Final push to GitHub"
echo "Publishing to npm"

git push --quiet origin HEAD:refs/heads/$TRAVIS_BRANCH > /dev/null 2>&1
npm run ci:makeshift
cp LICENSE package.json package-lock.json src/types.js lib/
cd lib
npm publish
cd ..

echo "Release completed"

Expand Down
6 changes: 3 additions & 3 deletions src/api.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// ISC, Copyright 2017 Jaco Greeff
// @flow

import type { InterfaceDefinition } from '@polkadot/jsonrpc/src/types';
import type { InterfaceDefinition } from '@polkadot/jsonrpc/types';
import type { ApiInterface } from './types';
import type { ProviderInterface } from './provider/types';

const { formatInputs, formatOutput } = require('@polkadot/api-format');
const interfaces = require('@polkadot/jsonrpc');
const { callSignature } = require('@polkadot/jsonrpc/lib/util');
const { isFunction } = require('@polkadot/util/lib/is');
const { callSignature } = require('@polkadot/jsonrpc/util');
const { isFunction } = require('@polkadot/util/is');

const { HttpProvider } = require('./provider');

Expand Down
2 changes: 1 addition & 1 deletion src/api.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

const sinon = require('sinon');

const { isFunction } = require('@polkadot/util/lib/is');
const { isFunction } = require('@polkadot/util/is');

const Api = require('./api');

Expand Down
2 changes: 1 addition & 1 deletion src/provider/jsonRpcCoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import type { JsonRpcRequest, JsonRpcResponse } from './types';

const { isNumber, isUndefined } = require('@polkadot/util/lib/is');
const { isNumber, isUndefined } = require('@polkadot/util/is');

module.exports = class JsonRpcCoder {
_id: number = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/provider/ws.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

const { mockWs, TEST_WS_URL } = require('../../test/mockWs');

const { isUndefined } = require('@polkadot/util/lib/is');
const { isUndefined } = require('@polkadot/util/is');
const sinon = require('sinon');

const Ws = require('./ws');
Expand Down