@schukai/monster 1.15.5 → 1.17.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (150) hide show
  1. package/CHANGELOG +25 -0
  2. package/README.md +4 -4
  3. package/dist/modules/constants.js +1 -1
  4. package/dist/modules/constraints/abstract.js +1 -1
  5. package/dist/modules/constraints/abstractoperator.js +1 -1
  6. package/dist/modules/constraints/andoperator.js +1 -1
  7. package/dist/modules/constraints/invalid.js +1 -1
  8. package/dist/modules/constraints/isarray.js +1 -1
  9. package/dist/modules/constraints/isobject.js +1 -1
  10. package/dist/modules/constraints/namespace.js +2 -2
  11. package/dist/modules/constraints/oroperator.js +1 -1
  12. package/dist/modules/constraints/valid.js +1 -1
  13. package/dist/modules/data/buildmap.js +2 -2
  14. package/dist/modules/data/diff.js +2 -2
  15. package/dist/modules/data/extend.js +1 -1
  16. package/dist/modules/data/namespace.js +2 -2
  17. package/dist/modules/data/pathfinder.js +2 -2
  18. package/dist/modules/data/pipe.js +1 -1
  19. package/dist/modules/data/transformer.js +1 -1
  20. package/dist/modules/dom/assembler.js +1 -1
  21. package/dist/modules/dom/attributes.js +1 -1
  22. package/dist/modules/dom/constants.js +1 -1
  23. package/dist/modules/dom/customcontrol.js +1 -1
  24. package/dist/modules/dom/customelement.js +1 -1
  25. package/dist/modules/dom/events.js +1 -1
  26. package/dist/modules/dom/locale.js +1 -1
  27. package/dist/modules/dom/namespace.js +2 -2
  28. package/dist/modules/dom/template.js +1 -1
  29. package/dist/modules/dom/theme.js +1 -1
  30. package/dist/modules/dom/updater.js +1 -1
  31. package/dist/modules/dom/util.js +1 -1
  32. package/dist/modules/i18n/locale.js +1 -1
  33. package/dist/modules/i18n/namespace.js +2 -2
  34. package/dist/modules/i18n/provider.js +1 -1
  35. package/dist/modules/i18n/providers/fetch.js +1 -1
  36. package/dist/modules/i18n/providers/namespace.js +2 -2
  37. package/dist/modules/i18n/translations.js +1 -1
  38. package/dist/modules/logging/handler/console.js +2 -2
  39. package/dist/modules/logging/handler/namespace.js +2 -2
  40. package/dist/modules/logging/handler.js +1 -1
  41. package/dist/modules/logging/logentry.js +1 -1
  42. package/dist/modules/logging/logger.js +1 -1
  43. package/dist/modules/logging/namespace.js +2 -2
  44. package/dist/modules/math/namespace.js +2 -2
  45. package/dist/modules/math/random.js +1 -1
  46. package/dist/modules/monster.js +1 -1
  47. package/dist/modules/namespace.js +1 -1
  48. package/dist/modules/text/formatter.js +1 -1
  49. package/dist/modules/text/namespace.js +2 -2
  50. package/dist/modules/types/base.js +1 -1
  51. package/dist/modules/types/basewithoptions.js +1 -1
  52. package/dist/modules/types/global.js +1 -1
  53. package/dist/modules/types/id.js +1 -1
  54. package/dist/modules/types/is.js +1 -1
  55. package/dist/modules/types/namespace.js +2 -2
  56. package/dist/modules/types/observer.js +1 -1
  57. package/dist/modules/types/observerlist.js +1 -1
  58. package/dist/modules/types/proxyobserver.js +1 -1
  59. package/dist/modules/types/queue.js +1 -1
  60. package/dist/modules/types/randomid.js +1 -1
  61. package/dist/modules/types/stack.js +1 -1
  62. package/dist/modules/types/tokenlist.js +1 -1
  63. package/dist/modules/types/typeof.js +1 -1
  64. package/dist/modules/types/uniquequeue.js +1 -1
  65. package/dist/modules/types/validate.js +1 -1
  66. package/dist/modules/types/version.js +2 -2
  67. package/dist/modules/util/clone.js +1 -1
  68. package/dist/modules/util/comparator.js +1 -1
  69. package/dist/modules/util/freeze.js +1 -1
  70. package/dist/modules/util/namespace.js +2 -2
  71. package/dist/monster.dev.js +1293 -943
  72. package/dist/monster.dev.js.map +1 -1
  73. package/dist/monster.js +2 -2
  74. package/package.json +1 -1
  75. package/source/constraints/abstract.js +1 -1
  76. package/source/constraints/abstractoperator.js +1 -1
  77. package/source/constraints/andoperator.js +6 -6
  78. package/source/constraints/invalid.js +4 -4
  79. package/source/constraints/isarray.js +4 -4
  80. package/source/constraints/isobject.js +4 -4
  81. package/source/constraints/namespace.js +3 -2
  82. package/source/constraints/oroperator.js +6 -6
  83. package/source/constraints/valid.js +4 -4
  84. package/source/data/buildmap.js +245 -12
  85. package/source/data/diff.js +7 -6
  86. package/source/data/extend.js +3 -3
  87. package/source/data/namespace.js +3 -2
  88. package/source/data/pathfinder.js +15 -11
  89. package/source/data/pipe.js +4 -4
  90. package/source/data/transformer.js +4 -4
  91. package/source/dom/assembler.js +4 -4
  92. package/source/dom/attributes.js +36 -46
  93. package/source/dom/constants.js +16 -14
  94. package/source/dom/customcontrol.js +12 -8
  95. package/source/dom/customelement.js +24 -11
  96. package/source/dom/events.js +6 -6
  97. package/source/dom/locale.js +5 -4
  98. package/source/dom/namespace.js +3 -2
  99. package/source/dom/template.js +6 -6
  100. package/source/dom/theme.js +5 -4
  101. package/source/dom/updater.js +11 -5
  102. package/source/dom/util.js +9 -9
  103. package/source/i18n/locale.js +27 -15
  104. package/source/i18n/namespace.js +3 -2
  105. package/source/i18n/provider.js +3 -3
  106. package/source/i18n/providers/fetch.js +22 -6
  107. package/source/i18n/providers/namespace.js +3 -2
  108. package/source/i18n/translations.js +3 -3
  109. package/source/logging/handler/console.js +34 -10
  110. package/source/logging/handler/namespace.js +3 -2
  111. package/source/logging/handler.js +4 -4
  112. package/source/logging/logentry.js +5 -5
  113. package/source/logging/logger.js +13 -13
  114. package/source/logging/namespace.js +3 -2
  115. package/source/math/namespace.js +3 -2
  116. package/source/math/random.js +3 -3
  117. package/source/namespace.js +1 -1
  118. package/source/text/formatter.js +3 -3
  119. package/source/text/namespace.js +3 -2
  120. package/source/types/base.js +3 -3
  121. package/source/types/basewithoptions.js +3 -3
  122. package/source/types/global.js +7 -7
  123. package/source/types/id.js +3 -3
  124. package/source/types/is.js +30 -30
  125. package/source/types/namespace.js +3 -2
  126. package/source/types/observer.js +4 -4
  127. package/source/types/observerlist.js +3 -3
  128. package/source/types/proxyobserver.js +6 -6
  129. package/source/types/queue.js +4 -4
  130. package/source/types/randomid.js +3 -3
  131. package/source/types/stack.js +3 -3
  132. package/source/types/tokenlist.js +3 -3
  133. package/source/types/typeof.js +4 -4
  134. package/source/types/uniquequeue.js +3 -3
  135. package/source/types/validate.js +34 -34
  136. package/source/types/version.js +7 -7
  137. package/source/util/clone.js +3 -3
  138. package/source/util/comparator.js +37 -7
  139. package/source/util/freeze.js +4 -4
  140. package/source/util/namespace.js +3 -2
  141. package/test/cases/data/buildmap.js +242 -16
  142. package/test/cases/data/diff.js +36 -3
  143. package/test/cases/data/pathfinder.js +298 -196
  144. package/test/cases/logging/handler/console.js +20 -0
  145. package/test/cases/monster.js +1 -1
  146. package/test/web/import.js +1 -0
  147. package/test/web/monster-dev.html +3 -3
  148. package/test/web/monster.html +2 -2
  149. package/test/web/test.html +2 -2
  150. package/test/web/tests.js +3 -3
