Skip to content

Commit 662ba69

Browse files
author
Pedro Pablo Bustamante Barrera
committed
feat: update dependencies and node version
1 parent f750a7d commit 662ba69

File tree

10 files changed

+1468
-1135
lines changed

10 files changed

+1468
-1135
lines changed

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

package-lock.json

Lines changed: 1407 additions & 1074 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 53 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,55 @@
11
{
2-
"name": "cryptomarket",
3-
"version": "1.0.6",
4-
"description": "The CryptoMarket for Node.js",
5-
"homepage": "https://www.cryptomkt.com",
6-
"engines": {
7-
"node": "*"
8-
},
9-
"main": "lib/index.js",
10-
"scripts": {
11-
"test": "env TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' mocha -r ts-node/register 'test/**/*.test.ts'"
12-
},
13-
"author": "Ismael Verdugo Zambra",
14-
"directories": {
15-
"lib": "./lib"
16-
},
17-
"repository": {
18-
"type": "git",
19-
"url": "https://github.com/cryptomkt/cryptomkt-node.git"
20-
},
21-
"bugs": {
22-
"url": "https://github.com/cryptomkt/cryptomkt-node/issues"
23-
},
24-
"keywords": [
25-
"api",
26-
"cryptomarket",
27-
"cryptomkt",
28-
"exchange",
29-
"ethereum",
30-
"ether",
31-
"bitcoin",
32-
"btc",
33-
"eos",
34-
"stellar",
35-
"xlm"
36-
],
37-
"license": "Apache-2.0",
38-
"dependencies": {
39-
"bigdecimal": "^0.6.1",
40-
"crypto-js": "^4.0.0",
41-
"node-fetch": "^2.6.1",
42-
"rxjs": "^6.6.3",
43-
"ws": "^7.4.0"
44-
},
45-
"devDependencies": {
46-
"@types/chai": "^4.3.1",
47-
"@types/crypto-js": "^4.1.1",
48-
"@types/mocha": "^9.1.1",
49-
"@types/node-fetch": "^2.6.2",
50-
"@types/ws": "^8.5.3",
51-
"chai": "^4.3.6",
52-
"mocha": "^8.4.0",
53-
"ts-node": "^10.8.1",
54-
"typescript": "^4.7.4"
55-
}
2+
"name": "cryptomarket",
3+
"version": "3.0.0",
4+
"description": "The CryptoMarket for Node.js",
5+
"homepage": "https://www.cryptomkt.com",
6+
"engines": {
7+
"node": ">=18"
8+
},
9+
"main": "lib/index.ts",
10+
"scripts": {
11+
"test": "env TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' mocha -r ts-node/register 'test/**/*.test.ts'"
12+
},
13+
"author": "Ismael Verdugo Zambra",
14+
"directories": {
15+
"lib": "./lib"
16+
},
17+
"repository": {
18+
"type": "git",
19+
"url": "https://github.com/cryptomkt/cryptomkt-node.git"
20+
},
21+
"bugs": {
22+
"url": "https://github.com/cryptomkt/cryptomkt-node/issues"
23+
},
24+
"keywords": [
25+
"api",
26+
"cryptomarket",
27+
"cryptomkt",
28+
"exchange",
29+
"ethereum",
30+
"ether",
31+
"bitcoin",
32+
"btc",
33+
"eos",
34+
"stellar",
35+
"xlm"
36+
],
37+
"license": "Apache-2.0",
38+
"dependencies": {
39+
"bigdecimal": "0.6.1",
40+
"crypto-js": "4.2.0",
41+
"node-fetch": "^2.6.1",
42+
"ws": "^7.4.0"
43+
},
44+
"devDependencies": {
45+
"@types/chai": "4.3.11",
46+
"@types/crypto-js": "4.2.2",
47+
"@types/mocha": "10.0.6",
48+
"@types/node-fetch": "2.6.11",
49+
"@types/ws": "^8.5.3",
50+
"chai": "^4.3.6",
51+
"mocha": "10.3.0",
52+
"ts-node": "10.9.2",
53+
"typescript": "5.3.3"
54+
}
5655
}

test/rest/spotTrading.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
goodTradingCommission,
1414
listSize,
1515
} from "../testHelpers";
16-
const keys = require("/home/ismael/cryptomarket/keys.json");
16+
const keys = require("../../keys.json");
1717

1818
describe("spot trading", () => {
1919
let client = new Client(keys.apiKey, keys.apiSecret);

test/rest/spotTradingHistory.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import assert from "assert";
22
import { Client } from "../../lib";
33
import { goodList, goodOrder, goodTrade } from "../testHelpers";
4-
const keys = require("/home/ismael/cryptomarket/keys.json");
4+
const keys = require("../../keys.json");
55

66
import "mocha";
77

test/rest/walletManagement.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
goodTransaction,
1313
} from "../testHelpers";
1414
import { Address } from "../../lib/models";
15-
const keys = require("/home/ismael/cryptomarket/keys.json");
15+
const keys = require("../../keys.json");
1616

1717
describe("wallet management", () => {
1818
let client = new Client(keys.apiKey, keys.apiSecret);

test/websocket/trading.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const keys = require("/home/ismael/cryptomarket/keys.json");
1+
const keys = require("../../keys.json");
22
import { expect } from "chai";
33
import "mocha";
44
import { WSTradingClient } from "../../lib";

test/websocket/tradingSubscriptions.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const keys = require("/home/ismael/cryptomarket/keys.json");
1+
const keys = require("../../keys.json");
22
import { expect } from "chai";
33
import { WSTradingClient } from "../../lib";
44
import { SUBSCRIPTION_MODE } from "../../lib/constants";

test/websocket/wallet.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const keys = require("/home/ismael/cryptomarket/keys.json");
1+
const keys = require("../../keys.json");
22
import { expect } from "chai";
33
import "mocha";
44
import { WSWalletClient } from "../../lib";

test/websocket/walletSubscriptions.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { expect } from "chai";
22
import { Client, WSWalletClient } from "../../lib/index";
33
import { Balance, Transaction } from "../../lib/models";
44
import { SECOND, goodBalance, goodTransaction, timeout } from "../testHelpers";
5-
const keys = require("/home/ismael/cryptomarket/keys.json");
5+
const keys = require("../../keys.json");
66

77
describe("wallet transactions", function () {
88
let wsclient: WSWalletClient;

0 commit comments

Comments
 (0)