kraken 0.4.0 → 1.0.1

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.
@@ -0,0 +1,37 @@
1
+ # This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2
+ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3
+
4
+ name: Node.js CI
5
+
6
+ on:
7
+ push:
8
+ branches:
9
+ - master
10
+ - develop
11
+ pull_request:
12
+ branches:
13
+ - '*'
14
+
15
+ jobs:
16
+ build:
17
+ runs-on: ubuntu-latest
18
+
19
+ strategy:
20
+ matrix:
21
+ node-version: [12.x, 14.x, 16.x, 17.x, 18.x, 20.x]
22
+ # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
23
+
24
+ env:
25
+ KRAKEN_API_KEY: ${{ secrets.KRAKEN_API_KEY }}
26
+ KRAKEN_API_SECRET: ${{ secrets.KRAKEN_API_SECRET }}
27
+
28
+ steps:
29
+ - uses: actions/checkout@v2
30
+ - name: Use Node.js ${{ matrix.node-version }}
31
+ uses: actions/setup-node@v2
32
+ with:
33
+ node-version: ${{ matrix.node-version }}
34
+ cache: 'npm'
35
+ - run: npm ci
36
+ - run: npm run build --if-present
37
+ - run: npm test
@@ -0,0 +1,46 @@
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://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3
+
4
+ name: Node.js Package
5
+
6
+ on:
7
+ release:
8
+ types: [published]
9
+
10
+ jobs:
11
+ build:
12
+ runs-on: ubuntu-latest
13
+ strategy:
14
+ matrix:
15
+ node-version: [14.x, 15.x, 16.x, 17.x, 18.x, 20.x]
16
+
17
+ env:
18
+ KRAKEN_API_KEY: ${{ secrets.KRAKEN_API_KEY }}
19
+ KRAKEN_API_SECRET: ${{ secrets.KRAKEN_API_SECRET }}
20
+
21
+ steps:
22
+ - uses: actions/checkout@v2
23
+ - name: Use Node.js ${{ matrix.node-version }}
24
+ uses: actions/setup-node@v2
25
+ with:
26
+ node-version: ${{ matrix.node-version }}
27
+ cache: 'npm'
28
+ - run: npm ci
29
+ - run: npm run build --if-present
30
+ - run: npm test
31
+
32
+ publish-npm:
33
+ needs: build
34
+ runs-on: ubuntu-latest
35
+ steps:
36
+ - uses: actions/checkout@v2
37
+ - uses: actions/setup-node@v2
38
+ with:
39
+ node-version: 18
40
+ registry-url: https://registry.npmjs.org/
41
+ - run: npm ci
42
+ - run: npm publish
43
+ env:
44
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
45
+ KRAKEN_API_KEY: ${{ secrets.KRAKEN_API_KEY }}
46
+ KRAKEN_API_SECRET: ${{ secrets.KRAKEN_API_SECRET }}
package/.jshintrc CHANGED
@@ -1,19 +1,21 @@
1
1
  {
2
- "maxerr" : 50, // {int} Maximum error before stopping
3
- "camelcase" : false, // true: Identifiers must be in camelCase
4
- "curly" : true, // true: Require {} for every new block or scope
5
- "eqeqeq" : true, // true: Require triple equals (===) for comparison
6
- "forin" : true, // true: Require filtering for..in loops with obj.hasOwnProperty()
7
- "freeze" : true, // true: prohibits overwriting prototypes of native objects such as Array, Date etc.
8
- "indent" : 4, // {int} Number of spaces to use for indentation
9
- "noempty" : true, // true: Prohibit use of empty blocks
10
- "nonbsp" : true, // true: Prohibit "non-breaking whitespace" characters.
11
- "nonew" : false, // true: Prohibit use of constructors for side-effects (without assignment)
12
- "quotmark" : "double",
13
- "undef" : true, // true: Require all non-global variables to be declared (prevents global leaks)
14
- "unused" : true, // true: Require all defined variables be used
15
- "strict" : false, // true: Requires all functions run in ES5 Strict Mode
16
- "devel" : false, // Development/debugging (alert, confirm, etc)
17
- "node" : true, // Node.js
18
- "globals" : {} // additional predefined global variables
19
- }
2
+ "maxerr": 50, // {int} Maximum error before stopping
3
+ "camelcase": false, // true: Identifiers must be in camelCase
4
+ "curly": true, // true: Require {} for every new block or scope
5
+ "eqeqeq": true, // true: Require triple equals (===) for comparison
6
+ "forin": true, // true: Require filtering for..in loops with obj.hasOwnProperty()
7
+ "freeze": true, // true: prohibits overwriting prototypes of native objects such as Array, Date etc.
8
+ "indent": 4, // {int} Number of spaces to use for indentation
9
+ "noempty": true, // true: Prohibit use of empty blocks
10
+ "nonbsp": true, // true: Prohibit "non-breaking whitespace" characters.
11
+ "nonew": false, // true: Prohibit use of constructors for side-effects (without assignment)
12
+ "quotmark": "single",
13
+ "undef": true, // true: Require all non-global variables to be declared (prevents global leaks)
14
+ "unused": true, // true: Require all defined variables be used
15
+ "strict": false, // true: Requires all functions run in ES5 Strict Mode
16
+ "devel": false, // Development/debugging (alert, confirm, etc)
17
+ "node": true, // Node.js
18
+ "globals": {}, // additional predefined global variables
19
+ "esversion": 10,
20
+ "asi": true // Missing semicolon warning off
21
+ }
package/LICENSE ADDED
@@ -0,0 +1,9 @@
1
+ LICENSE - MIT
2
+
3
+ Copyright (c) 2013-2021 Nekkra UG
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.