adspower-browser 2.0.5 → 2.0.6

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/cli/index.js +4 -4
  2. package/package.json +1 -1
package/cli/index.js CHANGED
@@ -204,9 +204,9 @@ var ensureBrowserPath = () => {
204
204
  var getApiKeyAndPort = (options) => {
205
205
  const apiKey = options.apiKey;
206
206
  const port = options.port;
207
- if (apiKey && port) {
207
+ if (port) {
208
208
  return {
209
- apiKey,
209
+ apiKey: apiKey || "",
210
210
  port
211
211
  };
212
212
  }
@@ -228,8 +228,8 @@ var getApiKeyAndPort = (options) => {
228
228
  return result;
229
229
  };
230
230
  var hasRunning = async (options) => {
231
- const { apiKey, port } = options;
232
- if (apiKey && port) {
231
+ const { port } = options;
232
+ if (port) {
233
233
  return true;
234
234
  }
235
235
  const processInstance = readPidFile();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adspower-browser",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "main": "cli/index.js",
5
5
  "type": "commonjs",
6
6
  "bin": {