@fireproof/core 0.20.0-dev-preview-58 → 0.20.0-dev-preview-60

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/index.js CHANGED
@@ -1851,7 +1851,7 @@ var Index = class {
1851
1851
  this.mapFnString = "";
1852
1852
  this.byKey = new IndexTree();
1853
1853
  this.byId = new IndexTree();
1854
- this.includeDocsDefault = false;
1854
+ this.includeDocsDefault = true;
1855
1855
  this.logger = ensureLogger(sthis, "Index");
1856
1856
  this.blockstore = crdt.indexBlockstore;
1857
1857
  this.crdt = crdt;
@@ -5832,7 +5832,7 @@ var HttpConnection = class extends MsgRawConnectionBase {
5832
5832
  this,
5833
5833
  req,
5834
5834
  this.logger.Error().Any(url).Str("status", res.status.toString()).Str("statusText", res.statusText).Msg("HTTP Error").AsError(),
5835
- await res.text()
5835
+ await res.text().catch(() => "no body")
5836
5836
  )
5837
5837
  );
5838
5838
  }
@@ -6274,14 +6274,13 @@ function buildResDelData(msgCtx, req, ctx) {
6274
6274
  }
6275
6275
 
6276
6276
  // src/protocols/cloud/msg-types-meta.ts
6277
- import { VERSION as VERSION2 } from "@adviser/cement";
6278
6277
  function buildReqPutMeta(sthis, auth, signedUrlParams, meta, gwCtx) {
6279
6278
  return {
6280
6279
  auth,
6281
6280
  tid: sthis.nextId().str,
6282
6281
  type: "reqPutMeta",
6283
6282
  ...gwCtx,
6284
- version: VERSION2,
6283
+ version: VERSION,
6285
6284
  methodParams: {
6286
6285
  method: "PUT",
6287
6286
  store: "meta"
@@ -6304,7 +6303,7 @@ function buildResPutMeta(_msgCtx, req, meta, signedUrl) {
6304
6303
  tenant: req.tenant,
6305
6304
  type: "resPutMeta",
6306
6305
  signedUrl,
6307
- version: VERSION2
6306
+ version: VERSION
6308
6307
  };
6309
6308
  }
6310
6309
  function MsgIsResPutMeta(qs) {
@@ -6319,7 +6318,7 @@ function buildBindGetMeta(sthis, auth, params, gwCtx) {
6319
6318
  tid: sthis.nextId().str,
6320
6319
  ...gwCtx,
6321
6320
  type: "bindGetMeta",
6322
- version: VERSION2,
6321
+ version: VERSION,
6323
6322
  params
6324
6323
  };
6325
6324
  }
@@ -6334,7 +6333,7 @@ function buildEventGetMeta(_msgCtx, req, meta, gwCtx, signedUrl) {
6334
6333
  type: "eventGetMeta",
6335
6334
  params: req.params,
6336
6335
  methodParams: { method: "GET", store: "meta" },
6337
- version: VERSION2
6336
+ version: VERSION
6338
6337
  };
6339
6338
  }
6340
6339
  function MsgIsEventGetMeta(qs) {
@@ -6349,7 +6348,7 @@ function buildReqDelMeta(sthis, auth, params, gwCtx, meta) {
6349
6348
  params,
6350
6349
  meta,
6351
6350
  type: "reqDelMeta",
6352
- version: VERSION2
6351
+ version: VERSION
6353
6352
  // params: signedUrlParams,
6354
6353
  };
6355
6354
  }
@@ -6367,7 +6366,7 @@ function buildResDelMeta(req, params, signedUrl) {
6367
6366
  tenant: req.tenant,
6368
6367
  type: "resDelMeta",
6369
6368
  // key: req.key,
6370
- version: VERSION2
6369
+ version: VERSION
6371
6370
  };
6372
6371
  }
6373
6372
  function MsgIsResDelMeta(qs) {
@@ -6577,7 +6576,7 @@ var AddKeyToDbMetaGateway = class {
6577
6576
  };
6578
6577
 
6579
6578
  // src/runtime/gateways/cloud/gateway.ts
6580
- var VERSION3 = "v0.1-fp-cloud";
6579
+ var VERSION2 = "v0.1-fp-cloud";
6581
6580
  var BaseGateway = class {
6582
6581
  constructor(sthis, module) {
6583
6582
  this.sthis = sthis;
@@ -6621,7 +6620,7 @@ var BaseGateway = class {
6621
6620
  ...params,
6622
6621
  key: params.key
6623
6622
  },
6624
- version: VERSION3
6623
+ version: VERSION2
6625
6624
  };
6626
6625
  }
6627
6626
  async getReqSignedUrl(type, method, store, waitForFn, uri, conn) {
@@ -6900,7 +6899,7 @@ var FireproofCloudGateway = class {
6900
6899
  if (rName.isErr()) {
6901
6900
  return this.logger.Error().Err(rName).Msg("name not found").ResultError();
6902
6901
  }
6903
- const ret = uri.build().defParam("version", VERSION3);
6902
+ const ret = uri.build().defParam("version", VERSION2);
6904
6903
  ret.defParam("protocol", "wss");
6905
6904
  const retURI = ret.URI();
6906
6905
  const matchURI = connectionURI(retURI);
@@ -7219,7 +7218,7 @@ function buildResDelWAL(msgCtx, req, ctx) {
7219
7218
 
7220
7219
  // src/version.ts
7221
7220
  var PACKAGE_VERSION = Object.keys({
7222
- "0.20.0-dev-preview-58": "xxxx"
7221
+ "0.20.0-dev-preview-60": "xxxx"
7223
7222
  })[0];
7224
7223
  export {
7225
7224
  CRDTImpl,