@e-mc/core 0.12.13 → 0.12.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.12.
|
|
12
|
+
* [View Source](https://www.unpkg.com/@e-mc/types@0.12.14/lib/index.d.ts)
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
15
|
import type { DataSource, LogStatus, WorkerAction } from "./squared";
|
|
@@ -319,13 +319,13 @@ NOTE: **@e-mc/core** is mostly a collection of abstract base classes which canno
|
|
|
319
319
|
|
|
320
320
|
## References
|
|
321
321
|
|
|
322
|
-
- https://www.unpkg.com/@e-mc/types@0.12.
|
|
323
|
-
- https://www.unpkg.com/@e-mc/types@0.12.
|
|
324
|
-
- https://www.unpkg.com/@e-mc/types@0.12.
|
|
325
|
-
- https://www.unpkg.com/@e-mc/types@0.12.
|
|
326
|
-
- https://www.unpkg.com/@e-mc/types@0.12.
|
|
327
|
-
- https://www.unpkg.com/@e-mc/types@0.12.
|
|
328
|
-
- https://www.unpkg.com/@e-mc/types@0.12.
|
|
322
|
+
- https://www.unpkg.com/@e-mc/types@0.12.14/lib/squared.d.ts
|
|
323
|
+
- https://www.unpkg.com/@e-mc/types@0.12.14/lib/core.d.ts
|
|
324
|
+
- https://www.unpkg.com/@e-mc/types@0.12.14/lib/db.d.ts
|
|
325
|
+
- https://www.unpkg.com/@e-mc/types@0.12.14/lib/dom.d.ts
|
|
326
|
+
- https://www.unpkg.com/@e-mc/types@0.12.14/lib/logger.d.ts
|
|
327
|
+
- https://www.unpkg.com/@e-mc/types@0.12.14/lib/node.d.ts
|
|
328
|
+
- https://www.unpkg.com/@e-mc/types@0.12.14/lib/settings.d.ts
|
|
329
329
|
|
|
330
330
|
* https://www.npmjs.com/package/@types/node
|
|
331
331
|
|
package/index.js
CHANGED
|
@@ -1208,14 +1208,14 @@ class ClientDb extends Client {
|
|
|
1208
1208
|
break;
|
|
1209
1209
|
case 'object':
|
|
1210
1210
|
if (options !== null) {
|
|
1211
|
-
({ value, sessionKey,
|
|
1211
|
+
({ value, sessionKey, exclusiveOf, renewCache } = options);
|
|
1212
1212
|
if (Array.isArray(exclusiveOf)) {
|
|
1213
1213
|
const ignoreCache = exclusiveOf[2];
|
|
1214
1214
|
if (ignoreCache === 1) {
|
|
1215
1215
|
return;
|
|
1216
1216
|
}
|
|
1217
1217
|
renewCache ||= ignoreCache === 0;
|
|
1218
|
-
queryString += '_' + exclusiveOf.toString();
|
|
1218
|
+
queryString += '_' + exclusiveOf.slice(0, 2).toString();
|
|
1219
1219
|
}
|
|
1220
1220
|
}
|
|
1221
1221
|
break;
|
|
@@ -1228,7 +1228,7 @@ class ClientDb extends Client {
|
|
|
1228
1228
|
}
|
|
1229
1229
|
}
|
|
1230
1230
|
const result = ClientDb.findResult(this.moduleName + '_' + source, uuidKey || credential, queryString, value === 0 ? 0 : ClientDb.getTimeout(value || this.settingsOf(source, 'cache')), sessionKey, renewCache);
|
|
1231
|
-
if (exclusiveOf &&
|
|
1231
|
+
if (exclusiveOf && isInvalidRange(result, exclusiveOf)) {
|
|
1232
1232
|
return;
|
|
1233
1233
|
}
|
|
1234
1234
|
return result;
|
|
@@ -1251,7 +1251,7 @@ class ClientDb extends Client {
|
|
|
1251
1251
|
if (isInvalidRange(result, exclusiveOf)) {
|
|
1252
1252
|
return result;
|
|
1253
1253
|
}
|
|
1254
|
-
queryString += '_' + exclusiveOf.toString();
|
|
1254
|
+
queryString += '_' + exclusiveOf.slice(0, 2).toString();
|
|
1255
1255
|
}
|
|
1256
1256
|
if (uuidKey) {
|
|
1257
1257
|
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.12.
|
|
3
|
+
"version": "0.12.14",
|
|
4
4
|
"description": "Core modules for E-mc.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"license": "BSD-3-Clause",
|
|
20
20
|
"homepage": "https://github.com/anpham6/e-mc#readme",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@e-mc/module": "0.12.
|
|
23
|
-
"@e-mc/types": "0.12.
|
|
22
|
+
"@e-mc/module": "0.12.14",
|
|
23
|
+
"@e-mc/types": "0.12.14",
|
|
24
24
|
"ipaddr.js": "^2.3.0",
|
|
25
25
|
"picomatch": "^4.0.3"
|
|
26
26
|
}
|