profoundjs 7.15.1 → 7.16.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.
package/setup/call.js CHANGED
@@ -2,23 +2,23 @@
2
2
 
3
3
  async function call() {
4
4
  // Load Profound.js
5
- var profoundjs = require("profoundjs");
5
+ const profoundjs = require("profoundjs");
6
6
 
7
7
  // Apply configuration
8
8
  await profoundjs.applyConfig();
9
9
 
10
10
  // Process command line parameters
11
- var login = (process.argv.includes("-login") || process.argv.includes("--login"));
11
+ const login = (process.argv.includes("-login") || process.argv.includes("--login"));
12
12
 
13
- var moduleName = process.argv[2];
13
+ const moduleName = process.argv[2];
14
14
  if (moduleName == null) {
15
15
  console.log("You must specify a module.");
16
16
  process.exit(1);
17
17
  }
18
18
 
19
- var parms = [];
20
- for (var i = 3; i < process.argv.length; i++) {
21
- var arg = process.argv[i];
19
+ const parms = [];
20
+ for (let i = 3; i < process.argv.length; i++) {
21
+ const arg = process.argv[i];
22
22
  if (arg.startsWith("-")) continue;
23
23
  parms.push(arg);
24
24
  }
@@ -1,4 +1,3 @@
1
-
2
1
  "use strict";
3
2
 
4
3
  const child_process = require("child_process");
@@ -1,4 +1,3 @@
1
-
2
1
  "use strict";
3
2
 
4
3
  const acorn = require("acorn");
@@ -191,7 +190,7 @@ module.exports = function(file) {
191
190
  parent
192
191
  });
193
192
  const callee = node.callee;
194
- let calleeName = getQualifiedName(callee);
193
+ const calleeName = getQualifiedName(callee);
195
194
  if (calleeName && calleeName.startsWith(pjsPrefix + ".")) {
196
195
  const internalName = "profound" + getCallName(calleeName.substring(pjsPrefix.length));
197
196
  let fn;
package/setup/install.js CHANGED
@@ -1,4 +1,3 @@
1
-
2
1
  "use strict";
3
2
 
4
3
  /*
Binary file
@@ -1,4 +1,3 @@
1
-
2
1
  "use strict";
3
2
 
4
3
  /*
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- var profoundjs = require("profoundjs");
3
+ const profoundjs = require("profoundjs");
4
4
  profoundjs.storeCredentials();
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- var profoundjs = require("profoundjs");
3
+ const profoundjs = require("profoundjs");
4
4
  profoundjs.storeOptions();