unconventional 0.0.10 → 0.0.12
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.
|
@@ -112,6 +112,7 @@ class BaseService {
|
|
|
112
112
|
throw api_error_1.APIError.errNotFound(`No ${this.model.name} found with id ${identifier}`);
|
|
113
113
|
}
|
|
114
114
|
else if (config?.cache) {
|
|
115
|
+
await base_cache_1.BaseCache.clearPage(config.cache, this.model);
|
|
115
116
|
await base_cache_1.BaseCache.clearModel(config.cache, response);
|
|
116
117
|
await base_cache_1.BaseCache.setModel(config.cache, response, undefined, config.cacheTTL);
|
|
117
118
|
}
|
|
@@ -129,6 +130,7 @@ class BaseService {
|
|
|
129
130
|
}
|
|
130
131
|
else if (config?.cache) {
|
|
131
132
|
const cache = config.cache;
|
|
133
|
+
await base_cache_1.BaseCache.clearPage(cache, this.model);
|
|
132
134
|
await Promise.all(response.map(item => base_cache_1.BaseCache.clearModel(cache, item)));
|
|
133
135
|
await Promise.all(response.map(item => base_cache_1.BaseCache.setModel(cache, item, undefined, config.cacheTTL)));
|
|
134
136
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unconventional",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"description": "A complete server built on Cloudflare Pages Functions",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"hono": "^3.11.5",
|
|
45
|
-
"unconventional-pg-queries": "^0.0.
|
|
45
|
+
"unconventional-pg-queries": "^0.0.6"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@cloudflare/workers-types": "^4.20231121.0",
|
|
@@ -50,6 +50,6 @@
|
|
|
50
50
|
"@typescript-eslint/parser": "^5.62.0",
|
|
51
51
|
"hono": "^3.11.5",
|
|
52
52
|
"typescript": "^5.3.3",
|
|
53
|
-
"unconventional-pg-queries": "^0.0.
|
|
53
|
+
"unconventional-pg-queries": "^0.0.6"
|
|
54
54
|
}
|
|
55
55
|
}
|