Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eos-detective

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eos-detective - npm Package Compare versions

Comparing version 0.4.0 to 0.5.0

dist/api/stats.d.ts

6

dist/api/transfers.d.ts

@@ -23,2 +23,8 @@ import { ApiResponse, TransfersData } from "../types/ApiResponse";

/**
* Chain. Current available values are `EOS` and `BOS`.
*
* @default `EOS`
*/
chain?: string;
/**
* Direction of transfers for the requested accounts.

@@ -25,0 +31,0 @@ *

1

dist/api/transfers.js

@@ -31,2 +31,3 @@ "use strict";

queryParams.symbol = options.symbol || "EOS";
queryParams.chain = options.chain || "EOS";
queryParams.direction = options.direction || "both";

@@ -33,0 +34,0 @@ queryParams.accumulated = options.accumulated === undefined ? true : options.accumulated;

@@ -97,2 +97,3 @@ "use strict";

axios_1.default.defaults.headers.common["X-Api-Key"] = exports.settings.token;
axios_1.default.defaults.headers.common.Authorization = `Bearer ${exports.settings.token}`;
if (!exports.settings.token) {

@@ -99,0 +100,0 @@ throw new Error("[settings.token] is required");

@@ -8,2 +8,3 @@ export * from "./types/Account";

export * from "./api/profile";
export * from "./api/stats";
export * from "./config";

@@ -10,0 +11,0 @@ import * as reports from "./api/reports";

@@ -19,2 +19,3 @@ "use strict";

__export(require("./api/profile"));
__export(require("./api/stats"));
__export(require("./config"));

@@ -21,0 +22,0 @@ // Scoped

@@ -7,2 +7,3 @@ import { Account } from "./Account";

private readonly _symbol;
private readonly _chain;
private readonly _contract;

@@ -13,3 +14,4 @@ private readonly _time?;

private readonly _trxId?;
constructor(from: string, to: string, quantity: number, symbol: string, contract: string, time?: Date, blockNum?: number, count?: number, trxId?: string);
private readonly _memo?;
constructor(from: string, to: string, quantity: number, symbol: string, chain: string, contract: string, time?: Date, blockNum?: number, count?: number, trxId?: string, memo?: string);
static fromJson(value: any): Transfer;

@@ -39,2 +41,6 @@ toString(): string;

/**
* @returns the chain.
*/
readonly chain: string;
/**
* @returns the token contract.

@@ -59,2 +65,6 @@ */

readonly trxId: string | undefined;
/**
* @returns the memo.
*/
readonly memo: string | undefined;
}

@@ -6,3 +6,3 @@ "use strict";

class Transfer {
constructor(from, to, quantity, symbol, contract, time, blockNum, count, trxId) {
constructor(from, to, quantity, symbol, chain, contract, time, blockNum, count, trxId, memo) {
this._from = new Account_1.Account(from);

@@ -12,2 +12,3 @@ this._to = new Account_1.Account(to);

this._symbol = symbol;
this._chain = chain;
this._contract = contract;

@@ -18,5 +19,6 @@ this._time = time;

this._trxId = trxId;
this._memo = memo;
}
static fromJson(value) {
return new Transfer(value.from, value.to, value.quantity, value.symbol, value.contract, value.time === undefined ? undefined : new Date(value.time), value.block_num, value.count, value.trx_id);
return new Transfer(value.from, value.to, value.quantity, value.symbol, value.chain, value.contract, value.time === undefined ? undefined : new Date(value.time), value.block_num, value.count, value.trx_id, value.memo);
}

@@ -32,2 +34,3 @@ toString() {

symbol: this._symbol,
chain: this._chain,
contract: this._contract,

@@ -37,3 +40,4 @@ time: this._time,

count: this._count,
trx_id: this._trxId
trx_id: this._trxId,
memo: this._memo
};

@@ -72,2 +76,8 @@ }

/**
* @returns the chain.
*/
get chain() {
return this._chain;
}
/**
* @returns the token contract.

@@ -102,4 +112,10 @@ */

}
/**
* @returns the memo.
*/
get memo() {
return this._memo;
}
}
exports.Transfer = Transfer;
//# sourceMappingURL=Transfer.js.map

2

package.json
{
"name": "eos-detective",
"version": "0.4.0",
"version": "0.5.0",
"description": "EOS Detective",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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

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