Skip to content
Snippets Groups Projects
Verified Commit 18583969 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

chore: commit save point

parent 486a6bf5
No related branches found
No related tags found
No related merge requests found
Showing
with 192 additions and 72 deletions
/** /**
* @author schukai GmbH * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
* Node module: @schukai/monster
* This file is licensed under the AGPLv3 License.
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
*/ */
export {isIterable, isPrimitive, isSymbol, isBoolean, isString, isObject, isInstance, isArray, isFunction, isInteger} export {isIterable, isPrimitive, isSymbol, isBoolean, isString, isObject, isInstance, isArray, isFunction, isInteger}
...@@ -16,7 +20,7 @@ export {isIterable, isPrimitive, isSymbol, isBoolean, isString, isObject, isInst ...@@ -16,7 +20,7 @@ export {isIterable, isPrimitive, isSymbol, isBoolean, isString, isObject, isInst
* *
* ``` * ```
* <script type="module"> * <script type="module">
* import {isIterable} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/is.mjs'; * import {isIterable} from '@schukai/monster/source/types/is.mjs';
* isIterable(null) // ↦ false * isIterable(null) // ↦ false
* isIterable('hello') // ↦ true * isIterable('hello') // ↦ true
* isIterable([]) // ↦ true * isIterable([]) // ↦ true
...@@ -25,6 +29,7 @@ export {isIterable, isPrimitive, isSymbol, isBoolean, isString, isObject, isInst ...@@ -25,6 +29,7 @@ export {isIterable, isPrimitive, isSymbol, isBoolean, isString, isObject, isInst
* *
* @param {*} value * @param {*} value
* @returns {boolean} * @returns {boolean}
* @license AGPLv3
* @since 1.2.0 * @since 1.2.0
* @copyright schukai GmbH * @copyright schukai GmbH
* @memberOf Monster.Types * @memberOf Monster.Types
...@@ -43,7 +48,7 @@ function isIterable(value) { ...@@ -43,7 +48,7 @@ function isIterable(value) {
* *
* ``` * ```
* <script type="module"> * <script type="module">
* import {isPrimitive} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/is.mjs'; * import {isPrimitive} from '@schukai/monster/source/types/is.mjs';
* isPrimitive('2')) // ↦ true * isPrimitive('2')) // ↦ true
* isPrimitive([])) // ↦ false * isPrimitive([])) // ↦ false
* </script> * </script>
...@@ -51,6 +56,7 @@ function isIterable(value) { ...@@ -51,6 +56,7 @@ function isIterable(value) {
* *
* @param {*} value * @param {*} value
* @returns {boolean} * @returns {boolean}
* @license AGPLv3
* @since 1.0.0 * @since 1.0.0
* @copyright schukai GmbH * @copyright schukai GmbH
* @memberOf Monster.Types * @memberOf Monster.Types
...@@ -78,7 +84,7 @@ function isPrimitive(value) { ...@@ -78,7 +84,7 @@ function isPrimitive(value) {
* *
* ``` * ```
* <script type="module"> * <script type="module">
* import {isSymbol} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/is.mjs'; * import {isSymbol} from '@schukai/monster/source/types/is.mjs';
* isSymbol(Symbol('a'))) // ↦ true * isSymbol(Symbol('a'))) // ↦ true
* isSymbol([]) // ↦ false * isSymbol([]) // ↦ false
* </script> * </script>
...@@ -86,6 +92,7 @@ function isPrimitive(value) { ...@@ -86,6 +92,7 @@ function isPrimitive(value) {
* *
* @param {*} value * @param {*} value
* @returns {boolean} * @returns {boolean}
* @license AGPLv3
* @since 1.9.0 * @since 1.9.0
* @copyright schukai GmbH * @copyright schukai GmbH
* @memberOf Monster.Types * @memberOf Monster.Types
...@@ -101,7 +108,7 @@ function isSymbol(value) { ...@@ -101,7 +108,7 @@ function isSymbol(value) {
* *
* ``` * ```
* <script type="module"> * <script type="module">
* import {isBoolean} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/is.mjs'; * import {isBoolean} from '@schukai/monster/source/types/is.mjs';
* isBoolean('2')) // ↦ false * isBoolean('2')) // ↦ false
* isBoolean([])) // ↦ false * isBoolean([])) // ↦ false
* isBoolean(2>4)) // ↦ true * isBoolean(2>4)) // ↦ true
...@@ -110,6 +117,7 @@ function isSymbol(value) { ...@@ -110,6 +117,7 @@ function isSymbol(value) {
* *
* @param {*} value * @param {*} value
* @returns {boolean} * @returns {boolean}
* @license AGPLv3
* @since 1.0.0 * @since 1.0.0
* @copyright schukai GmbH * @copyright schukai GmbH
* @memberOf Monster.Types * @memberOf Monster.Types
...@@ -130,7 +138,7 @@ function isBoolean(value) { ...@@ -130,7 +138,7 @@ function isBoolean(value) {
* *
* ``` * ```
* <script type="module"> * <script type="module">
* import {isString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/is.mjs'; * import {isString} from '@schukai/monster/source/types/is.mjs';
* isString('2')) // ↦ true * isString('2')) // ↦ true
* isString([])) // ↦ false * isString([])) // ↦ false
* </script> * </script>
...@@ -138,6 +146,7 @@ function isBoolean(value) { ...@@ -138,6 +146,7 @@ function isBoolean(value) {
* *
* @param {*} value * @param {*} value
* @returns {boolean} * @returns {boolean}
* @license AGPLv3
* @since 1.0.0 * @since 1.0.0
* @copyright schukai GmbH * @copyright schukai GmbH
* @memberOf Monster.Types * @memberOf Monster.Types
...@@ -156,7 +165,7 @@ function isString(value) { ...@@ -156,7 +165,7 @@ function isString(value) {
* *
* ``` * ```
* <script type="module"> * <script type="module">
* import {isObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/is.mjs'; * import {isObject} from '@schukai/monster/source/types/is.mjs';
* isObject('2')) // ↦ false * isObject('2')) // ↦ false
* isObject([])) // ↦ false * isObject([])) // ↦ false
* </script> * </script>
...@@ -164,6 +173,7 @@ function isString(value) { ...@@ -164,6 +173,7 @@ function isString(value) {
* *
* @param {*} value * @param {*} value
* @returns {boolean} * @returns {boolean}
* @license AGPLv3
* @since 1.0.0 * @since 1.0.0
* @copyright schukai GmbH * @copyright schukai GmbH
* @memberOf Monster.Types * @memberOf Monster.Types
...@@ -187,7 +197,7 @@ function isObject(value) { ...@@ -187,7 +197,7 @@ function isObject(value) {
* *
* ``` * ```
* <script type="module"> * <script type="module">
* import {isInstance} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/is.mjs'; * import {isInstance} from '@schukai/monster/source/types/is.mjs';
* isInstance('2')) // ↦ false * isInstance('2')) // ↦ false
* isInstance([])) // ↦ false * isInstance([])) // ↦ false
* </script> * </script>
...@@ -196,6 +206,7 @@ function isObject(value) { ...@@ -196,6 +206,7 @@ function isObject(value) {
* @param {*} value * @param {*} value
* @param {*} instance * @param {*} instance
* @returns {boolean} * @returns {boolean}
* @license AGPLv3
* @since 1.5.0 * @since 1.5.0
* @copyright schukai GmbH * @copyright schukai GmbH
* @memberOf Monster.Types * @memberOf Monster.Types
...@@ -214,7 +225,7 @@ function isInstance(value, instance) { ...@@ -214,7 +225,7 @@ function isInstance(value, instance) {
* *
* ``` * ```
* <script type="module"> * <script type="module">
* import {isArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/is.mjs'; * import {isArray} from '@schukai/monster/source/types/is.mjs';
* isArray('2')) // ↦ false * isArray('2')) // ↦ false
* isArray([])) // ↦ true * isArray([])) // ↦ true
* </script> * </script>
...@@ -222,6 +233,7 @@ function isInstance(value, instance) { ...@@ -222,6 +233,7 @@ function isInstance(value, instance) {
* *
* @param {*} value * @param {*} value
* @returns {boolean} * @returns {boolean}
* @license AGPLv3
* @since 1.0.0 * @since 1.0.0
* @copyright schukai GmbH * @copyright schukai GmbH
* @memberOf Monster.Types * @memberOf Monster.Types
...@@ -238,7 +250,7 @@ function isArray(value) { ...@@ -238,7 +250,7 @@ function isArray(value) {
* *
* ``` * ```
* <script type="module"> * <script type="module">
* import {isFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/is.mjs'; * import {isFunction} from '@schukai/monster/source/types/is.mjs';
* isFunction(()=>{}) // ↦ true * isFunction(()=>{}) // ↦ true
* isFunction('2')) // ↦ false * isFunction('2')) // ↦ false
* isFunction([])) // ↦ false * isFunction([])) // ↦ false
...@@ -247,6 +259,7 @@ function isArray(value) { ...@@ -247,6 +259,7 @@ function isArray(value) {
* *
* @param {*} value * @param {*} value
* @returns {boolean} * @returns {boolean}
* @license AGPLv3
* @since 1.0.0 * @since 1.0.0
* @copyright schukai GmbH * @copyright schukai GmbH
* @memberOf Monster.Types * @memberOf Monster.Types
...@@ -270,7 +283,7 @@ function isFunction(value) { ...@@ -270,7 +283,7 @@ function isFunction(value) {
* *
* ``` * ```
* <script type="module"> * <script type="module">
* import {isInteger} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/is.mjs'; * import {isInteger} from '@schukai/monster/source/types/is.mjs';
* isInteger(()=>{}) // ↦ true * isInteger(()=>{}) // ↦ true
* isInteger('2')) // ↦ false * isInteger('2')) // ↦ false
* isInteger(2)) // ↦ true * isInteger(2)) // ↦ true
...@@ -279,6 +292,7 @@ function isFunction(value) { ...@@ -279,6 +292,7 @@ function isFunction(value) {
* *
* @param {*} value * @param {*} value
* @returns {boolean} * @returns {boolean}
* @license AGPLv3
* @since 1.4.0 * @since 1.4.0
* @copyright schukai GmbH * @copyright schukai GmbH
* @memberOf Monster.Types * @memberOf Monster.Types
......
...@@ -2,9 +2,13 @@ ...@@ -2,9 +2,13 @@
/** /**
* @author schukai GmbH * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
* Node module: @schukai/monster
* This file is licensed under the AGPLv3 License.
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
*/ */
import {Base} from "./base.mjs"; import {Base} from "./base.mjs";
import {isString} from "./is.mjs"; import {isString} from "./is.mjs";
import {validateArray, validateString} from "./validate.mjs"; import {validateArray, validateString} from "./validate.mjs";
...@@ -30,11 +34,12 @@ const internal = Symbol('internal'); ...@@ -30,11 +34,12 @@ const internal = Symbol('internal');
* *
* ``` * ```
* <script type="module"> * <script type="module">
* import {MediaType} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/mediatype.mjs'; * import {MediaType} from '@schukai/monster/source/types/mediatype.mjs';
* console.log(new MediaType()) * console.log(new MediaType())
* </script> * </script>
* ``` * ```
* *
* @license AGPLv3
* @since 1.8.0 * @since 1.8.0
* @copyright schukai GmbH * @copyright schukai GmbH
* @memberOf Monster.Types * @memberOf Monster.Types
...@@ -130,7 +135,7 @@ class MediaType extends Base { ...@@ -130,7 +135,7 @@ class MediaType extends Base {
* *
* ``` * ```
* <script type="module"> * <script type="module">
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source//monster.mjs'; * import {Monster} from '@schukai/monster/source//monster.mjs';
* console.log(Monster.Types.parseMediaType()) * console.log(Monster.Types.parseMediaType())
* </script> * </script>
* ``` * ```
...@@ -139,7 +144,7 @@ class MediaType extends Base { ...@@ -139,7 +144,7 @@ class MediaType extends Base {
* *
* ``` * ```
* <script type="module"> * <script type="module">
* import {parseMediaType} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/dataurl.mjs'; * import {parseMediaType} from '@schukai/monster/source/types/dataurl.mjs';
* console.log(parseMediaType()) * console.log(parseMediaType())
* </script> * </script>
* ``` * ```
...@@ -186,6 +191,7 @@ function parseMediaType(mediatype) { ...@@ -186,6 +191,7 @@ function parseMediaType(mediatype) {
/** /**
* @private * @private
* @license AGPLv3
* @since 1.18.0 * @since 1.18.0
* @param {String} parameter * @param {String} parameter
* @return {Monster.Types.Parameter[]|undefined} * @return {Monster.Types.Parameter[]|undefined}
......
/** /**
* @author schukai GmbH * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
* Node module: @schukai/monster
* This file is licensed under the AGPLv3 License.
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
*/ */
import {Base} from './base.mjs'; import {Base} from './base.mjs';
import {isPrimitive} from "./is.mjs"; import {isPrimitive} from "./is.mjs";
import {NodeList} from './nodelist.mjs'; import {NodeList} from './nodelist.mjs';
...@@ -29,11 +33,12 @@ const treeStructureSymbol = Symbol('treeStructure'); ...@@ -29,11 +33,12 @@ const treeStructureSymbol = Symbol('treeStructure');
* *
* ``` * ```
* <script type="module"> * <script type="module">
* import {Node} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/node.mjs'; * import {Node} from '@schukai/monster/source/types/node.mjs';
* new Node() * new Node()
* </script> * </script>
* ``` * ```
* *
* @license AGPLv3
* @since 1.26.0 * @since 1.26.0
* @copyright schukai GmbH * @copyright schukai GmbH
* @memberOf Monster.Types * @memberOf Monster.Types
......
/** /**
* @author schukai GmbH * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
* Node module: @schukai/monster
* This file is licensed under the AGPLv3 License.
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
*/ */
import {isArray, isInstance} from "./is.mjs"; import {isArray, isInstance} from "./is.mjs";
import {Node} from "./node.mjs"; import {Node} from "./node.mjs";
import {validateInstance} from "./validate.mjs"; import {validateInstance} from "./validate.mjs";
...@@ -15,11 +19,12 @@ export {NodeList} ...@@ -15,11 +19,12 @@ export {NodeList}
* *
* ``` * ```
* <script type="module"> * <script type="module">
* import {NodeList} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/nodelist.mjs'; * import {NodeList} from '@schukai/monster/source/types/nodelist.mjs';
* new NodeList() * new NodeList()
* </script> * </script>
* ``` * ```
* *
* @license AGPLv3
* @since 1.26.0 * @since 1.26.0
* @copyright schukai GmbH * @copyright schukai GmbH
* @memberOf Monster.Types * @memberOf Monster.Types
......
/** /**
* @author schukai GmbH * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
* Node module: @schukai/monster
* This file is licensed under the AGPLv3 License.
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
*/ */
import {internalSymbol} from "../constants.mjs"; import {internalSymbol} from "../constants.mjs";
import {Base} from './base.mjs'; import {Base} from './base.mjs';
...@@ -25,14 +29,14 @@ const isNodeListSymbol = Symbol('isNodeList'); ...@@ -25,14 +29,14 @@ const isNodeListSymbol = Symbol('isNodeList');
* *
* ``` * ```
* <script type="module"> * <script type="module">
* import {NodeRecursiveIterator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/noderecursiveiterator.mjs'; * import {NodeRecursiveIterator} from '@schukai/monster/source/types/noderecursiveiterator.mjs';
* new NodeRecursiveIterator() * new NodeRecursiveIterator()
* </script> * </script>
* ``` * ```
* *
* @example * @example
* import {Node} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/node.mjs'; * import {Node} from '@schukai/monster/source/types/node.mjs';
* import {NodeRecursiveIterator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/noderecursiveiterator.mjs'; * import {NodeRecursiveIterator} from '@schukai/monster/source/types/noderecursiveiterator.mjs';
* *
* const node =new Node('1') * const node =new Node('1')
* *
...@@ -64,6 +68,7 @@ const isNodeListSymbol = Symbol('isNodeList'); ...@@ -64,6 +68,7 @@ const isNodeListSymbol = Symbol('isNodeList');
* *
* // ↦ ['1', '2', '2.1', '2.2', '2.3', '3', '4', '4.1', '4.2'] * // ↦ ['1', '2', '2.1', '2.2', '2.3', '3', '4', '4.1', '4.2']
* *
* @license AGPLv3
* @since 1.26.0 * @since 1.26.0
* @copyright schukai GmbH * @copyright schukai GmbH
* @memberOf Monster.Types * @memberOf Monster.Types
......
/** /**
* @author schukai GmbH * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
* Node module: @schukai/monster
* This file is licensed under the AGPLv3 License.
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
*/ */
import {Base} from './base.mjs'; import {Base} from './base.mjs';
import {isObject} from './is.mjs'; import {isObject} from './is.mjs';
import {TokenList} from './tokenlist.mjs'; import {TokenList} from './tokenlist.mjs';
...@@ -15,7 +19,7 @@ export {Observer} ...@@ -15,7 +19,7 @@ export {Observer}
* An observer manages a callback function * An observer manages a callback function
* *
* ``` * ```
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/observer.mjs'; * import {Observer} from '@schukai/monster/source/types/observer.mjs';
* new Observer() * new Observer()
* ``` * ```
* *
...@@ -44,7 +48,7 @@ export {Observer} ...@@ -44,7 +48,7 @@ export {Observer}
* *
* @example * @example
* *
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/observer.mjs'; * import {Observer} from '@schukai/monster/source/types/observer.mjs';
* *
* const observer = new Observer(function(a, b, c) { * const observer = new Observer(function(a, b, c) {
* console.log(this, a, b, c); // ↦ "a", 2, true * console.log(this, a, b, c); // ↦ "a", 2, true
...@@ -53,6 +57,7 @@ export {Observer} ...@@ -53,6 +57,7 @@ export {Observer}
* observer.update({value:true}).then(()=>{}); * observer.update({value:true}).then(()=>{});
* // ↦ {value: true} "a" 2 true * // ↦ {value: true} "a" 2 true
* *
* @license AGPLv3
* @since 1.0.0 * @since 1.0.0
* @copyright schukai GmbH * @copyright schukai GmbH
* @memberOf Monster.Types * @memberOf Monster.Types
......
/** /**
* @author schukai GmbH * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
* Node module: @schukai/monster
* This file is licensed under the AGPLv3 License.
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
*/ */
import {Base} from './base.mjs'; import {Base} from './base.mjs';
import {Observer} from "./observer.mjs"; import {Observer} from "./observer.mjs";
import {validateInstance} from "./validate.mjs"; import {validateInstance} from "./validate.mjs";
...@@ -15,12 +19,13 @@ export {ObserverList} ...@@ -15,12 +19,13 @@ export {ObserverList}
* *
* ``` * ```
* <script type="module"> * <script type="module">
* import {ObserverList} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/observerlist.mjs'; * import {ObserverList} from '@schukai/monster/source/types/observerlist.mjs';
* console.log(ObserverList()) * console.log(ObserverList())
* console.log(ObserverList()) * console.log(ObserverList())
* </script> * </script>
* ``` * ```
* *
* @license AGPLv3
* @since 1.0.0 * @since 1.0.0
* @copyright schukai GmbH * @copyright schukai GmbH
* @memberOf Monster.Types * @memberOf Monster.Types
......
/** /**
* @author schukai GmbH * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
* Node module: @schukai/monster
* This file is licensed under the AGPLv3 License.
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
*/ */
import {Base} from './base.mjs'; import {Base} from './base.mjs';
import {isArray, isObject, isPrimitive} from "./is.mjs"; import {isArray, isObject, isPrimitive} from "./is.mjs";
import {Observer} from "./observer.mjs"; import {Observer} from "./observer.mjs";
...@@ -18,7 +22,7 @@ export {ProxyObserver} ...@@ -18,7 +22,7 @@ export {ProxyObserver}
* *
* ``` * ```
* <script type="module"> * <script type="module">
* import {ProxyObserver} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/proxyobserver.mjs'; * import {ProxyObserver} from '@schukai/monster/source/types/proxyobserver.mjs';
* new ProxyObserver() * new ProxyObserver()
* </script> * </script>
* ``` * ```
...@@ -29,9 +33,9 @@ export {ProxyObserver} ...@@ -29,9 +33,9 @@ export {ProxyObserver}
* *
* @example * @example
* *
* import {ProxyObserver} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/proxyobserver.mjs'; * import {ProxyObserver} from '@schukai/monster/source/types/proxyobserver.mjs';
* import {Observer} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/observer.mjs'; * import {Observer} from '@schukai/monster/source/types/observer.mjs';
* import {isObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/is.mjs'; * import {isObject} from '@schukai/monster/source/types/is.mjs';
* *
* const o = new Observer(function () { * const o = new Observer(function () {
* if (isObject(this) && this instanceof ProxyObserver) { * if (isObject(this) && this instanceof ProxyObserver) {
...@@ -55,6 +59,7 @@ export {ProxyObserver} ...@@ -55,6 +59,7 @@ export {ProxyObserver}
* const s = p.getSubject(); * const s = p.getSubject();
* s.a.b.c = false; * s.a.b.c = false;
* *
* @license AGPLv3
* @since 1.0.0 * @since 1.0.0
* @copyright schukai GmbH * @copyright schukai GmbH
* @memberOf Monster.Types * @memberOf Monster.Types
......
/** /**
* @author schukai GmbH * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
* Node module: @schukai/monster
* This file is licensed under the AGPLv3 License.
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
*/ */
import {Base} from './base.mjs'; import {Base} from './base.mjs';
export {Queue} export {Queue}
...@@ -13,14 +17,14 @@ export {Queue} ...@@ -13,14 +17,14 @@ export {Queue}
* *
* ``` * ```
* <script type="module"> * <script type="module">
* import {Queue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/queue.mjs'; * import {Queue} from '@schukai/monster/source/types/queue.mjs';
* new Queue() * new Queue()
* </script> * </script>
* ``` * ```
* *
* @example * @example
* *
* import {Queue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/queue.mjs'; * import {Queue} from '@schukai/monster/source/types/queue.mjs';
* *
* const queue = new Queue; * const queue = new Queue;
* *
...@@ -41,6 +45,7 @@ export {Queue} ...@@ -41,6 +45,7 @@ export {Queue}
* // ↦ undefined * // ↦ undefined
* *
* *
* @license AGPLv3
* @since 1.4.0 * @since 1.4.0
* @copyright schukai GmbH * @copyright schukai GmbH
* @memberOf Monster.Types * @memberOf Monster.Types
......
...@@ -2,9 +2,13 @@ ...@@ -2,9 +2,13 @@
/** /**
* @author schukai GmbH * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
* Node module: @schukai/monster
* This file is licensed under the AGPLv3 License.
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
*/ */
import {random} from "../math/random.mjs"; import {random} from "../math/random.mjs";
import {getGlobal} from "./global.mjs"; import {getGlobal} from "./global.mjs";
import {ID} from "./id.mjs"; import {ID} from "./id.mjs";
...@@ -22,11 +26,12 @@ let internalCounter = 0; ...@@ -22,11 +26,12 @@ let internalCounter = 0;
* *
* ``` * ```
* <script type="module"> * <script type="module">
* import {RandomID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/randomid.mjs'; * import {RandomID} from '@schukai/monster/source/types/randomid.mjs';
* console.log(new RandomID()) * console.log(new RandomID())
* </script> * </script>
* ``` * ```
* *
* @license AGPLv3
* @since 1.6.0 * @since 1.6.0
* @copyright schukai GmbH * @copyright schukai GmbH
* @memberOf Monster.Types * @memberOf Monster.Types
......
/** /**
* @author schukai GmbH * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
* Node module: @schukai/monster
* This file is licensed under the AGPLv3 License.
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
*/ */
import {validateString} from "./validate.mjs"; import {validateString} from "./validate.mjs";
export {escapeString} export {escapeString}
...@@ -13,13 +17,14 @@ export {escapeString} ...@@ -13,13 +17,14 @@ export {escapeString}
* *
* ``` * ```
* <script type="module"> * <script type="module">
* import {escapeString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/validate.mjs'; * import {escapeString} from '@schukai/monster/source/types/validate.mjs';
* escapeString() * escapeString()
* </script> * </script>
* ``` * ```
* *
* @param {string} value * @param {string} value
* @return {string} * @return {string}
* @license AGPLv3
* @since 1.26.0 * @since 1.26.0
* @copyright schukai GmbH * @copyright schukai GmbH
* @memberOf Monster.Types * @memberOf Monster.Types
......
/** /**
* @author schukai GmbH * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
* Node module: @schukai/monster
* This file is licensed under the AGPLv3 License.
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
*/ */
import {Base} from './base.mjs'; import {Base} from './base.mjs';
export {Stack} export {Stack}
...@@ -13,11 +17,12 @@ export {Stack} ...@@ -13,11 +17,12 @@ export {Stack}
* *
* ``` * ```
* <script type="module"> * <script type="module">
* import {ID} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/stack.mjs'; * import {ID} from '@schukai/monster/source/types/stack.mjs';
* console.log(new Stack()) * console.log(new Stack())
* </script> * </script>
* ``` * ```
* *
* @license AGPLv3
* @since 1.4.0 * @since 1.4.0
* @copyright schukai GmbH * @copyright schukai GmbH
* @memberOf Monster.Types * @memberOf Monster.Types
......
/** /**
* @author schukai GmbH * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
* Node module: @schukai/monster
* This file is licensed under the AGPLv3 License.
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
*/ */
import {isIterable, isString} from '../types/is.mjs'; import {isIterable, isString} from '../types/is.mjs';
import {validateFunction, validateString} from '../types/validate.mjs'; import {validateFunction, validateString} from '../types/validate.mjs';
import {Base} from './base.mjs'; import {Base} from './base.mjs';
...@@ -17,7 +21,7 @@ export {TokenList} ...@@ -17,7 +21,7 @@ export {TokenList}
* *
* ``` * ```
* <script type="module"> * <script type="module">
* import {TokenList} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/tokenlist.mjs'; * import {TokenList} from '@schukai/monster/source/types/tokenlist.mjs';
* new TokenList("myclass row") * new TokenList("myclass row")
* </script> * </script>
* ``` * ```
...@@ -29,6 +33,7 @@ export {TokenList} ...@@ -29,6 +33,7 @@ export {TokenList}
* // ↦ "function" * // ↦ "function"
* ``` * ```
* *
* @license AGPLv3
* @since 1.2.0 * @since 1.2.0
* @copyright schukai GmbH * @copyright schukai GmbH
* @memberOf Monster.Types * @memberOf Monster.Types
......
/** /**
* @author schukai GmbH * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
* Node module: @schukai/monster
* This file is licensed under the AGPLv3 License.
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
*/ */
export {typeOf} export {typeOf}
/** /**
...@@ -11,14 +15,14 @@ export {typeOf} ...@@ -11,14 +15,14 @@ export {typeOf}
* *
* ``` * ```
* <script type="module"> * <script type="module">
* import {typeOf} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/typeof.mjs'; * import {typeOf} from '@schukai/monster/source/types/typeof.mjs';
* console.log(typeOf()) * console.log(typeOf())
* </script> * </script>
* ``` * ```
* *
* @example * @example
* *
* import {typeOf} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/typeof.mjs'; * import {typeOf} from '@schukai/monster/source/types/typeof.mjs';
* *
* console.log(typeOf(undefined)); // ↦ undefined * console.log(typeOf(undefined)); // ↦ undefined
* console.log(typeOf("")); // ↦ string * console.log(typeOf("")); // ↦ string
...@@ -30,6 +34,7 @@ export {typeOf} ...@@ -30,6 +34,7 @@ export {typeOf}
* *
* @param {*} value * @param {*} value
* @return {string} * @return {string}
* @license AGPLv3
* @since 1.7.0 * @since 1.7.0
* @copyright schukai GmbH * @copyright schukai GmbH
* @memberOf Monster.Types * @memberOf Monster.Types
......
/** /**
* @author schukai GmbH * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
* Node module: @schukai/monster
* This file is licensed under the AGPLv3 License.
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
*/ */
import {Queue} from "./queue.mjs"; import {Queue} from "./queue.mjs";
import {validateObject} from "./validate.mjs"; import {validateObject} from "./validate.mjs";
...@@ -14,11 +18,12 @@ export {UniqueQueue} ...@@ -14,11 +18,12 @@ export {UniqueQueue}
* *
* ``` * ```
* <script type="module"> * <script type="module">
* import {UniqueQueue} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/uniquequeue.mjs'; * import {UniqueQueue} from '@schukai/monster/source/types/uniquequeue.mjs';
* new UniqueQueue() * new UniqueQueue()
* </script> * </script>
* ``` * ```
* *
* @license AGPLv3
* @since 1.4.0 * @since 1.4.0
* @copyright schukai GmbH * @copyright schukai GmbH
* @memberOf Monster.Types * @memberOf Monster.Types
......
/** /**
* @author schukai GmbH * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
* Node module: @schukai/monster
* This file is licensed under the AGPLv3 License.
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
*/ */
import {internalSymbol} from "../constants.mjs"; import {internalSymbol} from "../constants.mjs";
import {random} from "../math/random.mjs"; import {random} from "../math/random.mjs";
import {isObject} from '../types/is.mjs'; import {isObject} from '../types/is.mjs';
...@@ -17,11 +21,12 @@ export {UUID} ...@@ -17,11 +21,12 @@ export {UUID}
* *
* ``` * ```
* <script type="module"> * <script type="module">
* import {Base} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/uuid.mjs'; * import {Base} from '@schukai/monster/source/types/uuid.mjs';
* new UUID() * new UUID()
* </script> * </script>
* ``` * ```
* *
* @license AGPLv3
* @since 1.25.0 * @since 1.25.0
* @copyright schukai GmbH * @copyright schukai GmbH
* @memberOf Monster.Types * @memberOf Monster.Types
......
/** /**
* @author schukai GmbH * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
* Node module: @schukai/monster
* This file is licensed under the AGPLv3 License.
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
*/ */
import { import {
isArray, isArray,
isBoolean, isBoolean,
...@@ -35,7 +39,7 @@ export { ...@@ -35,7 +39,7 @@ export {
* *
* ``` * ```
* <script type="module"> * <script type="module">
* import {validateIterable} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/validate.mjs'; * import {validateIterable} from '@schukai/monster/source/types/validate.mjs';
* console.log(validateIterable('2')) // ↦ TypeError * console.log(validateIterable('2')) // ↦ TypeError
* console.log(validateIterable([])) // ↦ value * console.log(validateIterable([])) // ↦ value
* </script> * </script>
...@@ -43,6 +47,7 @@ export { ...@@ -43,6 +47,7 @@ export {
* *
* @param {*} value * @param {*} value
* @return {*} * @return {*}
* @license AGPLv3
* @since 1.2.0 * @since 1.2.0
* @copyright schukai GmbH * @copyright schukai GmbH
* @memberOf Monster.Types * @memberOf Monster.Types
...@@ -63,7 +68,7 @@ function validateIterable(value) { ...@@ -63,7 +68,7 @@ function validateIterable(value) {
* *
* ``` * ```
* <script type="module"> * <script type="module">
* import {validatePrimitive} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/validate.mjs'; * import {validatePrimitive} from '@schukai/monster/source/types/validate.mjs';
* console.log(validatePrimitive('2')) // ↦ value * console.log(validatePrimitive('2')) // ↦ value
* console.log(validatePrimitive([])) // ↦ TypeError * console.log(validatePrimitive([])) // ↦ TypeError
* </script> * </script>
...@@ -71,6 +76,7 @@ function validateIterable(value) { ...@@ -71,6 +76,7 @@ function validateIterable(value) {
* *
* @param {*} value * @param {*} value
* @return {*} * @return {*}
* @license AGPLv3
* @since 1.0.0 * @since 1.0.0
* @copyright schukai GmbH * @copyright schukai GmbH
* @memberOf Monster.Types * @memberOf Monster.Types
...@@ -91,7 +97,7 @@ function validatePrimitive(value) { ...@@ -91,7 +97,7 @@ function validatePrimitive(value) {
* *
* ``` * ```
* <script type="module"> * <script type="module">
* import {validateBoolean} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/validate.mjs'; * import {validateBoolean} from '@schukai/monster/source/types/validate.mjs';
* console.log(validateBoolean(false)) // ↦ value * console.log(validateBoolean(false)) // ↦ value
* console.log(validateBoolean('2')) // ↦ TypeError * console.log(validateBoolean('2')) // ↦ TypeError
* console.log(validateBoolean([])) // ↦ TypeError * console.log(validateBoolean([])) // ↦ TypeError
...@@ -100,6 +106,7 @@ function validatePrimitive(value) { ...@@ -100,6 +106,7 @@ function validatePrimitive(value) {
* *
* @param {*} value * @param {*} value
* @return {*} * @return {*}
* @license AGPLv3
* @since 1.0.0 * @since 1.0.0
* @copyright schukai GmbH * @copyright schukai GmbH
* @memberOf Monster.Types * @memberOf Monster.Types
...@@ -118,7 +125,7 @@ function validateBoolean(value) { ...@@ -118,7 +125,7 @@ function validateBoolean(value) {
* *
* ``` * ```
* <script type="module"> * <script type="module">
* import {validateString} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/validate.mjs'; * import {validateString} from '@schukai/monster/source/types/validate.mjs';
* console.log(validateString('2')) // ↦ value * console.log(validateString('2')) // ↦ value
* console.log(validateString([])) // ↦ TypeError * console.log(validateString([])) // ↦ TypeError
* </script> * </script>
...@@ -126,6 +133,7 @@ function validateBoolean(value) { ...@@ -126,6 +133,7 @@ function validateBoolean(value) {
* *
* @param {*} value * @param {*} value
* @return {*} * @return {*}
* @license AGPLv3
* @since 1.0.0 * @since 1.0.0
* @copyright schukai GmbH * @copyright schukai GmbH
* @memberOf Monster.Types * @memberOf Monster.Types
...@@ -144,7 +152,7 @@ function validateString(value) { ...@@ -144,7 +152,7 @@ function validateString(value) {
* *
* ``` * ```
* <script type="module"> * <script type="module">
* import {validateObject} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/validate.mjs'; * import {validateObject} from '@schukai/monster/source/types/validate.mjs';
* console.log(validateObject({})) // ↦ value * console.log(validateObject({})) // ↦ value
* console.log(validateObject('2')) // ↦ TypeError * console.log(validateObject('2')) // ↦ TypeError
* console.log(validateObject([])) // ↦ TypeError * console.log(validateObject([])) // ↦ TypeError
...@@ -153,6 +161,7 @@ function validateString(value) { ...@@ -153,6 +161,7 @@ function validateString(value) {
* *
* @param {*} value * @param {*} value
* @return {*} * @return {*}
* @license AGPLv3
* @since 1.0.0 * @since 1.0.0
* @copyright schukai GmbH * @copyright schukai GmbH
* @memberOf Monster.Types * @memberOf Monster.Types
...@@ -170,7 +179,7 @@ function validateObject(value) { ...@@ -170,7 +179,7 @@ function validateObject(value) {
* *
* ``` * ```
* <script type="module"> * <script type="module">
* import {validateInstance} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/validate.mjs'; * import {validateInstance} from '@schukai/monster/source/types/validate.mjs';
* console.log(validateInstance({}, Object)) // ↦ value * console.log(validateInstance({}, Object)) // ↦ value
* console.log(validateInstance('2', Object)) // ↦ TypeError * console.log(validateInstance('2', Object)) // ↦ TypeError
* console.log(validateInstance([], Object)) // ↦ TypeError * console.log(validateInstance([], Object)) // ↦ TypeError
...@@ -179,6 +188,7 @@ function validateObject(value) { ...@@ -179,6 +188,7 @@ function validateObject(value) {
* *
* @param {*} value * @param {*} value
* @return {*} * @return {*}
* @license AGPLv3
* @since 1.5.0 * @since 1.5.0
* @copyright schukai GmbH * @copyright schukai GmbH
* @memberOf Monster.Types * @memberOf Monster.Types
...@@ -205,7 +215,7 @@ function validateInstance(value, instance) { ...@@ -205,7 +215,7 @@ function validateInstance(value, instance) {
* *
* ``` * ```
* <script type="module"> * <script type="module">
* import {validateArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/validate.mjs'; * import {validateArray} from '@schukai/monster/source/types/validate.mjs';
* console.log(validateArray('2')) // ↦ TypeError * console.log(validateArray('2')) // ↦ TypeError
* console.log(validateArray([])) // ↦ value * console.log(validateArray([])) // ↦ value
* </script> * </script>
...@@ -213,6 +223,7 @@ function validateInstance(value, instance) { ...@@ -213,6 +223,7 @@ function validateInstance(value, instance) {
* *
* @param {*} value * @param {*} value
* @return {*} * @return {*}
* @license AGPLv3
* @since 1.0.0 * @since 1.0.0
* @copyright schukai GmbH * @copyright schukai GmbH
* @memberOf Monster.Types * @memberOf Monster.Types
...@@ -230,7 +241,7 @@ function validateArray(value) { ...@@ -230,7 +241,7 @@ function validateArray(value) {
* *
* ``` * ```
* <script type="module"> * <script type="module">
* import {validateSymbol} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/validate.mjs'; * import {validateSymbol} from '@schukai/monster/source/types/validate.mjs';
* console.log(validateSymbol('2')) // ↦ TypeError * console.log(validateSymbol('2')) // ↦ TypeError
* console.log(validateSymbol()) // ↦ value * console.log(validateSymbol()) // ↦ value
* </script> * </script>
...@@ -238,6 +249,7 @@ function validateArray(value) { ...@@ -238,6 +249,7 @@ function validateArray(value) {
* *
* @param {*} value * @param {*} value
* @return {*} * @return {*}
* @license AGPLv3
* @since 1.9.0 * @since 1.9.0
* @copyright schukai GmbH * @copyright schukai GmbH
* @memberOf Monster.Types * @memberOf Monster.Types
...@@ -255,7 +267,7 @@ function validateSymbol(value) { ...@@ -255,7 +267,7 @@ function validateSymbol(value) {
* *
* ``` * ```
* <script type="module"> * <script type="module">
* import {validateFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/validate.mjs'; * import {validateFunction} from '@schukai/monster/source/types/validate.mjs';
* console.log(validateFunction(()=>{})) // ↦ value * console.log(validateFunction(()=>{})) // ↦ value
* console.log(validateFunction('2')) // ↦ TypeError * console.log(validateFunction('2')) // ↦ TypeError
* console.log(validateFunction([])) // ↦ TypeError * console.log(validateFunction([])) // ↦ TypeError
...@@ -264,6 +276,7 @@ function validateSymbol(value) { ...@@ -264,6 +276,7 @@ function validateSymbol(value) {
* *
* @param {*} value * @param {*} value
* @return {*} * @return {*}
* @license AGPLv3
* @since 1.0.0 * @since 1.0.0
* @copyright schukai GmbH * @copyright schukai GmbH
* @memberOf Monster.Types * @memberOf Monster.Types
...@@ -281,7 +294,7 @@ function validateFunction(value) { ...@@ -281,7 +294,7 @@ function validateFunction(value) {
* *
* ``` * ```
* <script type="module"> * <script type="module">
* import {validateFunction} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/validate.mjs'; * import {validateFunction} from '@schukai/monster/source/types/validate.mjs';
* console.log(validateInteger(true)) // ↦ TypeError * console.log(validateInteger(true)) // ↦ TypeError
* console.log(validateInteger('2')) // ↦ TypeError * console.log(validateInteger('2')) // ↦ TypeError
* console.log(validateInteger(2)) // ↦ value * console.log(validateInteger(2)) // ↦ value
...@@ -290,6 +303,7 @@ function validateFunction(value) { ...@@ -290,6 +303,7 @@ function validateFunction(value) {
* *
* @param {*} value * @param {*} value
* @return {*} * @return {*}
* @license AGPLv3
* @since 1.4.0 * @since 1.4.0
* @copyright schukai GmbH * @copyright schukai GmbH
* @memberOf Monster.Types * @memberOf Monster.Types
......
/** /**
* @author schukai GmbH * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
* Node module: @schukai/monster
* This file is licensed under the AGPLv3 License.
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
*/ */
import {Base} from './base.mjs'; import {Base} from './base.mjs';
export {Version, getMonsterVersion} export {Version, getMonsterVersion}
...@@ -13,7 +17,7 @@ export {Version, getMonsterVersion} ...@@ -13,7 +17,7 @@ export {Version, getMonsterVersion}
* *
* ``` * ```
* <script type="module"> * <script type="module">
* import {Version} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/version.mjs'; * import {Version} from '@schukai/monster/source/types/version.mjs';
* console.log(new Version('1.2.3')) // ↦ 1.2.3 * console.log(new Version('1.2.3')) // ↦ 1.2.3
* console.log(new Version('1')) // ↦ 1.0.0 * console.log(new Version('1')) // ↦ 1.0.0
* </script> * </script>
...@@ -21,13 +25,14 @@ export {Version, getMonsterVersion} ...@@ -21,13 +25,14 @@ export {Version, getMonsterVersion}
* *
* @example * @example
* *
* import {Version} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/version.mjs'; * import {Version} from '@schukai/monster/source/types/version.mjs';
* *
* new Version('1.0.0') // ↦ 1.0.0 * new Version('1.0.0') // ↦ 1.0.0
* new Version(1) // ↦ 1.0.0 * new Version(1) // ↦ 1.0.0
* new Version(1, 0, 0) // ↦ 1.0.0 * new Version(1, 0, 0) // ↦ 1.0.0
* new Version('1.2.3', 4, 5) // ↦ 1.4.5 * new Version('1.2.3', 4, 5) // ↦ 1.4.5
* *
* @license AGPLv3
* @since 1.0.0 * @since 1.0.0
* @author schukai GmbH * @author schukai GmbH
* @copyright schukai GmbH * @copyright schukai GmbH
...@@ -141,7 +146,7 @@ let monsterVersion; ...@@ -141,7 +146,7 @@ let monsterVersion;
* *
* ``` * ```
* <script type="module"> * <script type="module">
* import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source//monster.mjs'; * import {Monster} from '@schukai/monster/source//monster.mjs';
* console.log(Monster.getVersion()) * console.log(Monster.getVersion())
* </script> * </script>
* ``` * ```
...@@ -150,12 +155,13 @@ let monsterVersion; ...@@ -150,12 +155,13 @@ let monsterVersion;
* *
* ``` * ```
* <script type="module"> * <script type="module">
* import {getMonsterVersion} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/types/version.mjs'; * import {getMonsterVersion} from '@schukai/monster/source/types/version.mjs';
* console.log(getMonsterVersion()) * console.log(getMonsterVersion())
* </script> * </script>
* ``` * ```
* *
* @returns {Monster.Types.Version} * @returns {Monster.Types.Version}
* @license AGPLv3
* @since 1.0.0 * @since 1.0.0
* @copyright schukai GmbH * @copyright schukai GmbH
* @author schukai GmbH * @author schukai GmbH
......
/** /**
* @author schukai GmbH * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
* Node module: @schukai/monster
* This file is licensed under the AGPLv3 License.
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
*/ */
import {getGlobal} from '../types/global.mjs'; import {getGlobal} from '../types/global.mjs';
import {isArray, isFunction, isObject, isPrimitive} from '../types/is.mjs'; import {isArray, isFunction, isObject, isPrimitive} from '../types/is.mjs';
import {typeOf} from "../types/typeof.mjs"; import {typeOf} from "../types/typeof.mjs";
...@@ -23,13 +27,14 @@ export {clone} ...@@ -23,13 +27,14 @@ export {clone}
* *
* ``` * ```
* <script type="module"> * <script type="module">
* import {clone} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/util/clone.mjs'; * import {clone} from '@schukai/monster/source/util/clone.mjs';
* clone({}) * clone({})
* </script> * </script>
* ``` * ```
* *
* @param {*} obj object to be cloned * @param {*} obj object to be cloned
* @returns {*} * @returns {*}
* @license AGPLv3
* @since 1.0.0 * @since 1.0.0
* @memberOf Monster.Util * @memberOf Monster.Util
* @copyright schukai GmbH * @copyright schukai GmbH
......
/** /**
* @author schukai GmbH * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
* Node module: @schukai/monster
* This file is licensed under the AGPLv3 License.
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
*/ */
import {Base} from '../types/base.mjs'; import {Base} from '../types/base.mjs';
import {isFunction} from '../types/is.mjs'; import {isFunction} from '../types/is.mjs';
...@@ -14,7 +18,7 @@ export {Comparator} ...@@ -14,7 +18,7 @@ export {Comparator}
* *
* ``` * ```
* <script type="module"> * <script type="module">
* import {Comparator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/util/comparator.mjs'; * import {Comparator} from '@schukai/monster/source/util/comparator.mjs';
* console.log(new Comparator()) * console.log(new Comparator())
* </script> * </script>
* ``` * ```
...@@ -39,7 +43,7 @@ export {Comparator} ...@@ -39,7 +43,7 @@ export {Comparator}
* *
* @example * @example
* *
* import {Comparator} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@latest/source/util/comparator.mjs'; * import {Comparator} from '@schukai/monster/source/util/comparator.mjs';
* *
* console.log(new Comparator().lessThanOrEqual(2, 5)) * console.log(new Comparator().lessThanOrEqual(2, 5))
* // ↦ true * // ↦ true
...@@ -50,6 +54,7 @@ export {Comparator} ...@@ -50,6 +54,7 @@ export {Comparator}
* console.log(new Comparator().equal(4, 5)) * console.log(new Comparator().equal(4, 5))
* // ↦ false * // ↦ false
* *
* @license AGPLv3
* @since 1.3.0 * @since 1.3.0
* @memberOf Monster.Util * @memberOf Monster.Util
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment