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

Monster/ /a7dcfcba f2e4 4fe3 8cdd 2b4eb084f0fd

parent 062c57b0
No related branches found
No related tags found
No related merge requests found
Showing
with 47 additions and 40 deletions
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -2,6 +2,13 @@
All notable changes to this project will be documented in this file.
## [1.11.1] - 2021-09-05
## Changed
- [improvement of the entry points of the libraries](https://gitlab.schukai.com/oss/libraries/javascript/monster/-/issues/45)
## [1.11.0] - 2021-09-04
## Changed
......
......@@ -40,7 +40,7 @@ For some functions you need additional [polyfills](#polyfill).
<script type="module">
import {
Monster
} from 'https://unpkg.com/@schukai/monster@1.11.0/dist/modules/monster.js';
} from 'https://unpkg.com/@schukai/monster@1.11.1/dist/modules/monster.js';
let id = document.getElementById('version');
id.innerHTML = Monster.getVersion();
</script>
......@@ -51,8 +51,8 @@ For some functions you need additional [polyfills](#polyfill).
`nomodule` for backwards compatibility
```
<script type="module" src="https://unpkg.com/@schukai/monster@1.11.0/dist/modules/monster.js"></script>
<script nomodule src="https://unpkg.com/@schukai/monster@1.11.0/dist/monster.js"></script>
<script type="module" src="https://unpkg.com/@schukai/monster@1.11.1/dist/modules/monster.js"></script>
<script nomodule src="https://unpkg.com/@schukai/monster@1.11.1/dist/monster.js"></script>
```
### Polyfill
......@@ -78,7 +78,7 @@ After that, all classes are accessible via `MyMonster`. For example `MyMonster.g
## Documentation
To check out docs and examples, visit [monsterjs.org/en/doc/1.11.0/](https://monsterjs.org/en/doc/1.11.0/).
To check out docs and examples, visit [monsterjs.org/en/doc/1.11.1/](https://monsterjs.org/en/doc/1.11.1/).
## Questions
......
/** Monster 1.11.0, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */
/** Monster 1.11.1, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */
"use strict";import{Monster}from"../namespace.js";import{Base}from"../types/base.js";class AbstractConstraint extends Base{constructor(){super()}isValid(s){return Promise.reject(s)}}Monster.assignToNamespace("Monster.Constraints",AbstractConstraint);export{Monster,AbstractConstraint};
\ No newline at end of file
/** Monster 1.11.0, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */
/** Monster 1.11.1, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */
"use strict";import{Monster,AbstractConstraint}from"./abstract.js";class AbstractOperator extends AbstractConstraint{constructor(t,r){if(super(),!(t instanceof AbstractConstraint&&r instanceof AbstractConstraint))throw new TypeError("parameters must be from type AbstractConstraint");this.operantA=t,this.operantB=r}}Monster.assignToNamespace("Monster.Constraints",AbstractOperator);export{Monster,AbstractOperator};
\ No newline at end of file
/** Monster 1.11.0, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */
/** Monster 1.11.1, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */
"use strict";import{Monster,AbstractConstraint}from"./abstract.js";import{AbstractOperator}from"./abstractoperator.js";class AndOperator extends AbstractOperator{isValid(t){return Promise.all([this.operantA.isValid(t),this.operantB.isValid(t)])}}Monster.assignToNamespace("Monster.Constraints",AndOperator);export{Monster,AndOperator};
\ No newline at end of file
/** Monster 1.11.0, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */
/** Monster 1.11.1, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */
"use strict";import{Monster,AbstractConstraint}from"./abstract.js";class Invalid extends AbstractConstraint{isValid(t){return Promise.reject(t)}}Monster.assignToNamespace("Monster.Constraints",Invalid);export{Monster,Invalid};
\ No newline at end of file
/** Monster 1.11.0, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */
/** Monster 1.11.1, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */
"use strict";import{Monster,AbstractConstraint}from"./abstract.js";import{isArray}from"../types/is.js";class IsArray extends AbstractConstraint{isValid(r){return isArray(r)?Promise.resolve(r):Promise.reject(r)}}Monster.assignToNamespace("Monster.Constraints",IsArray);export{Monster,IsArray};
\ No newline at end of file
/** Monster 1.11.0, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */
/** Monster 1.11.1, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */
"use strict";import{Monster,AbstractConstraint}from"./abstract.js";import{isObject}from"../types/is.js";class IsObject extends AbstractConstraint{isValid(s){return isObject(s)?Promise.resolve(s):Promise.reject(s)}}Monster.assignToNamespace("Monster.Constraints",IsObject);export{Monster,IsObject};
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment