goose-parser
Advanced tools
Comparing version 0.5.0-alpha.3 to 0.5.0-alpha.4
@@ -8,4 +8,2 @@ /** | ||
'use strict'; | ||
const Action = require('./Action'); | ||
@@ -12,0 +10,0 @@ |
@@ -7,4 +7,2 @@ /** | ||
'use strict'; | ||
const Action = require('./Action'); | ||
@@ -14,4 +12,4 @@ | ||
async perform() { | ||
this.log('mousedown on %s', this._selector); | ||
return this._env.mousedown(this._selector); | ||
this.log('mouseDown on %s', this._selector); | ||
return this._env.mouseDown(this._selector); | ||
} | ||
@@ -18,0 +16,0 @@ } |
@@ -7,4 +7,2 @@ /** | ||
'use strict'; | ||
const Action = require('./Action'); | ||
@@ -14,3 +12,3 @@ | ||
perform () { | ||
this.log('mousemove on %s', this._selector); | ||
this.log('mouseMove on %s', this._selector); | ||
return this._env.mouseMove(this._selector); | ||
@@ -17,0 +15,0 @@ } |
@@ -11,4 +11,4 @@ /** | ||
async perform() { | ||
this.log('mouseup on %s', this._selector); | ||
return this._env.mouseup(this._selector); | ||
this.log('mouseUp on %s', this._selector); | ||
return this._env.mouseUp(this._selector); | ||
} | ||
@@ -15,0 +15,0 @@ } |
@@ -6,4 +6,2 @@ /** | ||
'use strict'; | ||
const Action = require('./Action'); | ||
@@ -10,0 +8,0 @@ const wait = require('../tools/wait'); |
@@ -161,5 +161,5 @@ const debugLib = require('debug'); | ||
*/ | ||
async parse(options) { | ||
async parse(options = {}) { | ||
debug('.parse() has called'); | ||
this._rules = options.rules; | ||
this._rules = options.rules || {}; | ||
this._preActions = options.actions || null; | ||
@@ -166,0 +166,0 @@ |
@@ -28,3 +28,3 @@ /** | ||
const timeoutId = setTimeout(() => { | ||
env.removeErrback(errBack); | ||
env.removeErrBack(errBack); | ||
clearInterval(intervalId); | ||
@@ -34,3 +34,3 @@ reject(new Error('Timeout for wait with arguments: ' + args.toString())); | ||
env.addErrback(errBack); | ||
env.addErrBack(errBack); | ||
@@ -45,3 +45,3 @@ const evalArgs = args.slice(0); | ||
clearInterval(intervalId); | ||
env.removeErrback(errBack); | ||
env.removeErrBack(errBack); | ||
resolve(); | ||
@@ -48,0 +48,0 @@ } |
@@ -1,3 +0,1 @@ | ||
'use strict'; | ||
const debug = require('debug')('Transform'); | ||
@@ -4,0 +2,0 @@ |
{ | ||
"name": "goose-parser", | ||
"version": "0.5.0-alpha.3", | ||
"version": "0.5.0-alpha.4", | ||
"main": "lib/Parser.js", | ||
@@ -5,0 +5,0 @@ "description": "Multi environment webpage parser", |
97608
2422