@terra-money/terra.js
Advanced tools
Comparing version 2.1.19 to 2.1.20
@@ -146,3 +146,3 @@ "use strict"; | ||
return [2 /*return*/, this.c | ||
.get("/cosmos/staking/v1beta1/validators/" + validator + "/delegations/" + delegator + "/unbonding_delegations", params) | ||
.get("/cosmos/staking/v1beta1/validators/" + validator + "/delegations/" + delegator + "/unbonding_delegation", params) | ||
.then(function (_a) { | ||
@@ -149,0 +149,0 @@ var data = _a.unbond; |
"use strict"; | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -37,10 +48,12 @@ exports.removeNull = exports.JSONSerializable = exports.prepareSignBytes = void 0; | ||
if (obj !== null && typeof obj === 'object') { | ||
Object.keys(obj).forEach(function (key) { | ||
if (obj[key] === null) { | ||
delete obj[key]; | ||
} | ||
else if (typeof obj[key] === 'object') { | ||
removeNull(obj[key]); | ||
} | ||
}); | ||
return Object.entries(obj) | ||
.filter(function (_a) { | ||
var v = _a[1]; | ||
return v != null; | ||
}) | ||
.reduce(function (acc, _a) { | ||
var _b; | ||
var k = _a[0], v = _a[1]; | ||
return (__assign(__assign({}, acc), (_b = {}, _b[k] = v === Object(v) && !Array.isArray(v) ? removeNull(v) : v, _b))); | ||
}, {}); | ||
} | ||
@@ -47,0 +60,0 @@ return obj; |
{ | ||
"name": "@terra-money/terra.js", | ||
"version": "2.1.19", | ||
"version": "2.1.20", | ||
"description": "The JavaScript SDK for Terra", | ||
@@ -28,3 +28,3 @@ "license": "MIT", | ||
"engines": { | ||
"node": ">=12" | ||
"node": ">=14" | ||
}, | ||
@@ -34,4 +34,6 @@ "scripts": { | ||
"test": "jest", | ||
"prettier": "prettier --write ./src/**/*.ts", | ||
"lint": "eslint src --ext .js,.jsx,.ts,.tsx", | ||
"format": "prettier --check ./src/**/*.ts", | ||
"format:fix": "prettier --write ./src/**/*.ts", | ||
"lint": "eslint src --ext .js,.ts", | ||
"lint:fix": "eslint src --ext .js,.ts --fix", | ||
"doc": "typedoc", | ||
@@ -42,4 +44,4 @@ "prepublishOnly": "npm run build" | ||
"./src/**/*.ts": [ | ||
"prettier --write", | ||
"eslint" | ||
"npm run lint:fix", | ||
"npm run format:fix" | ||
] | ||
@@ -61,4 +63,3 @@ }, | ||
"@types/jest": "^27.0.1", | ||
"@types/long": "^4.0.1", | ||
"@types/node": "^15.12.4", | ||
"@types/node": "^16.11.6", | ||
"@types/readable-stream": "^2.3.9", | ||
@@ -68,6 +69,6 @@ "@types/secp256k1": "^4.0.1", | ||
"@types/ws": "^7.4.0", | ||
"@typescript-eslint/eslint-plugin": "^4.11.1", | ||
"@typescript-eslint/parser": "^4.11.1", | ||
"@typescript-eslint/eslint-plugin": "^5.2.0", | ||
"@typescript-eslint/parser": "^5.2.0", | ||
"buffer": "^6.0.3", | ||
"eslint": "^7.16.0", | ||
"eslint": "^8.1.0", | ||
"google-protobuf": "^3.15.5", | ||
@@ -77,3 +78,2 @@ "husky": "^4.3.6", | ||
"lint-staged": "^10.5.3", | ||
"lodash.memoize": "^4.1.2", | ||
"prettier": "^2.2.1", | ||
@@ -100,3 +100,2 @@ "stream-browserify": "^3.0.0", | ||
"jscrypto": "^1.0.1", | ||
"long": "^4.0.0", | ||
"readable-stream": "^3.6.0", | ||
@@ -103,0 +102,0 @@ "secp256k1": "^4.0.2", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
13254084
13
25
35267
- Removedlong@^4.0.0