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

Merge branch 'MONSTER/-/0752e4ac-75f1-46b7-a649-61719d5e2a5c' into 'master'

Monster/ /0752e4ac 75f1 46b7 a649 61719d5e2a5c

See merge request oss/libraries/javascript/monster!10
parents 6a8756a1 71703e61
No related branches found
No related tags found
No related merge requests found
Showing
with 2001 additions and 358 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.
This diff is collapsed.
This diff is collapsed.
......@@ -50,9 +50,7 @@
"uglify-js": "^3.13.9",
"uglifycss": "^0.0.29",
"watchify": "^4.0.0",
"webcrypto-core": "^1.2.0"
},
"dependencies": {
"webcrypto-core": "^1.2.0",
"istanbul-instrumenter-loader": "^3.0.1"
}
}
......@@ -38,7 +38,7 @@ thus supports all browsers that are compatible with ES5.
<script type="module">
import {
Monster
} from 'https://unpkg.com/@schukai/monster@1.8.0/dist/modules/monster.js';
} from 'https://unpkg.com/@schukai/monster@1.9.0/dist/modules/monster.js';
let id = document.getElementById('version');
id.innerHTML = Monster.getVersion();
</script>
......@@ -49,8 +49,8 @@ thus supports all browsers that are compatible with ES5.
nomodule for backwards compatibility
```
<script type="module" src="https://unpkg.com/@schukai/monster@1.8.0/dist/modules/monster.js"></script>
<script nomodule src="https://unpkg.com/@schukai/monster@1.8.0/dist/monster.js"></script>
<script type="module" src="https://unpkg.com/@schukai/monster@1.9.0/dist/modules/monster.js"></script>
<script nomodule src="https://unpkg.com/@schukai/monster@1.9.0/dist/monster.js"></script>
```
### compatibility
......
/** Monster 1.8.0, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */
/** Monster 1.9.0, © 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(value){return Promise.reject(value)}}Monster.assignToNamespace("Monster.Constraints",AbstractConstraint);export{Monster,AbstractConstraint};
/** Monster 1.8.0, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */
/** Monster 1.9.0, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */
'use strict';import{Monster,AbstractConstraint}from"./abstract.js";class AbstractOperator extends AbstractConstraint{constructor(operantA,operantB){super();if(!(operantA instanceof AbstractConstraint)||!(operantB instanceof AbstractConstraint)){throw new TypeError("parameters must be from type AbstractConstraint")}this.operantA=operantA;this.operantB=operantB}}Monster.assignToNamespace("Monster.Constraints",AbstractOperator);export{Monster,AbstractOperator};
/** Monster 1.8.0, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */
/** Monster 1.9.0, © 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(value){return Promise.all([this.operantA.isValid(value),this.operantB.isValid(value)])}}Monster.assignToNamespace("Monster.Constraints",AndOperator);export{Monster,AndOperator};
/** Monster 1.8.0, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */
/** Monster 1.9.0, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */
'use strict';import{Monster,AbstractConstraint}from"./abstract.js";class Invalid extends AbstractConstraint{isValid(value){return Promise.reject(value)}}Monster.assignToNamespace("Monster.Constraints",Invalid);export{Monster,Invalid};
/** Monster 1.8.0, © 2021 schukai GmbH, Released under the AGPL 3.0 License. */
/** Monster 1.9.0, © 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(value){if(isArray(value)){return Promise.resolve(value)}return Promise.reject(value)}}Monster.assignToNamespace("Monster.Constraints",IsArray);export{Monster,IsArray};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment