Compare View
Commits (2)
Changes
Showing 2 changed files Inline Diff
config.js
1 | "use strict"; | 1 | "use strict"; |
2 | 2 | ||
3 | const fs = require('fs'); | 3 | const fs = require('fs'); |
4 | 4 | ||
5 | let configFile = process.cwd() + "/config.json"; | 5 | let configFile = process.cwd() + "/config.json"; |
6 | 6 | ||
7 | if (!fs.existsSync(configFile)) { | 7 | if (!fs.existsSync(configFile)) { |
8 | console.trace('Config file not found. Terminating'); | 8 | console.trace('Config file not found. Terminating'); |
9 | //setImmediate(function() { | 9 | //setImmediate(function() { |
10 | process.exit(1); | 10 | process.exit(1); |
11 | //}); | 11 | //}); |
12 | } | 12 | } |
13 | 13 | ||
14 | const config = require(configFile); | 14 | const config = require(configFile); |
15 | 15 | ||
16 | moment.locale(config.moment_locale || 'id'); | ||
17 | |||
16 | moment.locale(config.moment_locale || 'id'); | 18 | module.exports = config; |
17 | 19 |
package.json
1 | { | 1 | { |
2 | "name": "komodo-sdk", | 2 | "name": "komodo-sdk", |
3 | "version": "1.6.10", | 3 | "version": "1.7.0", |
4 | "description": "SDK for Komodo", | 4 | "description": "SDK for Komodo", |
5 | "main": "index.js", | 5 | "main": "index.js", |
6 | "scripts": { | 6 | "scripts": { |
7 | "test": "mocha", | 7 | "test": "mocha", |
8 | "postversion": "git push && git push --tags" | 8 | "postversion": "git push && git push --tags" |
9 | }, | 9 | }, |
10 | "repository": { | 10 | "repository": { |
11 | "type": "git", | 11 | "type": "git", |
12 | "url": "git@gitlab.kodesumber.com:komodo/komodo-sdk.git" | 12 | "url": "git@gitlab.kodesumber.com:komodo/komodo-sdk.git" |
13 | }, | 13 | }, |
14 | "keywords": [ | 14 | "keywords": [ |
15 | "ppob", | 15 | "ppob", |
16 | "payment", | 16 | "payment", |
17 | "komodo" | 17 | "komodo" |
18 | ], | 18 | ], |
19 | "author": "Adhidarma Hadiwinoto <gua@adhisimon.org>", | 19 | "author": "Adhidarma Hadiwinoto <gua@adhisimon.org>", |
20 | "license": "ISC", | 20 | "license": "ISC", |
21 | "dependencies": { | 21 | "dependencies": { |
22 | "basic-auth": "^2.0.0", | 22 | "basic-auth": "^2.0.0", |
23 | "lru-cache": "^4.1.1", | 23 | "lru-cache": "^4.1.1", |
24 | "request": "^2.81.0", | 24 | "request": "^2.81.0", |
25 | "strftime": "^0.10.0", | 25 | "strftime": "^0.10.0", |
26 | "winston": "^2.3.1", | 26 | "winston": "^2.3.1", |
27 | "winston-circular-buffer": "^1.0.0", | 27 | "winston-circular-buffer": "^1.0.0", |
28 | "winston-daily-rotate-file": "^1.4.6" | 28 | "winston-daily-rotate-file": "^1.4.6" |
29 | } | 29 | } |
30 | } | 30 | } |
31 | 31 |