Comparing version 1.1.0 to 1.1.1
@@ -174,4 +174,4 @@ import { Serialize } from 'eosjs'; | ||
const tx = await this.getTransaction(ref.edit_tx || ref.tx); | ||
const action = tx.actions[0]; | ||
if (action.account !== this.contractAccount || action.name !== 'post') { | ||
const action = tx.actions.find((a) => a.account === this.contractAccount && a.name === 'post'); | ||
if (!action) { | ||
throw new Error('Post ref points to invalid tx'); | ||
@@ -183,4 +183,4 @@ } | ||
const tx = await this.getTransaction(ref); | ||
const action = tx.actions[0]; | ||
if (action.account !== this.contractAccount || action.name !== 'profile') { | ||
const action = tx.actions.find((a) => a.account === this.contractAccount && a.name === 'profile'); | ||
if (!action) { | ||
throw new Error('Profile ref points to invalid tx'); | ||
@@ -425,3 +425,3 @@ } | ||
if (!tx) { | ||
const numbers = [1, -1, 2, -2].map((i) => blockNum + i); | ||
const numbers = [1, 2, 3, 4, 5, 6, -1, -2].map((i) => blockNum + i); | ||
for (const num of numbers) { | ||
@@ -428,0 +428,0 @@ tx = await fetchTx(num); |
@@ -178,4 +178,4 @@ 'use strict'; | ||
const tx = await this.getTransaction(ref.edit_tx || ref.tx); | ||
const action = tx.actions[0]; | ||
if (action.account !== this.contractAccount || action.name !== 'post') { | ||
const action = tx.actions.find((a) => a.account === this.contractAccount && a.name === 'post'); | ||
if (!action) { | ||
throw new Error('Post ref points to invalid tx'); | ||
@@ -187,4 +187,4 @@ } | ||
const tx = await this.getTransaction(ref); | ||
const action = tx.actions[0]; | ||
if (action.account !== this.contractAccount || action.name !== 'profile') { | ||
const action = tx.actions.find((a) => a.account === this.contractAccount && a.name === 'profile'); | ||
if (!action) { | ||
throw new Error('Profile ref points to invalid tx'); | ||
@@ -429,3 +429,3 @@ } | ||
if (!tx) { | ||
const numbers = [1, -1, 2, -2].map((i) => blockNum + i); | ||
const numbers = [1, 2, 3, 4, 5, 6, -1, -2].map((i) => blockNum + i); | ||
for (const num of numbers) { | ||
@@ -432,0 +432,0 @@ tx = await fetchTx(num); |
{ | ||
"name": "decentium", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "JavaScript library for interacting with Decentium", | ||
@@ -10,3 +10,3 @@ "license": "MIT", | ||
"scripts": { | ||
"prepack": "make lib" | ||
"prepack": "make lib" | ||
}, | ||
@@ -19,3 +19,3 @@ "files": [ | ||
"dependencies": { | ||
"eosjs": "^20.0.0", | ||
"eosjs": "^20.0.3", | ||
"lru-cache": "^5.1.1", | ||
@@ -26,18 +26,18 @@ "xss": "^1.0.6" | ||
"@types/lru-cache": "^5.1.0", | ||
"@types/mocha": "^5.2.7", | ||
"@types/node": "^12.7.2", | ||
"@types/node-fetch": "^2.5.0", | ||
"eosio-abi2ts": "^1.2.0", | ||
"mocha": "^6.2.0", | ||
"@types/mocha": "^7.0.2", | ||
"@types/node": "^13.9.0", | ||
"@types/node-fetch": "^2.5.5", | ||
"eosio-abi2ts": "^1.2.2", | ||
"mocha": "^7.1.0", | ||
"node-fetch": "^2.6.0", | ||
"nyc": "^14.1.1", | ||
"prettier": "^1.18.2", | ||
"nyc": "^15.0.0", | ||
"prettier": "^1.19.1", | ||
"replay": "^2.4.0", | ||
"rollup": "^1.20.3", | ||
"rollup-plugin-typescript2": "^0.24.0", | ||
"ts-node": "^8.3.0", | ||
"tslint": "^5.19.0", | ||
"rollup": "^2.0.2", | ||
"rollup-plugin-typescript2": "^0.26.0", | ||
"ts-node": "^8.6.2", | ||
"tslint": "^6.0.0", | ||
"tslint-config-prettier": "^1.18.0", | ||
"typescript": "^3.6.2" | ||
"typescript": "^3.8.3" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
85208
Updatedeosjs@^20.0.3