@webex/common-timers 3.0.0-beta.13 → 3.0.0-beta.130

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/dist/index.js CHANGED
@@ -1,14 +1,11 @@
1
1
  "use strict";
2
2
 
3
3
  var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
4
-
5
4
  _Object$defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
-
9
7
  exports.safeSetInterval = safeSetInterval;
10
8
  exports.safeSetTimeout = safeSetTimeout;
11
-
12
9
  /*!
13
10
  * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
14
11
  */
@@ -22,13 +19,12 @@ exports.safeSetTimeout = safeSetTimeout;
22
19
  */
23
20
  function safeSetTimeout() {
24
21
  var timer = setTimeout.apply(void 0, arguments);
25
-
26
22
  if (timer.unref) {
27
23
  timer.unref();
28
24
  }
29
-
30
25
  return timer;
31
26
  }
27
+
32
28
  /**
33
29
  * Wrapper around setTimout which (in node) unrefs the returned timer to avoid
34
30
  * wedging the process open unexpectedly.
@@ -36,15 +32,11 @@ function safeSetTimeout() {
36
32
  * @protected
37
33
  * @returns {Timer|Number}
38
34
  */
39
-
40
-
41
35
  function safeSetInterval() {
42
36
  var interval = setInterval.apply(void 0, arguments);
43
-
44
37
  if (interval.unref) {
45
38
  interval.unref();
46
39
  }
47
-
48
40
  return interval;
49
41
  }
50
42
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["safeSetTimeout","timer","setTimeout","unref","safeSetInterval","interval","setInterval"],"sources":["index.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\n/**\n * Wrapper around setTimout which (in node) unrefs the returned timer to avoid\n * wedging the process open unexpectedly.\n * @param {Mixed} args\n * @protected\n * @returns {Timer|Number}\n */\nexport function safeSetTimeout(...args) {\n const timer = setTimeout(...args);\n\n if (timer.unref) {\n timer.unref();\n }\n\n return timer;\n}\n\n/**\n * Wrapper around setTimout which (in node) unrefs the returned timer to avoid\n * wedging the process open unexpectedly.\n * @param {Mixed} args\n * @protected\n * @returns {Timer|Number}\n */\nexport function safeSetInterval(...args) {\n const interval = setInterval(...args);\n\n if (interval.unref) {\n interval.unref();\n }\n\n return interval;\n}\n"],"mappings":";;;;;;;;;;;AAAA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,cAAT,GAAiC;EACtC,IAAMC,KAAK,GAAGC,UAAU,MAAV,mBAAd;;EAEA,IAAID,KAAK,CAACE,KAAV,EAAiB;IACfF,KAAK,CAACE,KAAN;EACD;;EAED,OAAOF,KAAP;AACD;AAED;AACA;AACA;AACA;AACA;AACA;AACA;;;AACO,SAASG,eAAT,GAAkC;EACvC,IAAMC,QAAQ,GAAGC,WAAW,MAAX,mBAAjB;;EAEA,IAAID,QAAQ,CAACF,KAAb,EAAoB;IAClBE,QAAQ,CAACF,KAAT;EACD;;EAED,OAAOE,QAAP;AACD"}
1
+ {"version":3,"names":["safeSetTimeout","timer","setTimeout","unref","safeSetInterval","interval","setInterval"],"sources":["index.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\n/**\n * Wrapper around setTimout which (in node) unrefs the returned timer to avoid\n * wedging the process open unexpectedly.\n * @param {Mixed} args\n * @protected\n * @returns {Timer|Number}\n */\nexport function safeSetTimeout(...args) {\n const timer = setTimeout(...args);\n\n if (timer.unref) {\n timer.unref();\n }\n\n return timer;\n}\n\n/**\n * Wrapper around setTimout which (in node) unrefs the returned timer to avoid\n * wedging the process open unexpectedly.\n * @param {Mixed} args\n * @protected\n * @returns {Timer|Number}\n */\nexport function safeSetInterval(...args) {\n const interval = setInterval(...args);\n\n if (interval.unref) {\n interval.unref();\n }\n\n return interval;\n}\n"],"mappings":";;;;;;;;AAAA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,cAAc,GAAU;EACtC,IAAMC,KAAK,GAAGC,UAAU,yBAAS;EAEjC,IAAID,KAAK,CAACE,KAAK,EAAE;IACfF,KAAK,CAACE,KAAK,EAAE;EACf;EAEA,OAAOF,KAAK;AACd;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASG,eAAe,GAAU;EACvC,IAAMC,QAAQ,GAAGC,WAAW,yBAAS;EAErC,IAAID,QAAQ,CAACF,KAAK,EAAE;IAClBE,QAAQ,CAACF,KAAK,EAAE;EAClB;EAEA,OAAOE,QAAQ;AACjB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webex/common-timers",
3
- "version": "3.0.0-beta.13",
3
+ "version": "3.0.0-beta.130",
4
4
  "description": "Timer wrappers to prevent wedging a process open",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",