@webex/common-timers 2.42.0 → 2.43.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/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,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"}
1
+ {"version":3,"names":["safeSetTimeout","timer","setTimeout","apply","arguments","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,cAAcA,CAAA,EAAU;EACtC,IAAMC,KAAK,GAAGC,UAAU,CAAAC,KAAA,SAAAC,SAAA,CAAS;EAEjC,IAAIH,KAAK,CAACI,KAAK,EAAE;IACfJ,KAAK,CAACI,KAAK,EAAE;EACf;EAEA,OAAOJ,KAAK;AACd;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASK,eAAeA,CAAA,EAAU;EACvC,IAAMC,QAAQ,GAAGC,WAAW,CAAAL,KAAA,SAAAC,SAAA,CAAS;EAErC,IAAIG,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": "2.42.0",
3
+ "version": "2.43.1",
4
4
  "description": "Timer wrappers to prevent wedging a process open",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",