Skip to content

Commit

Permalink
chore: upgrade dependencies and bump version 1.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulBernier committed May 10, 2021
1 parent d35e13d commit 4921d76
Show file tree
Hide file tree
Showing 8 changed files with 20,596 additions and 5,431 deletions.
6 changes: 3 additions & 3 deletions dist/factom-struct.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/factom.js

Large diffs are not rendered by default.

1,752 changes: 884 additions & 868 deletions docs/doc.md

Large diffs are not rendered by default.

8 changes: 2 additions & 6 deletions factom.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -381,9 +381,7 @@ declare namespace factom {
*
* @param chainId Chain ID.
*/
getChainHead(
chainId: string
): Promise<{
getChainHead(chainId: string): Promise<{
/**
* keymr of the head of the chain
*/
Expand Down Expand Up @@ -1420,9 +1418,7 @@ declare namespace factom {
*
* @param minute Minute (between 1 and 10 included)
*/
getCommitsForMinute(
minute: number
): {
getCommitsForMinute(minute: number): {
version: number;
millis: number;
entryHash: string;
Expand Down
24,188 changes: 19,673 additions & 4,515 deletions package-lock.json

Large diffs are not rendered by default.

44 changes: 22 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "factom",
"version": "1.4.1",
"version": "1.4.2",
"description": "Library to build applications on the Factom blockchain",
"main": "src/factom.js",
"types": "factom.d.ts",
Expand Down Expand Up @@ -36,7 +36,7 @@
},
"homepage": "https://github.com/PaulBernier/factomjs#readme",
"dependencies": {
"axios": "^0.21.0",
"axios": "^0.21.1",
"base-58": "0.0.1",
"bluebird": "^3.7.2",
"hash.js": "^1.1.7",
Expand All @@ -45,28 +45,28 @@
"tweetnacl": "^1.0.3"
},
"devDependencies": {
"@babel/core": "^7.12.3",
"@babel/plugin-transform-async-to-generator": "^7.12.1",
"@babel/plugin-transform-modules-commonjs": "^7.12.1",
"@babel/plugin-transform-runtime": "^7.12.1",
"@babel/preset-env": "^7.12.1",
"@babel/runtime": "^7.12.5",
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"babel-loader": "^8.2.1",
"chai": "^4.2.0",
"@babel/core": "^7.14.0",
"@babel/plugin-transform-async-to-generator": "^7.13.0",
"@babel/plugin-transform-modules-commonjs": "^7.14.0",
"@babel/plugin-transform-runtime": "^7.13.15",
"@babel/preset-env": "^7.14.1",
"@babel/runtime": "^7.14.0",
"@commitlint/cli": "^12.1.1",
"@commitlint/config-conventional": "^12.1.1",
"babel-loader": "^8.2.2",
"chai": "^4.3.4",
"coveralls": "^3.1.0",
"documentation": "^13.1.0",
"dotenv": "^8.2.0",
"eslint": "^7.13.0",
"husky": "^4.3.0",
"lint-staged": "^10.5.1",
"mocha": "^8.2.1",
"documentation": "^13.2.5",
"dotenv": "^9.0.1",
"eslint": "^7.26.0",
"husky": "^6.0.0",
"lint-staged": "^11.0.0",
"mocha": "^8.4.0",
"nyc": "^15.1.0",
"prettier": "2.1.2",
"sinon": "^9.2.1",
"webpack": "^4.44.2",
"webpack-cli": "^4.2.0"
"prettier": "2.3.0",
"sinon": "^10.0.0",
"webpack": "^4.46.0",
"webpack-cli": "^4.7.0"
},
"husky": {
"hooks": {
Expand Down
5 changes: 2 additions & 3 deletions src/factom-event-emitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,8 @@ class FactomEventEmitter extends EventEmitter {
* and update subscribed transactions
*/
_handlePendingTransactions(fctAddress, pendingTransactions) {
const subscribedTransactionIds = this._factoidAddressPendingTransactionSubscriptions.get(
fctAddress
);
const subscribedTransactionIds =
this._factoidAddressPendingTransactionSubscriptions.get(fctAddress);

for (const pendingTransaction of pendingTransactions) {
if (!subscribedTransactionIds.has(pendingTransaction.transactionid)) {
Expand Down
20 changes: 8 additions & 12 deletions test/factom-event-emitter.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,8 @@ describe('Test FactomEventEmitter', () => {
eventType: 'newPendingTransaction',
topic: 'FA29eyMVJaZ2tbGqJ3M49gANaXMXCjgfKcJGe5mx8p4iQFCvFDAC',
};
const tokenizedPendingTransaction = FactomEventEmitter.getSubscriptionToken(
pendingTransaction
);
const tokenizedPendingTransaction =
FactomEventEmitter.getSubscriptionToken(pendingTransaction);
const mockPendingTransaction = getMockPendingTransaction();

const listener = (tx) => {
Expand Down Expand Up @@ -363,9 +362,8 @@ describe('Test FactomEventEmitter', () => {
eventType: 'newPendingTransaction',
topic: 'FA29eyMVJaZ2tbGqJ3M49gANaXMXCjgfKcJGe5mx8p4iQFCvFDAC',
};
const tokenizedPendingTransaction = FactomEventEmitter.getSubscriptionToken(
pendingTransaction
);
const tokenizedPendingTransaction =
FactomEventEmitter.getSubscriptionToken(pendingTransaction);
const mockPendingTransaction = getMockPendingTransaction();

const nullListener = () => {};
Expand Down Expand Up @@ -403,9 +401,8 @@ describe('Test FactomEventEmitter', () => {
eventType: 'newPendingTransaction',
topic: 'FA29eyMVJaZ2tbGqJ3M49gANaXMXCjgfKcJGe5mx8p4iQFCvFDAC',
};
const tokenizedPendingTransaction = FactomEventEmitter.getSubscriptionToken(
pendingTransaction
);
const tokenizedPendingTransaction =
FactomEventEmitter.getSubscriptionToken(pendingTransaction);
const mockPendingTransaction = getMockPendingTransaction();
let counter = 1;

Expand Down Expand Up @@ -446,9 +443,8 @@ describe('Test FactomEventEmitter', () => {
eventType: 'newPendingTransaction',
topic: 'FA29eyMVJaZ2tbGqJ3M49gANaXMXCjgfKcJGe5mx8p4iQFCvFDAC',
};
const tokenizedPendingTransaction = FactomEventEmitter.getSubscriptionToken(
pendingTransaction
);
const tokenizedPendingTransaction =
FactomEventEmitter.getSubscriptionToken(pendingTransaction);

const firstTransaction = getMockPendingTransaction();
const secondTransaction = getMockPendingTransaction('abc123');
Expand Down

0 comments on commit 4921d76

Please sign in to comment.