@bloks/utils
Advanced tools
Comparing version 3.3.0 to 3.3.1
{ | ||
"name": "@bloks/utils", | ||
"version": "3.3.0", | ||
"version": "3.3.1", | ||
"description": "", | ||
@@ -22,3 +22,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "6461a6be62efa7ac11727bf01ade82d164cddbe2" | ||
"gitHead": "5d81240ba8a864eec3d007e3dc179613b1fd53cb" | ||
} |
@@ -1,2 +0,2 @@ | ||
import { Serialize } from 'eosjs' | ||
import { Serialize } from '@jafri/eosjs2' | ||
import moment from 'moment' | ||
@@ -149,3 +149,3 @@ import { Long } from 'bytebuffer' | ||
const namebidsType = Serialize.getType(eosioTypes, 'name_bid') | ||
let newActions = [] | ||
@@ -162,3 +162,3 @@ if (actions) { | ||
} | ||
action['time'] = moment(action['action_trace']['block_time'] + 'Z').utc().valueOf() | ||
@@ -192,7 +192,7 @@ newActions.push(action) | ||
action['dbops'] = op | ||
if (op['op'] === 'INS') { | ||
const arrayNew = hexToUint8Array(op['new']['hex']) | ||
const bufferNew = new Serialize.SerialBuffer({ array: arrayNew }) | ||
action['oldRow'] = null | ||
@@ -206,3 +206,3 @@ action['newRow'] = types[op['table']].deserialize(bufferNew, new Serialize.SerializerState({ bytesAsUint8Array: false })) | ||
const bufferOld = new Serialize.SerialBuffer({ array: arrayOld }) | ||
action['oldRow'] = types[op['table']].deserialize(bufferOld, new Serialize.SerializerState({ bytesAsUint8Array: false })) | ||
@@ -214,3 +214,3 @@ action['newRow'] = types[op['table']].deserialize(bufferNew, new Serialize.SerializerState({ bytesAsUint8Array: false })) | ||
const bufferOld = new Serialize.SerialBuffer({ array: arrayOld }) | ||
action['oldRow'] = types[op['table']].deserialize(bufferOld, new Serialize.SerializerState({ bytesAsUint8Array: false })) | ||
@@ -222,3 +222,3 @@ action['newRow'] = null | ||
} | ||
action['time'] = moment(action['action_trace']['block_time'] + 'Z').utc().valueOf() | ||
@@ -225,0 +225,0 @@ newActions.push(action) |
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
29317
7
872