miolo 0.9.37 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/dist/cli/miolo.cli.iife.bundle.js +5 -7
- package/dist/cli/miolo.cli.iife.bundle.js.map +1 -1
- package/dist/cli/miolo.cli.iife.bundle.min.js +2 -2
- package/dist/cli/miolo.cli.iife.js +4 -4
- package/dist/cli/miolo.cli.iife.min.js +2 -2
- package/dist/cli/miolo.cli.min.mjs +2 -2
- package/dist/cli/miolo.cli.mjs +2 -2
- package/dist/cli/miolo.cli.umd.bundle.js +5 -7
- package/dist/cli/miolo.cli.umd.bundle.js.map +1 -1
- package/dist/cli/miolo.cli.umd.bundle.min.js +2 -2
- package/dist/cli/miolo.cli.umd.js +4 -4
- package/dist/cli/miolo.cli.umd.min.js +2 -2
- package/dist/cli-react/miolo.cli-react.iife.bundle.js +5 -7
- package/dist/cli-react/miolo.cli-react.iife.bundle.js.map +1 -1
- package/dist/cli-react/miolo.cli-react.iife.bundle.min.js +2 -2
- package/dist/cli-react/miolo.cli-react.iife.js +4 -4
- package/dist/cli-react/miolo.cli-react.iife.js.map +1 -1
- package/dist/cli-react/miolo.cli-react.iife.min.js +2 -2
- package/dist/cli-react/miolo.cli-react.min.mjs +2 -2
- package/dist/cli-react/miolo.cli-react.mjs +2 -2
- package/dist/cli-react/miolo.cli-react.mjs.map +1 -1
- package/dist/cli-react/miolo.cli-react.umd.bundle.js +5 -7
- package/dist/cli-react/miolo.cli-react.umd.bundle.js.map +1 -1
- package/dist/cli-react/miolo.cli-react.umd.bundle.min.js +2 -2
- package/dist/cli-react/miolo.cli-react.umd.js +4 -4
- package/dist/cli-react/miolo.cli-react.umd.js.map +1 -1
- package/dist/cli-react/miolo.cli-react.umd.min.js +2 -2
- package/dist/server/miolo.server.cjs +399 -202
- package/dist/server/miolo.server.min.mjs +2 -2
- package/dist/server/miolo.server.mjs +220 -122
- package/dist/server/miolo.server.mjs.map +1 -1
- package/dist/server/miolo.server.node.mjs +399 -204
- package/package.json +21 -30
package/README.md
CHANGED
|
@@ -36,3 +36,20 @@ render:
|
|
|
36
36
|
ctx.session.token (if guest auth)
|
|
37
37
|
|
|
38
38
|
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
# Changelog
|
|
42
|
+
|
|
43
|
+
## 0.10.0
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
- `context.miolo.db.initConnection` is now `context.miolo.db.init_connection`
|
|
48
|
+
- `context.miolo.db.getConnection` is now `context.miolo.db.get_connection`
|
|
49
|
+
- `context.miolo.db.getModel` is now `context.miolo.db.get_model`
|
|
50
|
+
- `context.miolo.db.dropConnection` is now `context.miolo.db.drop_connection`
|
|
51
|
+
- `connection.getModel` is now `connection.get_model`
|
|
52
|
+
- added `context.miolo.cache: {get_cache, get_cache_names,drop_cache,drop_caches}}`
|
|
53
|
+
|
|
54
|
+
- upgraded `calustra` to `0.11.0`. After newer cache handling, `get_connection()`, `get_model()`, etc. are `async`.
|
|
55
|
+
- upgraded every other dependency. Major version changes: @koa/cors, @maxmind/geoip2-node cron, winston-daily-rotate-file and nodemon.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* miolo v0.
|
|
2
|
+
* miolo v0.10.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Donato Lorenzo <donato@afialapis.com>
|
|
5
5
|
*
|
|
@@ -119,7 +119,7 @@ var miolo = (function (exports) {
|
|
|
119
119
|
function makeInvokeMethod(e, r, n) {
|
|
120
120
|
var o = h;
|
|
121
121
|
return function (i, a) {
|
|
122
|
-
if (o === f) throw
|
|
122
|
+
if (o === f) throw Error("Generator is already running");
|
|
123
123
|
if (o === s) {
|
|
124
124
|
if ("throw" === i) throw a;
|
|
125
125
|
return {
|
|
@@ -261,7 +261,7 @@ var miolo = (function (exports) {
|
|
|
261
261
|
} else if (c) {
|
|
262
262
|
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
263
263
|
} else {
|
|
264
|
-
if (!u) throw
|
|
264
|
+
if (!u) throw Error("try statement without catch or finally");
|
|
265
265
|
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
266
266
|
}
|
|
267
267
|
}
|
|
@@ -301,7 +301,7 @@ var miolo = (function (exports) {
|
|
|
301
301
|
return o;
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
|
-
throw
|
|
304
|
+
throw Error("illegal catch attempt");
|
|
305
305
|
},
|
|
306
306
|
delegateYield: function (e, r, n) {
|
|
307
307
|
return this.delegate = {
|
|
@@ -1135,9 +1135,7 @@ var miolo = (function (exports) {
|
|
|
1135
1135
|
var $TypeError$1 = type;
|
|
1136
1136
|
var $floor$1 = GetIntrinsic$2('%Math.floor%');
|
|
1137
1137
|
|
|
1138
|
-
/** @
|
|
1139
|
-
|
|
1140
|
-
/** @type {<T extends Func = Func>(fn: T, length: number, loose?: boolean) => T} */
|
|
1138
|
+
/** @type {import('.')} */
|
|
1141
1139
|
var setFunctionLength = function setFunctionLength(fn, length) {
|
|
1142
1140
|
if (typeof fn !== 'function') {
|
|
1143
1141
|
throw new $TypeError$1('`fn` is not a function');
|