@velocitycareerlabs/data-loader 1.21.0-dev-build.17d78fcdd → 1.21.0-dev-build.16d10145b

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velocitycareerlabs/data-loader",
3
- "version": "1.21.0-dev-build.17d78fcdd",
3
+ "version": "1.21.0-dev-build.16d10145b",
4
4
  "description": "A tool for uploading data to the different target systems.",
5
5
  "repository": "https://github.com/velocitycareerlabs/packages",
6
6
  "main": "src/index.js",
@@ -41,5 +41,5 @@
41
41
  "nanoid": "3.3.1",
42
42
  "strip-bom-stream": "^4.0.0"
43
43
  },
44
- "gitHead": "97bbaec32fb70f9365526bcd78b7990cc000d15b"
44
+ "gitHead": "5b95fdf7cbbd694e91187fa3aaf38b0f81991a80"
45
45
  }
@@ -67,7 +67,7 @@ const runBatchIssuing = async (opts) => {
67
67
  ? disclosureRequest
68
68
  : await createDisclosureRequest(disclosureRequest, context);
69
69
 
70
- await writeDisclosureToJson(disclosureRequest, options);
70
+ await writeDisclosureToJson(issuingDisclosure, options);
71
71
 
72
72
  const outputs = options.legacy
73
73
  ? await runLegacyBatchIssuing(
@@ -228,14 +228,17 @@ const writeDisclosureToJson = async (disclosureRequest, options) => {
228
228
  const createOfferExchangeAndQrCode = async (
229
229
  { newExchange, newOffer, disclosureRequest },
230
230
  options,
231
- { fetchers }
231
+ context
232
232
  ) => {
233
- const { exchange, offer, vendorUserId } = await createOfferExchange({
234
- newExchange,
235
- newOffer,
236
- disclosureRequest,
237
- fetchers,
238
- });
233
+ const { fetchers } = context;
234
+ const { exchange, offer, vendorUserId } = await createOfferExchange(
235
+ {
236
+ newExchange,
237
+ newOffer,
238
+ disclosureRequest,
239
+ },
240
+ context
241
+ );
239
242
 
240
243
  const deeplink = await fetchers.loadExchangeDeeplink(exchange);
241
244
  const qrcode = await fetchers.loadExchangeQrcode(exchange);
@@ -259,8 +262,9 @@ const createOfferExchangeAndQrCode = async (
259
262
 
260
263
  const createOfferExchange = async (
261
264
  { newExchange, newOffer, disclosureRequest },
262
- { fetchers }
265
+ context
263
266
  ) => {
267
+ const { fetchers } = context;
264
268
  const { vendorUserId } = newOffer.credentialSubject;
265
269
  printInfo(`Setting up vendorUserId:${vendorUserId}`);
266
270
  const exchange = await fetchers.createOfferExchange({