cryptobot-types 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,17 +1,19 @@
1
- {
2
- "name": "cryptobot-types",
3
- "version": "1.0.1",
4
- "description": "",
5
- "main": "index.js",
6
- "types": "types/index.d.ts",
7
- "registry": "https://registry.npmjs.org/",
8
- "scripts": {
9
- "build": "tsc -b"
10
- },
11
- "author": "",
12
- "license": "ISC",
13
- "dependencies": {
14
- "@types/node": "^20.8.0",
15
- "okx-api": "^1.1.3"
16
- }
17
- }
1
+ {
2
+ "name": "cryptobot-types",
3
+ "version": "1.0.3",
4
+ "description": "",
5
+ "types": "types/index.d.ts",
6
+ "registry": "https://registry.npmjs.org/",
7
+ "scripts": {
8
+ "build": "tsc -b"
9
+ },
10
+ "files": [
11
+ "types"
12
+ ],
13
+ "author": "",
14
+ "license": "ISC",
15
+ "dependencies": {
16
+ "@types/node": "^20.8.0",
17
+ "okx-api": "^1.1.3"
18
+ }
19
+ }
package/.gitattributes DELETED
@@ -1,2 +0,0 @@
1
- # Auto detect text files and perform LF normalization
2
- * text=auto
@@ -1,34 +0,0 @@
1
- # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2
- # For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3
-
4
- name: Node.js Package
5
-
6
- on:
7
- release:
8
- types: [created]
9
- push:
10
- branches: [main]
11
-
12
- jobs:
13
- build:
14
- runs-on: ubuntu-latest
15
- steps:
16
- - uses: actions/checkout@v3
17
- - uses: actions/setup-node@v3
18
- with:
19
- node-version: 16
20
- - run: npm ci
21
- - run: npm run build
22
-
23
- publish-npm:
24
- needs: build
25
- runs-on: ubuntu-latest
26
- steps:
27
- - uses: actions/checkout@v3
28
- - uses: actions/setup-node@v3
29
- with:
30
- node-version: 16
31
- registry-url: https://registry.npmjs.org/
32
- - run: npm publish
33
- env:
34
- NODE_AUTH_TOKEN: ${{secrets.npm_token}}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
package/dist/mongodb.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
package/dist/okx.js DELETED
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isOrderUpdateEvent = exports.isPositionUpdateEvent = exports.isTickerUpdateEvent = void 0;
4
- const isTickerUpdateEvent = (event) => {
5
- return event.arg.channel === "tickers";
6
- };
7
- exports.isTickerUpdateEvent = isTickerUpdateEvent;
8
- const isPositionUpdateEvent = (event) => {
9
- return event.arg.channel === "positions";
10
- };
11
- exports.isPositionUpdateEvent = isPositionUpdateEvent;
12
- const isOrderUpdateEvent = (event) => {
13
- return event.arg.channel === "orders";
14
- };
15
- exports.isOrderUpdateEvent = isOrderUpdateEvent;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
package/dist/strategy.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
package/dist/trading.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
package/tsconfig.json DELETED
@@ -1,13 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es6",
4
- "module": "commonjs",
5
- "outDir": "dist",
6
- "strict": true,
7
- "esModuleInterop": true,
8
- "skipLibCheck": true,
9
- "forceConsistentCasingInFileNames": true
10
- },
11
- "include": ["types/**/*"],
12
- "exclude": ["node_modules", "**/*.spec.ts"]
13
- }