s3db.js 10.0.14 → 10.0.15

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/dist/s3db.cjs.js CHANGED
@@ -3926,6 +3926,14 @@ class CachePlugin extends Plugin {
3926
3926
  ];
3927
3927
  for (const method of cacheMethods) {
3928
3928
  resource.useMiddleware(method, async (ctx, next) => {
3929
+ let skipCache = false;
3930
+ const lastArg = ctx.args[ctx.args.length - 1];
3931
+ if (lastArg && typeof lastArg === "object" && lastArg.skipCache === true) {
3932
+ skipCache = true;
3933
+ }
3934
+ if (skipCache) {
3935
+ return await next();
3936
+ }
3929
3937
  let key;
3930
3938
  if (method === "getMany") {
3931
3939
  key = await resource.cacheKeyFor({ action: method, params: { ids: ctx.args[0] } });
@@ -12152,7 +12160,7 @@ class Database extends EventEmitter {
12152
12160
  this.id = idGenerator(7);
12153
12161
  this.version = "1";
12154
12162
  this.s3dbVersion = (() => {
12155
- const [ok, err, version] = tryFn(() => true ? "10.0.14" : "latest");
12163
+ const [ok, err, version] = tryFn(() => true ? "10.0.15" : "latest");
12156
12164
  return ok ? version : "latest";
12157
12165
  })();
12158
12166
  this.resources = {};