@schukai/monster 3.4.0 → 3.4.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/data/datasource/{restapi → server}/namespace.mjs +2 -2
- package/source/data/datasource/server/restapi/namespace.mjs +13 -0
- package/source/data/datasource/{restapi → server/restapi}/writeerror.mjs +3 -3
- package/source/data/datasource/server/restapi.mjs +1 -1
- package/source/data/datasource/server/webconnect.mjs +0 -2
- package/source/monster.mjs +1 -1
- package/source/types/version.mjs +1 -1
- package/test/cases/monster.mjs +1 -1
- package/test/web/test.html +2 -2
- package/test/web/tests.js +6 -6
package/package.json
CHANGED
@@ -0,0 +1,13 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright 2022 schukai GmbH
|
3
|
+
* SPDX-License-Identifier: AGPL-3.0
|
4
|
+
*/
|
5
|
+
|
6
|
+
/**
|
7
|
+
* Namespace for storages
|
8
|
+
*
|
9
|
+
* @namespace Monster.Data.Datasource.Server.RestAPI
|
10
|
+
* @memberOf Monster.Data.Datasource.Server
|
11
|
+
* @author schukai GmbH
|
12
|
+
*/
|
13
|
+
const ns = {};
|
@@ -5,7 +5,7 @@
|
|
5
5
|
* License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
|
6
6
|
*/
|
7
7
|
|
8
|
-
import {internalSymbol,instanceSymbol} from "
|
8
|
+
import {internalSymbol,instanceSymbol} from "../../../../constants.mjs";
|
9
9
|
|
10
10
|
export {WriteError}
|
11
11
|
|
@@ -15,7 +15,7 @@ export {WriteError}
|
|
15
15
|
* @license AGPLv3
|
16
16
|
* @since 1.24.0
|
17
17
|
* @copyright schukai GmbH
|
18
|
-
* @memberOf Monster.Data.Datasource.RestAPI
|
18
|
+
* @memberOf Monster.Data.Datasource.Server.RestAPI
|
19
19
|
* @summary the error is thrown by the rest api in case of error
|
20
20
|
*/
|
21
21
|
class WriteError extends Error {
|
@@ -38,7 +38,7 @@ class WriteError extends Error {
|
|
38
38
|
* @since 2.1.0
|
39
39
|
*/
|
40
40
|
static get [instanceSymbol]() {
|
41
|
-
return Symbol.for("@schukai/monster/data/datasource/restapi/writeerror");
|
41
|
+
return Symbol.for("@schukai/monster/data/datasource/server/restapi/writeerror");
|
42
42
|
}
|
43
43
|
|
44
44
|
/**
|
@@ -10,7 +10,7 @@ import {isObject} from "../../../types/is.mjs";
|
|
10
10
|
import {Server} from "../server.mjs";
|
11
11
|
import {Pathfinder} from "../../pathfinder.mjs";
|
12
12
|
import {Pipe} from "../../pipe.mjs";
|
13
|
-
import {WriteError} from "
|
13
|
+
import {WriteError} from "./restapi/writeerror.mjs";
|
14
14
|
|
15
15
|
export {RestAPI}
|
16
16
|
|
@@ -11,10 +11,8 @@ import {WebConnect as NetWebConnect} from "../../../net/webconnect.mjs";
|
|
11
11
|
import {Message} from "../../../net/webconnect/message.mjs";
|
12
12
|
import {Server} from "../server.mjs";
|
13
13
|
|
14
|
-
|
15
14
|
export {WebConnect}
|
16
15
|
|
17
|
-
|
18
16
|
/**
|
19
17
|
* @private
|
20
18
|
* @type {Symbol}
|
package/source/monster.mjs
CHANGED
@@ -192,7 +192,7 @@ export {SessionStorage} from "./data/datasource/storage/sessionstorage.mjs"
|
|
192
192
|
export {LocalStorage} from "./data/datasource/storage/localstorage.mjs"
|
193
193
|
export {RestAPI} from "./data/datasource/server/restapi.mjs"
|
194
194
|
export {WebConnect} from "./data/datasource/server/webconnect.mjs"
|
195
|
-
export {WriteError} from "./data/datasource/restapi/writeerror.mjs"
|
195
|
+
export {WriteError} from "./data/datasource/server/restapi/writeerror.mjs"
|
196
196
|
export {Storage, storageObjectSymbol} from "./data/datasource/storage.mjs"
|
197
197
|
export {random} from "./math/random.mjs"
|
198
198
|
|
package/source/types/version.mjs
CHANGED
package/test/cases/monster.mjs
CHANGED
package/test/web/test.html
CHANGED
@@ -14,8 +14,8 @@
|
|
14
14
|
</head>
|
15
15
|
<body>
|
16
16
|
<div id="headline" style="display: flex;align-items: center;justify-content: center;flex-direction: column;">
|
17
|
-
<h1 style='margin-bottom: 0.1em;'>Monster 3.
|
18
|
-
<div id="lastupdate" style='font-size:0.7em'>last update So 8. Jan 17:
|
17
|
+
<h1 style='margin-bottom: 0.1em;'>Monster 3.4.0</h1>
|
18
|
+
<div id="lastupdate" style='font-size:0.7em'>last update So 8. Jan 17:17:24 CET 2023</div>
|
19
19
|
</div>
|
20
20
|
<div id="mocks"></div>
|
21
21
|
<div id="mocha"></div>
|