@bedrock/vc-verifier 21.2.1 → 21.2.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/lib/challenges.js CHANGED
@@ -16,14 +16,13 @@ bedrock.events.on('bedrock-mongodb.ready', async () => {
16
16
  await database.createIndexes([{
17
17
  collection: COLLECTION_NAME,
18
18
  fields: {'challenge.value': 1},
19
- options: {unique: true, background: false}
19
+ options: {unique: true}
20
20
  }, {
21
21
  // automatically expire challenges
22
22
  collection: COLLECTION_NAME,
23
23
  fields: {'challenge.expires': 1},
24
24
  options: {
25
25
  unique: false,
26
- background: false,
27
26
  expireAfterSeconds: 0
28
27
  }
29
28
  }]);
@@ -164,9 +163,9 @@ async function _use({challenge, explain = false} = {}) {
164
163
  'meta.updated': Date.now()
165
164
  };
166
165
  const options = {
167
- ...database.writeOptions,
168
166
  // return document after the update
169
- returnDocument: 'after'
167
+ returnDocument: 'after',
168
+ includeResultMetadata: true
170
169
  };
171
170
 
172
171
  if(explain) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bedrock/vc-verifier",
3
- "version": "21.2.1",
3
+ "version": "21.2.3",
4
4
  "type": "module",
5
5
  "description": "Bedrock VC Verifier",
6
6
  "main": "./lib/index.js",