@schukai/monster 3.4.0 → 3.4.2
Sign up to get free protection for your applications and to get access to all the features.
- package/example/data/datasource/server/restapi.mjs +14 -0
- package/example/data/datasource/server/webconnect.mjs +9 -0
- package/example/net/webconnect.mjs +16 -0
- 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 +47 -68
- package/source/data/datasource/server/webconnect.mjs +1 -3
- package/source/monster.mjs +1 -1
- package/source/net/namespace.mjs +15 -0
- package/source/net/webconnect/message.mjs +6 -0
- package/source/net/webconnect/namespace.mjs +15 -0
- package/source/net/webconnect.mjs +3 -3
- package/source/types/version.mjs +1 -1
- package/test/cases/data/datasource/server/restapi.mjs +12 -11
- package/test/cases/monster.mjs +1 -1
- package/test/web/test.html +2 -2
- package/test/web/tests.js +6 -6
- package/example/data/storage/restapi.mjs +0 -11
@@ -1,11 +0,0 @@
|
|
1
|
-
import {RestAPI} from '@schukai/monster/source/data/datasource/restapi.mjs';
|
2
|
-
|
3
|
-
const ds = new RestAPI({
|
4
|
-
url: 'https://httpbin.org/get'
|
5
|
-
}, {
|
6
|
-
url: 'https://httpbin.org/post'
|
7
|
-
});
|
8
|
-
|
9
|
-
ds.set({flag: true})
|
10
|
-
ds.write().then(() => console.log('done'));
|
11
|
-
ds.read().then(() => console.log('done'));
|