@schukai/monster 3.15.0 → 3.16.1
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/source/constants.mjs +1 -1
- package/source/constraints/abstract.mjs +1 -1
- package/source/constraints/abstractoperator.mjs +1 -1
- package/source/constraints/andoperator.mjs +1 -1
- package/source/constraints/invalid.mjs +1 -1
- package/source/constraints/isarray.mjs +1 -1
- package/source/constraints/isobject.mjs +1 -1
- package/source/constraints/namespace.mjs +1 -1
- package/source/constraints/oroperator.mjs +1 -1
- package/source/constraints/valid.mjs +1 -1
- package/source/data/buildmap.mjs +1 -1
- package/source/data/buildtree.mjs +1 -1
- package/source/data/datasource/dom.mjs +1 -1
- package/source/data/datasource/namespace.mjs +1 -1
- package/source/data/datasource/server/namespace.mjs +1 -1
- package/source/data/datasource/server/restapi/namespace.mjs +1 -1
- package/source/data/datasource/server/restapi/writeerror.mjs +1 -1
- package/source/data/datasource/server/restapi.mjs +1 -1
- package/source/data/datasource/server/webconnect.mjs +1 -1
- package/source/data/datasource/server.mjs +1 -1
- package/source/data/datasource/storage/localstorage.mjs +1 -1
- package/source/data/datasource/storage/namespace.mjs +1 -1
- package/source/data/datasource/storage/sessionstorage.mjs +1 -1
- package/source/data/datasource/storage.mjs +1 -1
- package/source/data/datasource.mjs +1 -1
- package/source/data/diff.mjs +1 -1
- package/source/data/extend.mjs +1 -1
- package/source/data/namespace.mjs +1 -1
- package/source/data/pathfinder.mjs +1 -1
- package/source/data/pipe.mjs +1 -1
- package/source/data/transformer.mjs +124 -7
- package/source/dom/assembler.mjs +1 -1
- package/source/dom/attributes.mjs +1 -1
- package/source/dom/constants.mjs +1 -1
- package/source/dom/customcontrol.mjs +1 -1
- package/source/dom/customelement.mjs +1 -1
- package/source/dom/events.mjs +1 -1
- package/source/dom/focusmanager.mjs +1 -1
- package/source/dom/locale.mjs +1 -1
- package/source/dom/namespace.mjs +1 -1
- package/source/dom/ready.mjs +1 -1
- package/source/dom/resource/data.mjs +1 -1
- package/source/dom/resource/link/namespace.mjs +1 -1
- package/source/dom/resource/link/stylesheet.mjs +1 -1
- package/source/dom/resource/link.mjs +1 -1
- package/source/dom/resource/namespace.mjs +1 -1
- package/source/dom/resource/script.mjs +1 -1
- package/source/dom/resource.mjs +1 -1
- package/source/dom/resourcemanager.mjs +1 -1
- package/source/dom/template.mjs +1 -1
- package/source/dom/theme.mjs +1 -1
- package/source/dom/updater.mjs +1 -1
- package/source/dom/util.mjs +1 -1
- package/source/dom/worker/factory.mjs +1 -1
- package/source/dom/worker/namespace.mjs +1 -1
- package/source/i18n/formatter.mjs +1 -1
- package/source/i18n/locale.mjs +1 -1
- package/source/i18n/namespace.mjs +1 -1
- package/source/i18n/provider.mjs +1 -1
- package/source/i18n/providers/embed.mjs +2 -4
- package/source/i18n/providers/fetch.mjs +1 -1
- package/source/i18n/providers/namespace.mjs +1 -1
- package/source/i18n/translations.mjs +1 -1
- package/source/logging/handler/console.mjs +1 -1
- package/source/logging/handler/namespace.mjs +1 -1
- package/source/logging/handler.mjs +1 -1
- package/source/logging/logentry.mjs +1 -1
- package/source/logging/logger.mjs +1 -1
- package/source/logging/namespace.mjs +1 -1
- package/source/math/namespace.mjs +1 -1
- package/source/math/random.mjs +1 -1
- package/source/monster.mjs +1 -1
- package/source/net/namespace.mjs +1 -1
- package/source/net/webconnect/message.mjs +1 -1
- package/source/net/webconnect/namespace.mjs +1 -1
- package/source/net/webconnect.mjs +1 -1
- package/source/text/formatter.mjs +1 -1
- package/source/text/namespace.mjs +1 -1
- package/source/types/base.mjs +1 -1
- package/source/types/basewithoptions.mjs +1 -1
- package/source/types/binary.mjs +1 -1
- package/source/types/dataurl.mjs +1 -1
- package/source/types/global.mjs +1 -1
- package/source/types/id.mjs +1 -1
- package/source/types/internal.mjs +1 -1
- package/source/types/is.mjs +1 -1
- package/source/types/mediatype.mjs +1 -1
- package/source/types/namespace.mjs +1 -1
- package/source/types/node.mjs +1 -1
- package/source/types/nodelist.mjs +1 -1
- package/source/types/noderecursiveiterator.mjs +1 -1
- package/source/types/observablequeue.mjs +1 -1
- package/source/types/observer.mjs +1 -1
- package/source/types/observerlist.mjs +1 -1
- package/source/types/proxyobserver.mjs +1 -1
- package/source/types/queue.mjs +1 -1
- package/source/types/randomid.mjs +1 -1
- package/source/types/regex.mjs +1 -1
- package/source/types/stack.mjs +1 -1
- package/source/types/tokenlist.mjs +1 -1
- package/source/types/typeof.mjs +1 -1
- package/source/types/uniquequeue.mjs +1 -1
- package/source/types/uuid.mjs +1 -1
- package/source/types/validate.mjs +1 -1
- package/source/types/version.mjs +2 -2
- package/source/util/clone.mjs +1 -1
- package/source/util/comparator.mjs +1 -1
- package/source/util/deadmansswitch.mjs +1 -1
- package/source/util/freeze.mjs +1 -1
- package/source/util/namespace.mjs +1 -1
- package/source/util/processing.mjs +1 -1
- package/source/util/trimspaces.mjs +1 -1
- package/test/cases/data/pipe.mjs +65 -5
- package/test/cases/data/transformer.mjs +11 -0
- package/test/cases/monster.mjs +1 -1
package/source/i18n/locale.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
package/source/i18n/provider.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
@@ -109,7 +109,7 @@ class Embed extends Provider {
|
|
109
109
|
|
110
110
|
let translations = null;
|
111
111
|
try {
|
112
|
-
translations = JSON.parse(this.translateElement.innerHTML);
|
112
|
+
translations = JSON.parse(this.translateElement.innerHTML.trim());
|
113
113
|
} catch (e) {
|
114
114
|
reject(e);
|
115
115
|
return;
|
@@ -150,8 +150,6 @@ class Embed extends Provider {
|
|
150
150
|
|
151
151
|
const promises = [];
|
152
152
|
|
153
|
-
let result
|
154
|
-
|
155
153
|
list.forEach((translationElement) => {
|
156
154
|
const p = new Embed(translationElement);
|
157
155
|
promises.push(p.assignToElement(undefined, element));
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
package/source/math/random.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
package/source/monster.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
package/source/net/namespace.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
package/source/types/base.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
package/source/types/binary.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
package/source/types/dataurl.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
package/source/types/global.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
package/source/types/id.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
package/source/types/is.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
package/source/types/node.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
package/source/types/queue.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
package/source/types/regex.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
package/source/types/stack.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
package/source/types/typeof.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
package/source/types/uuid.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
package/source/types/version.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
@@ -142,7 +142,7 @@ function getMonsterVersion() {
|
|
142
142
|
}
|
143
143
|
|
144
144
|
/** don't touch, replaced by make with package.json version */
|
145
|
-
monsterVersion = new Version("3.
|
145
|
+
monsterVersion = new Version("3.16.1");
|
146
146
|
|
147
147
|
return monsterVersion;
|
148
148
|
}
|
package/source/util/clone.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
package/source/util/freeze.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright schukai GmbH and contributors
|
2
|
+
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
3
|
* Node module: @schukai/monster
|
4
4
|
* This file is licensed under the AGPLv3 License.
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
package/test/cases/data/pipe.mjs
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
import {expect} from "chai"
|
4
4
|
import {Pipe} from "../../../../application/source/data/pipe.mjs";
|
5
5
|
import {initJSDOM} from "../../util/jsdom.mjs";
|
6
|
+
import {Embed} from "../../../../application/source/i18n/providers/embed.mjs";
|
6
7
|
|
7
8
|
|
8
9
|
describe('Pipe', function () {
|
@@ -10,7 +11,7 @@ describe('Pipe', function () {
|
|
10
11
|
before(function (done) {
|
11
12
|
|
12
13
|
let promises = []
|
13
|
-
if(!globalThis['crypto']) {
|
14
|
+
if (!globalThis['crypto']) {
|
14
15
|
promises.push(import("@peculiar/webcrypto").then(m => {
|
15
16
|
globalThis['crypto'] = new m.Crypto();
|
16
17
|
return true;
|
@@ -21,12 +22,12 @@ describe('Pipe', function () {
|
|
21
22
|
done()
|
22
23
|
});
|
23
24
|
|
24
|
-
});
|
25
|
-
|
25
|
+
});
|
26
|
+
|
26
27
|
describe('run different pipes', function () {
|
27
28
|
[
|
28
|
-
['path:b | if:x:\\ ', {a:true}, ' '], // '\\ '.length ↦ 2
|
29
|
-
['path:a | if:x:\\ ', {a:true}, 'x'],
|
29
|
+
['path:b | if:x:\\ ', {a: true}, ' '], // '\\ '.length ↦ 2
|
30
|
+
['path:a | if:x:\\ ', {a: true}, 'x'],
|
30
31
|
['nop', 'abcdefghijklmnop', 'abcdefghijklmnop'],
|
31
32
|
|
32
33
|
].forEach(function (data) {
|
@@ -83,4 +84,63 @@ describe('Pipe', function () {
|
|
83
84
|
|
84
85
|
|
85
86
|
});
|
87
|
+
|
88
|
+
describe('new Pipe and locale', function () {
|
89
|
+
|
90
|
+
|
91
|
+
let html1 = `
|
92
|
+
<div id="mock-translations"></div>
|
93
|
+
<script type="application/json" data-monster-role="translations">
|
94
|
+
{
|
95
|
+
"51": "xyz",
|
96
|
+
"52": "abc",
|
97
|
+
"53": "def"
|
98
|
+
}
|
99
|
+
</script>
|
100
|
+
`;
|
101
|
+
|
102
|
+
beforeEach((done) => {
|
103
|
+
let mocks = document.getElementById('mocks');
|
104
|
+
mocks.innerHTML = html1;
|
105
|
+
let elem = document.getElementById('mock-translations');
|
106
|
+
Embed.assignTranslationsToElement(elem).then((o) => {
|
107
|
+
done()
|
108
|
+
}).catch((e) => {
|
109
|
+
done(e)
|
110
|
+
})
|
111
|
+
|
112
|
+
|
113
|
+
})
|
114
|
+
|
115
|
+
afterEach(() => {
|
116
|
+
let mocks = document.getElementById('mocks');
|
117
|
+
mocks.innerHTML = "";
|
118
|
+
})
|
119
|
+
|
120
|
+
before(function (done) {
|
121
|
+
initJSDOM().then(() => {
|
122
|
+
done()
|
123
|
+
});
|
124
|
+
});
|
125
|
+
|
126
|
+
[
|
127
|
+
['path:status | tostring | i18n', {status: 51}, "xyz"]
|
128
|
+
|
129
|
+
|
130
|
+
].forEach(function (data) {
|
131
|
+
|
132
|
+
let pipe = data.shift()
|
133
|
+
let obj = data.shift()
|
134
|
+
let expected = data.shift()
|
135
|
+
|
136
|
+
it('should transform(' + pipe + ').run(' + JSON.stringify(obj) + ') return ' + JSON.stringify(expected), function () {
|
137
|
+
let t = new Pipe(pipe);
|
138
|
+
expect(t.run(obj)).to.be.equal(expected);
|
139
|
+
});
|
140
|
+
})
|
141
|
+
|
142
|
+
|
143
|
+
})
|
144
|
+
|
145
|
+
|
86
146
|
});
|
@@ -27,6 +27,17 @@ describe('Transformer', function () {
|
|
27
27
|
describe('Transformer.run()', function () {
|
28
28
|
|
29
29
|
[
|
30
|
+
['map:a=4:b=5:c=6', "a", "4"],
|
31
|
+
['date', "2023-02-14", "14.2.2023"],
|
32
|
+
['year', "2023-02-14", 2023],
|
33
|
+
['month', "2023-02-14", 2],
|
34
|
+
['day', "2023-02-14", 14],
|
35
|
+
['weekday', "2023-02-14", 2],
|
36
|
+
['minutes', "2023-02-14 06:12:21", 12],
|
37
|
+
['seconds', "2023-02-14 06:12:21", 21],
|
38
|
+
['hours', "2023-02-14 06:12:21", 6],
|
39
|
+
['time', "2023-02-14 06:12:21", "06:12:21"],
|
40
|
+
['timestamp', "2023-02-14", 1676332800000],
|
30
41
|
['concat:a.b.c:test:a.b.d', {a: {b: {c: 4, d: 6}}}, "4test6"],
|
31
42
|
['concat:a.b.c:\\ \\ :a.b.d', {a: {b: {c: 4, d: 6}}}, "4 6"],
|
32
43
|
['concat:a.b.c:,:a.b.d', {a: {b: {c: 4, d: 6}}}, "4,6"],
|
package/test/cases/monster.mjs
CHANGED