@netsells/simulate-user
Advanced tools
Comparing version 1.0.3 to 1.0.4
# Changelog | ||
## 1.0.4 (10/9/19) | ||
- Fix build | ||
- Remove erroneous console.log | ||
## 1.0.3 (10/9/19) | ||
@@ -4,0 +9,0 @@ |
@@ -42,3 +42,11 @@ "use strict"; | ||
} | ||
/** | ||
* Generate a instance using the same class constructor | ||
* | ||
* @param {*} ...args | ||
* | ||
* @returns {SimulateUser} | ||
*/ | ||
(0, _createClass2["default"])(SimulateUser, [{ | ||
@@ -905,5 +913,2 @@ key: "log", | ||
var Klass = this; | ||
console.log({ | ||
Klass: Klass | ||
}); | ||
@@ -910,0 +915,0 @@ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { |
{ | ||
"name": "@netsells/simulate-user", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Library for simulating user interactions using JavaScript in the browser", | ||
@@ -26,3 +26,3 @@ "main": "dist/index.js", | ||
"hooks": { | ||
"pre-commit": "yarn build && git add dist" | ||
"pre-commit": "yarn lint && yarn build && git add dist" | ||
} | ||
@@ -29,0 +29,0 @@ }, |
@@ -16,7 +16,12 @@ import { timeout, TimeoutError } from 'promise-timeout'; | ||
/** | ||
* Generate a instance using the same class constructor | ||
* | ||
* @param {*} ...args | ||
* | ||
* @returns {SimulateUser} | ||
*/ | ||
static build(...args) { | ||
const Klass = this; | ||
console.log({ Klass }); | ||
return new Klass(...args); | ||
@@ -23,0 +28,0 @@ } |
37747
1245