document-dataply 0.0.9-alpha.2 → 0.0.9-alpha.3

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/cjs/index.js CHANGED
@@ -10245,8 +10245,12 @@ var DocumentDataplyAPI = class extends import_dataply3.DataplyAPI {
10245
10245
  throw new Error("Document metadata verification failed");
10246
10246
  }
10247
10247
  const metadata = await this.getDocumentInnerMetadata(tx);
10248
- const targetIndices = /* @__PURE__ */ new Map();
10249
- targetIndices.set("_id", { type: "btree", fields: ["_id"] });
10248
+ const targetIndices = /* @__PURE__ */ new Map([
10249
+ ["_id", { type: "btree", fields: ["_id"] }]
10250
+ ]);
10251
+ for (const [name, info] of Object.entries(metadata.indices)) {
10252
+ targetIndices.set(name, info[1]);
10253
+ }
10250
10254
  for (const [name, option] of this.pendingCreateIndices) {
10251
10255
  const config = this.toIndexMetaConfig(option);
10252
10256
  targetIndices.set(name, config);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "document-dataply",
3
- "version": "0.0.9-alpha.2",
3
+ "version": "0.0.9-alpha.3",
4
4
  "description": "Simple and powerful JSON document database supporting complex queries and flexible indexing policies.",
5
5
  "license": "MIT",
6
6
  "author": "izure <admin@izure.org>",