Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • 1.31
  • master
  • 1.10.0
  • 1.30.1
  • 1.31.0
  • 1.8.0
  • 1.9.0
  • 3.100.0
  • 3.100.1
  • 3.100.10
  • 3.100.11
  • 3.100.12
  • 3.100.13
  • 3.100.14
  • 3.100.15
  • 3.100.16
  • 3.100.17
  • 3.100.18
  • 3.100.19
  • 3.100.2
  • 3.100.20
  • 3.100.3
  • 3.100.4
  • 3.100.5
  • 3.100.6
  • 3.100.7
  • 3.100.8
  • 3.100.9
  • 3.101.0
  • 3.101.1
  • 3.101.2
  • 3.101.3
  • 3.102.0
  • 3.102.1
  • 3.102.2
  • 3.102.3
  • 3.102.4
  • 3.102.5
  • 3.102.6
  • 3.103.0
  • 3.103.1
  • 3.104.0
  • 3.104.1
  • 3.105.0
  • 3.105.1
  • 3.105.2
  • 3.106.0
  • 3.106.1
  • 3.107.0
  • 3.108.0
  • 3.108.1
  • 3.108.2
  • 3.108.3
  • 3.108.4
  • 3.108.5
  • 3.109.0
  • 3.110.0
  • 3.110.1
  • 3.110.2
  • 3.110.3
  • 3.110.4
  • 3.111.0
  • 3.112.0
  • 3.112.1
  • 3.112.2
  • 3.112.3
  • 3.112.4
  • 3.113.0
  • 3.114.0
  • 3.114.1
  • 3.114.2
  • 3.114.3
  • 3.114.4
  • 3.114.5
  • 3.114.6
  • 3.114.7
  • 3.115.0
  • 3.115.1
  • 3.115.2
  • 3.115.3
  • 3.115.4
  • 3.116.0
  • 3.116.1
  • 3.117.0
  • 3.117.1
  • 3.117.2
  • 3.117.3
  • 3.118.0
  • 3.118.1
  • 3.119.0
  • 3.120.0
  • 3.121.0
  • 3.51.5
  • 3.52.0
  • 3.52.1
  • 3.53.0
  • 3.54.0
  • 3.55.0
  • 3.55.1
  • 3.55.2
  • 3.55.3
  • 3.55.4
102 results

Target

Select target project
  • oss/libraries/javascript/monster
1 result
Select Git revision
  • 1.31
  • master
  • 1.10.0
  • 1.30.1
  • 1.31.0
  • 1.8.0
  • 1.9.0
  • 3.100.0
  • 3.100.1
  • 3.100.10
  • 3.100.11
  • 3.100.12
  • 3.100.13
  • 3.100.14
  • 3.100.15
  • 3.100.16
  • 3.100.17
  • 3.100.18
  • 3.100.19
  • 3.100.2
  • 3.100.20
  • 3.100.3
  • 3.100.4
  • 3.100.5
  • 3.100.6
  • 3.100.7
  • 3.100.8
  • 3.100.9
  • 3.101.0
  • 3.101.1
  • 3.101.2
  • 3.101.3
  • 3.102.0
  • 3.102.1
  • 3.102.2
  • 3.102.3
  • 3.102.4
  • 3.102.5
  • 3.102.6
  • 3.103.0
  • 3.103.1
  • 3.104.0
  • 3.104.1
  • 3.105.0
  • 3.105.1
  • 3.105.2
  • 3.106.0
  • 3.106.1
  • 3.107.0
  • 3.108.0
  • 3.108.1
  • 3.108.2
  • 3.108.3
  • 3.108.4
  • 3.108.5
  • 3.109.0
  • 3.110.0
  • 3.110.1
  • 3.110.2
  • 3.110.3
  • 3.110.4
  • 3.111.0
  • 3.112.0
  • 3.112.1
  • 3.112.2
  • 3.112.3
  • 3.112.4
  • 3.113.0
  • 3.114.0
  • 3.114.1
  • 3.114.2
  • 3.114.3
  • 3.114.4
  • 3.114.5
  • 3.114.6
  • 3.114.7
  • 3.115.0
  • 3.115.1
  • 3.115.2
  • 3.115.3
  • 3.115.4
  • 3.116.0
  • 3.116.1
  • 3.117.0
  • 3.117.1
  • 3.117.2
  • 3.117.3
  • 3.118.0
  • 3.118.1
  • 3.119.0
  • 3.120.0
  • 3.121.0
  • 3.51.5
  • 3.52.0
  • 3.52.1
  • 3.53.0
  • 3.54.0
  • 3.55.0
  • 3.55.1
  • 3.55.2
  • 3.55.3
  • 3.55.4
