@ntlab/sipd-agr 3.0.0 → 3.2.0

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.
@@ -58,7 +58,7 @@ class Configuration {
58
58
  for (const a of ['url', 'username', 'password', 'year', 'dir']) {
59
59
  const v = Cmd.get(a);
60
60
  if (v) {
61
- this.config[a] = v;
61
+ this[a] = v;
62
62
  }
63
63
  }
64
64
  if (fs.existsSync(filename)) {
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "url":"https://sipd-ri.kemendagri.go.id",
3
- "mode":"download",
4
3
  "provinsi":"CHANGEME",
5
4
  "username":"CHANGEME",
6
5
  "password":"CHANGEME",
package/main.js CHANGED
@@ -33,7 +33,7 @@ if (!Cmd.parse() || (Cmd.get('help') && usage())) {
33
33
  }
34
34
 
35
35
  (function run() {
36
- new App(__dirname).run();
36
+ new App(process.cwd()).run();
37
37
  })();
38
38
 
39
39
  function usage() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ntlab/sipd-agr",
3
- "version": "3.0.0",
3
+ "version": "3.2.0",
4
4
  "description": "SIPD RI Kemendagri Automation is a web automation using Selenium to help manage data such as budgeting download",
5
5
  "main": "main.js",
6
6
  "author": "Toha <tohenk@yahoo.com>",