@@ -3,7 +3,8 @@
3
3
  /**
4
4
  * In this namespace you will find classes and methods for handling locale and localized texts.
5
5
  *
6
- * @namespace Monster/I18n
6
+ * @namespace Monster.I18n
7
+ * @memberOf Monster
7
8
  * @author schukai GmbH
8
9
  */
9
10
 
@@ -12,4 +13,4 @@
12
13
  * @private
13
14
  * @type {string}
14
15
  */
15
- const namespace = "Monster.I18n";
16
+ export const namespace = "Monster.I18n";
@@ -15,7 +15,7 @@ import {Translations} from "./translations.js"
15
15
  *
16
16
  * ```
17
17
  * <script type="module">
18
- * import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.15.5/dist/modules/i18n/provider.js';
18
+ * import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/i18n/provider.js';
19
19
  * console.log(new Monster.I18n.Provider())
20
20
  * </script>
21
21
  * ```
@@ -24,14 +24,14 @@ import {Translations} from "./translations.js"
24
24
  *
25
25
  * ```
26
26
  * <script type="module">
27
- * import {Provider} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.15.5/dist/modules/i18n/provider.js';
27
+ * import {Provider} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/i18n/provider.js';
28
28
  * console.log(new Provider())
29
29
  * </script>
30
30
  * ```
