dcp-client 5.1.8 → 5.1.9
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/bin/dcp-config-value +5 -2
- package/dist/dcp-client-bundle.js +1 -1
- package/dist/dcp-client-bundle.js.map +1 -1
- package/index.js +105 -46
- package/libexec/sandbox/access-lists.js +1 -0
- package/package.json +2 -2
package/bin/dcp-config-value
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
const path = require('path')
|
|
13
13
|
const process = require('process')
|
|
14
|
+
const dcpClientLib = require('..');
|
|
14
15
|
const dcpClientOptions = {
|
|
15
16
|
bundleLocation: false,
|
|
16
17
|
dcpConfig: {
|
|
@@ -110,7 +111,9 @@ for (let i=2; i < process.argv.length; i++)
|
|
|
110
111
|
mods.push(stringModFn);
|
|
111
112
|
break;
|
|
112
113
|
case '--program-name':
|
|
113
|
-
dcpClientOptions.programName = optarg;
|
|
114
|
+
dcpClientOptions.programName = require('dcp/utils').expandPath(optarg);
|
|
115
|
+
if (optarg[0] === '/')
|
|
116
|
+
require.main.filename = optarg;
|
|
114
117
|
break;
|
|
115
118
|
case '--scheduler':
|
|
116
119
|
dcpClientOptions.scheduler = optarg;
|
|
@@ -160,4 +163,4 @@ async function show()
|
|
|
160
163
|
}
|
|
161
164
|
}
|
|
162
165
|
|
|
163
|
-
|
|
166
|
+
dcpClientLib.init(dcpClientOptions).then(show);
|