Skip to content

Commit 98f2708

Browse files
Downgrade version to previous release and use package.json to extract version
1 parent 03f568c commit 98f2708

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/Local.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var childProcess = require('child_process'),
55
running = require('is-running'),
66
LocalBinary = require('./LocalBinary'),
77
LocalError = require('./LocalError'),
8-
config = require('../config'),
8+
version = require('../package.json').version,
99
psTree = require('ps-tree');
1010

1111
function Local(){
@@ -206,7 +206,7 @@ function Local(){
206206
};
207207

208208
this.getBinaryArgs = function(){
209-
var args = ['--daemon', this.opcode, '--log-file', this.logfile, '--source', `nodejs-${config.version}`];
209+
var args = ['--daemon', this.opcode, '--log-file', this.logfile, '--source', `nodejs-${version}`];
210210
if(this.key) {
211211
args.push('--key');
212212
args.push(this.key);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "browserstack-local",
3-
"version": "1.4.6",
3+
"version": "1.4.5",
44
"description": "Nodejs bindings for BrowserStack Local",
55
"engine": "^0.10.44",
66
"main": "index.js",

0 commit comments

Comments
 (0)