@wdio/utils 5.12.0 → 5.12.1

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/build/index.js CHANGED
@@ -15,9 +15,17 @@ Object.defineProperty(exports, "initialiseServices", {
15
15
  return _initialiseServices.default;
16
16
  }
17
17
  });
18
+ Object.defineProperty(exports, "isFunctionAsync", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _utils.isFunctionAsync;
22
+ }
23
+ });
18
24
 
19
25
  var _initialisePlugin = _interopRequireDefault(require("./initialisePlugin"));
20
26
 
21
27
  var _initialiseServices = _interopRequireDefault(require("./initialiseServices"));
22
28
 
29
+ var _utils = require("./utils");
30
+
23
31
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
package/build/utils.js ADDED
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.isFunctionAsync = isFunctionAsync;
7
+
8
+ function isFunctionAsync(fn) {
9
+ return fn.constructor && fn.constructor.name === 'AsyncFunction' || fn.name === 'async';
10
+ }
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@wdio/utils",
3
- "version": "5.12.0",
3
+ "version": "5.12.1",
4
4
  "description": "A WDIO helper utility to provide several utility functions used across the project.",
5
5
  "author": "Christian Bromann <christian@saucelabs.com>",
6
6
  "homepage": "https://github.com/webdriverio/webdriverio/tree/master/packages/wdio-utils",
7
7
  "license": "MIT",
8
8
  "main": "./build/index",
9
9
  "engines": {
10
- "node": ">= 10.13.0"
10
+ "node": ">= 8.11.0"
11
11
  },
12
12
  "scripts": {
13
13
  "build": "run-s clean compile",
@@ -31,11 +31,11 @@
31
31
  "url": "https://github.com/webdriverio/webdriverio/issues"
32
32
  },
33
33
  "dependencies": {
34
- "@wdio/logger": "^5.12.0",
34
+ "@wdio/logger": "^5.12.1",
35
35
  "deepmerge": "^4.0.0"
36
36
  },
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "187c8f044e252877533e53ee2b645f56416d5a41"
40
+ "gitHead": "848151e5fdcb8b694c1a273b9b69852c22875687"
41
41
  }