New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@polkadot/params

Package Overview
Dependencies
Maintainers
1
Versions
163
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polkadot/params - npm Package Compare versions

Comparing version 0.28.19 to 0.28.20

7

decode/value/method.js

@@ -29,7 +29,8 @@ "use strict";

const section = Object.values(_index.default).find(({
const _section = Object.values(_index.default).find(({
index
}) => index[0] === input[0]);
(0, _assert.default)(!(0, _undefined.default)(section), `Unable to find extrinsic section ${input[0]}`); // @ts-ignore checked above
(0, _assert.default)(!(0, _undefined.default)(_section), `Unable to find extrinsic section ${input[0]}`);
const section = _section;
const methods = section[isPublic ? 'public' : 'private'];

@@ -39,3 +40,3 @@ const extrinsic = Object.values(methods).find(({

}) => index[1] === input[1]);
(0, _assert.default)(!(0, _undefined.default)(extrinsic), `Unable to find method ${input[1]}`); // @ts-ignore checked above
(0, _assert.default)(!(0, _undefined.default)(extrinsic), `Unable to find method ${input[1]} for section '${section.name}'`); // @ts-ignore checked above

@@ -42,0 +43,0 @@ const params = extrinsic.params;

@@ -27,9 +27,9 @@ // Copyright 2017-2018 @polkadot/params authors & contributors

const section: Section<Extrinsics, any, any> | undefined = Object.values(extrinsics).find(({ index }) =>
const _section: Section<Extrinsics, any, any> | undefined = Object.values(extrinsics).find(({ index }) =>
index[0] === input[0]
);
assert(!isUndefined(section), `Unable to find extrinsic section ${input[0]}`);
assert(!isUndefined(_section), `Unable to find extrinsic section ${input[0]}`);
// @ts-ignore checked above
const section = _section as Section<Extrinsics, any, any>;
const methods = section[isPublic ? 'public' : 'private'];

@@ -40,3 +40,3 @@ const extrinsic = Object.values(methods).find(({ index }) =>

assert(!isUndefined(extrinsic), `Unable to find method ${input[1]}`);
assert(!isUndefined(extrinsic), `Unable to find method ${input[1]} for section '${section.name}'`);

@@ -43,0 +43,0 @@ // @ts-ignore checked above

{
"name": "@polkadot/params",
"version": "0.28.19",
"version": "0.28.20",
"description": "Type defintions for parameters as passed in calls",

@@ -32,5 +32,5 @@ "main": "index.js",

"@babel/runtime": "^7.0.0-rc.1",
"@polkadot/extrinsics": "^0.28.19",
"@polkadot/params": "^0.28.19",
"@polkadot/primitives": "^0.28.19",
"@polkadot/extrinsics": "^0.28.20",
"@polkadot/params": "^0.28.20",
"@polkadot/primitives": "^0.28.20",
"@polkadot/util": "^0.28.4",

@@ -37,0 +37,0 @@ "@polkadot/util-keyring": "^0.28.4"

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