31
31
  *
32
32
  * @since 1.13.0
33
33
  * @copyright schukai GmbH
34
- * @memberOf Monster/I18n
34
+ * @memberOf Monster.I18n
35
35
  * @see https://datatracker.ietf.org/doc/html/rfc3066
36
36
  */
37
37
  class Provider extends BaseWithOptions {
@@ -23,11 +23,11 @@ const optionsSymbol = Symbol.for(PROPERTY_KEY_INTERNALDATA);
23
23
  /**
24
24
  * The fetch provider retrieves a JSON file from the given URL and returns a translation object.
25
25
  *
26
- * You can call the method via the monster namespace `new Monster.I18n.Provider()`.
26
+ * You can create the object via the monster namespace `new Monster.I18n.Provider.Fetch()`.
27
27
  *
28
28
  * ```
29
29
  * <script type="module">
30
- * import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.15.5/dist/modules/i18n/providers/fetch.js';
30
+ * import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/i18n/providers/fetch.js';
31
31
  * console.log(new Monster.I18n.Providers.Fetch())
32
32
  * </script>
33
33
  * ```
@@ -36,14 +36,14 @@ const optionsSymbol = Symbol.for(PROPERTY_KEY_INTERNALDATA);
36
36
  *
37
37
  * ```
38
38
  * <script type="module">
39
- * import {Fetch} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.15.5/dist/modules/i18n/providers/fetch.js';
39
+ * import {Fetch} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/i18n/providers/fetch.js';
40
40
  * console.log(new Fetch())
41
41
  * </script>
42
42
  * ```
43
43
  *
44
44
  * @since 1.13.0
45
45
  * @copyright schukai GmbH
46
- * @memberOf Monster/I18n/Providers
46
+ * @memberOf Monster.I18n.Providers
47
47
  * @see https://datatracker.ietf.org/doc/html/rfc3066
48
48
  */
49
49
  class Fetch extends Provider {
@@ -52,7 +52,7 @@ class Fetch extends Provider {
52
52
  * As options the key `fetch` can be passed. This config object is passed to the fetch method as init.
53
53
  *
54
54
  * @param {string|URL} url
55
- * @param {object} options
55
+ * @param {Object} options see {@link Monster.I18n.Providers.Fetch#defaults}
56
56
  * @see https://developer.mozilla.org/en-US/docs/Web/API/fetch
57
57
  */
58
58
  constructor(url, options) {
@@ -68,14 +68,30 @@ class Fetch extends Provider {
68
68
 
69
69
  validateString(url);
70
70
 
71
+ /**
72
+ * @property {string}
73
+ */
71
74
  this.url = url;
75
+
76
+ /**
77
+ * @private
78
+ * @property {Object} options
79
+ */
72
80
  this[optionsSymbol] = extend({}, super.defaults, this.defaults, validateObject(options));
73
81
 
74
82
  }
75
83
 
76
84
  /**
77
85
  * Defaults
78
- * @return {object}
86
+ *
87
+ * @property {Object} fetch
88
+ * @property {String} fetch.method=GET
89
+ * @property {String} fetch.mode=cors
90
+ * @property {String} fetch.cache=no-cache
91
+ * @property {String} fetch.credentials=omit
92
+ * @property {String} fetch.redirect=follow
93
+ * @property {String} fetch.referrerPolicy=no-referrer
94
+ *
79
95
  * @see https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API
80
96
  */
81
97
  get defaults() {
@@ -3,7 +3,8 @@
3
3
  /**
4
4
  * Namespace for different translation providers.
5
5
  *
6
- * @namespace Monster/I18n/Providers
6
+ * @namespace Monster.I18n.Providers
7
+ * @memberOf Monster.I18n
7
8
  * @author schukai GmbH
8
9
  */
9
10
 
@@ -12,4 +13,4 @@
12
13
  * @private
13
14
  * @type {string}
14
15
  */
15
- const namespace = "Monster.I18n.Providers";
16
+ export const namespace = "Monster.I18n.Providers";
@@ -17,7 +17,7 @@ import {Locale, parseLocale} from "./locale.js";
17
17
  *
18
18
  * ```
19
19
  * <script type="module">
20
- * import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.15.5/dist/modules/i18n/translations.js';
20
+ * import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/i18n/translations.js';
21
21
  * console.log(new Monster.I18n.Translations())
22
22
  * </script>
23
23
  * ```
@@ -26,7 +26,7 @@ import {Locale, parseLocale} from "./locale.js";
26
26
  *
27
27
  * ```
28
28
  * <script type="module">
29
- * import {Translations} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.15.5/dist/modules/i18n/translations.js';
29
+ * import {Translations} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/i18n/translations.js';
30
30
  * console.log(new Translations())
31
31
  * </script>
32
32
  * ```
@@ -45,7 +45,7 @@ import {Locale, parseLocale} from "./locale.js";
45
45
  *
46
46
  * @since 1.13.0
47
47
  * @copyright schukai GmbH
48
- * @memberOf Monster/I18n
48
+ * @memberOf Monster.I18n
49
49
  * @see https://datatracker.ietf.org/doc/html/rfc3066
50
50
  */
51
51
  class Translations extends Base {
@@ -4,39 +4,63 @@
4
4
  * @author schukai GmbH
5
5
  */
6
6
 
7
- import {Handler} from '../../logging/handler.js';
7
+ import {assignToNamespace, Monster} from '../../namespace.js';
8
8
  import {Base} from '../../types/base.js';
9
- import {assignToNamespace, Monster} from '../namespace.js';
9
+ import {getGlobalObject} from "../../types/global.js";
10
+ import {Handler} from '../handler.js';
11
+ import {LogEntry} from "../logentry.js";
10
12
 
11
13
  /**
12
- * you can call the method via the monster namespace `new Monster.Logging.Handler.ConsoleHandler()`.
14
+ * You can create an object of the class simply by using the namespace `new Monster.Logging.Handler.ConsoleHandler()`.
13
15
  *
14
16
  * ```
15
17
  * <script type="module">
16
- * import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.15.5/dist/modules/logging/handler/console.js';
18
+ * import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/logging/handler/console.js';
17
19
  * console.log(new Monster.Logging.Handler.ConsoleHandler())
18
20
  * </script>
19
21
  * ```
20
22
  *
21
- * Alternatively, you can also integrate this function individually.
23
+ * Alternatively, you can also integrate this class individually.
22
24
  *
23
25
  * ```
24
26
  * <script type="module">
25
- * import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.15.5/dist/modules/logging/handler/console.js';
27
+ * import {ConsoleHandler} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/logging/handler/console.js';
26
28
  * console.log(new ConsoleHandler())
27
29
  * </script>
28
30
  * ```
29
31
  *
30
32
  * @since 1.5.0
31
33
  * @copyright schukai GmbH
32
- * @memberOf Monster/Logging/Handler
34
+ * @memberOf Monster.Logging.Handler
33
35
  */
34
- class ConsoleHandler extends Base {
36
+ class ConsoleHandler extends Handler {
35
37
  constructor() {
36
38
  super();
37
39
  }
40
+
41
+
42
+ /**
43
+ * This is the central log function. this method must be
44
+ * overwritten by derived handlers with their own logic.
45
+ *
46
+ * ALL > TRACE > DEBUG > INFO > WARN > ERROR > FATAL > OFF (ALL = 0xff;OFF = 0x00;
47
+ *
48
+ * @param {LogEntry} entry
49
+ * @returns {boolean}
50
+ */
51
+ log(entry) {
52
+ if (super.log(entry)) {
53
+ let console = getGlobalObject('console');
54
+ if (!console) return false;
55
+ console.log(entry.toString());
56
+ return true;
57
+ }
58
+
59
+ return false;
60
+ }
61
+
38
62
  }
39
63
 
40
64
 
41
- assignToNamespace('Monster.Logging', ConsoleHandler);
42
- export {Monster, Handler};
65
+ assignToNamespace('Monster.Logging.Handler', ConsoleHandler);
66
+ export {Monster, ConsoleHandler};
@@ -1,7 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  /**
4
- * @namespace Monster/Logging/Handler
4
+ * @namespace Monster.Logging.Handler
5
+ * @memberOf Monster.Logging
5
6
  * @author schukai GmbH
6
7
  */
7
8
 
@@ -10,4 +11,4 @@
10
11
  * @private
11
12
  * @type {string}
12
13
  */
13
- const namespace = "Monster.Logging.Handler";
14
+ export const namespace = "Monster.Logging.Handler";
@@ -15,7 +15,7 @@ import {ALL, DEBUG, ERROR, FATAL, INFO, OFF, TRACE, WARN} from "./logger.js";
15
15
  *
16
16
  * ```
17
17
  * <script type="module">
18
- * import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.15.5/dist/modules/logging/handler.js';
18
+ * import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/logging/handler.js';
19
19
  * console.log(new Monster.Logging.Handler())
20
20
  * </script>
21
21
  * ```
@@ -24,14 +24,14 @@ import {ALL, DEBUG, ERROR, FATAL, INFO, OFF, TRACE, WARN} from "./logger.js";
24
24
  *
25
25
  * ```
26
26
  * <script type="module">
27
- * import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.15.5/dist/modules/logging/handler.js';
27
+ * import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/logging/handler.js';
28
28
  * console.log(new Handler())
29
29
  * </script>
30
30
  * ```
31
31
  *
32
32
  * @since 1.5.0
33
33
  * @copyright schukai GmbH
34
- * @memberOf Monster/Logging
34
+ * @memberOf Monster.Logging
35
35
  */
36
36
  class Handler extends Base {
37
37
  constructor() {
@@ -46,7 +46,7 @@ class Handler extends Base {
46
46
  }
47
47
 
48
48
  /**
49
- * this is the central log function. this method must be
49
+ * This is the central log function. this method must be
50
50
  * overwritten by derived handlers with their own logic.
51
51
  *
52
52
  * ALL > TRACE > DEBUG > INFO > WARN > ERROR > FATAL > OFF (ALL = 0xff;OFF = 0x00;
@@ -14,7 +14,7 @@ import {validateInteger} from '../types/validate.js';
14
14
  *
15
15
  * ```
16
16
  * <script type="module">
17
- * import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.15.5/dist/modules/logging/logentry.js';
17
+ * import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/logging/logentry.js';
18
18
  * console.log(new Monster.Logging.LogEntry())
19
19
  * </script>
20
20
  * ```
@@ -23,20 +23,20 @@ import {validateInteger} from '../types/validate.js';
23
23
  *
24
24
  * ```
25
25
  * <script type="module">
26
- * import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.15.5/dist/modules/logging/logentry.js';
26
+ * import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/logging/logentry.js';
27
27
  * console.log(new LogEntry())
28
28
  * </script>
29
29
  * ```
30
30
  *
31
31
  * @since 1.5.0
32
32
  * @copyright schukai GmbH
33
- * @memberOf Monster/Logging
33
+ * @memberOf Monster.Logging
34
34
  */
35
35
  class LogEntry extends Base {
36
36
  /**
37
37
  *
38
- * @param {int} loglevel
39
- * @param {*} args
38
+ * @param {Integer} loglevel
39
+ * @param {...*} args
40
40
  */
41
41
  constructor(loglevel, ...args) {
42
42
  super();
@@ -14,74 +14,74 @@ import {validateInteger, validateObject, validateString} from '../types/validate
14
14
  /**
15
15
  * ALL > TRACE > DEBUG > INFO > WARN > ERROR > FATAL > OFF
16
16
  * @type {number}
17
- * @memberOf Monster/Logging
17
+ * @memberOf Monster.Logging
18
18
  */
19
19
  const ALL = 255;
20
20
  /**
21
21
  * ALL > TRACE > DEBUG > INFO > WARN > ERROR > FATAL > OFF
22
22
  * @type {number}
23
- * @memberOf Monster/Logging
23
+ * @memberOf Monster.Logging
24
24
  */
25
25
  const TRACE = 64;
26
26
  /**
27
27
  * ALL > TRACE > DEBUG > INFO > WARN > ERROR > FATAL > OFF
28
28
  * @type {number}
29
- * @memberOf Monster/Logging
29
+ * @memberOf Monster.Logging
30
30
  */
31
31
  const DEBUG = 32;
32
32
  /**
33
33
  * ALL > TRACE > DEBUG > INFO > WARN > ERROR > FATAL > OFF
34
34
  * @type {number}
35
- * @memberOf Monster/Logging
35
+ * @memberOf Monster.Logging
36
36
  */
37
37
  const INFO = 16;
38
38
  /**
39
39
  * ALL > TRACE > DEBUG > INFO > WARN > ERROR > FATAL > OFF
40
40
  * @type {number}
41
- * @memberOf Monster/Logging
41
+ * @memberOf Monster.Logging
42
42
  */
43
43
  const WARN = 8;
44
44
  /**
45
45
  * ALL > TRACE > DEBUG > INFO > WARN > ERROR > FATAL > OFF
46
46
  * @type {number}
47
- * @memberOf Monster/Logging
47
+ * @memberOf Monster.Logging
48
48
  */
49
49
  const ERROR = 4;
50
50
  /**
51
51
  * ALL > TRACE > DEBUG > INFO > WARN > ERROR > FATAL > OFF
52
52
  * @type {number}
53
- * @memberOf Monster/Logging
53
+ * @memberOf Monster.Logging
54
54
  */
55
55
  const FATAL = 2;
56
56
  /**
57
57
  * ALL > TRACE > DEBUG > INFO > WARN > ERROR > FATAL > OFF
58
58
  * @type {number}
59
- * @memberOf Monster/Logging
59
+ * @memberOf Monster.Logging
60
60
  */
61
61
  const OFF = 0;
62
62
 
63
63
  /**
64
- * you can call the method via the monster namespace `new Monster.Logging.Logger()`.
64
+ * You can create an object of the class simply by using the namespace `new Monster.Logging.Logger()`.
65
65
  *
66
66
  * ```
67
67
  * <script type="module">
68
- * import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.15.5/dist/modules/logging/logger.js';
68
+ * import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/logging/logger.js';
69
69
  * console.log(new Monster.Logging.Logger())
70
70
  * </script>
71
71
  * ```
72
72
  *
73
- * Alternatively, you can also integrate this function individually.
73
+ * Alternatively, you can also integrate this class individually.
74
74
  *
75
75
  * ```
76
76
  * <script type="module">
77
- * import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.15.5/dist/modules/logging/logger.js';
77
+ * import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/logging/logger.js';
78
78
  * console.log(new Logger())
79
79
  * </script>
80
80
  * ```
81
81
  *
82
82
  * @since 1.5.0
83
83
  * @copyright schukai GmbH
84
- * @memberOf Monster/Logging
84
+ * @memberOf Monster.Logging
85
85
  */
86
86
  class Logger extends Base {
87
87
 
@@ -3,7 +3,8 @@
3
3
  /**
4
4
  * Namespace for logging.
5
5
  *
6
- * @namespace Monster/Logging
6
+ * @namespace Monster.Logging
7
+ * @memberOf Monster
7
8
  * @author schukai GmbH
8
9
  */
9
10
 
@@ -12,4 +13,4 @@
12
13
  * @private
13
14
  * @type {string}
14
15
  */
15
- const namespace = "Monster.Logging";
16
+ export const namespace = "Monster.Logging";
@@ -3,7 +3,8 @@
3
3
  /**
4
4
  * Namespace for math.
5
5
  *
6
- * @namespace Monster/Math
6
+ * @namespace Monster.Math
7
+ * @memberOf Monster
7
8
  * @author schukai GmbH
8
9
  */
9
10
 
@@ -12,4 +13,4 @@
12
13
  * @private
13
14
  * @type {string}
14
15
  */
15
- const namespace = "Monster.Math";
16
+ export const namespace = "Monster.Math";
@@ -15,7 +15,7 @@ import {getGlobal} from '../types/global.js';
15
15
  *
16
16
  * ```
17
17
  * <script type="module">
18
- * import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.15.5/dist/modules/math/random.js';
18
+ * import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/math/random.js';
19
19
  * console.log(Monster.Math.random(1,10)) // ↦ 5
20
20
  * </script>
21
21
  * ```
@@ -24,7 +24,7 @@ import {getGlobal} from '../types/global.js';
24
24
  *
25
25
  * ```
26
26
  * <script type="module">
27
- * import {random} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.15.5/dist/modules/math/random.js';
27
+ * import {random} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/math/random.js';
28
28
  * console.log(random(1,10)) // ↦ 5
29
29
  * </script>
30
30
  * ```
@@ -32,7 +32,7 @@ import {getGlobal} from '../types/global.js';
32
32
  * @param {number} min starting value of the definition set (default is 0)
33
33
  * @param {number} max end value of the definition set (default is 1000000000)
34
34
  * @returns {number}
35
- * @memberOf Monster/Math
35
+ * @memberOf Monster.Math
36
36
  * @throws {Error} missing crypt
37
37
  * @throws {Error} we cannot generate numbers larger than 53 bits.
38
38
  * @throws {Error} the distance is too small to create a random number.
@@ -65,7 +65,7 @@ export const Monster = new Namespace("Monster");
65
65
  *
66
66
  * ```
67
67
  * <script type="module">
68
- * import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.15.5/dist/modules/namespace.js';
68
+ * import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/namespace.js';
69
69
  * function hello() {
70
70
  * console.log('Hello World!');
71
71
  * }
@@ -18,7 +18,7 @@ import {validateObject, validateString} from "../types/validate.js";
18
18
  *
19
19
  * ```
20
20
  * <script type="module">
21
- * import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.15.5/dist/modules/text/formatter.js';
21
+ * import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/text/formatter.js';
22
22
  * console.log(new Monster.Text.Formatter())
23
23
  * </script>
24
24
  * ```
@@ -27,7 +27,7 @@ import {validateObject, validateString} from "../types/validate.js";
27
27
  *
28
28
  * ```
29
29
  * <script type="module">
30
- * import {Formatter} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.15.5/dist/modules/text/formatter.js';
30
+ * import {Formatter} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/text/formatter.js';
31
31
  * console.log(new Formatter())
32
32
  * </script>
33
33
  * ```
@@ -47,7 +47,7 @@ import {validateObject, validateString} from "../types/validate.js";
47
47
  *
48
48
  * @since 1.12.0
49
49
  * @copyright schukai GmbH
50
- * @memberOf Monster/Text
50
+ * @memberOf Monster.Text
51
51
  */
52
52
  class Formatter extends Base {
53
53
 
@@ -3,7 +3,8 @@
3
3
  /**
4
4
  * Namespace for texts.
5
5
  *
6
- * @namespace Monster/Text
6
+ * @namespace Monster.Text
7
+ * @memberOf Monster
7
8
  * @author schukai GmbH
8
9
  */
9
10
 
@@ -12,4 +13,4 @@
12
13
  * @private
13
14
  * @type {string}
14
15
  */
15
- const namespace = "Monster.Text";
16
+ export const namespace = "Monster.Text";
@@ -13,7 +13,7 @@ import {assignToNamespace, Monster} from '../namespace.js';
13
13
  *
14
14
  * ```
15
15
  * <script type="module">
16
- * import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.15.5/dist/modules/types/base.js';
16
+ * import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/base.js';
17
17
  * console.log(new Monster.Types.Base())
18
18
  * </script>
19
19
  * ```
@@ -22,7 +22,7 @@ import {assignToNamespace, Monster} from '../namespace.js';
22
22
  *
23
23
  * ```
24
24
  * <script type="module">
25
- * import {Base} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.15.5/dist/modules/types/base.js';
25
+ * import {Base} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/base.js';
26
26
  * console.log(new Base())
27
27
  * </script>
28
28
  * ```
@@ -31,7 +31,7 @@ import {assignToNamespace, Monster} from '../namespace.js';
31
31
  *
32
32
  * @since 1.5.0
33
33
  * @copyright schukai GmbH
34
- * @memberOf Monster/Types
34
+ * @memberOf Monster.Types
35
35
  */
36
36
  class Base extends Object {
37
37
 
@@ -23,7 +23,7 @@ const optionsSymbol = Symbol.for(PROPERTY_KEY_INTERNALDATA);
23
23
  *
24
24
  * ```
25
25
  * <script type="module">
26
- * import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.15.5/dist/modules/types/basewithoptions.js';
26
+ * import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/basewithoptions.js';
27
27
  * console.log(new Monster.Types.BaseWithOptions())
28
28
  * </script>
29
29
  * ```
@@ -32,7 +32,7 @@ const optionsSymbol = Symbol.for(PROPERTY_KEY_INTERNALDATA);
32
32
  *
33
33
  * ```
34
34
  * <script type="module">
35
- * import {BaseWithOptions} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.15.5/dist/modules/types/basewithoptions.js';
35
+ * import {BaseWithOptions} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/basewithoptions.js';
36
36
  * console.log(new BaseWithOptions())
37
37
  * </script>
38
38
  * ```
@@ -41,7 +41,7 @@ const optionsSymbol = Symbol.for(PROPERTY_KEY_INTERNALDATA);
41
41
  *
42
42
  * @since 1.13.0
43
43
  * @copyright schukai GmbH
44
- * @memberOf Monster/Types
44
+ * @memberOf Monster.Types
45
45
  */
46
46
  class BaseWithOptions extends Base {
47
47
 
@@ -64,7 +64,7 @@ let globalReference;
64
64
  * If globalThis is not available, it will be polyfilled
65
65
  *
66
66
  * @since 1.6.0
67
- * @memberOf Monster/Types
67
+ * @memberOf Monster.Types
68
68
  * @returns {objec} globalThis
69
69
  */
70
70
  function getGlobal() {
@@ -78,7 +78,7 @@ function getGlobal() {
78
78
  *
79
79
  * ```
80
80
  * <script type="module">
81
- * import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.15.5/dist/modules/types/global.js';
81
+ * import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/global.js';
82
82
  * console.log(Monster.Types.getGlobalObject('document')) // ↦ { }
83
83
  * </script>
84
84
  * ```
@@ -87,13 +87,13 @@ function getGlobal() {
87
87
  *
88
88
  * ```
89
89
  * <script type="module">
90
- * import {getGlobalObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.15.5/dist/modules/types/global.js';
90
+ * import {getGlobalObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/global.js';
91
91
  * console.log(getGlobalObject('document')) // ↦ { }
92
92
  * </script>
93
93
  * ```
94
94
  *
95
95
  * @since 1.6.0
96
- * @memberOf Monster/Types
96
+ * @memberOf Monster.Types
97
97
  * @param {string} name
98
98
  * @returns {objec}
99
99
  * @throws {Error} the object is not defined
@@ -115,7 +115,7 @@ function getGlobalObject(name) {
115
115
  *
116
116
  * ```
117
117
  * <script type="module">
118
- * import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.15.5/dist/modules/types/global.js';
118
+ * import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/global.js';
119
119
  * console.log(Monster.Types.getGlobalFunction('parseInt')) // ↦ f parseInt() { }
120
120
  * </script>
121
121
  * ```
@@ -124,13 +124,13 @@ function getGlobalObject(name) {
124
124
  *
125
125
  * ```
126
126
  * <script type="module">
127
- * import {getGlobalFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.15.5/dist/modules/types/global.js';
127
+ * import {getGlobalFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/global.js';
128
128
  * console.log(getGlobalFunction('parseInt')) // ↦ f parseInt() { }
129
129
  * </script>
130
130
  * ```
131
131
  *
132
132
  * @since 1.6.0
133
- * @memberOf Monster/Types
133
+ * @memberOf Monster.Types
134
134
  * @param {string} name
135
135
  * @returns {objec}
136
136
  * @throws {TypeError} value is not a function
@@ -24,7 +24,7 @@ let internalCounter = new Map;
24
24
  *
25
25
  * ```
26
26
  * <script type="module">
27
- * import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.15.5/dist/modules/types/id.js';
27
+ * import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/id.js';
28
28
  * console.log(new Monster.Types.ID())
29
29
  * </script>
30
30
  * ```
@@ -33,7 +33,7 @@ let internalCounter = new Map;
33
33
  *
34
34
  * ```
35
35
  * <script type="module">
36
- * import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.15.5/dist/modules/types/id.js';
36
+ * import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/id.js';
37
37
  * console.log(new ID())
38
38
  * </script>
39
39
  * ```
@@ -42,7 +42,7 @@ let internalCounter = new Map;
42
42
  *
43
43
  * @since 1.0.0
44
44
  * @copyright schukai GmbH
45
- * @memberOf Monster/Types
45
+ * @memberOf Monster.Types
46
46
  */
47
47
  class ID extends Base {
48
48