clientnode 4.0.1431 → 4.0.1433

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.
Files changed (143) hide show
  1. package/dist/Lock.d.ts +39 -0
  2. package/dist/Lock.js +94 -83
  3. package/dist/Logger.d.ts +102 -0
  4. package/dist/Logger.js +701 -163
  5. package/dist/Semaphore.d.ts +29 -0
  6. package/dist/Semaphore.js +81 -46
  7. package/dist/array.d.ts +150 -0
  8. package/dist/array.js +554 -337
  9. package/dist/bundle/Lock.js +111 -0
  10. package/dist/bundle/Logger.js +691 -0
  11. package/dist/bundle/Semaphore.js +100 -0
  12. package/dist/bundle/array.js +634 -0
  13. package/dist/bundle/cli.js +85 -0
  14. package/dist/bundle/constants.js +225 -0
  15. package/dist/bundle/context.js +243 -0
  16. package/dist/bundle/cookie.js +262 -0
  17. package/dist/bundle/data-transfer.js +727 -0
  18. package/dist/bundle/datetime.js +1037 -0
  19. package/dist/bundle/domNode.js +471 -0
  20. package/dist/bundle/expression/evaluators.js +1088 -0
  21. package/dist/bundle/expression/helper.js +106 -0
  22. package/dist/bundle/expression/index.js +1196 -0
  23. package/dist/bundle/expression/indicator-functions.js +235 -0
  24. package/dist/bundle/expression/type.js +50 -0
  25. package/dist/bundle/filesystem.js +374 -0
  26. package/dist/bundle/function.js +105 -0
  27. package/dist/bundle/index.js +2655 -0
  28. package/dist/bundle/indicators.js +445 -0
  29. package/dist/bundle/module.js +180 -0
  30. package/dist/bundle/number.js +411 -0
  31. package/dist/bundle/object.js +976 -0
  32. package/dist/bundle/process.js +275 -0
  33. package/dist/bundle/property-types.js +167 -0
  34. package/dist/bundle/scope.js +1779 -0
  35. package/dist/bundle/string.js +1067 -0
  36. package/dist/bundle/test-helper.js +676 -0
  37. package/dist/bundle/type.js +50 -0
  38. package/dist/bundle/utility.js +362 -0
  39. package/dist/cli.d.ts +31 -0
  40. package/dist/cli.js +71 -37
  41. package/dist/compatible/Lock.js +111 -0
  42. package/dist/compatible/Logger.js +691 -0
  43. package/dist/compatible/Semaphore.js +100 -0
  44. package/dist/compatible/array.js +634 -0
  45. package/dist/compatible/cli.js +85 -0
  46. package/dist/compatible/constants.js +225 -0
  47. package/dist/compatible/context.js +243 -0
  48. package/dist/compatible/cookie.js +262 -0
  49. package/dist/compatible/data-transfer.js +727 -0
  50. package/dist/compatible/datetime.js +1037 -0
  51. package/dist/compatible/domNode.js +471 -0
  52. package/dist/compatible/expression/evaluators.js +1088 -0
  53. package/dist/compatible/expression/helper.js +106 -0
  54. package/dist/compatible/expression/index.js +1196 -0
  55. package/dist/compatible/expression/indicator-functions.js +235 -0
  56. package/dist/compatible/expression/type.js +50 -0
  57. package/dist/compatible/filesystem.js +374 -0
  58. package/dist/compatible/function.js +105 -0
  59. package/dist/compatible/index.js +2655 -0
  60. package/dist/compatible/indicators.js +445 -0
  61. package/dist/compatible/module.js +180 -0
  62. package/dist/compatible/number.js +411 -0
  63. package/dist/compatible/object.js +976 -0
  64. package/dist/compatible/process.js +275 -0
  65. package/dist/compatible/property-types.js +167 -0
  66. package/dist/compatible/scope.js +1779 -0
  67. package/dist/compatible/string.js +1067 -0
  68. package/dist/compatible/test-helper.js +676 -0
  69. package/dist/compatible/type.js +50 -0
  70. package/dist/compatible/utility.js +362 -0
  71. package/dist/constants.d.ts +99 -0
  72. package/dist/constants.js +209 -110
  73. package/dist/context.d.ts +8 -0
  74. package/dist/context.js +229 -25
  75. package/dist/cookie.d.ts +31 -0
  76. package/dist/cookie.js +226 -48
  77. package/dist/data-transfer.d.ts +45 -0
  78. package/dist/data-transfer.js +711 -166
  79. package/dist/datetime.d.ts +37 -0
  80. package/dist/datetime.js +1032 -241
  81. package/dist/domNode.d.ts +82 -0
  82. package/dist/domNode.js +441 -277
  83. package/dist/expression/evaluators.d.ts +55 -0
  84. package/dist/expression/evaluators.js +1085 -234
  85. package/dist/expression/helper.d.ts +4 -0
  86. package/dist/expression/helper.js +135 -82
  87. package/dist/expression/index.d.ts +7 -0
  88. package/dist/expression/index.js +1218 -10
  89. package/dist/expression/indicator-functions.d.ts +14 -0
  90. package/dist/expression/indicator-functions.js +239 -21
  91. package/dist/expression/type.d.ts +70 -0
  92. package/dist/expression/type.js +34 -4
  93. package/dist/filesystem.d.ts +143 -0
  94. package/dist/filesystem.js +309 -323
  95. package/dist/function.d.ts +20 -0
  96. package/dist/function.js +125 -51
  97. package/dist/index.d.ts +23 -0
  98. package/dist/index.js +2678 -26
  99. package/dist/indicators.d.ts +68 -0
  100. package/dist/indicators.js +426 -68
  101. package/dist/module.d.ts +8 -0
  102. package/dist/module.js +180 -0
  103. package/dist/number.d.ts +35 -0
  104. package/dist/number.js +409 -25
  105. package/dist/object.d.ts +215 -0
  106. package/dist/object.js +844 -766
  107. package/dist/process.d.ts +22 -0
  108. package/dist/process.js +245 -39
  109. package/dist/property-types.d.ts +460 -0
  110. package/dist/property-types.js +157 -96
  111. package/dist/scope.d.ts +44 -0
  112. package/dist/scope.js +1796 -56
  113. package/dist/string.d.ts +299 -0
  114. package/dist/string.js +892 -595
  115. package/dist/test/Lock.d.ts +1 -0
  116. package/dist/test/Logger.d.ts +1 -0
  117. package/dist/test/Semaphore.d.ts +1 -0
  118. package/dist/test/array.d.ts +1 -0
  119. package/dist/test/cookie.d.ts +1 -0
  120. package/dist/test/data-transfer.d.ts +1 -0
  121. package/dist/test/datetime.d.ts +1 -0
  122. package/dist/test/domNode.d.ts +1 -0
  123. package/dist/test/expression/evaluators.d.ts +1 -0
  124. package/dist/test/expression/helper.d.ts +1 -0
  125. package/dist/test/expression/indicator-functions.d.ts +1 -0
  126. package/dist/test/filesystem.d.ts +1 -0
  127. package/dist/test/function.d.ts +1 -0
  128. package/dist/test/indicators.d.ts +1 -0
  129. package/dist/test/number.d.ts +1 -0
  130. package/dist/test/object.d.ts +1 -0
  131. package/dist/test/process.d.ts +1 -0
  132. package/dist/test/property-types.d.ts +1 -0
  133. package/dist/test/scope.d.ts +1 -0
  134. package/dist/test/string.d.ts +1 -0
  135. package/dist/test/utility.d.ts +1 -0
  136. package/dist/test-helper.d.ts +143 -0
  137. package/dist/test-helper.js +527 -172
  138. package/dist/type.d.ts +217 -0
  139. package/dist/type.js +37 -8
  140. package/dist/utility.d.ts +44 -0
  141. package/dist/utility.js +336 -91
  142. package/package.json +3 -3
  143. package/dist/require.js +0 -82