102 results
Show changes
Commits on Source (4)
<a name="v3.14.0"></a>
## [v3.14.0] - 2023-02-21
### Add Features
- new transformer function concat
<a name="v3.13.1"></a> <a name="v3.13.1"></a>
## [v3.13.1] - 2023-02-18 ## [v3.13.1] - 2023-02-18
### Bug Fixes ### Bug Fixes
...@@ -304,6 +310,7 @@ ...@@ -304,6 +310,7 @@
<a name="1.8.0"></a> <a name="1.8.0"></a>
## 1.8.0 - 2021-08-15 ## 1.8.0 - 2021-08-15
[v3.14.0]: https://gitlab.schukai.com/oss/libraries/javascript/monster/compare/v3.13.1...v3.14.0
[v3.13.1]: https://gitlab.schukai.com/oss/libraries/javascript/monster/compare/v3.13.0...v3.13.1 [v3.13.1]: https://gitlab.schukai.com/oss/libraries/javascript/monster/compare/v3.13.0...v3.13.1
[v3.13.0]: https://gitlab.schukai.com/oss/libraries/javascript/monster/compare/v3.12.2...v3.13.0 [v3.13.0]: https://gitlab.schukai.com/oss/libraries/javascript/monster/compare/v3.12.2...v3.13.0
[v3.12.2]: https://gitlab.schukai.com/oss/libraries/javascript/monster/compare/v3.12.1...v3.12.2 [v3.12.2]: https://gitlab.schukai.com/oss/libraries/javascript/monster/compare/v3.12.1...v3.12.2
......
{ {
"name": "@schukai/monster", "name": "@schukai/monster",
"version": "3.13.0", "version": "3.13.1",
"description": "Monster is a simple library for creating fast, robust and lightweight websites.", "description": "Monster is a simple library for creating fast, robust and lightweight websites.",
"keywords": [ "keywords": [
"framework", "framework",
......
...@@ -53,6 +53,7 @@ class Datasource extends Base { ...@@ -53,6 +53,7 @@ class Datasource extends Base {
*/ */
constructor() { constructor() {
super(); super();
this[internalSymbol] = new ProxyObserver({ this[internalSymbol] = new ProxyObserver({
options: extend({}, this.defaults), options: extend({}, this.defaults),
}); });
......
...@@ -169,6 +169,13 @@ class RestAPI extends Server { ...@@ -169,6 +169,13 @@ class RestAPI extends Server {
} }
} }
/**
* @private
* @param init
* @param key
* @param callback
* @returns {Promise<string>}
*/
function fetchData(init, key, callback) { function fetchData(init, key, callback) {
const self = this; const self = this;
let response; let response;
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
import {Base} from "../types/base.mjs"; import {Base} from "../types/base.mjs";
import {getGlobal, getGlobalObject} from "../types/global.mjs"; import {getGlobal, getGlobalObject} from "../types/global.mjs";
import {ID} from "../types/id.mjs"; import {ID} from "../types/id.mjs";
import {isArray, isObject, isString} from "../types/is.mjs"; import {isArray, isObject, isString, isPrimitive} from "../types/is.mjs";
import {getDocumentTranslations, Translations} from "../i18n/translations.mjs"; import {getDocumentTranslations, Translations} from "../i18n/translations.mjs";
import { import {
validateFunction, validateFunction,
...@@ -397,6 +397,28 @@ function transform(value) { ...@@ -397,6 +397,28 @@ function transform(value) {
return new Pathfinder(value).exists(key); return new Pathfinder(value).exists(key);
case "concat":
let pf2 = new Pathfinder(value);
let concat = "";
while (args.length > 0) {
key = args.shift();
if (key === undefined) {
throw new Error("missing key parameter");
}
if (!pf2.exists(key)) {
concat += key;
continue;
}
let v = pf2.getVia(key);
if(!isPrimitive(v)) {
throw new Error("value is not primitive");
}
concat += v;
}
return concat;
case "path": case "path":
key = args.shift(); key = args.shift();
if (key === undefined) { if (key === undefined) {
......
...@@ -142,7 +142,7 @@ function getMonsterVersion() { ...@@ -142,7 +142,7 @@ function getMonsterVersion() {
} }
/** don't touch, replaced by make with package.json version */ /** don't touch, replaced by make with package.json version */
monsterVersion = new Version("3.13.0"); monsterVersion = new Version("3.13.1");
return monsterVersion; return monsterVersion;
} }
{ {
"name": "monster", "name": "monster",
"version": "3.13.0", "version": "3.13.1",
"description": "monster", "description": "monster",
"repository": { "repository": {
"type": "git", "type": "git",
...@@ -32,12 +32,12 @@ ...@@ -32,12 +32,12 @@
"create-polyfill-service-url": "^2.2.6", "create-polyfill-service-url": "^2.2.6",
"crypt": "^0.0.2", "crypt": "^0.0.2",
"cssnano": "^5.1.15", "cssnano": "^5.1.15",
"esbuild": "^0.17.8", "esbuild": "^0.17.10",
"flow-bin": "^0.200.0", "flow-bin": "^0.200.0",
"fs": "0.0.1-security", "fs": "0.0.1-security",
"glob": "^8.1.0", "glob": "^8.1.0",
"graphviz": "^0.0.9", "graphviz": "^0.0.9",
"jsdoc": "^4.0.1", "jsdoc": "^4.0.2",
"jsdoc-external-example": "github:volker-schukai/jsdoc-external-example", "jsdoc-external-example": "github:volker-schukai/jsdoc-external-example",
"jsdoc-plantuml": "^1.0.2", "jsdoc-plantuml": "^1.0.2",
"jsdom": "^21.1.0", "jsdom": "^21.1.0",
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
"postcss-import": "^15.1.0", "postcss-import": "^15.1.0",
"postcss-load-config": "^4.0.1", "postcss-load-config": "^4.0.1",
"postcss-mixins": "^9.0.4", "postcss-mixins": "^9.0.4",
"postcss-nested": "^6.0.0", "postcss-nested": "^6.0.1",
"postcss-nesting": "^11.2.1", "postcss-nesting": "^11.2.1",
"postcss-normalize": "^10.0.1", "postcss-normalize": "^10.0.1",
"postcss-responsive-type": "^1.0.0", "postcss-responsive-type": "^1.0.0",
...@@ -61,11 +61,11 @@ ...@@ -61,11 +61,11 @@
"url": "^0.11.0", "url": "^0.11.0",
"url-exist": "3.0.1", "url-exist": "3.0.1",
"util": "^0.12.5", "util": "^0.12.5",
"vite": "^4.1.2", "vite": "^4.1.3",
"vite-plugin-banner": "^0.7.0", "vite-plugin-banner": "^0.7.0",
"vite-plugin-list-directory-contents": "^1.4.5", "vite-plugin-list-directory-contents": "^1.4.5",
"vite-plugin-minify": "^1.5.2", "vite-plugin-minify": "^1.5.2",
"vite-plugin-mkcert": "^1.13.1", "vite-plugin-mkcert": "^1.13.2",
"ws": "^8.12.1" "ws": "^8.12.1"
} }
} }
This diff is collapsed.
...@@ -27,6 +27,7 @@ describe('Transformer', function () { ...@@ -27,6 +27,7 @@ describe('Transformer', function () {
describe('Transformer.run()', function () { describe('Transformer.run()', function () {
[ [
['concat:a.b.c:test:a.b.d', {a: {b: {c: 4, d: 6}}}, "4test6"],
['??:a', null, 'a'], ['??:a', null, 'a'],
['??:a', undefined, 'a'], ['??:a', undefined, 'a'],
['??:a', 'true', 'true'], ['??:a', 'true', 'true'],
......
...@@ -7,7 +7,7 @@ describe('Monster', function () { ...@@ -7,7 +7,7 @@ describe('Monster', function () {
let monsterVersion let monsterVersion
/** don´t touch, replaced by make with package.json version */ /** don´t touch, replaced by make with package.json version */
monsterVersion = new Version("3.13.0") monsterVersion = new Version("3.13.1")
let m = getMonsterVersion(); let m = getMonsterVersion();
......
{"version":"3.13.1"} {"version":"3.14.0"}