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

@chainx/types

Package Overview
Dependencies
Maintainers
2
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chainx/types - npm Package Compare versions

Comparing version 2.22.13 to 2.22.14

26

lib/codec/U8aFixed.js

@@ -55,2 +55,11 @@ "use strict";

}
}, {
key: "toRawType",
/**
* @description Returns the base runtime type name for this instance
*/
value: function toRawType() {
return "[u8;".concat(this.length, "]");
}
}], [{

@@ -69,2 +78,19 @@ key: "decodeU8aFixed",

}
}, {
key: "with",
value: function _with(bitLength) {
return (
/*#__PURE__*/
function (_U8aFixed) {
(0, _inherits2["default"])(_class, _U8aFixed);
function _class(value) {
(0, _classCallCheck2["default"])(this, _class);
return (0, _possibleConstructorReturn2["default"])(this, (0, _getPrototypeOf2["default"])(_class).call(this, value, bitLength));
}
return _class;
}(U8aFixed)
);
}
}]);

@@ -71,0 +97,0 @@ return U8aFixed;

20

lib/codec/utils/encodeTypes.js

@@ -102,15 +102,15 @@ "use strict";

var encoders = (_encoders = {}, (0, _defineProperty2["default"])(_encoders, _types.TypeDefInfo.BTreeMap, function (typeDef) {
return encodeWithParams(typeDef, 'BTreeMap');
return typeDef.displayName || encodeWithParams(typeDef, 'BTreeMap');
}), (0, _defineProperty2["default"])(_encoders, _types.TypeDefInfo.Compact, function (typeDef) {
return encodeWithParams(typeDef, 'Compact');
return typeDef.displayName || encodeWithParams(typeDef, 'Compact');
}), (0, _defineProperty2["default"])(_encoders, _types.TypeDefInfo.DoubleMap, function (typeDef) {
return encodeWithParams(typeDef, 'DoubleMap');
return typeDef.displayName || encodeWithParams(typeDef, 'DoubleMap');
}), (0, _defineProperty2["default"])(_encoders, _types.TypeDefInfo.Enum, function (typeDef) {
return encodeEnum(typeDef);
return typeDef.displayName || encodeEnum(typeDef);
}), (0, _defineProperty2["default"])(_encoders, _types.TypeDefInfo.Linkage, function (typeDef) {
return encodeWithParams(typeDef, 'Linkage');
return typeDef.displayName || encodeWithParams(typeDef, 'Linkage');
}), (0, _defineProperty2["default"])(_encoders, _types.TypeDefInfo.Null, function (typeDef) {
return 'Null';
}), (0, _defineProperty2["default"])(_encoders, _types.TypeDefInfo.Option, function (typeDef) {
return encodeWithParams(typeDef, 'Option');
return typeDef.displayName || encodeWithParams(typeDef, 'Option');
}), (0, _defineProperty2["default"])(_encoders, _types.TypeDefInfo.Plain, function (typeDef) {

@@ -123,9 +123,9 @@ return typeDef.displayName || typeDef.type;

}), (0, _defineProperty2["default"])(_encoders, _types.TypeDefInfo.Struct, function (typeDef) {
return encodeStruct(typeDef);
return typeDef.displayName || encodeStruct(typeDef);
}), (0, _defineProperty2["default"])(_encoders, _types.TypeDefInfo.Tuple, function (typeDef) {
return encodeTuple(typeDef);
return typeDef.displayName || encodeTuple(typeDef);
}), (0, _defineProperty2["default"])(_encoders, _types.TypeDefInfo.Vec, function (typeDef) {
return encodeWithParams(typeDef, 'Vec');
return typeDef.displayName || encodeWithParams(typeDef, 'Vec');
}), (0, _defineProperty2["default"])(_encoders, _types.TypeDefInfo.VecFixed, function (typeDef) {
return encodeVecFixed(typeDef);
return typeDef.displayName || encodeVecFixed(typeDef);
}), _encoders);

@@ -132,0 +132,0 @@

{
"name": "@chainx/types",
"version": "2.22.13",
"version": "2.22.14",
"main": "index.js",

@@ -11,3 +11,3 @@ "dependencies": {

},
"gitHead": "a7dda3e8ba55af7327fb1fa856d73e2a48baab78"
"gitHead": "e95ad2f7fcb7b20a1bbf7e511cf6bc153b6a46bc"
}
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