@e-mc/core 0.10.17 → 0.10.18
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.10.
|
|
12
|
+
* [View Source](https://www.unpkg.com/@e-mc/types@0.10.18/lib/index.d.ts)
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
15
|
import type { DataSource, LogStatus } from "./squared";
|
|
@@ -230,13 +230,13 @@ NOTE: **@e-mc/core** is mostly a collection of abstract base classes which canno
|
|
|
230
230
|
|
|
231
231
|
## References
|
|
232
232
|
|
|
233
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
234
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
235
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
236
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
237
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
238
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
239
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
233
|
+
- https://www.unpkg.com/@e-mc/types@0.10.18/lib/squared.d.ts
|
|
234
|
+
- https://www.unpkg.com/@e-mc/types@0.10.18/lib/core.d.ts
|
|
235
|
+
- https://www.unpkg.com/@e-mc/types@0.10.18/lib/db.d.ts
|
|
236
|
+
- https://www.unpkg.com/@e-mc/types@0.10.18/lib/dom.d.ts
|
|
237
|
+
- https://www.unpkg.com/@e-mc/types@0.10.18/lib/logger.d.ts
|
|
238
|
+
- https://www.unpkg.com/@e-mc/types@0.10.18/lib/node.d.ts
|
|
239
|
+
- https://www.unpkg.com/@e-mc/types@0.10.18/lib/settings.d.ts
|
|
240
240
|
|
|
241
241
|
## LICENSE
|
|
242
242
|
|
package/index.js
CHANGED
|
@@ -1155,14 +1155,14 @@ class ClientDb extends Client {
|
|
|
1155
1155
|
break;
|
|
1156
1156
|
case 'object':
|
|
1157
1157
|
if (options !== null) {
|
|
1158
|
-
({ value, sessionKey,
|
|
1158
|
+
({ value, sessionKey, exclusiveOf, renewCache } = options);
|
|
1159
1159
|
if (Array.isArray(exclusiveOf)) {
|
|
1160
1160
|
const ignoreCache = exclusiveOf[2];
|
|
1161
1161
|
if (ignoreCache === 1) {
|
|
1162
1162
|
return;
|
|
1163
1163
|
}
|
|
1164
1164
|
renewCache ||= ignoreCache === 0;
|
|
1165
|
-
queryString += '_' + exclusiveOf.toString();
|
|
1165
|
+
queryString += '_' + exclusiveOf.slice(0, 2).toString();
|
|
1166
1166
|
}
|
|
1167
1167
|
}
|
|
1168
1168
|
break;
|
|
@@ -1175,7 +1175,7 @@ class ClientDb extends Client {
|
|
|
1175
1175
|
}
|
|
1176
1176
|
}
|
|
1177
1177
|
const result = ClientDb.findResult(this.moduleName + '_' + source, uuidKey || credential, queryString, value === 0 ? 0 : ClientDb.getTimeout(value || this.settingsOf(source, 'cache')), sessionKey, renewCache);
|
|
1178
|
-
if (exclusiveOf &&
|
|
1178
|
+
if (exclusiveOf && isInvalidRange(result, exclusiveOf)) {
|
|
1179
1179
|
return;
|
|
1180
1180
|
}
|
|
1181
1181
|
return result;
|
|
@@ -1198,7 +1198,7 @@ class ClientDb extends Client {
|
|
|
1198
1198
|
if (isInvalidRange(result, exclusiveOf)) {
|
|
1199
1199
|
return result;
|
|
1200
1200
|
}
|
|
1201
|
-
queryString += '_' + exclusiveOf.toString();
|
|
1201
|
+
queryString += '_' + exclusiveOf.slice(0, 2).toString();
|
|
1202
1202
|
}
|
|
1203
1203
|
if (uuidKey) {
|
|
1204
1204
|
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.10.
|
|
3
|
+
"version": "0.10.18",
|
|
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.10.
|
|
24
|
-
"@e-mc/types": "0.10.
|
|
23
|
+
"@e-mc/module": "0.10.18",
|
|
24
|
+
"@e-mc/types": "0.10.18",
|
|
25
25
|
"picomatch": "^4.0.3"
|
|
26
26
|
}
|
|
27
27
|
}
|