@e-mc/core 0.9.26 → 0.9.27
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 +8 -8
- package/index.js +4 -4
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
## Interface
|
|
11
11
|
|
|
12
|
-
* [View Source](https://www.unpkg.com/@e-mc/types@0.9.
|
|
12
|
+
* [View Source](https://www.unpkg.com/@e-mc/types@0.9.27/lib/index.d.ts)
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
15
|
import type { DataSource, LogStatus } from "./squared";
|
|
@@ -229,13 +229,13 @@ NOTE: **@e-mc/core** is mostly a collection of abstract base classes which canno
|
|
|
229
229
|
|
|
230
230
|
## References
|
|
231
231
|
|
|
232
|
-
- https://www.unpkg.com/@e-mc/types@0.9.
|
|
233
|
-
- https://www.unpkg.com/@e-mc/types@0.9.
|
|
234
|
-
- https://www.unpkg.com/@e-mc/types@0.9.
|
|
235
|
-
- https://www.unpkg.com/@e-mc/types@0.9.
|
|
236
|
-
- https://www.unpkg.com/@e-mc/types@0.9.
|
|
237
|
-
- https://www.unpkg.com/@e-mc/types@0.9.
|
|
238
|
-
- https://www.unpkg.com/@e-mc/types@0.9.
|
|
232
|
+
- https://www.unpkg.com/@e-mc/types@0.9.27/lib/squared.d.ts
|
|
233
|
+
- https://www.unpkg.com/@e-mc/types@0.9.27/lib/core.d.ts
|
|
234
|
+
- https://www.unpkg.com/@e-mc/types@0.9.27/lib/db.d.ts
|
|
235
|
+
- https://www.unpkg.com/@e-mc/types@0.9.27/lib/dom.d.ts
|
|
236
|
+
- https://www.unpkg.com/@e-mc/types@0.9.27/lib/logger.d.ts
|
|
237
|
+
- https://www.unpkg.com/@e-mc/types@0.9.27/lib/node.d.ts
|
|
238
|
+
- https://www.unpkg.com/@e-mc/types@0.9.27/lib/settings.d.ts
|
|
239
239
|
|
|
240
240
|
## LICENSE
|
|
241
241
|
|
package/index.js
CHANGED
|
@@ -1083,14 +1083,14 @@ class ClientDb extends Client {
|
|
|
1083
1083
|
break;
|
|
1084
1084
|
case 'object':
|
|
1085
1085
|
if (options !== null) {
|
|
1086
|
-
({ value, sessionKey,
|
|
1086
|
+
({ value, sessionKey, exclusiveOf, renewCache } = options);
|
|
1087
1087
|
if (Array.isArray(exclusiveOf)) {
|
|
1088
1088
|
const ignoreCache = exclusiveOf[2];
|
|
1089
1089
|
if (ignoreCache === 1) {
|
|
1090
1090
|
return;
|
|
1091
1091
|
}
|
|
1092
1092
|
renewCache ||= ignoreCache === 0;
|
|
1093
|
-
queryString += '_' + exclusiveOf.toString();
|
|
1093
|
+
queryString += '_' + exclusiveOf.slice(0, 2).toString();
|
|
1094
1094
|
}
|
|
1095
1095
|
}
|
|
1096
1096
|
break;
|
|
@@ -1103,7 +1103,7 @@ class ClientDb extends Client {
|
|
|
1103
1103
|
}
|
|
1104
1104
|
}
|
|
1105
1105
|
const result = ClientDb.findResult(this.moduleName + '_' + source, uuidKey || credential, queryString, value === 0 ? 0 : ClientDb.getTimeout(value || this.settingsOf(source, 'cache')), sessionKey, renewCache);
|
|
1106
|
-
if (exclusiveOf &&
|
|
1106
|
+
if (exclusiveOf && isInvalidRange(result, exclusiveOf)) {
|
|
1107
1107
|
return;
|
|
1108
1108
|
}
|
|
1109
1109
|
return result;
|
|
@@ -1126,7 +1126,7 @@ class ClientDb extends Client {
|
|
|
1126
1126
|
if (isInvalidRange(result, exclusiveOf)) {
|
|
1127
1127
|
return result;
|
|
1128
1128
|
}
|
|
1129
|
-
queryString += '_' + exclusiveOf.toString();
|
|
1129
|
+
queryString += '_' + exclusiveOf.slice(0, 2).toString();
|
|
1130
1130
|
}
|
|
1131
1131
|
if (uuidKey) {
|
|
1132
1132
|
const cache = this.settingsKey(uuidKey, 'cache');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-mc/core",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.27",
|
|
4
4
|
"description": "Core modules for E-mc.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"homepage": "https://github.com/anpham6/e-mc#readme",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@e-mc/module": "0.9.
|
|
24
|
-
"@e-mc/types": "0.9.
|
|
23
|
+
"@e-mc/module": "0.9.27",
|
|
24
|
+
"@e-mc/types": "0.9.27",
|
|
25
25
|
"picomatch": "^4.0.3"
|
|
26
26
|
}
|
|
27
27
|
}
|