@e-mc/core 0.11.13 → 0.11.14
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.11.
|
|
12
|
+
* [View Source](https://www.unpkg.com/@e-mc/types@0.11.14/lib/index.d.ts)
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
15
|
import type { DataSource, LogStatus } from "./squared";
|
|
@@ -232,13 +232,13 @@ NOTE: **@e-mc/core** is mostly a collection of abstract base classes which canno
|
|
|
232
232
|
|
|
233
233
|
## References
|
|
234
234
|
|
|
235
|
-
- https://www.unpkg.com/@e-mc/types@0.11.
|
|
236
|
-
- https://www.unpkg.com/@e-mc/types@0.11.
|
|
237
|
-
- https://www.unpkg.com/@e-mc/types@0.11.
|
|
238
|
-
- https://www.unpkg.com/@e-mc/types@0.11.
|
|
239
|
-
- https://www.unpkg.com/@e-mc/types@0.11.
|
|
240
|
-
- https://www.unpkg.com/@e-mc/types@0.11.
|
|
241
|
-
- https://www.unpkg.com/@e-mc/types@0.11.
|
|
235
|
+
- https://www.unpkg.com/@e-mc/types@0.11.14/lib/squared.d.ts
|
|
236
|
+
- https://www.unpkg.com/@e-mc/types@0.11.14/lib/core.d.ts
|
|
237
|
+
- https://www.unpkg.com/@e-mc/types@0.11.14/lib/db.d.ts
|
|
238
|
+
- https://www.unpkg.com/@e-mc/types@0.11.14/lib/dom.d.ts
|
|
239
|
+
- https://www.unpkg.com/@e-mc/types@0.11.14/lib/logger.d.ts
|
|
240
|
+
- https://www.unpkg.com/@e-mc/types@0.11.14/lib/node.d.ts
|
|
241
|
+
- https://www.unpkg.com/@e-mc/types@0.11.14/lib/settings.d.ts
|
|
242
242
|
|
|
243
243
|
## LICENSE
|
|
244
244
|
|
package/index.js
CHANGED
|
@@ -1187,14 +1187,14 @@ class ClientDb extends Client {
|
|
|
1187
1187
|
break;
|
|
1188
1188
|
case 'object':
|
|
1189
1189
|
if (options !== null) {
|
|
1190
|
-
({ value, sessionKey,
|
|
1190
|
+
({ value, sessionKey, exclusiveOf, renewCache } = options);
|
|
1191
1191
|
if (Array.isArray(exclusiveOf)) {
|
|
1192
1192
|
const ignoreCache = exclusiveOf[2];
|
|
1193
1193
|
if (ignoreCache === 1) {
|
|
1194
1194
|
return;
|
|
1195
1195
|
}
|
|
1196
1196
|
renewCache ||= ignoreCache === 0;
|
|
1197
|
-
queryString += '_' + exclusiveOf.toString();
|
|
1197
|
+
queryString += '_' + exclusiveOf.slice(0, 2).toString();
|
|
1198
1198
|
}
|
|
1199
1199
|
}
|
|
1200
1200
|
break;
|
|
@@ -1207,7 +1207,7 @@ class ClientDb extends Client {
|
|
|
1207
1207
|
}
|
|
1208
1208
|
}
|
|
1209
1209
|
const result = ClientDb.findResult(this.moduleName + '_' + source, uuidKey || credential, queryString, value === 0 ? 0 : ClientDb.getTimeout(value || this.settingsOf(source, 'cache')), sessionKey, renewCache);
|
|
1210
|
-
if (exclusiveOf &&
|
|
1210
|
+
if (exclusiveOf && isInvalidRange(result, exclusiveOf)) {
|
|
1211
1211
|
return;
|
|
1212
1212
|
}
|
|
1213
1213
|
return result;
|
|
@@ -1230,7 +1230,7 @@ class ClientDb extends Client {
|
|
|
1230
1230
|
if (isInvalidRange(result, exclusiveOf)) {
|
|
1231
1231
|
return result;
|
|
1232
1232
|
}
|
|
1233
|
-
queryString += '_' + exclusiveOf.toString();
|
|
1233
|
+
queryString += '_' + exclusiveOf.slice(0, 2).toString();
|
|
1234
1234
|
}
|
|
1235
1235
|
if (uuidKey) {
|
|
1236
1236
|
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.11.
|
|
3
|
+
"version": "0.11.14",
|
|
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": "BSD-3-Clause",
|
|
21
21
|
"homepage": "https://github.com/anpham6/e-mc#readme",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@e-mc/module": "0.11.
|
|
24
|
-
"@e-mc/types": "0.11.
|
|
23
|
+
"@e-mc/module": "0.11.14",
|
|
24
|
+
"@e-mc/types": "0.11.14",
|
|
25
25
|
"ipaddr.js": "^2.2.0",
|
|
26
26
|
"picomatch": "^4.0.3"
|
|
27
27
|
}
|