@schukai/monster 1.17.0 → 1.17.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG +6 -0
- package/README.md +3 -3
- package/dist/modules/constants.js +1 -1
- package/dist/modules/constraints/abstract.js +1 -1
- package/dist/modules/constraints/abstractoperator.js +1 -1
- package/dist/modules/constraints/andoperator.js +1 -1
- package/dist/modules/constraints/invalid.js +1 -1
- package/dist/modules/constraints/isarray.js +1 -1
- package/dist/modules/constraints/isobject.js +1 -1
- package/dist/modules/constraints/namespace.js +1 -1
- package/dist/modules/constraints/oroperator.js +1 -1
- package/dist/modules/constraints/valid.js +1 -1
- package/dist/modules/data/buildmap.js +1 -1
- package/dist/modules/data/diff.js +2 -2
- package/dist/modules/data/extend.js +1 -1
- package/dist/modules/data/namespace.js +1 -1
- package/dist/modules/data/pathfinder.js +1 -1
- package/dist/modules/data/pipe.js +1 -1
- package/dist/modules/data/transformer.js +1 -1
- package/dist/modules/dom/assembler.js +1 -1
- package/dist/modules/dom/attributes.js +1 -1
- package/dist/modules/dom/constants.js +1 -1
- package/dist/modules/dom/customcontrol.js +1 -1
- package/dist/modules/dom/customelement.js +1 -1
- package/dist/modules/dom/events.js +1 -1
- package/dist/modules/dom/locale.js +1 -1
- package/dist/modules/dom/namespace.js +1 -1
- package/dist/modules/dom/template.js +1 -1
- package/dist/modules/dom/theme.js +1 -1
- package/dist/modules/dom/updater.js +1 -1
- package/dist/modules/dom/util.js +1 -1
- package/dist/modules/i18n/locale.js +1 -1
- package/dist/modules/i18n/namespace.js +1 -1
- package/dist/modules/i18n/provider.js +1 -1
- package/dist/modules/i18n/providers/fetch.js +1 -1
- package/dist/modules/i18n/providers/namespace.js +1 -1
- package/dist/modules/i18n/translations.js +1 -1
- package/dist/modules/logging/handler/console.js +1 -1
- package/dist/modules/logging/handler/namespace.js +1 -1
- package/dist/modules/logging/handler.js +1 -1
- package/dist/modules/logging/logentry.js +1 -1
- package/dist/modules/logging/logger.js +1 -1
- package/dist/modules/logging/namespace.js +1 -1
- package/dist/modules/math/namespace.js +1 -1
- package/dist/modules/math/random.js +1 -1
- package/dist/modules/monster.js +1 -1
- package/dist/modules/namespace.js +1 -1
- package/dist/modules/text/formatter.js +1 -1
- package/dist/modules/text/namespace.js +1 -1
- package/dist/modules/types/base.js +1 -1
- package/dist/modules/types/basewithoptions.js +1 -1
- package/dist/modules/types/global.js +1 -1
- package/dist/modules/types/id.js +1 -1
- package/dist/modules/types/is.js +1 -1
- package/dist/modules/types/namespace.js +1 -1
- package/dist/modules/types/observer.js +1 -1
- package/dist/modules/types/observerlist.js +1 -1
- package/dist/modules/types/proxyobserver.js +1 -1
- package/dist/modules/types/queue.js +1 -1
- package/dist/modules/types/randomid.js +1 -1
- package/dist/modules/types/stack.js +1 -1
- package/dist/modules/types/tokenlist.js +1 -1
- package/dist/modules/types/typeof.js +1 -1
- package/dist/modules/types/uniquequeue.js +1 -1
- package/dist/modules/types/validate.js +1 -1
- package/dist/modules/types/version.js +2 -2
- package/dist/modules/util/clone.js +1 -1
- package/dist/modules/util/comparator.js +1 -1
- package/dist/modules/util/freeze.js +1 -1
- package/dist/modules/util/namespace.js +1 -1
- package/dist/monster.dev.js +295 -289
- package/dist/monster.dev.js.map +1 -1
- package/dist/monster.js +2 -2
- package/package.json +1 -1
- package/source/constraints/andoperator.js +5 -5
- package/source/constraints/invalid.js +3 -3
- package/source/constraints/isarray.js +3 -3
- package/source/constraints/isobject.js +3 -3
- package/source/constraints/oroperator.js +5 -5
- package/source/constraints/valid.js +3 -3
- package/source/data/buildmap.js +14 -11
- package/source/data/diff.js +6 -5
- package/source/data/extend.js +2 -2
- package/source/data/pathfinder.js +4 -4
- package/source/data/pipe.js +3 -3
- package/source/data/transformer.js +3 -3
- package/source/dom/assembler.js +2 -2
- package/source/dom/attributes.js +24 -24
- package/source/dom/customcontrol.js +2 -2
- package/source/dom/customelement.js +2 -2
- package/source/dom/events.js +4 -4
- package/source/dom/locale.js +2 -2
- package/source/dom/template.js +4 -4
- package/source/dom/theme.js +3 -3
- package/source/dom/updater.js +3 -3
- package/source/dom/util.js +6 -6
- package/source/i18n/locale.js +4 -4
- package/source/i18n/provider.js +2 -2
- package/source/i18n/providers/fetch.js +2 -2
- package/source/i18n/translations.js +2 -2
- package/source/logging/handler/console.js +2 -2
- package/source/logging/handler.js +2 -2
- package/source/logging/logentry.js +2 -2
- package/source/logging/logger.js +2 -2
- package/source/math/random.js +2 -2
- package/source/namespace.js +1 -1
- package/source/text/formatter.js +2 -2
- package/source/types/base.js +2 -2
- package/source/types/basewithoptions.js +2 -2
- package/source/types/global.js +4 -4
- package/source/types/id.js +2 -2
- package/source/types/is.js +20 -20
- package/source/types/observer.js +3 -3
- package/source/types/observerlist.js +2 -2
- package/source/types/proxyobserver.js +5 -5
- package/source/types/queue.js +3 -3
- package/source/types/randomid.js +2 -2
- package/source/types/stack.js +2 -2
- package/source/types/tokenlist.js +2 -2
- package/source/types/typeof.js +3 -3
- package/source/types/uniquequeue.js +2 -2
- package/source/types/validate.js +20 -20
- package/source/types/version.js +6 -6
- package/source/util/clone.js +2 -2
- package/source/util/comparator.js +3 -3
- package/source/util/freeze.js +2 -2
- package/test/cases/data/diff.js +36 -3
- package/test/cases/monster.js +1 -1
- package/test/web/monster-dev.html +3 -3
- package/test/web/monster.html +2 -2
- package/test/web/test.html +2 -2
- package/test/web/tests.js +2 -2
package/dist/monster.dev.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/** Monster 1.17.
|
1
|
+
/** Monster 1.17.1, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */
|
2
2
|
(function webpackUniversalModuleDefinition(root, factory) {
|
3
3
|
if(typeof exports === 'object' && typeof module === 'object')
|
4
4
|
module.exports = factory();
|
@@ -132,7 +132,7 @@ var Monster = new Namespace("Monster");
|
|
132
132
|
*
|
133
133
|
* ```
|
134
134
|
* <script type="module">
|
135
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
135
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/namespace.js';
|
136
136
|
* function hello() {
|
137
137
|
* console.log('Hello World!');
|
138
138
|
* }
|
@@ -374,7 +374,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
374
374
|
*
|
375
375
|
* ```
|
376
376
|
* <script type="module">
|
377
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
377
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/base.js';
|
378
378
|
* console.log(new Monster.Types.Base())
|
379
379
|
* </script>
|
380
380
|
* ```
|
@@ -383,7 +383,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
383
383
|
*
|
384
384
|
* ```
|
385
385
|
* <script type="module">
|
386
|
-
* import {Base} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
386
|
+
* import {Base} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/base.js';
|
387
387
|
* console.log(new Base())
|
388
388
|
* </script>
|
389
389
|
* ```
|
@@ -546,7 +546,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
546
546
|
*
|
547
547
|
* ```
|
548
548
|
* <script type="module">
|
549
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
549
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/constraints/andoperator.js';
|
550
550
|
* new Monster.Constraint.AndOperator();
|
551
551
|
* </script>
|
552
552
|
* ```
|
@@ -555,16 +555,16 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
555
555
|
*
|
556
556
|
* ```
|
557
557
|
* <script type="module">
|
558
|
-
* import {AndOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
558
|
+
* import {AndOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/constraints/andoperator.js';
|
559
559
|
* new AndOperator();
|
560
560
|
* </script>
|
561
561
|
* ```
|
562
562
|
*
|
563
563
|
* @example
|
564
564
|
*
|
565
|
-
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
566
|
-
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
567
|
-
* import {AndOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
565
|
+
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/constraints/valid.js';
|
566
|
+
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/constraints/invalid.js';
|
567
|
+
* import {AndOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/constraints/andoperator.js';
|
568
568
|
*
|
569
569
|
* new AndOperator(
|
570
570
|
* new Valid(), new Valid()).isValid()
|
@@ -661,7 +661,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
661
661
|
*
|
662
662
|
* ```
|
663
663
|
* <script type="module">
|
664
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
664
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/constraints/invalid.js';
|
665
665
|
* new Monster.Constraint.Invalid();
|
666
666
|
* </script>
|
667
667
|
* ```
|
@@ -670,14 +670,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
670
670
|
*
|
671
671
|
* ```
|
672
672
|
* <script type="module">
|
673
|
-
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
673
|
+
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/constraints/invalid.js';
|
674
674
|
* new Invalid();
|
675
675
|
* </script>
|
676
676
|
* ```
|
677
677
|
*
|
678
678
|
* @example
|
679
679
|
*
|
680
|
-
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
680
|
+
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/constraints/invalid.js';
|
681
681
|
*
|
682
682
|
* new Invalid().isValid()
|
683
683
|
* .then(()=>console.log(true))
|
@@ -767,7 +767,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
767
767
|
*
|
768
768
|
* ```
|
769
769
|
* <script type="module">
|
770
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
770
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/constraints/isarray.js';
|
771
771
|
* console.log(new Monster.Constraint.IsArray())
|
772
772
|
* </script>
|
773
773
|
* ```
|
@@ -776,14 +776,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
776
776
|
*
|
777
777
|
* ```
|
778
778
|
* <script type="module">
|
779
|
-
* import {IsArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
779
|
+
* import {IsArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/constraints/isarray.js';
|
780
780
|
* console.log(new IsArray())
|
781
781
|
* </script>
|
782
782
|
* ```
|
783
783
|
*
|
784
784
|
* @example
|
785
785
|
*
|
786
|
-
* import {IsArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
786
|
+
* import {IsArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/constraints/isarray.js';
|
787
787
|
*
|
788
788
|
* new IsArray()
|
789
789
|
* .isValid([])
|
@@ -869,7 +869,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
869
869
|
*
|
870
870
|
* ```
|
871
871
|
* <script type="module">
|
872
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
872
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/is.js';
|
873
873
|
* console.log(Monster.Types.isIterable(null)) // ↦ false
|
874
874
|
* console.log(Monster.Types.isIterable('hello')) // ↦ true
|
875
875
|
* console.log(Monster.Types.isIterable([])) // ↦ true
|
@@ -880,7 +880,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
880
880
|
*
|
881
881
|
* ```
|
882
882
|
* <script type="module">
|
883
|
-
* import {isIterable} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
883
|
+
* import {isIterable} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/is.js';
|
884
884
|
* console.log(isIterable(null)) // ↦ false
|
885
885
|
* console.log(isIterable('hello')) // ↦ true
|
886
886
|
* console.log(isIterable([])) // ↦ true
|
@@ -906,7 +906,7 @@ function isIterable(value) {
|
|
906
906
|
*
|
907
907
|
* ```
|
908
908
|
* <script type="module">
|
909
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
909
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/is.js';
|
910
910
|
* console.log(Monster.Types.isPrimitive('2')) // ↦ false
|
911
911
|
* console.log(Monster.Types.isPrimitive([])) // ↦ true
|
912
912
|
* </script>
|
@@ -916,7 +916,7 @@ function isIterable(value) {
|
|
916
916
|
*
|
917
917
|
* ```
|
918
918
|
* <script type="module">
|
919
|
-
* import {isPrimitive} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
919
|
+
* import {isPrimitive} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/is.js';
|
920
920
|
* console.log(isPrimitive('2')) // ↦ true
|
921
921
|
* console.log(isPrimitive([])) // ↦ false
|
922
922
|
* </script>
|
@@ -952,7 +952,7 @@ function isPrimitive(value) {
|
|
952
952
|
*
|
953
953
|
* ```
|
954
954
|
* <script type="module">
|
955
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
955
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/is.js';
|
956
956
|
* console.log(Monster.Types.isSymbol('2')) // ↦ false
|
957
957
|
* console.log(Monster.Types.isSymbol(Symbol('test')) // ↦ true
|
958
958
|
* </script>
|
@@ -962,7 +962,7 @@ function isPrimitive(value) {
|
|
962
962
|
*
|
963
963
|
* ```
|
964
964
|
* <script type="module">
|
965
|
-
* import {isSymbol} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
965
|
+
* import {isSymbol} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/is.js';
|
966
966
|
* console.log(isSymbol(Symbol('a'))) // ↦ true
|
967
967
|
* console.log(isSymbol([]) // ↦ false
|
968
968
|
* </script>
|
@@ -986,7 +986,7 @@ function isSymbol(value) {
|
|
986
986
|
*
|
987
987
|
* ```
|
988
988
|
* <script type="module">
|
989
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
989
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/is.js';
|
990
990
|
* console.log(Monster.Types.isBoolean('2')) // ↦ false
|
991
991
|
* console.log(Monster.Types.isBoolean([])) // ↦ false
|
992
992
|
* console.log(Monster.Types.isBoolean(true)) // ↦ true
|
@@ -997,7 +997,7 @@ function isSymbol(value) {
|
|
997
997
|
*
|
998
998
|
* ```
|
999
999
|
* <script type="module">
|
1000
|
-
* import {isBoolean} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
1000
|
+
* import {isBoolean} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/is.js';
|
1001
1001
|
* console.log(isBoolean('2')) // ↦ false
|
1002
1002
|
* console.log(isBoolean([])) // ↦ false
|
1003
1003
|
* console.log(isBoolean(2>4)) // ↦ true
|
@@ -1026,7 +1026,7 @@ function isBoolean(value) {
|
|
1026
1026
|
*
|
1027
1027
|
* ```
|
1028
1028
|
* <script type="module">
|
1029
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
1029
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/is.js';
|
1030
1030
|
* console.log(Monster.Types.isString('2')) // ↦ true
|
1031
1031
|
* console.log(Monster.Types.isString([])) // ↦ false
|
1032
1032
|
* </script>
|
@@ -1036,7 +1036,7 @@ function isBoolean(value) {
|
|
1036
1036
|
*
|
1037
1037
|
* ```
|
1038
1038
|
* <script type="module">
|
1039
|
-
* import {isString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
1039
|
+
* import {isString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/is.js';
|
1040
1040
|
* console.log(isString('2')) // ↦ true
|
1041
1041
|
* console.log(isString([])) // ↦ false
|
1042
1042
|
* </script>
|
@@ -1064,7 +1064,7 @@ function isString(value) {
|
|
1064
1064
|
*
|
1065
1065
|
* ```
|
1066
1066
|
* <script type="module">
|
1067
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
1067
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/is.js';
|
1068
1068
|
* console.log(Monster.Types.isObject('2')) // ↦ false
|
1069
1069
|
* console.log(Monster.Types.isObject([])) // ↦ false
|
1070
1070
|
* console.log(Monster.Types.isObject({})) // ↦ true
|
@@ -1075,7 +1075,7 @@ function isString(value) {
|
|
1075
1075
|
*
|
1076
1076
|
* ```
|
1077
1077
|
* <script type="module">
|
1078
|
-
* import {isObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
1078
|
+
* import {isObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/is.js';
|
1079
1079
|
* console.log(isObject('2')) // ↦ false
|
1080
1080
|
* console.log(isObject([])) // ↦ false
|
1081
1081
|
* </script>
|
@@ -1106,7 +1106,7 @@ function isObject(value) {
|
|
1106
1106
|
*
|
1107
1107
|
* ```
|
1108
1108
|
* <script type="module">
|
1109
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
1109
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/is.js';
|
1110
1110
|
* console.log(Monster.Types.isInstance('2')) // ↦ false
|
1111
1111
|
* console.log(Monster.Types.isInstance([])) // ↦ false
|
1112
1112
|
* console.log(Monster.Types.isInstance({})) // ↦ true
|
@@ -1117,7 +1117,7 @@ function isObject(value) {
|
|
1117
1117
|
*
|
1118
1118
|
* ```
|
1119
1119
|
* <script type="module">
|
1120
|
-
* import {isInstance} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
1120
|
+
* import {isInstance} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/is.js';
|
1121
1121
|
* console.log(isInstance('2')) // ↦ false
|
1122
1122
|
* console.log(isInstance([])) // ↦ false
|
1123
1123
|
* </script>
|
@@ -1145,7 +1145,7 @@ function isInstance(value, instance) {
|
|
1145
1145
|
*
|
1146
1146
|
* ```
|
1147
1147
|
* <script type="module">
|
1148
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
1148
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/is.js';
|
1149
1149
|
* console.log(Monster.Types.isArray('2')) // ↦ false
|
1150
1150
|
* console.log(Monster.Types.isArray([])) // ↦ true
|
1151
1151
|
* </script>
|
@@ -1155,7 +1155,7 @@ function isInstance(value, instance) {
|
|
1155
1155
|
*
|
1156
1156
|
* ```
|
1157
1157
|
* <script type="module">
|
1158
|
-
* import {isArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
1158
|
+
* import {isArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/is.js';
|
1159
1159
|
* console.log(isArray('2')) // ↦ false
|
1160
1160
|
* console.log(isArray([])) // ↦ true
|
1161
1161
|
* </script>
|
@@ -1183,7 +1183,7 @@ function isArray(value) {
|
|
1183
1183
|
*
|
1184
1184
|
* ```
|
1185
1185
|
* <script type="module">
|
1186
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
1186
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/is.js';
|
1187
1187
|
* console.log(Monster.Types.isFunction(()=>{})) // ↦ true
|
1188
1188
|
* console.log(Monster.Types.isFunction('2')) // ↦ false
|
1189
1189
|
* console.log(Monster.Types.isFunction([])) // ↦ false
|
@@ -1194,7 +1194,7 @@ function isArray(value) {
|
|
1194
1194
|
*
|
1195
1195
|
* ```
|
1196
1196
|
* <script type="module">
|
1197
|
-
* import {isFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
1197
|
+
* import {isFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/is.js';
|
1198
1198
|
* console.log(isFunction(()=>{})) // ↦ true
|
1199
1199
|
* console.log(isFunction('2')) // ↦ false
|
1200
1200
|
* console.log(isFunction([])) // ↦ false
|
@@ -1226,7 +1226,7 @@ function isFunction(value) {
|
|
1226
1226
|
*
|
1227
1227
|
* ```
|
1228
1228
|
* <script type="module">
|
1229
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
1229
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/is.js';
|
1230
1230
|
* console.log(Monster.Types.isInteger(()=>{})) // ↦ true
|
1231
1231
|
* console.log(Monster.Types.isInteger('2')) // ↦ false
|
1232
1232
|
* console.log(Monster.Types.isInteger(2)) // ↦ true
|
@@ -1237,7 +1237,7 @@ function isFunction(value) {
|
|
1237
1237
|
*
|
1238
1238
|
* ```
|
1239
1239
|
* <script type="module">
|
1240
|
-
* import {isInteger} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
1240
|
+
* import {isInteger} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/is.js';
|
1241
1241
|
* console.log(isInteger(()=>{})) // ↦ true
|
1242
1242
|
* console.log(isInteger('2')) // ↦ false
|
1243
1243
|
* console.log(isInteger(2)) // ↦ true
|
@@ -1306,7 +1306,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
1306
1306
|
*
|
1307
1307
|
* ```
|
1308
1308
|
* <script type="module">
|
1309
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
1309
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/constraints/isobject.js';
|
1310
1310
|
* console.log(new Monster.Constraint.IsObject())
|
1311
1311
|
* </script>
|
1312
1312
|
* ```
|
@@ -1315,14 +1315,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
1315
1315
|
*
|
1316
1316
|
* ```
|
1317
1317
|
* <script type="module">
|
1318
|
-
* import {IsObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
1318
|
+
* import {IsObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/constraints/isobject.js';
|
1319
1319
|
* console.log(new IsObject())
|
1320
1320
|
* </script>
|
1321
1321
|
* ```
|
1322
1322
|
*
|
1323
1323
|
* @example
|
1324
1324
|
*
|
1325
|
-
* import {IsObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
1325
|
+
* import {IsObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/constraints/isobject.js';
|
1326
1326
|
*
|
1327
1327
|
* new IsObject()
|
1328
1328
|
* .isValid({})
|
@@ -1420,7 +1420,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
1420
1420
|
*
|
1421
1421
|
* ```
|
1422
1422
|
* <script type="module">
|
1423
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
1423
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/constraint/oroperator.js';
|
1424
1424
|
* new Monster.Constraint.OrOperator();
|
1425
1425
|
* </script>
|
1426
1426
|
* ```
|
@@ -1429,16 +1429,16 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
1429
1429
|
*
|
1430
1430
|
* ```
|
1431
1431
|
* <script type="module">
|
1432
|
-
* import {OrOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
1432
|
+
* import {OrOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/constraint/oroperator.js';
|
1433
1433
|
* new OrOperator();
|
1434
1434
|
* </script>
|
1435
1435
|
* ```
|
1436
1436
|
*
|
1437
1437
|
* @example
|
1438
1438
|
*
|
1439
|
-
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
1440
|
-
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
1441
|
-
* import {OrOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
1439
|
+
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/constraints/valid.js';
|
1440
|
+
* import {Invalid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/constraints/invalid.js';
|
1441
|
+
* import {OrOperator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/constraints/oroperator.js';
|
1442
1442
|
*
|
1443
1443
|
* new OrOperator(
|
1444
1444
|
* new Valid(), new Invalid()).isValid()
|
@@ -1558,7 +1558,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
1558
1558
|
*
|
1559
1559
|
* ```
|
1560
1560
|
* <script type="module">
|
1561
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
1561
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/constraints/valid.js';
|
1562
1562
|
* new Monster.Constraint.Valid();
|
1563
1563
|
* </script>
|
1564
1564
|
* ```
|
@@ -1567,14 +1567,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
1567
1567
|
*
|
1568
1568
|
* ```
|
1569
1569
|
* <script type="module">
|
1570
|
-
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
1570
|
+
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/constraints/valid.js';
|
1571
1571
|
* new Valid();
|
1572
1572
|
* </script>
|
1573
1573
|
* ```
|
1574
1574
|
*
|
1575
1575
|
* @example
|
1576
1576
|
*
|
1577
|
-
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
1577
|
+
* import {Valid} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/constraints/valid.js';
|
1578
1578
|
*
|
1579
1579
|
* new Valid().isValid()
|
1580
1580
|
* .then(()=>console.log(true))
|
@@ -1681,7 +1681,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
1681
1681
|
*
|
1682
1682
|
* ```
|
1683
1683
|
* <script type="module">
|
1684
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
1684
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/data/buildmap.js';
|
1685
1685
|
* console.log(Monster.Data.buildMap())
|
1686
1686
|
* </script>
|
1687
1687
|
* ```
|
@@ -1690,7 +1690,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
1690
1690
|
*
|
1691
1691
|
* ```
|
1692
1692
|
* <script type="module">
|
1693
|
-
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
1693
|
+
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/data/buildmap.js';
|
1694
1694
|
* console.log(buildMap())
|
1695
1695
|
* </script>
|
1696
1696
|
* ```
|
@@ -1701,7 +1701,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
1701
1701
|
*
|
1702
1702
|
* @example
|
1703
1703
|
*
|
1704
|
-
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
1704
|
+
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/data/buildmap.js';
|
1705
1705
|
* // a typical data structure as reported by an api
|
1706
1706
|
*
|
1707
1707
|
* let map;
|
@@ -1773,7 +1773,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
1773
1773
|
* @param {string|Monster.Data~exampleSelectorCallback} selector
|
1774
1774
|
* @param {string} [valueTemplate]
|
1775
1775
|
* @param {string} [keyTemplate]
|
1776
|
-
* @param {Monster.Data~
|
1776
|
+
* @param {Monster.Data~exampleFilterCallback} [filter]
|
1777
1777
|
* @return {*}
|
1778
1778
|
* @memberOf Monster.Data
|
1779
1779
|
* @throws {TypeError} value is neither a string nor a function
|
@@ -1812,6 +1812,15 @@ function buildMap(subject, selector, valueTemplate, keyTemplate, filter) {
|
|
1812
1812
|
});
|
1813
1813
|
return result;
|
1814
1814
|
}
|
1815
|
+
/**
|
1816
|
+
* @private
|
1817
|
+
* @param subject
|
1818
|
+
* @param selector
|
1819
|
+
* @param key
|
1820
|
+
* @param parentMap
|
1821
|
+
* @return {*}
|
1822
|
+
*/
|
1823
|
+
|
1815
1824
|
|
1816
1825
|
function buildFlatMap(subject, selector, key, parentMap) {
|
1817
1826
|
var result = this;
|
@@ -1889,17 +1898,14 @@ function buildFlatMap(subject, selector, key, parentMap) {
|
|
1889
1898
|
} finally {
|
1890
1899
|
_iterator2.f();
|
1891
1900
|
}
|
1892
|
-
}
|
1893
|
-
// subject['^'] = parentMap;
|
1894
|
-
// }
|
1895
|
-
|
1901
|
+
}
|
1896
1902
|
|
1897
1903
|
return subject;
|
1898
1904
|
}
|
1899
1905
|
/**
|
1900
1906
|
* With the help of this filter callback, values can be filtered out. Only if the filter function returns true, the value is taken for the map.
|
1901
1907
|
*
|
1902
|
-
* @callback Monster.Data~
|
1908
|
+
* @callback Monster.Data~exampleFilterCallback
|
1903
1909
|
* @param {*} value Value
|
1904
1910
|
* @param {string} key Key
|
1905
1911
|
* @memberOf Monster.Data
|
@@ -1910,7 +1916,7 @@ function buildFlatMap(subject, selector, key, parentMap) {
|
|
1910
1916
|
* Alternatively to a string selector a callback can be specified. this must return a map.
|
1911
1917
|
*
|
1912
1918
|
* @example
|
1913
|
-
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
1919
|
+
* import {buildMap} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/data/buildmap.js';
|
1914
1920
|
*
|
1915
1921
|
* let obj = {
|
1916
1922
|
* "data": [
|
@@ -2113,7 +2119,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
2113
2119
|
*
|
2114
2120
|
* ```
|
2115
2121
|
* <script type="module">
|
2116
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
2122
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/validate.js';
|
2117
2123
|
* console.log(Monster.Types.validateIterable('2')) // ↦ TypeError
|
2118
2124
|
* console.log(Monster.Types.validateIterable([])) // ↦ value
|
2119
2125
|
* </script>
|
@@ -2123,7 +2129,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
2123
2129
|
*
|
2124
2130
|
* ```
|
2125
2131
|
* <script type="module">
|
2126
|
-
* import {validateIterable} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
2132
|
+
* import {validateIterable} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/validate.js';
|
2127
2133
|
* console.log(validateIterable('2')) // ↦ TypeError
|
2128
2134
|
* console.log(validateIterable([])) // ↦ value
|
2129
2135
|
* </script>
|
@@ -2154,7 +2160,7 @@ function validateIterable(value) {
|
|
2154
2160
|
*
|
2155
2161
|
* ```
|
2156
2162
|
* <script type="module">
|
2157
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
2163
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/validate.js';
|
2158
2164
|
* console.log(Monster.Types.validatePrimitive('2')) // ↦ value
|
2159
2165
|
* console.log(Monster.Types.validatePrimitive([])) // ↦ TypeError
|
2160
2166
|
* </script>
|
@@ -2164,7 +2170,7 @@ function validateIterable(value) {
|
|
2164
2170
|
*
|
2165
2171
|
* ```
|
2166
2172
|
* <script type="module">
|
2167
|
-
* import {validatePrimitive} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
2173
|
+
* import {validatePrimitive} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/validate.js';
|
2168
2174
|
* console.log(validatePrimitive('2')) // ↦ value
|
2169
2175
|
* console.log(validatePrimitive([])) // ↦ TypeError
|
2170
2176
|
* </script>
|
@@ -2196,7 +2202,7 @@ function validatePrimitive(value) {
|
|
2196
2202
|
*
|
2197
2203
|
* ```
|
2198
2204
|
* <script type="module">
|
2199
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
2205
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/validate.js';
|
2200
2206
|
* console.log(Monster.Types.validateBoolean(true)) // ↦ value
|
2201
2207
|
* console.log(Monster.Types.validateBoolean('2')) // ↦ TypeError
|
2202
2208
|
* console.log(Monster.Types.validateBoolean([])) // ↦ TypeError
|
@@ -2207,7 +2213,7 @@ function validatePrimitive(value) {
|
|
2207
2213
|
*
|
2208
2214
|
* ```
|
2209
2215
|
* <script type="module">
|
2210
|
-
* import {validateBoolean} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
2216
|
+
* import {validateBoolean} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/validate.js';
|
2211
2217
|
* console.log(validateBoolean(false)) // ↦ value
|
2212
2218
|
* console.log(validateBoolean('2')) // ↦ TypeError
|
2213
2219
|
* console.log(validateBoolean([])) // ↦ TypeError
|
@@ -2238,7 +2244,7 @@ function validateBoolean(value) {
|
|
2238
2244
|
*
|
2239
2245
|
* ```
|
2240
2246
|
* <script type="module">
|
2241
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
2247
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/validate.js';
|
2242
2248
|
* console.log(Monster.Types.validateString('2')) // ↦ value
|
2243
2249
|
* console.log(Monster.Types.validateString([])) // ↦ TypeError
|
2244
2250
|
* </script>
|
@@ -2248,7 +2254,7 @@ function validateBoolean(value) {
|
|
2248
2254
|
*
|
2249
2255
|
* ```
|
2250
2256
|
* <script type="module">
|
2251
|
-
* import {validateString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
2257
|
+
* import {validateString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/validate.js';
|
2252
2258
|
* console.log(validateString('2')) // ↦ value
|
2253
2259
|
* console.log(validateString([])) // ↦ TypeError
|
2254
2260
|
* </script>
|
@@ -2277,7 +2283,7 @@ function validateString(value) {
|
|
2277
2283
|
*
|
2278
2284
|
* ```
|
2279
2285
|
* <script type="module">
|
2280
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
2286
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/validate.js';
|
2281
2287
|
* console.log(Monster.Types.validateObject({})) // ↦ value
|
2282
2288
|
* console.log(Monster.Types.validateObject('2')) // ↦ TypeError
|
2283
2289
|
* console.log(Monster.Types.validateObject([])) // ↦ TypeError
|
@@ -2288,7 +2294,7 @@ function validateString(value) {
|
|
2288
2294
|
*
|
2289
2295
|
* ```
|
2290
2296
|
* <script type="module">
|
2291
|
-
* import {validateObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
2297
|
+
* import {validateObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/validate.js';
|
2292
2298
|
* console.log(validateObject({})) // ↦ value
|
2293
2299
|
* console.log(validateObject('2')) // ↦ TypeError
|
2294
2300
|
* console.log(validateObject([])) // ↦ TypeError
|
@@ -2318,7 +2324,7 @@ function validateObject(value) {
|
|
2318
2324
|
*
|
2319
2325
|
* ```
|
2320
2326
|
* <script type="module">
|
2321
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
2327
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/validate.js';
|
2322
2328
|
* console.log(Monster.Types.validateInstance({}, Object)) // ↦ value
|
2323
2329
|
* console.log(Monster.Types.validateInstance('2', Object)) // ↦ TypeError
|
2324
2330
|
* console.log(Monster.Types.validateInstance([], Object)) // ↦ TypeError
|
@@ -2329,7 +2335,7 @@ function validateObject(value) {
|
|
2329
2335
|
*
|
2330
2336
|
* ```
|
2331
2337
|
* <script type="module">
|
2332
|
-
* import {validateInstance} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
2338
|
+
* import {validateInstance} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/validate.js';
|
2333
2339
|
* console.log(validateInstance({}, Object)) // ↦ value
|
2334
2340
|
* console.log(validateInstance('2', Object)) // ↦ TypeError
|
2335
2341
|
* console.log(validateInstance([], Object)) // ↦ TypeError
|
@@ -2369,7 +2375,7 @@ function validateInstance(value, instance) {
|
|
2369
2375
|
*
|
2370
2376
|
* ```
|
2371
2377
|
* <script type="module">
|
2372
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
2378
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/validate.js';
|
2373
2379
|
* console.log(Monster.Types.validateArray('2')) // ↦ TypeError
|
2374
2380
|
* console.log(Monster.Types.validateArray([])) // ↦ value
|
2375
2381
|
* </script>
|
@@ -2379,7 +2385,7 @@ function validateInstance(value, instance) {
|
|
2379
2385
|
*
|
2380
2386
|
* ```
|
2381
2387
|
* <script type="module">
|
2382
|
-
* import {validateArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
2388
|
+
* import {validateArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/validate.js';
|
2383
2389
|
* console.log(validateArray('2')) // ↦ TypeError
|
2384
2390
|
* console.log(validateArray([])) // ↦ value
|
2385
2391
|
* </script>
|
@@ -2408,7 +2414,7 @@ function validateArray(value) {
|
|
2408
2414
|
*
|
2409
2415
|
* ```
|
2410
2416
|
* <script type="module">
|
2411
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
2417
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/validate.js';
|
2412
2418
|
* console.log(Monster.Types.validateSymbol('2')) // ↦ TypeError
|
2413
2419
|
* console.log(Monster.Types.validateSymbol([])) // ↦ value
|
2414
2420
|
* </script>
|
@@ -2418,7 +2424,7 @@ function validateArray(value) {
|
|
2418
2424
|
*
|
2419
2425
|
* ```
|
2420
2426
|
* <script type="module">
|
2421
|
-
* import {validateSymbol} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
2427
|
+
* import {validateSymbol} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/validate.js';
|
2422
2428
|
* console.log(validateSymbol('2')) // ↦ TypeError
|
2423
2429
|
* console.log(validateSymbol()) // ↦ value
|
2424
2430
|
* </script>
|
@@ -2447,7 +2453,7 @@ function validateSymbol(value) {
|
|
2447
2453
|
*
|
2448
2454
|
* ```
|
2449
2455
|
* <script type="module">
|
2450
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
2456
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/validate.js';
|
2451
2457
|
* console.log(Monster.Types.validateFunction(()=>{})) // ↦ value
|
2452
2458
|
* console.log(Monster.Types.validateFunction('2')) // ↦ TypeError
|
2453
2459
|
* console.log(Monster.Types.validateFunction([])) // ↦ TypeError
|
@@ -2458,7 +2464,7 @@ function validateSymbol(value) {
|
|
2458
2464
|
*
|
2459
2465
|
* ```
|
2460
2466
|
* <script type="module">
|
2461
|
-
* import {validateFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
2467
|
+
* import {validateFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/validate.js';
|
2462
2468
|
* console.log(validateFunction(()=>{})) // ↦ value
|
2463
2469
|
* console.log(validateFunction('2')) // ↦ TypeError
|
2464
2470
|
* console.log(validateFunction([])) // ↦ TypeError
|
@@ -2488,7 +2494,7 @@ function validateFunction(value) {
|
|
2488
2494
|
*
|
2489
2495
|
* ```
|
2490
2496
|
* <script type="module">
|
2491
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
2497
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/validate.js';
|
2492
2498
|
* console.log(Monster.Types.validateInteger(true)) // ↦ TypeError
|
2493
2499
|
* console.log(Monster.Types.validateInteger('2')) // ↦ TypeError
|
2494
2500
|
* console.log(Monster.Types.validateInteger(2)) // ↦ value
|
@@ -2499,7 +2505,7 @@ function validateFunction(value) {
|
|
2499
2505
|
*
|
2500
2506
|
* ```
|
2501
2507
|
* <script type="module">
|
2502
|
-
* import {validateFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
2508
|
+
* import {validateFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/validate.js';
|
2503
2509
|
* console.log(validateInteger(true)) // ↦ TypeError
|
2504
2510
|
* console.log(validateInteger('2')) // ↦ TypeError
|
2505
2511
|
* console.log(validateInteger(2)) // ↦ value
|
@@ -2561,7 +2567,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
2561
2567
|
*
|
2562
2568
|
* ```
|
2563
2569
|
* <script type="module">
|
2564
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
2570
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/util/clone.js';
|
2565
2571
|
* console.log(Monster.Util.clone({}))
|
2566
2572
|
* </script>
|
2567
2573
|
* ```
|
@@ -2570,7 +2576,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
2570
2576
|
*
|
2571
2577
|
* ```
|
2572
2578
|
* <script type="module">
|
2573
|
-
* import {clone} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
2579
|
+
* import {clone} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/util/clone.js';
|
2574
2580
|
* console.log(clone({}))
|
2575
2581
|
* </script>
|
2576
2582
|
* ```
|
@@ -2776,7 +2782,7 @@ function getGlobal() {
|
|
2776
2782
|
*
|
2777
2783
|
* ```
|
2778
2784
|
* <script type="module">
|
2779
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
2785
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/global.js';
|
2780
2786
|
* console.log(Monster.Types.getGlobalObject('document')) // ↦ { }
|
2781
2787
|
* </script>
|
2782
2788
|
* ```
|
@@ -2785,7 +2791,7 @@ function getGlobal() {
|
|
2785
2791
|
*
|
2786
2792
|
* ```
|
2787
2793
|
* <script type="module">
|
2788
|
-
* import {getGlobalObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
2794
|
+
* import {getGlobalObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/global.js';
|
2789
2795
|
* console.log(getGlobalObject('document')) // ↦ { }
|
2790
2796
|
* </script>
|
2791
2797
|
* ```
|
@@ -2816,7 +2822,7 @@ function getGlobalObject(name) {
|
|
2816
2822
|
*
|
2817
2823
|
* ```
|
2818
2824
|
* <script type="module">
|
2819
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
2825
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/global.js';
|
2820
2826
|
* console.log(Monster.Types.getGlobalFunction('parseInt')) // ↦ f parseInt() { }
|
2821
2827
|
* </script>
|
2822
2828
|
* ```
|
@@ -2825,7 +2831,7 @@ function getGlobalObject(name) {
|
|
2825
2831
|
*
|
2826
2832
|
* ```
|
2827
2833
|
* <script type="module">
|
2828
|
-
* import {getGlobalFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
2834
|
+
* import {getGlobalFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/global.js';
|
2829
2835
|
* console.log(getGlobalFunction('parseInt')) // ↦ f parseInt() { }
|
2830
2836
|
* </script>
|
2831
2837
|
* ```
|
@@ -2940,7 +2946,7 @@ var WILDCARD = '*';
|
|
2940
2946
|
*
|
2941
2947
|
* ```
|
2942
2948
|
* <script type="module">
|
2943
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
2949
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/data/pathfinder.js';
|
2944
2950
|
* console.log(new Monster.Data.Pathfinder())
|
2945
2951
|
* </script>
|
2946
2952
|
* ```
|
@@ -2949,7 +2955,7 @@ var WILDCARD = '*';
|
|
2949
2955
|
*
|
2950
2956
|
* ```
|
2951
2957
|
* <script type="module">
|
2952
|
-
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
2958
|
+
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/data/pathfinder.js';
|
2953
2959
|
* console.log(new Pathfinder())
|
2954
2960
|
* </script>
|
2955
2961
|
* ```
|
@@ -2991,7 +2997,7 @@ var WILDCARD = '*';
|
|
2991
2997
|
*
|
2992
2998
|
* @example
|
2993
2999
|
*
|
2994
|
-
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
3000
|
+
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/data/pathfinder.js';
|
2995
3001
|
*
|
2996
3002
|
* let value = new Pathfinder({
|
2997
3003
|
* a: {
|
@@ -3017,7 +3023,7 @@ var WILDCARD = '*';
|
|
3017
3023
|
*
|
3018
3024
|
* @example
|
3019
3025
|
*
|
3020
|
-
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
3026
|
+
* import {Pathfinder} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/data/pathfinder.js';
|
3021
3027
|
*
|
3022
3028
|
* let p = new Pathfinder({
|
3023
3029
|
* a: {
|
@@ -3428,7 +3434,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
3428
3434
|
*
|
3429
3435
|
* ```
|
3430
3436
|
* <script type="module">
|
3431
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
3437
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/stack.js';
|
3432
3438
|
* console.log(new Monster.Types.Stack())
|
3433
3439
|
* </script>
|
3434
3440
|
* ```
|
@@ -3437,7 +3443,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
3437
3443
|
*
|
3438
3444
|
* ```
|
3439
3445
|
* <script type="module">
|
3440
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
3446
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/stack.js';
|
3441
3447
|
* console.log(new Stack())
|
3442
3448
|
* </script>
|
3443
3449
|
* ```
|
@@ -3552,6 +3558,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
3552
3558
|
/* harmony export */ });
|
3553
3559
|
/* harmony import */ var _namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
3554
3560
|
/* harmony import */ var _types_is_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
|
3561
|
+
/* harmony import */ var _types_typeof_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(20);
|
3555
3562
|
|
3556
3563
|
/**
|
3557
3564
|
* @author schukai GmbH
|
@@ -3561,6 +3568,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
3561
3568
|
|
3562
3569
|
|
3563
3570
|
|
3571
|
+
|
3564
3572
|
/**
|
3565
3573
|
* With the diff function you can perform the change of one object to another. The result shows the changes of the second object to the first object.
|
3566
3574
|
*
|
@@ -3570,7 +3578,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
3570
3578
|
*
|
3571
3579
|
* ```
|
3572
3580
|
* <script type="module">
|
3573
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
3581
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/data/diff.js';
|
3574
3582
|
* console.log(Monster.Data.Diff(a, b))
|
3575
3583
|
* </script>
|
3576
3584
|
* ```
|
@@ -3579,14 +3587,14 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
3579
3587
|
*
|
3580
3588
|
* ```
|
3581
3589
|
* <script type="module">
|
3582
|
-
* import {Diff} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
3590
|
+
* import {Diff} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/data/diff.js';
|
3583
3591
|
* console.log(Diff(a, b))
|
3584
3592
|
* </script>
|
3585
3593
|
* ```
|
3586
3594
|
*
|
3587
3595
|
* @example
|
3588
3596
|
*
|
3589
|
-
* import {Diff} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
3597
|
+
* import {Diff} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/data/diff.js';
|
3590
3598
|
*
|
3591
3599
|
* // given are two objects x and y.
|
3592
3600
|
*
|
@@ -3668,10 +3676,8 @@ function getKeys(a, b, type) {
|
|
3668
3676
|
|
3669
3677
|
|
3670
3678
|
function doDiff(a, b, path, diff) {
|
3671
|
-
var typeA =
|
3672
|
-
|
3673
|
-
var typeB = _typeof(b);
|
3674
|
-
|
3679
|
+
var typeA = (0,_types_typeof_js__WEBPACK_IMPORTED_MODULE_2__.typeOf)(a);
|
3680
|
+
var typeB = (0,_types_typeof_js__WEBPACK_IMPORTED_MODULE_2__.typeOf)(b);
|
3675
3681
|
var currPath = path || [];
|
3676
3682
|
var currDiff = diff || [];
|
3677
3683
|
|
@@ -3811,6 +3817,77 @@ function getOperator(a, b) {
|
|
3811
3817
|
/* 20 */
|
3812
3818
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
3813
3819
|
|
3820
|
+
__webpack_require__.r(__webpack_exports__);
|
3821
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
3822
|
+
/* harmony export */ "Monster": function() { return /* reexport safe */ _namespace_js__WEBPACK_IMPORTED_MODULE_0__.Monster; },
|
3823
|
+
/* harmony export */ "typeOf": function() { return /* binding */ typeOf; }
|
3824
|
+
/* harmony export */ });
|
3825
|
+
/* harmony import */ var _namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
3826
|
+
|
3827
|
+
/**
|
3828
|
+
* @author schukai GmbH
|
3829
|
+
*/
|
3830
|
+
|
3831
|
+
|
3832
|
+
/**
|
3833
|
+
* The built-in typeof method is known to have some historical weaknesses. This function tries to provide a better and more accurate result.
|
3834
|
+
*
|
3835
|
+
* You can call the method via the monster namespace `Monster.Types.typeOf()`.
|
3836
|
+
*
|
3837
|
+
* ```
|
3838
|
+
* <script type="module">
|
3839
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/typeof.js';
|
3840
|
+
* console.log(Monster.Types.typeOf())
|
3841
|
+
* </script>
|
3842
|
+
* ```
|
3843
|
+
*
|
3844
|
+
* Alternatively, you can also integrate this function individually.
|
3845
|
+
*
|
3846
|
+
* ```
|
3847
|
+
* <script type="module">
|
3848
|
+
* import {typeOf} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/typeof.js';
|
3849
|
+
* console.log(typeOf())
|
3850
|
+
* </script>
|
3851
|
+
* ```
|
3852
|
+
*
|
3853
|
+
* @example
|
3854
|
+
*
|
3855
|
+
* import {typeOf} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/typeof.js';
|
3856
|
+
*
|
3857
|
+
* console.log(typeOf(undefined)); // ↦ undefined
|
3858
|
+
* console.log(typeOf("")); // ↦ string
|
3859
|
+
* console.log(typeOf(5)); // ↦ number
|
3860
|
+
* console.log(typeOf({})); // ↦ object
|
3861
|
+
* console.log(typeOf([])); // ↦ array
|
3862
|
+
* console.log(typeOf(new Map)); // ↦ map
|
3863
|
+
* console.log(typeOf(true)); // ↦ boolean
|
3864
|
+
*
|
3865
|
+
* @param {*} value
|
3866
|
+
* @return {string}
|
3867
|
+
* @since 1.7.0
|
3868
|
+
* @copyright schukai GmbH
|
3869
|
+
* @memberOf Monster.Types
|
3870
|
+
* @throws {TypeError} value is not a primitive
|
3871
|
+
*/
|
3872
|
+
|
3873
|
+
function typeOf(value) {
|
3874
|
+
var type = {}.toString.call(value).match(/\s([a-zA-Z]+)/)[1];
|
3875
|
+
|
3876
|
+
if ('Object' === type) {
|
3877
|
+
var results = /^(class|function)\s+(\w+)/.exec(value.constructor.toString());
|
3878
|
+
type = results && results.length > 2 ? results[2] : '';
|
3879
|
+
}
|
3880
|
+
|
3881
|
+
return type.toLowerCase();
|
3882
|
+
}
|
3883
|
+
|
3884
|
+
(0,_namespace_js__WEBPACK_IMPORTED_MODULE_0__.assignToNamespace)('Monster.Types', typeOf);
|
3885
|
+
|
3886
|
+
|
3887
|
+
/***/ }),
|
3888
|
+
/* 21 */
|
3889
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
3890
|
+
|
3814
3891
|
__webpack_require__.r(__webpack_exports__);
|
3815
3892
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
3816
3893
|
/* harmony export */ "Monster": function() { return /* reexport safe */ _namespace_js__WEBPACK_IMPORTED_MODULE_0__.Monster; },
|
@@ -3818,7 +3895,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
3818
3895
|
/* harmony export */ });
|
3819
3896
|
/* harmony import */ var _namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
3820
3897
|
/* harmony import */ var _types_is_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
|
3821
|
-
/* harmony import */ var _types_typeof_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
3898
|
+
/* harmony import */ var _types_typeof_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(20);
|
3822
3899
|
|
3823
3900
|
/**
|
3824
3901
|
* @author schukai GmbH
|
@@ -3835,7 +3912,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
3835
3912
|
*
|
3836
3913
|
* ```
|
3837
3914
|
* <script type="module">
|
3838
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
3915
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/data/extend.js';
|
3839
3916
|
* console.log(Monster.Data.extend(a, b))
|
3840
3917
|
* </script>
|
3841
3918
|
* ```
|
@@ -3844,7 +3921,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
3844
3921
|
*
|
3845
3922
|
* ```
|
3846
3923
|
* <script type="module">
|
3847
|
-
* import {extend} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
3924
|
+
* import {extend} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/data/extend.js';
|
3848
3925
|
* console.log(extend(a, b))
|
3849
3926
|
* </script>
|
3850
3927
|
* ```
|
@@ -3909,77 +3986,6 @@ function extend() {
|
|
3909
3986
|
(0,_namespace_js__WEBPACK_IMPORTED_MODULE_0__.assignToNamespace)('Monster.Data', extend);
|
3910
3987
|
|
3911
3988
|
|
3912
|
-
/***/ }),
|
3913
|
-
/* 21 */
|
3914
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
3915
|
-
|
3916
|
-
__webpack_require__.r(__webpack_exports__);
|
3917
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
3918
|
-
/* harmony export */ "Monster": function() { return /* reexport safe */ _namespace_js__WEBPACK_IMPORTED_MODULE_0__.Monster; },
|
3919
|
-
/* harmony export */ "typeOf": function() { return /* binding */ typeOf; }
|
3920
|
-
/* harmony export */ });
|
3921
|
-
/* harmony import */ var _namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
3922
|
-
|
3923
|
-
/**
|
3924
|
-
* @author schukai GmbH
|
3925
|
-
*/
|
3926
|
-
|
3927
|
-
|
3928
|
-
/**
|
3929
|
-
* The built-in typeof method is known to have some historical weaknesses. This function tries to provide a better and more accurate result.
|
3930
|
-
*
|
3931
|
-
* You can call the method via the monster namespace `Monster.Types.typeOf()`.
|
3932
|
-
*
|
3933
|
-
* ```
|
3934
|
-
* <script type="module">
|
3935
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.0/dist/modules/types/typeof.js';
|
3936
|
-
* console.log(Monster.Types.typeOf())
|
3937
|
-
* </script>
|
3938
|
-
* ```
|
3939
|
-
*
|
3940
|
-
* Alternatively, you can also integrate this function individually.
|
3941
|
-
*
|
3942
|
-
* ```
|
3943
|
-
* <script type="module">
|
3944
|
-
* import {typeOf} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.0/dist/modules/types/typeof.js';
|
3945
|
-
* console.log(typeOf())
|
3946
|
-
* </script>
|
3947
|
-
* ```
|
3948
|
-
*
|
3949
|
-
* @example
|
3950
|
-
*
|
3951
|
-
* import {typeOf} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.0/dist/modules/types/typeof.js';
|
3952
|
-
*
|
3953
|
-
* console.log(typeOf(undefined)); // ↦ undefined
|
3954
|
-
* console.log(typeOf("")); // ↦ string
|
3955
|
-
* console.log(typeOf(5)); // ↦ number
|
3956
|
-
* console.log(typeOf({})); // ↦ object
|
3957
|
-
* console.log(typeOf([])); // ↦ array
|
3958
|
-
* console.log(typeOf(new Map)); // ↦ map
|
3959
|
-
* console.log(typeOf(true)); // ↦ boolean
|
3960
|
-
*
|
3961
|
-
* @param {*} value
|
3962
|
-
* @return {string}
|
3963
|
-
* @since 1.7.0
|
3964
|
-
* @copyright schukai GmbH
|
3965
|
-
* @memberOf Monster.Types
|
3966
|
-
* @throws {TypeError} value is not a primitive
|
3967
|
-
*/
|
3968
|
-
|
3969
|
-
function typeOf(value) {
|
3970
|
-
var type = {}.toString.call(value).match(/\s([a-zA-Z]+)/)[1];
|
3971
|
-
|
3972
|
-
if ('Object' === type) {
|
3973
|
-
var results = /^(class|function)\s+(\w+)/.exec(value.constructor.toString());
|
3974
|
-
type = results && results.length > 2 ? results[2] : '';
|
3975
|
-
}
|
3976
|
-
|
3977
|
-
return type.toLowerCase();
|
3978
|
-
}
|
3979
|
-
|
3980
|
-
(0,_namespace_js__WEBPACK_IMPORTED_MODULE_0__.assignToNamespace)('Monster.Types', typeOf);
|
3981
|
-
|
3982
|
-
|
3983
3989
|
/***/ }),
|
3984
3990
|
/* 22 */
|
3985
3991
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
@@ -4044,7 +4050,7 @@ var DELIMITER = '|';
|
|
4044
4050
|
*
|
4045
4051
|
* ```
|
4046
4052
|
* <script type="module">
|
4047
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
4053
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/data/pipe.js';
|
4048
4054
|
* console.log(new Monster.Data.Pipe())
|
4049
4055
|
* </script>
|
4050
4056
|
* ```
|
@@ -4053,7 +4059,7 @@ var DELIMITER = '|';
|
|
4053
4059
|
*
|
4054
4060
|
* ```
|
4055
4061
|
* <script type="module">
|
4056
|
-
* import {Pipe} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
4062
|
+
* import {Pipe} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/data/pipe.js';
|
4057
4063
|
* console.log(new Pipe())
|
4058
4064
|
* </script>
|
4059
4065
|
* ```
|
@@ -4064,7 +4070,7 @@ var DELIMITER = '|';
|
|
4064
4070
|
* the word is then converted to uppercase letters and a prefix Hello is added. the two backslash safe the space char.
|
4065
4071
|
*
|
4066
4072
|
* @example
|
4067
|
-
* import {Pipe} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
4073
|
+
* import {Pipe} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/data/pipe.js';
|
4068
4074
|
*
|
4069
4075
|
* let obj = {
|
4070
4076
|
* a: {
|
@@ -4226,7 +4232,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
4226
4232
|
*
|
4227
4233
|
* ```
|
4228
4234
|
* <script type="module">
|
4229
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
4235
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/data/transformer.js';
|
4230
4236
|
* console.log(new Monster.Data.Transformer())
|
4231
4237
|
* </script>
|
4232
4238
|
* ```
|
@@ -4235,7 +4241,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
4235
4241
|
*
|
4236
4242
|
* ```
|
4237
4243
|
* <script type="module">
|
4238
|
-
* import {Transformer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
4244
|
+
* import {Transformer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/data/transformer.js';
|
4239
4245
|
* console.log(new Transformer())
|
4240
4246
|
* </script>
|
4241
4247
|
* ```
|
@@ -4314,7 +4320,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
4314
4320
|
*
|
4315
4321
|
* @example
|
4316
4322
|
*
|
4317
|
-
* import {Transformer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
4323
|
+
* import {Transformer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/data/transformer.js';
|
4318
4324
|
*
|
4319
4325
|
* const transformer = new Transformer("tolower")
|
4320
4326
|
*
|
@@ -4747,7 +4753,7 @@ var internalCounter = new Map();
|
|
4747
4753
|
*
|
4748
4754
|
* ```
|
4749
4755
|
* <script type="module">
|
4750
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
4756
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/id.js';
|
4751
4757
|
* console.log(new Monster.Types.ID())
|
4752
4758
|
* </script>
|
4753
4759
|
* ```
|
@@ -4756,7 +4762,7 @@ var internalCounter = new Map();
|
|
4756
4762
|
*
|
4757
4763
|
* ```
|
4758
4764
|
* <script type="module">
|
4759
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
4765
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/id.js';
|
4760
4766
|
* console.log(new ID())
|
4761
4767
|
* </script>
|
4762
4768
|
* ```
|
@@ -4876,7 +4882,7 @@ var ATTRIBUTEPREFIX = "data-monster-";
|
|
4876
4882
|
*
|
4877
4883
|
* ```
|
4878
4884
|
* <script type="module">
|
4879
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
4885
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/assembler.js';
|
4880
4886
|
* console.log(new Monster.DOM.Assembler())
|
4881
4887
|
* </script>
|
4882
4888
|
* ```
|
@@ -4885,7 +4891,7 @@ var ATTRIBUTEPREFIX = "data-monster-";
|
|
4885
4891
|
*
|
4886
4892
|
* ```
|
4887
4893
|
* <script type="module">
|
4888
|
-
* import {Assembler} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
4894
|
+
* import {Assembler} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/assembler.js';
|
4889
4895
|
* console.log(new Assembler())
|
4890
4896
|
* </script>
|
4891
4897
|
* ```
|
@@ -5023,7 +5029,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5023
5029
|
*
|
5024
5030
|
* ```
|
5025
5031
|
* <script type="module">
|
5026
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
5032
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/proxyobserver.js';
|
5027
5033
|
* console.log(new Monster.Types.ProxyObserver())
|
5028
5034
|
* </script>
|
5029
5035
|
* ```
|
@@ -5032,7 +5038,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5032
5038
|
*
|
5033
5039
|
* ```
|
5034
5040
|
* <script type="module">
|
5035
|
-
* import {ProxyObserver} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
5041
|
+
* import {ProxyObserver} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/proxyobserver.js';
|
5036
5042
|
* console.log(new ProxyObserver())
|
5037
5043
|
* </script>
|
5038
5044
|
* ```
|
@@ -5043,9 +5049,9 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5043
5049
|
*
|
5044
5050
|
* @example
|
5045
5051
|
*
|
5046
|
-
* import {ProxyObserver} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
5047
|
-
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
5048
|
-
* import {isObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
5052
|
+
* import {ProxyObserver} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/proxyobserver.js';
|
5053
|
+
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/observer.js';
|
5054
|
+
* import {isObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/is.js';
|
5049
5055
|
*
|
5050
5056
|
* const o = new Observer(function () {
|
5051
5057
|
* if (isObject(this) && this instanceof ProxyObserver) {
|
@@ -5352,7 +5358,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5352
5358
|
*
|
5353
5359
|
* ```
|
5354
5360
|
* <script type="module">
|
5355
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
5361
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/observer.js';
|
5356
5362
|
* console.log(new Monster.Types.Observer())
|
5357
5363
|
* </script>
|
5358
5364
|
* ```
|
@@ -5361,7 +5367,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5361
5367
|
*
|
5362
5368
|
* ```
|
5363
5369
|
* <script type="module">
|
5364
|
-
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
5370
|
+
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/observer.js';
|
5365
5371
|
* console.log(new Observer())
|
5366
5372
|
* </script>
|
5367
5373
|
* ```
|
@@ -5395,7 +5401,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5395
5401
|
*
|
5396
5402
|
* @example
|
5397
5403
|
*
|
5398
|
-
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
5404
|
+
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/observer.js';
|
5399
5405
|
*
|
5400
5406
|
* const observer = new Observer(function(a, b, c) {
|
5401
5407
|
* console.log(this, a, b, c); // ↦ "a", 2, true
|
@@ -5595,7 +5601,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5595
5601
|
*
|
5596
5602
|
* ```
|
5597
5603
|
* <script type="module">
|
5598
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
5604
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/tokenlist.js';
|
5599
5605
|
* console.log(new Monster.Types.TokenList("myclass row"))
|
5600
5606
|
* console.log(new Monster.Types.TokenList("myclass row"))
|
5601
5607
|
* </script>
|
@@ -5605,7 +5611,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
5605
5611
|
*
|
5606
5612
|
* ```
|
5607
5613
|
* <script type="module">
|
5608
|
-
* import {TokenList} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
5614
|
+
* import {TokenList} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/tokenlist.js';
|
5609
5615
|
* console.log(new TokenList("myclass row"))
|
5610
5616
|
* console.log(new TokenList("myclass row"))
|
5611
5617
|
* </script>
|
@@ -6028,7 +6034,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
6028
6034
|
*
|
6029
6035
|
* ```
|
6030
6036
|
* <script type="module">
|
6031
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
6037
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/uniquequeue.js';
|
6032
6038
|
* console.log(new Monster.Types.UniqueQueue())
|
6033
6039
|
* </script>
|
6034
6040
|
* ```
|
@@ -6037,7 +6043,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
6037
6043
|
*
|
6038
6044
|
* ```
|
6039
6045
|
* <script type="module">
|
6040
|
-
* import {UniqueQueue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
6046
|
+
* import {UniqueQueue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/uniquequeue.js';
|
6041
6047
|
* console.log(new UniqueQueue())
|
6042
6048
|
* </script>
|
6043
6049
|
* ```
|
@@ -6171,7 +6177,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
6171
6177
|
*
|
6172
6178
|
* ```
|
6173
6179
|
* <script type="module">
|
6174
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
6180
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/queue.js';
|
6175
6181
|
* console.log(new Monster.Types.Queue())
|
6176
6182
|
* </script>
|
6177
6183
|
* ```
|
@@ -6180,14 +6186,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
6180
6186
|
*
|
6181
6187
|
* ```
|
6182
6188
|
* <script type="module">
|
6183
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
6189
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/queue.js';
|
6184
6190
|
* console.log(new Queue())
|
6185
6191
|
* </script>
|
6186
6192
|
* ```
|
6187
6193
|
*
|
6188
6194
|
* @example
|
6189
6195
|
*
|
6190
|
-
* import {Queue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
6196
|
+
* import {Queue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/queue.js';
|
6191
6197
|
*
|
6192
6198
|
* const queue = new Queue;
|
6193
6199
|
*
|
@@ -6355,7 +6361,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
6355
6361
|
*
|
6356
6362
|
* ```
|
6357
6363
|
* <script type="module">
|
6358
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
6364
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/observerlist.js';
|
6359
6365
|
* console.log(new Monster.Types.ObserverList())
|
6360
6366
|
* console.log(new Monster.Types.ObserverList())
|
6361
6367
|
* </script>
|
@@ -6365,7 +6371,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
6365
6371
|
*
|
6366
6372
|
* ```
|
6367
6373
|
* <script type="module">
|
6368
|
-
* import {ObserverList} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
6374
|
+
* import {ObserverList} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/observerlist.js';
|
6369
6375
|
* console.log(ObserverList())
|
6370
6376
|
* console.log(ObserverList())
|
6371
6377
|
* </script>
|
@@ -6524,7 +6530,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
6524
6530
|
*
|
6525
6531
|
* ```
|
6526
6532
|
* <script type="module">
|
6527
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
6533
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/updater.js';
|
6528
6534
|
* console.log(Monster.DOM.findClosestObjectLink())
|
6529
6535
|
* </script>
|
6530
6536
|
* ```
|
@@ -6533,7 +6539,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
6533
6539
|
*
|
6534
6540
|
* ```
|
6535
6541
|
* <script type="module">
|
6536
|
-
* import {getUpdaterFromNode} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
6542
|
+
* import {getUpdaterFromNode} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/updater.js';
|
6537
6543
|
* console.log(findClosestObjectLink())
|
6538
6544
|
* </script>
|
6539
6545
|
* ```
|
@@ -6554,7 +6560,7 @@ function findClosestObjectLink(element) {
|
|
6554
6560
|
*
|
6555
6561
|
* ```
|
6556
6562
|
* <script type="module">
|
6557
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
6563
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/attributes.js';
|
6558
6564
|
* Monster.DOM.addToObjectLink();
|
6559
6565
|
* </script>
|
6560
6566
|
* ```
|
@@ -6563,7 +6569,7 @@ function findClosestObjectLink(element) {
|
|
6563
6569
|
*
|
6564
6570
|
* ```
|
6565
6571
|
* <script type="module">
|
6566
|
-
* import {addToObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
6572
|
+
* import {addToObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/attributes.js';
|
6567
6573
|
* addToObjectLink();
|
6568
6574
|
* </script>
|
6569
6575
|
* ```
|
@@ -6595,7 +6601,7 @@ function addToObjectLink(element, symbol, object) {
|
|
6595
6601
|
*
|
6596
6602
|
* ```
|
6597
6603
|
* <script type="module">
|
6598
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
6604
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/attributes.js';
|
6599
6605
|
* Monster.DOM.removeObjectLink();
|
6600
6606
|
* </script>
|
6601
6607
|
* ```
|
@@ -6604,7 +6610,7 @@ function addToObjectLink(element, symbol, object) {
|
|
6604
6610
|
*
|
6605
6611
|
* ```
|
6606
6612
|
* <script type="module">
|
6607
|
-
* import {removeObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
6613
|
+
* import {removeObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/attributes.js';
|
6608
6614
|
* removeObjectLink();
|
6609
6615
|
* </script>
|
6610
6616
|
* ```
|
@@ -6635,7 +6641,7 @@ function removeObjectLink(element, symbol) {
|
|
6635
6641
|
*
|
6636
6642
|
* ```
|
6637
6643
|
* <script type="module">
|
6638
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
6644
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/attributes.js';
|
6639
6645
|
* Monster.DOM.hasObjectLink();
|
6640
6646
|
* </script>
|
6641
6647
|
* ```
|
@@ -6644,7 +6650,7 @@ function removeObjectLink(element, symbol) {
|
|
6644
6650
|
*
|
6645
6651
|
* ```
|
6646
6652
|
* <script type="module">
|
6647
|
-
* import {hasObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
6653
|
+
* import {hasObjectLink} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/attributes.js';
|
6648
6654
|
* hasObjectLink();
|
6649
6655
|
* </script>
|
6650
6656
|
* ```
|
@@ -6680,7 +6686,7 @@ function hasObjectLink(element, symbol) {
|
|
6680
6686
|
*
|
6681
6687
|
* ```
|
6682
6688
|
* <script type="module">
|
6683
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
6689
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/attributes.js';
|
6684
6690
|
* Monster.DOM.getLinkedObjects();
|
6685
6691
|
* </script>
|
6686
6692
|
* ```
|
@@ -6689,7 +6695,7 @@ function hasObjectLink(element, symbol) {
|
|
6689
6695
|
*
|
6690
6696
|
* ```
|
6691
6697
|
* <script type="module">
|
6692
|
-
* import {getLinkedObjects} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
6698
|
+
* import {getLinkedObjects} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/attributes.js';
|
6693
6699
|
* getLinkedObjects();
|
6694
6700
|
* </script>
|
6695
6701
|
* ```
|
@@ -6723,7 +6729,7 @@ function getLinkedObjects(element, symbol) {
|
|
6723
6729
|
*
|
6724
6730
|
* ```
|
6725
6731
|
* <script type="module">
|
6726
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
6732
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/attributes.js';
|
6727
6733
|
* Monster.DOM.toggleAttributeToken();
|
6728
6734
|
* </script>
|
6729
6735
|
* ```
|
@@ -6732,7 +6738,7 @@ function getLinkedObjects(element, symbol) {
|
|
6732
6738
|
*
|
6733
6739
|
* ```
|
6734
6740
|
* <script type="module">
|
6735
|
-
* import {toggleAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
6741
|
+
* import {toggleAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/attributes.js';
|
6736
6742
|
* toggleAttributeToken();
|
6737
6743
|
* </script>
|
6738
6744
|
* ```
|
@@ -6767,7 +6773,7 @@ function toggleAttributeToken(element, key, token) {
|
|
6767
6773
|
*
|
6768
6774
|
* ```
|
6769
6775
|
* <script type="module">
|
6770
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
6776
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/attributes.js';
|
6771
6777
|
* Monster.DOM.addAttributeToken();
|
6772
6778
|
* </script>
|
6773
6779
|
* ```
|
@@ -6776,7 +6782,7 @@ function toggleAttributeToken(element, key, token) {
|
|
6776
6782
|
*
|
6777
6783
|
* ```
|
6778
6784
|
* <script type="module">
|
6779
|
-
* import {addAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
6785
|
+
* import {addAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/attributes.js';
|
6780
6786
|
* addAttributeToken();
|
6781
6787
|
* </script>
|
6782
6788
|
* ```
|
@@ -6813,7 +6819,7 @@ function addAttributeToken(element, key, token) {
|
|
6813
6819
|
*
|
6814
6820
|
* ```
|
6815
6821
|
* <script type="module">
|
6816
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
6822
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/attributes.js';
|
6817
6823
|
* Monster.DOM.removeAttributeToken();
|
6818
6824
|
* </script>
|
6819
6825
|
* ```
|
@@ -6822,7 +6828,7 @@ function addAttributeToken(element, key, token) {
|
|
6822
6828
|
*
|
6823
6829
|
* ```
|
6824
6830
|
* <script type="module">
|
6825
|
-
* import {removeAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
6831
|
+
* import {removeAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/attributes.js';
|
6826
6832
|
* removeAttributeToken();
|
6827
6833
|
* </script>
|
6828
6834
|
* ```
|
@@ -6858,7 +6864,7 @@ function removeAttributeToken(element, key, token) {
|
|
6858
6864
|
*
|
6859
6865
|
* ```
|
6860
6866
|
* <script type="module">
|
6861
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
6867
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/attributes.js';
|
6862
6868
|
* Monster.DOM.containsAttributeToken();
|
6863
6869
|
* </script>
|
6864
6870
|
* ```
|
@@ -6867,7 +6873,7 @@ function removeAttributeToken(element, key, token) {
|
|
6867
6873
|
*
|
6868
6874
|
* ```
|
6869
6875
|
* <script type="module">
|
6870
|
-
* import {containsAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
6876
|
+
* import {containsAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/attributes.js';
|
6871
6877
|
* containsAttributeToken();
|
6872
6878
|
* </script>
|
6873
6879
|
* ```
|
@@ -6900,7 +6906,7 @@ function containsAttributeToken(element, key, token) {
|
|
6900
6906
|
*
|
6901
6907
|
* ```
|
6902
6908
|
* <script type="module">
|
6903
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
6909
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/attributes.js';
|
6904
6910
|
* Monster.DOM.replaceAttributeToken();
|
6905
6911
|
* </script>
|
6906
6912
|
* ```
|
@@ -6909,7 +6915,7 @@ function containsAttributeToken(element, key, token) {
|
|
6909
6915
|
*
|
6910
6916
|
* ```
|
6911
6917
|
* <script type="module">
|
6912
|
-
* import {replaceAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
6918
|
+
* import {replaceAttributeToken} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/attributes.js';
|
6913
6919
|
* replaceAttributeToken();
|
6914
6920
|
* </script>
|
6915
6921
|
* ```
|
@@ -6945,7 +6951,7 @@ function replaceAttributeToken(element, key, from, to) {
|
|
6945
6951
|
*
|
6946
6952
|
* ```
|
6947
6953
|
* <script type="module">
|
6948
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
6954
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/attributes.js';
|
6949
6955
|
* Monster.DOM.clearAttributeTokens();
|
6950
6956
|
* </script>
|
6951
6957
|
* ```
|
@@ -6954,7 +6960,7 @@ function replaceAttributeToken(element, key, from, to) {
|
|
6954
6960
|
*
|
6955
6961
|
* ```
|
6956
6962
|
* <script type="module">
|
6957
|
-
* import {clearAttributeTokens} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
6963
|
+
* import {clearAttributeTokens} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/attributes.js';
|
6958
6964
|
* clearAttributeTokens();
|
6959
6965
|
* </script>
|
6960
6966
|
* ```
|
@@ -6984,7 +6990,7 @@ function clearAttributeTokens(element, key) {
|
|
6984
6990
|
*
|
6985
6991
|
* ```
|
6986
6992
|
* <script type="module">
|
6987
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
6993
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/attributes.js';
|
6988
6994
|
* Monster.DOM.findClosestByAttribute();
|
6989
6995
|
* </script>
|
6990
6996
|
* ```
|
@@ -6993,7 +6999,7 @@ function clearAttributeTokens(element, key) {
|
|
6993
6999
|
*
|
6994
7000
|
* ```
|
6995
7001
|
* <script type="module">
|
6996
|
-
* import {findClosestByAttribute} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
7002
|
+
* import {findClosestByAttribute} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/attributes.js';
|
6997
7003
|
* findClosestByAttribute();
|
6998
7004
|
* </script>
|
6999
7005
|
* ```
|
@@ -7170,7 +7176,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
7170
7176
|
/* harmony export */ "Monster": function() { return /* reexport safe */ _namespace_js__WEBPACK_IMPORTED_MODULE_1__.Monster; },
|
7171
7177
|
/* harmony export */ "CustomControl": function() { return /* binding */ CustomControl; }
|
7172
7178
|
/* harmony export */ });
|
7173
|
-
/* harmony import */ var _data_extend_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
7179
|
+
/* harmony import */ var _data_extend_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21);
|
7174
7180
|
/* harmony import */ var _namespace_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
|
7175
7181
|
/* harmony import */ var _customelement_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(35);
|
7176
7182
|
|
@@ -7227,7 +7233,7 @@ var internalSymbol = Symbol('internalSymbol');
|
|
7227
7233
|
*
|
7228
7234
|
* ```
|
7229
7235
|
* <script type="module">
|
7230
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
7236
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/customcontrol.js';
|
7231
7237
|
* console.log(new Monster.DOM.CustomControl())
|
7232
7238
|
* </script>
|
7233
7239
|
* ```
|
@@ -7236,7 +7242,7 @@ var internalSymbol = Symbol('internalSymbol');
|
|
7236
7242
|
*
|
7237
7243
|
* ```
|
7238
7244
|
* <script type="module">
|
7239
|
-
* import {CustomControl} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
7245
|
+
* import {CustomControl} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/customcontrol.js';
|
7240
7246
|
* console.log(new CustomControl())
|
7241
7247
|
* </script>
|
7242
7248
|
* ```
|
@@ -7574,7 +7580,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
7574
7580
|
/* harmony export */ "assembleMethodSymbol": function() { return /* binding */ assembleMethodSymbol; }
|
7575
7581
|
/* harmony export */ });
|
7576
7582
|
/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
|
7577
|
-
/* harmony import */ var _data_extend_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
7583
|
+
/* harmony import */ var _data_extend_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21);
|
7578
7584
|
/* harmony import */ var _data_pathfinder_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(17);
|
7579
7585
|
/* harmony import */ var _namespace_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2);
|
7580
7586
|
/* harmony import */ var _types_global_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(16);
|
@@ -7689,7 +7695,7 @@ var assembleMethodSymbol = Symbol('assembleMethodSymbol');
|
|
7689
7695
|
*
|
7690
7696
|
* ```
|
7691
7697
|
* <script type="module">
|
7692
|
-
* import {CustomElement} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
7698
|
+
* import {CustomElement} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/customelement.js';
|
7693
7699
|
* console.log(new Monster.DOM.CustomElement())
|
7694
7700
|
* </script>
|
7695
7701
|
* ```
|
@@ -7698,7 +7704,7 @@ var assembleMethodSymbol = Symbol('assembleMethodSymbol');
|
|
7698
7704
|
*
|
7699
7705
|
* ```
|
7700
7706
|
* <script type="module">
|
7701
|
-
* import {CustomElement} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
7707
|
+
* import {CustomElement} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/customelement.js';
|
7702
7708
|
* console.log(new CustomElement())
|
7703
7709
|
* </script>
|
7704
7710
|
* ```
|
@@ -8354,7 +8360,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
8354
8360
|
*
|
8355
8361
|
* ```
|
8356
8362
|
* <script type="module">
|
8357
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
8363
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/template.js';
|
8358
8364
|
* console.log(new Monster.DOM.Template())
|
8359
8365
|
* </script>
|
8360
8366
|
* ```
|
@@ -8363,7 +8369,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
8363
8369
|
*
|
8364
8370
|
* ```
|
8365
8371
|
* <script type="module">
|
8366
|
-
* import {Template} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
8372
|
+
* import {Template} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/template.js';
|
8367
8373
|
* console.log(new Template())
|
8368
8374
|
* </script>
|
8369
8375
|
* ```
|
@@ -8429,7 +8435,7 @@ var Template = /*#__PURE__*/function (_Base) {
|
|
8429
8435
|
*
|
8430
8436
|
* ```
|
8431
8437
|
* <script type="module">
|
8432
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
8438
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/template.js';
|
8433
8439
|
* console.log(Monster.DOM.findDocumentTemplate())
|
8434
8440
|
* </script>
|
8435
8441
|
* ```
|
@@ -8438,7 +8444,7 @@ var Template = /*#__PURE__*/function (_Base) {
|
|
8438
8444
|
*
|
8439
8445
|
* ```
|
8440
8446
|
* <script type="module">
|
8441
|
-
* import {findTemplate} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
8447
|
+
* import {findTemplate} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/template.js';
|
8442
8448
|
* console.log(findDocumentTemplate())
|
8443
8449
|
* </script>
|
8444
8450
|
* ```
|
@@ -8548,7 +8554,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
8548
8554
|
*
|
8549
8555
|
* ```
|
8550
8556
|
* <script type="module">
|
8551
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
8557
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/theme.js';
|
8552
8558
|
* console.log(new Monster.DOM.Theme())
|
8553
8559
|
* </script>
|
8554
8560
|
* ```
|
@@ -8557,14 +8563,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
8557
8563
|
*
|
8558
8564
|
* ```
|
8559
8565
|
* <script type="module">
|
8560
|
-
* import {Theme} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
8566
|
+
* import {Theme} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/theme.js';
|
8561
8567
|
* console.log(new Theme())
|
8562
8568
|
* </script>
|
8563
8569
|
* ```
|
8564
8570
|
*
|
8565
8571
|
* @example
|
8566
8572
|
*
|
8567
|
-
* import {getDocumentTheme} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
8573
|
+
* import {getDocumentTheme} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/theme.js';
|
8568
8574
|
*
|
8569
8575
|
* const theme = getDocumentTheme();
|
8570
8576
|
* console.log(theme.getName());
|
@@ -8733,7 +8739,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
8733
8739
|
*
|
8734
8740
|
* ```
|
8735
8741
|
* <script type="module">
|
8736
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
8742
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/updater.js';
|
8737
8743
|
* console.log(new Monster.DOM.Updater())
|
8738
8744
|
* </script>
|
8739
8745
|
* ```
|
@@ -8742,14 +8748,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
8742
8748
|
*
|
8743
8749
|
* ```
|
8744
8750
|
* <script type="module">
|
8745
|
-
* import {Updater} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
8751
|
+
* import {Updater} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/updater.js';
|
8746
8752
|
* console.log(new Updater())
|
8747
8753
|
* </script>
|
8748
8754
|
* ```
|
8749
8755
|
*
|
8750
8756
|
* @example
|
8751
8757
|
*
|
8752
|
-
* import {Updater} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
8758
|
+
* import {Updater} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/updater.js';
|
8753
8759
|
*
|
8754
8760
|
* // First we prepare the html document.
|
8755
8761
|
* // This is done here via script, but can also be inserted into the document as pure html.
|
@@ -9586,7 +9592,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
9586
9592
|
*
|
9587
9593
|
* ```
|
9588
9594
|
* <script type="module">
|
9589
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
9595
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/util.js';
|
9590
9596
|
* console.log(Monster.DOM.getDocument())
|
9591
9597
|
* </script>
|
9592
9598
|
* ```
|
@@ -9595,7 +9601,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
9595
9601
|
*
|
9596
9602
|
* ```
|
9597
9603
|
* <script type="module">
|
9598
|
-
* import {getDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
9604
|
+
* import {getDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/util.js';
|
9599
9605
|
* console.log(getDocument())
|
9600
9606
|
* </script>
|
9601
9607
|
* ```
|
@@ -9650,7 +9656,7 @@ function getDocument() {
|
|
9650
9656
|
*
|
9651
9657
|
* ```
|
9652
9658
|
* <script type="module">
|
9653
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
9659
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/util.js';
|
9654
9660
|
* console.log(Monster.DOM.getWindow())
|
9655
9661
|
* </script>
|
9656
9662
|
* ```
|
@@ -9659,7 +9665,7 @@ function getDocument() {
|
|
9659
9665
|
*
|
9660
9666
|
* ```
|
9661
9667
|
* <script type="module">
|
9662
|
-
* import {getWindow} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
9668
|
+
* import {getWindow} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/util.js';
|
9663
9669
|
* console.log(getWindow(null))
|
9664
9670
|
* </script>
|
9665
9671
|
* ```
|
@@ -9719,7 +9725,7 @@ function getWindow() {
|
|
9719
9725
|
*
|
9720
9726
|
* ```
|
9721
9727
|
* <script type="module">
|
9722
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
9728
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/util.js';
|
9723
9729
|
* console.log(Monster.DOM.getDocumentFragmentFromString())
|
9724
9730
|
* </script>
|
9725
9731
|
* ```
|
@@ -9728,7 +9734,7 @@ function getWindow() {
|
|
9728
9734
|
*
|
9729
9735
|
* ```
|
9730
9736
|
* <script type="module">
|
9731
|
-
* import {getDocumentFragmentFromString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
9737
|
+
* import {getDocumentFragmentFromString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/util.js';
|
9732
9738
|
* console.log(getDocumentFragmentFromString('<div></div>'))
|
9733
9739
|
* </script>
|
9734
9740
|
* ```
|
@@ -9814,7 +9820,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
9814
9820
|
*
|
9815
9821
|
* ```
|
9816
9822
|
* <script type="module">
|
9817
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
9823
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/events.js';
|
9818
9824
|
* console.log(new Monster.DOM.fireEvent())
|
9819
9825
|
* </script>
|
9820
9826
|
* ```
|
@@ -9823,7 +9829,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
9823
9829
|
*
|
9824
9830
|
* ```
|
9825
9831
|
* <script type="module">
|
9826
|
-
* import {fireEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
9832
|
+
* import {fireEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/events.js';
|
9827
9833
|
* console.log(fireEvent())
|
9828
9834
|
* </script>
|
9829
9835
|
* ```
|
@@ -9877,7 +9883,7 @@ function fireEvent(element, type) {
|
|
9877
9883
|
*
|
9878
9884
|
* ```
|
9879
9885
|
* <script type="module">
|
9880
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
9886
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/events.js';
|
9881
9887
|
* console.log(new Monster.DOM.findTargetElementFromEvent())
|
9882
9888
|
* </script>
|
9883
9889
|
* ```
|
@@ -9886,7 +9892,7 @@ function fireEvent(element, type) {
|
|
9886
9892
|
*
|
9887
9893
|
* ```
|
9888
9894
|
* <script type="module">
|
9889
|
-
* import {findTargetElementFromEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
9895
|
+
* import {findTargetElementFromEvent} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/events.js';
|
9890
9896
|
* console.log(findTargetElementFromEvent())
|
9891
9897
|
* </script>
|
9892
9898
|
* ```
|
@@ -9957,7 +9963,7 @@ var DEFAULT_LANGUAGE = 'en';
|
|
9957
9963
|
*
|
9958
9964
|
* ```
|
9959
9965
|
* <script type="module">
|
9960
|
-
* import {getLocaleOfDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
9966
|
+
* import {getLocaleOfDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/locale.js';
|
9961
9967
|
* console.log(new Monster.DOM.getLocaleOfDocument())
|
9962
9968
|
* </script>
|
9963
9969
|
* ```
|
@@ -9966,7 +9972,7 @@ var DEFAULT_LANGUAGE = 'en';
|
|
9966
9972
|
*
|
9967
9973
|
* ```
|
9968
9974
|
* <script type="module">
|
9969
|
-
* import {getLocaleOfDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
9975
|
+
* import {getLocaleOfDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/dom/locale.js';
|
9970
9976
|
* console.log(new getLocaleOfDocument())
|
9971
9977
|
* </script>
|
9972
9978
|
* ```
|
@@ -10058,7 +10064,7 @@ var localeStringSymbol = Symbol('localeString');
|
|
10058
10064
|
*
|
10059
10065
|
* ```
|
10060
10066
|
* <script type="module">
|
10061
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
10067
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/i18n/locale.js';
|
10062
10068
|
* console.log(new Monster.I18n.Locale())
|
10063
10069
|
* </script>
|
10064
10070
|
* ```
|
@@ -10067,7 +10073,7 @@ var localeStringSymbol = Symbol('localeString');
|
|
10067
10073
|
*
|
10068
10074
|
* ```
|
10069
10075
|
* <script type="module">
|
10070
|
-
* import {Locale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
10076
|
+
* import {Locale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/i18n/locale.js';
|
10071
10077
|
* console.log(new Locale())
|
10072
10078
|
* </script>
|
10073
10079
|
* ```
|
@@ -10258,7 +10264,7 @@ var Locale = /*#__PURE__*/function (_Base) {
|
|
10258
10264
|
*
|
10259
10265
|
* ```
|
10260
10266
|
* <script type="module">
|
10261
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
10267
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/i18n/locale.js';
|
10262
10268
|
* console.log(new Monster.I18n.createLocale())
|
10263
10269
|
* </script>
|
10264
10270
|
* ```
|
@@ -10267,7 +10273,7 @@ var Locale = /*#__PURE__*/function (_Base) {
|
|
10267
10273
|
*
|
10268
10274
|
* ```
|
10269
10275
|
* <script type="module">
|
10270
|
-
* import {createLocale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
10276
|
+
* import {createLocale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/i18n/locale.js';
|
10271
10277
|
* console.log(createLocale())
|
10272
10278
|
* </script>
|
10273
10279
|
* ```
|
@@ -10443,7 +10449,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
10443
10449
|
*
|
10444
10450
|
* ```
|
10445
10451
|
* <script type="module">
|
10446
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
10452
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/i18n/provider.js';
|
10447
10453
|
* console.log(new Monster.I18n.Provider())
|
10448
10454
|
* </script>
|
10449
10455
|
* ```
|
@@ -10452,7 +10458,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
10452
10458
|
*
|
10453
10459
|
* ```
|
10454
10460
|
* <script type="module">
|
10455
|
-
* import {Provider} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
10461
|
+
* import {Provider} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/i18n/provider.js';
|
10456
10462
|
* console.log(new Provider())
|
10457
10463
|
* </script>
|
10458
10464
|
* ```
|
@@ -10508,7 +10514,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
10508
10514
|
/* harmony export */ "BaseWithOptions": function() { return /* binding */ BaseWithOptions; }
|
10509
10515
|
/* harmony export */ });
|
10510
10516
|
/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
|
10511
|
-
/* harmony import */ var _data_extend_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
10517
|
+
/* harmony import */ var _data_extend_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21);
|
10512
10518
|
/* harmony import */ var _data_pathfinder_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(17);
|
10513
10519
|
/* harmony import */ var _namespace_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2);
|
10514
10520
|
/* harmony import */ var _base_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4);
|
@@ -10560,7 +10566,7 @@ var optionsSymbol = Symbol.for(_constants_js__WEBPACK_IMPORTED_MODULE_0__.PROPER
|
|
10560
10566
|
*
|
10561
10567
|
* ```
|
10562
10568
|
* <script type="module">
|
10563
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
10569
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/basewithoptions.js';
|
10564
10570
|
* console.log(new Monster.Types.BaseWithOptions())
|
10565
10571
|
* </script>
|
10566
10572
|
* ```
|
@@ -10569,7 +10575,7 @@ var optionsSymbol = Symbol.for(_constants_js__WEBPACK_IMPORTED_MODULE_0__.PROPER
|
|
10569
10575
|
*
|
10570
10576
|
* ```
|
10571
10577
|
* <script type="module">
|
10572
|
-
* import {BaseWithOptions} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
10578
|
+
* import {BaseWithOptions} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/basewithoptions.js';
|
10573
10579
|
* console.log(new BaseWithOptions())
|
10574
10580
|
* </script>
|
10575
10581
|
* ```
|
@@ -10710,7 +10716,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
10710
10716
|
*
|
10711
10717
|
* ```
|
10712
10718
|
* <script type="module">
|
10713
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
10719
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/i18n/translations.js';
|
10714
10720
|
* console.log(new Monster.I18n.Translations())
|
10715
10721
|
* </script>
|
10716
10722
|
* ```
|
@@ -10719,7 +10725,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
10719
10725
|
*
|
10720
10726
|
* ```
|
10721
10727
|
* <script type="module">
|
10722
|
-
* import {Translations} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
10728
|
+
* import {Translations} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/i18n/translations.js';
|
10723
10729
|
* console.log(new Translations())
|
10724
10730
|
* </script>
|
10725
10731
|
* ```
|
@@ -10931,7 +10937,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
10931
10937
|
/* harmony export */ "Fetch": function() { return /* binding */ Fetch; }
|
10932
10938
|
/* harmony export */ });
|
10933
10939
|
/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
|
10934
|
-
/* harmony import */ var _data_extend_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
10940
|
+
/* harmony import */ var _data_extend_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21);
|
10935
10941
|
/* harmony import */ var _namespace_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2);
|
10936
10942
|
/* harmony import */ var _text_formatter_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(47);
|
10937
10943
|
/* harmony import */ var _types_global_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(16);
|
@@ -10995,7 +11001,7 @@ var optionsSymbol = Symbol.for(_constants_js__WEBPACK_IMPORTED_MODULE_0__.PROPER
|
|
10995
11001
|
*
|
10996
11002
|
* ```
|
10997
11003
|
* <script type="module">
|
10998
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
11004
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/i18n/providers/fetch.js';
|
10999
11005
|
* console.log(new Monster.I18n.Providers.Fetch())
|
11000
11006
|
* </script>
|
11001
11007
|
* ```
|
@@ -11004,7 +11010,7 @@ var optionsSymbol = Symbol.for(_constants_js__WEBPACK_IMPORTED_MODULE_0__.PROPER
|
|
11004
11010
|
*
|
11005
11011
|
* ```
|
11006
11012
|
* <script type="module">
|
11007
|
-
* import {Fetch} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
11013
|
+
* import {Fetch} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/i18n/providers/fetch.js';
|
11008
11014
|
* console.log(new Fetch())
|
11009
11015
|
* </script>
|
11010
11016
|
* ```
|
@@ -11173,7 +11179,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
11173
11179
|
*
|
11174
11180
|
* ```
|
11175
11181
|
* <script type="module">
|
11176
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
11182
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/text/formatter.js';
|
11177
11183
|
* console.log(new Monster.Text.Formatter())
|
11178
11184
|
* </script>
|
11179
11185
|
* ```
|
@@ -11182,7 +11188,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
11182
11188
|
*
|
11183
11189
|
* ```
|
11184
11190
|
* <script type="module">
|
11185
|
-
* import {Formatter} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
11191
|
+
* import {Formatter} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/text/formatter.js';
|
11186
11192
|
* console.log(new Formatter())
|
11187
11193
|
* </script>
|
11188
11194
|
* ```
|
@@ -11365,7 +11371,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
11365
11371
|
*
|
11366
11372
|
* ```
|
11367
11373
|
* <script type="module">
|
11368
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
11374
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/logging/handler.js';
|
11369
11375
|
* console.log(new Monster.Logging.Handler())
|
11370
11376
|
* </script>
|
11371
11377
|
* ```
|
@@ -11374,7 +11380,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
11374
11380
|
*
|
11375
11381
|
* ```
|
11376
11382
|
* <script type="module">
|
11377
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
11383
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/logging/handler.js';
|
11378
11384
|
* console.log(new Handler())
|
11379
11385
|
* </script>
|
11380
11386
|
* ```
|
@@ -11612,7 +11618,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
11612
11618
|
*
|
11613
11619
|
* ```
|
11614
11620
|
* <script type="module">
|
11615
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
11621
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/logging/logentry.js';
|
11616
11622
|
* console.log(new Monster.Logging.LogEntry())
|
11617
11623
|
* </script>
|
11618
11624
|
* ```
|
@@ -11621,7 +11627,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
11621
11627
|
*
|
11622
11628
|
* ```
|
11623
11629
|
* <script type="module">
|
11624
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
11630
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/logging/logentry.js';
|
11625
11631
|
* console.log(new LogEntry())
|
11626
11632
|
* </script>
|
11627
11633
|
* ```
|
@@ -11807,7 +11813,7 @@ var OFF = 0;
|
|
11807
11813
|
*
|
11808
11814
|
* ```
|
11809
11815
|
* <script type="module">
|
11810
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
11816
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/logging/logger.js';
|
11811
11817
|
* console.log(new Monster.Logging.Logger())
|
11812
11818
|
* </script>
|
11813
11819
|
* ```
|
@@ -11816,7 +11822,7 @@ var OFF = 0;
|
|
11816
11822
|
*
|
11817
11823
|
* ```
|
11818
11824
|
* <script type="module">
|
11819
|
-
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
11825
|
+
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/logging/logger.js';
|
11820
11826
|
* console.log(new Logger())
|
11821
11827
|
* </script>
|
11822
11828
|
* ```
|
@@ -12116,7 +12122,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12116
12122
|
*
|
12117
12123
|
* ```
|
12118
12124
|
* <script type="module">
|
12119
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
12125
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/logging/handler/console.js';
|
12120
12126
|
* console.log(new Monster.Logging.Handler.ConsoleHandler())
|
12121
12127
|
* </script>
|
12122
12128
|
* ```
|
@@ -12125,7 +12131,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12125
12131
|
*
|
12126
12132
|
* ```
|
12127
12133
|
* <script type="module">
|
12128
|
-
* import {ConsoleHandler} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
12134
|
+
* import {ConsoleHandler} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/logging/handler/console.js';
|
12129
12135
|
* console.log(new ConsoleHandler())
|
12130
12136
|
* </script>
|
12131
12137
|
* ```
|
@@ -12201,7 +12207,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
12201
12207
|
*
|
12202
12208
|
* ```
|
12203
12209
|
* <script type="module">
|
12204
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
12210
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/math/random.js';
|
12205
12211
|
* console.log(Monster.Math.random(1,10)) // ↦ 5
|
12206
12212
|
* </script>
|
12207
12213
|
* ```
|
@@ -12210,7 +12216,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
12210
12216
|
*
|
12211
12217
|
* ```
|
12212
12218
|
* <script type="module">
|
12213
|
-
* import {random} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
12219
|
+
* import {random} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/math/random.js';
|
12214
12220
|
* console.log(random(1,10)) // ↦ 5
|
12215
12221
|
* </script>
|
12216
12222
|
* ```
|
@@ -12362,7 +12368,7 @@ var internalCounter = 0;
|
|
12362
12368
|
*
|
12363
12369
|
* ```
|
12364
12370
|
* <script type="module">
|
12365
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
12371
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/randomid.js';
|
12366
12372
|
* console.log(new Monster.Types.RandomID())
|
12367
12373
|
* </script>
|
12368
12374
|
* ```
|
@@ -12371,7 +12377,7 @@ var internalCounter = 0;
|
|
12371
12377
|
*
|
12372
12378
|
* ```
|
12373
12379
|
* <script type="module">
|
12374
|
-
* import {RandomID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
12380
|
+
* import {RandomID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/randomid.js';
|
12375
12381
|
* console.log(new RandomID())
|
12376
12382
|
* </script>
|
12377
12383
|
* ```
|
@@ -12453,7 +12459,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12453
12459
|
*
|
12454
12460
|
* ```
|
12455
12461
|
* <script type="module">
|
12456
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
12462
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/version.js';
|
12457
12463
|
* console.log(new Monster.Types.Version('1.2.3')) // ↦ 1.2.3
|
12458
12464
|
* console.log(new Monster.Types.Version('1')) // ↦ 1.0.0
|
12459
12465
|
* </script>
|
@@ -12463,7 +12469,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12463
12469
|
*
|
12464
12470
|
* ```
|
12465
12471
|
* <script type="module">
|
12466
|
-
* import {Version} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
12472
|
+
* import {Version} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/version.js';
|
12467
12473
|
* console.log(new Version('1.2.3')) // ↦ 1.2.3
|
12468
12474
|
* console.log(new Version('1')) // ↦ 1.0.0
|
12469
12475
|
* </script>
|
@@ -12471,7 +12477,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12471
12477
|
*
|
12472
12478
|
* @example
|
12473
12479
|
*
|
12474
|
-
* import {Version} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
12480
|
+
* import {Version} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/version.js';
|
12475
12481
|
*
|
12476
12482
|
* new Version('1.0.0') // ↦ 1.0.0
|
12477
12483
|
* new Version(1) // ↦ 1.0.0
|
@@ -12604,7 +12610,7 @@ var monsterVersion;
|
|
12604
12610
|
*
|
12605
12611
|
* ```
|
12606
12612
|
* <script type="module">
|
12607
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
12613
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/version.js';
|
12608
12614
|
* console.log(Monster.getVersion())
|
12609
12615
|
* </script>
|
12610
12616
|
* ```
|
@@ -12613,7 +12619,7 @@ var monsterVersion;
|
|
12613
12619
|
*
|
12614
12620
|
* ```
|
12615
12621
|
* <script type="module">
|
12616
|
-
* import {getVersion} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
12622
|
+
* import {getVersion} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/types/version.js';
|
12617
12623
|
* console.log(getVersion())
|
12618
12624
|
* </script>
|
12619
12625
|
* ```
|
@@ -12632,7 +12638,7 @@ function getVersion() {
|
|
12632
12638
|
/**#@+ dont touch, replaced by make with package.json version */
|
12633
12639
|
|
12634
12640
|
|
12635
|
-
monsterVersion = new Version('1.17.
|
12641
|
+
monsterVersion = new Version('1.17.1');
|
12636
12642
|
/**#@-*/
|
12637
12643
|
|
12638
12644
|
return monsterVersion;
|
@@ -12688,7 +12694,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12688
12694
|
*
|
12689
12695
|
* ```
|
12690
12696
|
* <script type="module">
|
12691
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
12697
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/util/comparator.js';
|
12692
12698
|
* console.log(new Monster.Util.Comparator())
|
12693
12699
|
* </script>
|
12694
12700
|
* ```
|
@@ -12697,7 +12703,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12697
12703
|
*
|
12698
12704
|
* ```
|
12699
12705
|
* <script type="module">
|
12700
|
-
* import {Comparator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
12706
|
+
* import {Comparator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/util/comparator.js';
|
12701
12707
|
* console.log(new Comparator())
|
12702
12708
|
* </script>
|
12703
12709
|
* ```
|
@@ -12722,7 +12728,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
12722
12728
|
*
|
12723
12729
|
* @example
|
12724
12730
|
*
|
12725
|
-
* import {Comparator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
12731
|
+
* import {Comparator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/util/comparator.js';
|
12726
12732
|
*
|
12727
12733
|
* console.log(new Comparator().lessThanOrEqual(2, 5))
|
12728
12734
|
* // ↦ true
|
@@ -12935,7 +12941,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
12935
12941
|
*
|
12936
12942
|
* ```
|
12937
12943
|
* <script type="module">
|
12938
|
-
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
12944
|
+
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/util/freeze.js';
|
12939
12945
|
* console.log(Monster.Util.deepFreeze({}))
|
12940
12946
|
* </script>
|
12941
12947
|
* ```
|
@@ -12944,7 +12950,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
12944
12950
|
*
|
12945
12951
|
* ```
|
12946
12952
|
* <script type="module">
|
12947
|
-
* import {deepFreeze} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.
|
12953
|
+
* import {deepFreeze} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.17.1/dist/modules/util/freeze.js';
|
12948
12954
|
* console.log(deepFreeze({}))
|
12949
12955
|
* </script>
|
12950
12956
|
* ```
|
@@ -13058,7 +13064,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
13058
13064
|
/* harmony import */ var _constraints_valid_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(12);
|
13059
13065
|
/* harmony import */ var _data_buildmap_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(13);
|
13060
13066
|
/* harmony import */ var _data_diff_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(19);
|
13061
|
-
/* harmony import */ var _data_extend_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(
|
13067
|
+
/* harmony import */ var _data_extend_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(21);
|
13062
13068
|
/* harmony import */ var _data_pathfinder_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(17);
|
13063
13069
|
/* harmony import */ var _data_pipe_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(22);
|
13064
13070
|
/* harmony import */ var _data_transformer_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(23);
|
@@ -13096,7 +13102,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
13096
13102
|
/* harmony import */ var _types_randomid_js__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(53);
|
13097
13103
|
/* harmony import */ var _types_stack_js__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(18);
|
13098
13104
|
/* harmony import */ var _types_tokenlist_js__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(28);
|
13099
|
-
/* harmony import */ var _types_typeof_js__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(
|
13105
|
+
/* harmony import */ var _types_typeof_js__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(20);
|
13100
13106
|
/* harmony import */ var _types_uniquequeue_js__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(29);
|
13101
13107
|
/* harmony import */ var _types_validate_js__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(14);
|
13102
13108
|
/* harmony import */ var _types_version_js__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(54);
|