package/dist/cookie.js CHANGED
@@ -1,9 +1,29 @@
1
+ 'use strict';if(typeof module!=='undefined'&&module!==null&&eval('typeof require')!=='undefined'&&eval('require')!==null&&'main'in eval('require')&&eval('typeof require.main')!=='undefined'&&eval('require.main')!==null){var ORIGINAL_MAIN_MODULE=module;if(module!==eval('require.main')&&'paths'in module&&'paths'in eval('require.main')&&typeof __dirname!=='undefined'&&__dirname!==null)module.paths=eval('require.main.paths').concat(module.paths.filter(function(path){return eval('require.main.paths').includes(path)}))};if(typeof window==='undefined'||window===null)var window=(typeof global==='undefined'||global===null)?{}:global;(function webpackUniversalModuleDefinition(root, factory) {
2
+ if(typeof exports === 'object' && typeof module === 'object')
3
+ module.exports = factory();
4
+ else if(typeof define === 'function' && define.amd)
5
+ define([], factory);
6
+ else {
7
+ var a = factory();
8
+ for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
9
+ }
10
+ })(this, function() {
11
+ return /******/ (function() { // webpackBootstrap
12
+ /******/ var __webpack_modules__ = ({
13
+
14
+ /***/ 5:
15
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
16
+
17
+ "use strict";
18
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
19
+ /* harmony export */ globalContext: function() { return /* binding */ globalContext; }
20
+ /* harmony export */ });
21
+ /* unused harmony exports setGlobalContext, MAXIMAL_NUMBER_OF_ITERATIONS, NOOP, mockConsole */
22
+ /* unused harmony import specifier */ var CONSOLE_METHODS;
23
+ /* harmony import */ var _module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
1
24
  // #!/usr/bin/env babel-node
2
25
  // -*- coding: utf-8 -*-
3
- /** @module cookie */
4
- 'use strict';
5
-
6
- /* !
26
+ /** @module context *//* !
7
27
  region header
8
28
  [Project page](https://torben.website/clientnode)
9
29
 
@@ -16,34 +36,47 @@
16
36
  naming 3.0 unported license.
17
37
  See https://creativecommons.org/licenses/by/3.0/deed.de
18
38
  endregion
19
- */
20
- import { globalContext } from "./context.js";
39
+ */var _optionalRequire$defa,_optionalRequire;function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n=0,F=function F(){};return{s:F,n:function n(){return _n>=r.length?{done:!0}:{done:!1,value:r[_n++]}},e:function e(r){throw r},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function s(){t=t.call(r)},n:function n(){var r=t.next();return a=r.done,r},e:function e(r){u=!0,o=r},f:function f(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}var globalContext=(0,_module__WEBPACK_IMPORTED_MODULE_0__.determineGlobalContext)();var setGlobalContext=function setGlobalContext(context){globalContext=context};globalContext.fetch=globalContext.fetch?globalContext.fetch.bind(globalContext):(_optionalRequire$defa=(_optionalRequire=(0,_module__WEBPACK_IMPORTED_MODULE_0__.optionalRequire)("node-fetch"))===null||_optionalRequire===void 0?void 0:_optionalRequire.default)!==null&&_optionalRequire$defa!==void 0?_optionalRequire$defa:function(){for(var _len=arguments.length,parameters=new Array(_len),_key=0;_key<_len;_key++){parameters[_key]=arguments[_key]}return (0,_module__WEBPACK_IMPORTED_MODULE_0__.optionalImport)(/* webpackIgnore: true */"node-fetch").then(function(module){var _ref;return(_ref=module).default.apply(_ref,parameters)})};var MAXIMAL_NUMBER_OF_ITERATIONS=(/* unused pure expression or super */ null && ({value:100}));// A no-op dummy function.
40
+ var NOOP=function NOOP(){// Do nothing.
41
+ };var mockConsole=function mockConsole(){// Avoid errors in browsers that lack a console.
42
+ if(!Object.prototype.hasOwnProperty.call(globalContext,"console"))globalContext.console={};if(!globalContext.console)globalContext.console={};var _iterator=_createForOfIteratorHelper(CONSOLE_METHODS),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var methodName=_step.value;if(!(methodName in globalContext.console))globalContext.console[methodName]=NOOP}}catch(err){_iterator.e(err)}finally{_iterator.f()}};
21
43
 
22
- /**
44
+ /***/ }),
45
+
46
+ /***/ 23:
47
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
48
+
49
+ "use strict";
50
+ __webpack_require__.r(__webpack_exports__);
51
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
52
+ /* harmony export */ deleteCookie: function() { return /* binding */ deleteCookie; },
53
+ /* harmony export */ getCookie: function() { return /* binding */ getCookie; },
54
+ /* harmony export */ setCookie: function() { return /* binding */ setCookie; }
55
+ /* harmony export */ });
56
+ /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
57
+ // #!/usr/bin/env babel-node
58
+ // -*- coding: utf-8 -*-
59
+ /** @module cookie *//* !
60
+ region header
61
+ [Project page](https://torben.website/clientnode)
62
+
63
+ Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
64
+
65
+ License
66
+ -------
67
+
68
+ This library written by Torben Sickert stands under a creative commons
69
+ naming 3.0 unported license.
70
+ See https://creativecommons.org/licenses/by/3.0/deed.de
71
+ endregion
72
+ */function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+""}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n=0,F=function F(){};return{s:F,n:function n(){return _n>=r.length?{done:!0}:{done:!1,value:r[_n++]}},e:function e(r){throw r},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function s(){t=t.call(r)},n:function n(){var r=t.next();return a=r.done,r},e:function e(r){u=!0,o=r},f:function f(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}/**
23
73
  * Deletes a cookie value by given name.
24
74
  * @param name - Name to identify requested value.
25
- */
26
- export const deleteCookie = name => {
27
- if (globalContext.document) globalContext.document.cookie = `${name}=; Max-Age=-99999999;`;
28
- };
29
- /**
75
+ */var deleteCookie=function deleteCookie(name){if(_context__WEBPACK_IMPORTED_MODULE_0__.globalContext.document)_context__WEBPACK_IMPORTED_MODULE_0__.globalContext.document.cookie="".concat(name,"=; Max-Age=-99999999;")};/**
30
76
  * Gets a cookie value by given name.
31
77
  * @param name - Name to identify requested value.
32
78
  * @returns Requested value.
33
- */
34
- export const getCookie = name => {
35
- if (globalContext.document) {
36
- const key = `${name}=`;
37
- const decodedCookie = decodeURIComponent(globalContext.document.cookie);
38
- for (let date of decodedCookie.split(';')) {
39
- while (date.startsWith(' ')) date = date.substring(1);
40
- if (date.startsWith(key)) return date.substring(key.length, date.length);
41
- }
42
- return '';
43
- }
44
- return null;
45
- };
46
- /**
79
+ */var getCookie=function getCookie(name){if(_context__WEBPACK_IMPORTED_MODULE_0__.globalContext.document){var key="".concat(name,"=");var decodedCookie=decodeURIComponent(_context__WEBPACK_IMPORTED_MODULE_0__.globalContext.document.cookie);var _iterator=_createForOfIteratorHelper(decodedCookie.split(";")),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var date=_step.value;while(date.startsWith(" "))date=date.substring(1);if(date.startsWith(key))return date.substring(key.length,date.length)}}catch(err){_iterator.e(err)}finally{_iterator.f()}return""}return null};/**
47
80
  * Sets a cookie key-value-pair.
48
81
  * @param name - Name to identify given value.
49
82
  * @param value - Value to set.
@@ -60,25 +93,170 @@ export const getCookie = name => {
60
93
  * @param givenOptions.secure - Indicates if this cookie is only valid for
61
94
  * "https" connections.
62
95
  * @returns A boolean indicating whether cookie could be set or not.
63
- */
64
- export const setCookie = (name, value, givenOptions = {}) => {
65
- if (globalContext.document) {
66
- const options = {
67
- domain: '',
68
- httpOnly: false,
69
- minimal: false,
70
- numberOfDaysUntilExpiration: 365,
71
- path: '/',
72
- sameSite: 'Lax',
73
- secure: true,
74
- ...givenOptions
75
- };
76
- const now = new Date();
77
- now.setTime(now.getTime() + options.numberOfDaysUntilExpiration * 24 * 60 * 60 * 1000);
78
- if (options.domain === '' && globalContext.location?.hostname) options.domain = globalContext.location.hostname;
79
- globalContext.document.cookie = `${name}=${value}` + (options.minimal ? '' : `;Expires="${now.toUTCString()}` + `;Path=${options.path}` + `;Domain=${options.domain}` + (options.sameSite ? `;SameSite=${options.sameSite}` : '') + (options.secure ? ';Secure' : '') + (options.httpOnly ? ';HttpOnly' : ''));
80
- return true;
81
- }
82
- return false;
83
- };
84
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vc3JjL2Nvb2tpZS50cyJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyAjIS91c3IvYmluL2VudiBiYWJlbC1ub2RlXG4vLyAtKi0gY29kaW5nOiB1dGYtOCAtKi1cbi8qKiBAbW9kdWxlIGNvb2tpZSAqL1xuJ3VzZSBzdHJpY3QnXG4vKiAhXG4gICAgcmVnaW9uIGhlYWRlclxuICAgIFtQcm9qZWN0IHBhZ2VdKGh0dHBzOi8vdG9yYmVuLndlYnNpdGUvY2xpZW50bm9kZSlcblxuICAgIENvcHlyaWdodCBUb3JiZW4gU2lja2VydCAoaW5mb1tcIn5hd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IG51bWJlck9mRGF5c1VudGlsRXhwaXJhdGlvbjogMzY1LFxuICAgICAgICAgICAgcGF0aDogJy8nLFxuICAgICAgICAgICAgc2FtZVNpdGU6ICdMYXgnLFxuICAgICAgICAgICAgc2VjdXJlOiB0cnVlLFxuICAgICAgICAgICAgLi4uZ2l2ZW5PcHRpb25zXG4gICAgICAgIH1cblxuICAgICAgICBjb25zdCBub3cgPSBuZXcgRGF0ZSgpXG4gICAgICAgIG5vdy5zZXRUaW1lKFxuICAgICAgICAgICAgbm93LmdldFRpbWUoKSArXG4gICAgICAgICAgICAob3B0aW9ucy5udW1iZXJPZkRheXNVbnRpbEV4cGlyYXRpb24gKiAyNCAqIDYwICogNjAgKiAxMDAwKVxuICAgICAgICApXG5cbiAgICAgICAgaWYgKG9wdGlvbnMuZG9tYWluID09PSAnJyAmJiBnbG9iYWxDb250ZXh0LmxvY2F0aW9uPy5ob3N0bmFtZSlcbiAgICAgICAgICAgIG9wdGlvbnMuZG9tYWluID0gZ2xvYmFsQ29udGV4dC5sb2NhdGlvbi5ob3N0bmFtZVxuXG4gICAgICAgIGdsb2JhbENvbnRleHQuZG9jdW1lbnQuY29va2llID1cbiAgICAgICAgICAgIGAke25hbWV9PSR7dmFsdWV9YCArXG4gICAgICAgICAgICAoXG4gICAgICAgICAgICAgICAgb3B0aW9ucy5taW5pbWFsID9cbiAgICAgICAgICAgICAgICAgICAgJycgOlxuICAgICAgICAgICAgICAgICAgICAoXG4gICAgICAgICAgICAgICAgICAgICAgICBgO0V4cGlyZXM9XCIke25vdy50b1VUQ1N0cmluZygpfWAgK1xuICAgICAgICAgICAgICAgICAgICAgICAgYDtQYXRoPSR7b3B0aW9ucy5wYXRofWAgK1xuICAgICAgICAgICAgICAgICAgICAgICAgYDtEb21haW49JHtvcHRpb25zLmRvbWFpbn1gICtcbiAgICAgICAgICAgICAgICAgICAgICAgIChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBvcHRpb25zLnNhbWVTaXRlID9cbiAgIC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UFDLDJCQUEyQixHQUFHLEVBQUUsR0FBRyxFQUFFLEdBQUcsRUFBRSxHQUFHLElBQzFELENBQUM7SUFFRCxJQUFJLE9BQU8sQ0FBQyxNQUFNLEtBQUssRUFBRSxJQUFJLGFBQWEsQ0FBQyxRQUFRLEVBQUUsUUFBUSxFQUN6RCxPQUFPLENBQUMsTUFBTSxHQUFHLGFBQWEsQ0FBQyxRQUFRLENBQUMsUUFBUTtJQUVwRCxhQUFhLENBQUMsUUFBUSxDQUFDLE1BQU0sR0FDekIsR0FBRyxJQUFJLElBQUksS0FBSyxFQUFFLElBRWQsT0FBTyxDQUFDLE9BQU8sR0FDWCxFQUFFLEdBRUUsYUFBYSxHQUFHLENBQUMsV0FBVyxDQUFDLENBQUMsRUFBRSxHQUNoQyxTQUFTLE9BQU8sQ0FBQyxJQUFJLEVBQUUsR0FDdkIsV0FBVyxPQUFPLENBQUMsTUFBTSxFQUFFLElBRXZCLE9BQU8sQ0FBQyxRQUFRLEdBQ1osYUFBYSxPQUFPLENBQUMsUUFBUSxFQUFFLEdBQy9CLEVBQUUsQ0FDVCxJQUNBLE9BQU8sQ0FBQyxNQUFNLEdBQUcsU0FBUyxHQUFHLEVBQUUsQ0FBQyxJQUNoQyxPQUFPLENBQUMsUUFBUSxHQUFHLFdBQVcsR0FBRyxFQUFFLENBQ3ZDLENBQ1I7SUFFTCxPQUFPLElBQUk7RUFDZjtFQUVBLE9BQU8sS0FBSztBQUNoQixDQUFDIiwiaWdub3JlTGlzdCI6W119
96
+ */var setCookie=function setCookie(name,value,givenOptions){if(givenOptions===void 0){givenOptions={}}if(_context__WEBPACK_IMPORTED_MODULE_0__.globalContext.document){var _globalContext$locati;var options=_objectSpread({domain:"",httpOnly:false,minimal:false,numberOfDaysUntilExpiration:365,path:"/",sameSite:"Lax",secure:true},givenOptions);var now=new Date;now.setTime(now.getTime()+options.numberOfDaysUntilExpiration*24*60*60*1000);if(options.domain===""&&(_globalContext$locati=_context__WEBPACK_IMPORTED_MODULE_0__.globalContext.location)!==null&&_globalContext$locati!==void 0&&_globalContext$locati.hostname)options.domain=_context__WEBPACK_IMPORTED_MODULE_0__.globalContext.location.hostname;_context__WEBPACK_IMPORTED_MODULE_0__.globalContext.document.cookie="".concat(name,"=").concat(value)+(options.minimal?"":";Expires=\"".concat(now.toUTCString())+";Path=".concat(options.path)+";Domain=".concat(options.domain)+(options.sameSite?";SameSite=".concat(options.sameSite):"")+(options.secure?";Secure":"")+(options.httpOnly?";HttpOnly":""));return true}return false};
97
+
98
+ /***/ }),
99
+
100
+ /***/ 2:
101
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
102
+
103
+ "use strict";
104
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
105
+ /* harmony export */ determineGlobalContext: function() { return /* binding */ determineGlobalContext; },
106
+ /* harmony export */ optionalImport: function() { return /* binding */ optionalImport; },
107
+ /* harmony export */ optionalRequire: function() { return /* binding */ optionalRequire; }
108
+ /* harmony export */ });
109
+ /* unused harmony exports currentRequire, clearRequireCache, isolatedRequire, isImportSyntaxSupported */
110
+ /* module decorator */ module = __webpack_require__.hmd(module);
111
+ // #!/usr/bin/env babel-node
112
+ // -*- coding: utf-8 -*-
113
+ /** @module module *//* !
114
+ region header
115
+ [Project page](https://torben.website/clientnode)
116
+
117
+ Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
118
+
119
+ License
120
+ -------
121
+
122
+ This library written by Torben Sickert stands under a creative commons
123
+ naming 3.0 unported license.
124
+ See https://creativecommons.org/licenses/by/3.0/deed.de
125
+ endregion
126
+ */function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof Generator?n:Generator,u=Object.create(c.prototype);return _regeneratorDefine2(u,"_invoke",function(r,n,o){var i,c,u,f=0,p=o||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function d(t,r){return i=t,c=0,u=e,G.n=r,a}};function d(r,n){for(c=r,u=n,t=0;!y&&f&&!o&&t<p.length;t++){var o,i=p[t],d=G.p,l=i[2];r>3?(o=l===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(c=0,G.v=n,G.n=i[1]):d<l&&(o=r<3||i[0]>n||n>l)&&(i[4]=r,i[5]=n,G.n=l,c=0))}if(o||r>1)return a;throw y=!0,n}return function(o,p,l){if(f>1)throw TypeError("Generator is already running");for(y&&1===p&&d(p,l),c=p,u=l;(t=c<2?e:u)||!y;){i||(c?c<3?(c>1&&(G.n=-1),d(c,u)):G.n=u:G.v=u);try{if(f=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,c<2&&(c=0)}else 1===c&&(t=i.return)&&t.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e}else if((t=(y=G.n<0)?u:r.call(n,G))!==a)break}catch(t){i=e,c=1,u=t}finally{f=1}}return{value:t,done:y}}}(r,o,i),!0),u}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),_regeneratorDefine2(u),_regeneratorDefine2(u,o,"Generator"),_regeneratorDefine2(u,n,function(){return this}),_regeneratorDefine2(u,"toString",function(){return"[object Generator]"}),(_regenerator=function _regenerator(){return{w:i,m:f}})()}function _regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}_regeneratorDefine2=function _regeneratorDefine(e,r,n,t){function o(r,n){_regeneratorDefine2(e,r,function(e){return this._invoke(r,n,e)})}r?i?i(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:(o("next",0),o("throw",1),o("return",2))},_regeneratorDefine2(e,r,n,t)}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value}catch(n){return void e(n)}i.done?t(u):Promise.resolve(u).then(r,o)}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n)}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n)}_next(void 0)})}}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}function _arrayWithHoles(r){if(Array.isArray(r))return r}var determineGlobalContext=function determineGlobalContext(){if(typeof globalThis==="undefined"){if(typeof window==="undefined"){if(typeof __webpack_require__.g==="undefined")return false?0:module;if(Object.prototype.hasOwnProperty.call(__webpack_require__.g,"window"))return __webpack_require__.g.window;return __webpack_require__.g}return window}return globalThis};var globalContext=determineGlobalContext();// Make preprocessed require function available at runtime.
127
+ var currentRequire=typeof globalContext.require==="undefined"?null:globalContext.require;var optionalRequire=function optionalRequire(id){try{return currentRequire?currentRequire(id):null}catch(_unused){return null}};var clearRequireCache=function clearRequireCache(cache){if(cache===void 0){cache=(currentRequire===null||currentRequire===void 0?void 0:currentRequire.cache)||__webpack_require__.c}var backup={};for(var _i=0,_Object$entries=Object.entries(cache);_i<_Object$entries.length;_i++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i],2),key=_Object$entries$_i[0],_module=_Object$entries$_i[1];backup[key]=_module;delete cache[key]}return backup};var restoreRequireCache=function restoreRequireCache(cache,backup){if(cache===void 0){cache=(currentRequire===null||currentRequire===void 0?void 0:currentRequire.cache)||__webpack_require__.c}clearRequireCache();for(var _i2=0,_Object$entries2=Object.entries(backup);_i2<_Object$entries2.length;_i2++){var _Object$entries2$_i=_slicedToArray(_Object$entries2[_i2],2),key=_Object$entries2$_i[0],_module2=_Object$entries2$_i[1];cache[key]=_module2}};var isolatedRequire=function isolatedRequire(path,requireFunction){if(requireFunction===void 0){requireFunction=currentRequire||__webpack_require__(6)}var backup=clearRequireCache(requireFunction.cache);try{return requireFunction(path);// eslint-disable-next-line no-useless-catch
128
+ }catch(error){throw error}finally{restoreRequireCache(requireFunction.cache,backup)}};// Make preprocessed import function available at runtime.
129
+ var isImportSyntaxSupported=function isImportSyntaxSupported(){try{// eslint-disable-next-line @typescript-eslint/no-implied-eval
130
+ new Function("import(\"data:text/javascript,\")");return true}catch(_unused2){return false}};var optionalImport=/*#__PURE__*/function(){var _optionalImport=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(id,options){var _t,_t2;return _regenerator().w(function(_context){while(1)switch(_context.p=_context.n){case 0:if(options===void 0){options={}}_context.p=1;if(!isImportSyntaxSupported()){_context.n=3;break}_context.n=2;return new Function("options","return import('".concat(id,"', options)"))(options);case 2:_t=_context.v;_context.n=5;break;case 3:_context.n=4;return Promise.resolve(null);case 4:_t=_context.v;case 5:return _context.a(2,_t);case 6:_context.p=6;_t2=_context.v;_context.n=7;return Promise.resolve(null);case 7:return _context.a(2,_context.v)}},_callee,null,[[1,6]])}));function optionalImport(_x,_x2){return _optionalImport.apply(this,arguments)}return optionalImport}();
131
+
132
+ /***/ }),
133
+
134
+ /***/ 6:
135
+ /***/ (function(module) {
136
+
137
+ function webpackEmptyContext(req) {
138
+ var e = new Error("Cannot find module '" + req + "'");
139
+ e.code = 'MODULE_NOT_FOUND';
140
+ throw e;
141
+ }
142
+ webpackEmptyContext.keys = function() { return []; };
143
+ webpackEmptyContext.resolve = webpackEmptyContext;
144
+ webpackEmptyContext.id = 6;
145
+ module.exports = webpackEmptyContext;
146
+
147
+ /***/ })
148
+
149
+ /******/ });
150
+ /************************************************************************/
151
+ /******/ // The module cache
152
+ /******/ var __webpack_module_cache__ = {};
153
+ /******/
154
+ /******/ // The require function
155
+ /******/ function __webpack_require__(moduleId) {
156
+ /******/ // Check if module is in cache
157
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
158
+ /******/ if (cachedModule !== undefined) {
159
+ /******/ return cachedModule.exports;
160
+ /******/ }
161
+ /******/ // Create a new module (and put it into the cache)
162
+ /******/ var module = __webpack_module_cache__[moduleId] = {
163
+ /******/ id: moduleId,
164
+ /******/ loaded: false,
165
+ /******/ exports: {}
166
+ /******/ };
167
+ /******/
168
+ /******/ // Execute the module function
169
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
170
+ /******/
171
+ /******/ // Flag the module as loaded
172
+ /******/ module.loaded = true;
173
+ /******/
174
+ /******/ // Return the exports of the module
175
+ /******/ return module.exports;
176
+ /******/ }
177
+ /******/
178
+ /******/ // expose the module cache
179
+ /******/ __webpack_require__.c = __webpack_module_cache__;
180
+ /******/
181
+ /************************************************************************/
182
+ /******/ /* webpack/runtime/define property getters */
183
+ /******/ !function() {
184
+ /******/ // define getter/value functions for harmony exports
185
+ /******/ __webpack_require__.d = function(exports, definition) {
186
+ /******/ if(Array.isArray(definition)) {
187
+ /******/ var i = 0;
188
+ /******/ while(i < definition.length) {
189
+ /******/ var key = definition[i++];
190
+ /******/ var binding = definition[i++];
191
+ /******/ if(!__webpack_require__.o(exports, key)) {
192
+ /******/ if(binding === 0) {
193
+ /******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
194
+ /******/ } else {
195
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
196
+ /******/ }
197
+ /******/ } else if(binding === 0) { i++; }
198
+ /******/ }
199
+ /******/ } else {
200
+ /******/ for(var key in definition) {
201
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
202
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
203
+ /******/ }
204
+ /******/ }
205
+ /******/ }
206
+ /******/ };
207
+ /******/ }();
208
+ /******/
209
+ /******/ /* webpack/runtime/global */
210
+ /******/ !function() {
211
+ /******/ __webpack_require__.g = (function() {
212
+ /******/ if (typeof globalThis === 'object') return globalThis;
213
+ /******/ try {
214
+ /******/ return this || new Function('return this')();
215
+ /******/ } catch (e) {
216
+ /******/ if (typeof window === 'object') return window;
217
+ /******/ }
218
+ /******/ })();
219
+ /******/ }();
220
+ /******/
221
+ /******/ /* webpack/runtime/harmony module decorator */
222
+ /******/ !function() {
223
+ /******/ __webpack_require__.hmd = function(module) {
224
+ /******/ module = Object.create(module);
225
+ /******/ if (!module.children) module.children = [];
226
+ /******/ Object.defineProperty(module, 'exports', {
227
+ /******/ enumerable: true,
228
+ /******/ set: function() {
229
+ /******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
230
+ /******/ }
231
+ /******/ });
232
+ /******/ return module;
233
+ /******/ };
234
+ /******/ }();
235
+ /******/
236
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
237
+ /******/ !function() {
238
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
239
+ /******/ }();
240
+ /******/
241
+ /******/ /* webpack/runtime/make namespace object */
242
+ /******/ !function() {
243
+ /******/ // define __esModule on exports
244
+ /******/ __webpack_require__.r = function(exports) {
245
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
246
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
247
+ /******/ }
248
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
249
+ /******/ };
250
+ /******/ }();
251
+ /******/
252
+ /************************************************************************/
253
+ /******/
254
+ /******/ // module cache are used so entry inlining is disabled
255
+ /******/ // startup
256
+ /******/ // Load entry module and return exports
257
+ /******/ var __webpack_exports__ = __webpack_require__(23);
258
+ /******/
259
+ /******/ return __webpack_exports__;
260
+ /******/ })()
261
+ ;
262
+ });
@@ -0,0 +1,45 @@
1
+ import type { CheckReachabilityOptions, RecursivePartial } from './type';
2
+ /**
3
+ * Checks if given url response with given status code.
4
+ * @param url - Url to check reachability.
5
+ * @param givenOptions - Options to configure.
6
+ * @param givenOptions.wait - Boolean indicating if we should retry until a
7
+ * status code will be given.
8
+ * @param givenOptions.statusCodes - Status codes to check for.
9
+ * @param givenOptions.timeoutInSeconds - Delay after assuming given resource
10
+ * isn't available if no response is coming.
11
+ * @param givenOptions.pollIntervallInSeconds - Seconds between two tries to
12
+ * reach given url.
13
+ * @param givenOptions.options - Fetch options to use.
14
+ * @param givenOptions.expectedIntermediateStatusCodes - A list of expected but
15
+ * unwanted response codes. If detecting them waiting will continue until an
16
+ * expected (positive) code occurs or timeout is reached.
17
+ * @returns A promise which will be resolved if a request to given url has
18
+ * finished and resulting status code matches given expected status code.
19
+ * Otherwise, returned promise will be rejected.
20
+ */
21
+ export declare const checkReachability: (url: string, givenOptions?: RecursivePartial<CheckReachabilityOptions>) => ReturnType<typeof fetch>;
22
+ /**
23
+ * Checks if given url isn't reachable.
24
+ * @param url - Url to check reachability.
25
+ * @param givenOptions - Options to configure.
26
+ * @param givenOptions.wait - Boolean indicating if we should retry until a
27
+ * status code will be given.
28
+ * @param givenOptions.timeoutInSeconds - Delay after assuming given resource
29
+ * will stay available.
30
+ * @param givenOptions.pollIntervallInSeconds - Seconds between two tries to
31
+ * reach given url.
32
+ * @param givenOptions.statusCodes - Status codes to check for.
33
+ * @param givenOptions.options - Fetch options to use.
34
+ * @returns A promise which will be resolved if a request to given url couldn't
35
+ * be finished. Otherwise, returned promise will be rejected. If "wait" is set
36
+ * to "true" we will resolve to another promise still resolving when final
37
+ * timeout is reached or the endpoint is unreachable (after some tries).
38
+ */
39
+ export declare const checkUnreachability: (url: string, givenOptions?: RecursivePartial<CheckReachabilityOptions>) => Promise<Error | null | Promise<Error | null>>;
40
+ /**
41
+ * Preloads a given url via a temporary created image element.
42
+ * @param url - To image which should be downloaded.
43
+ * @returns A Promise indicating whether the image was loaded.
44
+ */
45
+ export declare const cacheImage: (url: string) => Promise<void>;