biz-a-cli 2.0.0 → 2.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.
Files changed (2) hide show
  1. package/bin/index.js +2 -5
  2. package/package.json +1 -1
package/bin/index.js CHANGED
@@ -8,9 +8,6 @@ const vm= require("vm");
8
8
  const { option, number } = require("yargs");
9
9
 
10
10
  const options = yargs
11
- //.usage("Usage: -c <company name> -p <password> -s <server url>")
12
- //.option("c", {alias:"name", describe: "Company Name", type:"string", demandOption:true})
13
- //.option("p", {alias:"password", describe:"Password", type: "string", demandOption: true})
14
11
  .option("s", {alias:"server", describe:"Server URL", type:"string", demandOption:true})
15
12
  .option("i", {alias:"dbindex", describe:"database index", type:number, demandOption:true})
16
13
  .argv;
@@ -19,8 +16,6 @@ const sendFile = async (filename, data)=>{
19
16
  const url = `http://${options.server}:212/fina/rest/TOrmMethod/%22setTemplate%22`
20
17
 
21
18
  const param = {_parameters: [options.dbindex, filename, data]};
22
- //console.log(`url:${url}`);
23
- //console.log(param);
24
19
  return await axios.post(url, param);
25
20
  }
26
21
 
@@ -66,6 +61,8 @@ const loopFiles = async (dir) =>{
66
61
  const files = await fs.readdir(dir);
67
62
  for (const file of files){
68
63
  //const p = path.join(dir, file);
64
+ if (file == 'package.json' || file == 'package-lock.json') continue;
65
+
69
66
  const stat = await fs.stat(file);
70
67
 
71
68
  if (stat.isFile()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz-a-cli",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "scripts": {