Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@parity/api

Package Overview
Dependencies
Maintainers
7
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@parity/api - npm Package Compare versions

Comparing version 5.1.12 to 5.1.13

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## [5.1.13](https://github.com/paritytech/js-libs/tree/master/packages/api/compare/v5.1.12...v5.1.13) (2019-09-13)
**Note:** Version bump only for package @parity/api
## [5.1.12](https://github.com/paritytech/js-libs/tree/master/packages/api/compare/v5.1.11...v5.1.12) (2019-09-02)

@@ -8,0 +16,0 @@

3

lib/format/input.js

@@ -7,2 +7,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
/* eslint-disable @typescript-eslint/no-use-before-define */
var bignumber_js_1 = require("bignumber.js");

@@ -182,3 +183,3 @@ var types_1 = require("../util/types");

// @ts-ignore Here, we explicitly pass down extra keys, if they exist
result[key] = options[key];
result[key] = filterObject[key];
}

@@ -185,0 +186,0 @@ });

@@ -7,2 +7,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
/* eslint-disable @typescript-eslint/no-use-before-define */
var bignumber_js_1 = require("bignumber.js");

@@ -258,2 +259,3 @@ var types_1 = require("@parity/abi/lib/util/types");

case 'origin':
/* eslint-disable no-case-declarations */
// @ts-ignore "Object is possibly 'undefined'." No it's not.

@@ -263,2 +265,3 @@ var type = Object.keys(result[key])[0];

var details = result[key][type];
/* eslint-enable no-case-declarations */
request[key] = { type: type, details: details };

@@ -265,0 +268,0 @@ break;

@@ -53,2 +53,3 @@ "use strict";

!!field.inputs &&
// eslint-disable-next-line @typescript-eslint/no-use-before-define
exports.abiSignature(field.name, field.inputs.map(function (input) { return input.type; })).substr(2, 8) === callsig);

@@ -55,0 +56,0 @@ });

@@ -56,2 +56,3 @@ "use strict";

exports.hexToBytes = function (hex) {
// eslint-disable-next-line @typescript-eslint/no-use-before-define
var raw = exports.toHex(hex).slice(2);

@@ -102,2 +103,3 @@ var bytes = [];

var hexLength = length * 2;
// eslint-disable-next-line @typescript-eslint/no-use-before-define
var value = exports.toHex(input).substr(2, hexLength);

@@ -118,2 +120,3 @@ return ('0x' +

var hexLength = length * 2;
// eslint-disable-next-line @typescript-eslint/no-use-before-define
var value = exports.toHex(input).substr(2, hexLength);

@@ -120,0 +123,0 @@ return ('0x' +

@@ -8,3 +8,3 @@ "use strict";

var types_1 = require("./types");
var Eth = require('../rpc/eth');
var Eth = require("../rpc/eth");
describe('util/types', function () {

@@ -56,2 +56,3 @@ describe('isArray', function () {

it('correctly identifies build-in instanceof', function () {
// eslint-disable-next-line no-new-wrappers
expect(types_1.isInstanceOf(new String('123'), String)).toBe(true);

@@ -58,0 +59,0 @@ });

{
"name": "@parity/api",
"description": "The Parity Promise-based API library for interfacing with Ethereum over RPC",
"version": "5.1.12",
"version": "5.1.13",
"author": "Parity Team <admin@parity.io>",

@@ -21,2 +21,3 @@ "license": "MIT",

"prebuild": "rimraf lib",
"typecheck": "tsc --noEmit",
"build": "tsc",

@@ -43,3 +44,3 @@ "test": "cross-env NODE_ENV=test mocha -r ts-node/register 'src/*.spec.js' 'src/**/*.spec.js'"

"dependencies": {
"@parity/abi": "^5.1.12",
"@parity/abi": "^5.1.13",
"bignumber.js": "^8.0.1",

@@ -56,3 +57,3 @@ "blockies": "0.0.2",

},
"gitHead": "e2ec3f149be5d5df0fe88bc4a8bd9ab70505acdb"
"gitHead": "6cb07a70d326d8f55a8e75a34b9378cb70c302a1"
}

@@ -6,2 +6,4 @@ // Copyright 2015-2019 Parity Technologies (UK) Ltd.

/* eslint-disable @typescript-eslint/no-use-before-define */
import BigNumber from 'bignumber.js';

@@ -94,3 +96,3 @@

const result: {
[key in keyof FilterOptions]: number | string | string[] | Topic[]
[key in keyof FilterOptions]: number | string | string[] | Topic[];
} = {};

@@ -237,3 +239,3 @@

// @ts-ignore Here, we explicitly pass down extra keys, if they exist
result[key] = options[key];
result[key] = filterObject[key];
}

@@ -240,0 +242,0 @@ });

@@ -6,2 +6,4 @@ // Copyright 2015-2019 Parity Technologies (UK) Ltd.

/* eslint-disable @typescript-eslint/no-use-before-define */
import BigNumber from 'bignumber.js';

@@ -347,2 +349,3 @@ import { isString } from '@parity/abi/lib/util/types';

case 'origin':
/* eslint-disable no-case-declarations */
// @ts-ignore "Object is possibly 'undefined'." No it's not.

@@ -352,2 +355,3 @@ const type = Object.keys(result[key])[0];

const details = result[key][type];
/* eslint-enable no-case-declarations */

@@ -354,0 +358,0 @@ request[key] = { type, details };

@@ -73,2 +73,3 @@ // Copyright 2015-2019 Parity Technologies (UK) Ltd.

!!field.inputs &&
// eslint-disable-next-line @typescript-eslint/no-use-before-define
abiSignature(field.name, field.inputs.map(input => input.type)).substr(

@@ -97,5 +98,3 @@ 2,

throw new Error(
`abiUnencode: input at index ${index} with type ${
field.type
} doesn't have a name.`
`abiUnencode: input at index ${index} with type ${field.type} doesn't have a name.`
);

@@ -102,0 +101,0 @@ }

@@ -64,2 +64,3 @@ // Copyright 2015-2019 Parity Technologies (UK) Ltd.

export const hexToBytes = (hex: string) => {
// eslint-disable-next-line @typescript-eslint/no-use-before-define
const raw = toHex(hex).slice(2);

@@ -118,2 +119,3 @@ const bytes = [];

const hexLength = length * 2;
// eslint-disable-next-line @typescript-eslint/no-use-before-define
const value = toHex(input).substr(2, hexLength);

@@ -138,2 +140,3 @@

const hexLength = length * 2;
// eslint-disable-next-line @typescript-eslint/no-use-before-define
const value = toHex(input).substr(2, hexLength);

@@ -140,0 +143,0 @@

@@ -15,3 +15,3 @@ // Copyright 2015-2019 Parity Technologies (UK) Ltd.

} from './types';
const Eth = require('../rpc/eth');
import * as Eth from '../rpc/eth';

@@ -75,2 +75,3 @@ describe('util/types', () => {

it('correctly identifies build-in instanceof', () => {
// eslint-disable-next-line no-new-wrappers
expect(isInstanceOf(new String('123'), String)).toBe(true);

@@ -77,0 +78,0 @@ });

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc