@verdocs/web-sdk 2.2.44 → 2.2.45

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.
@@ -262,11 +262,17 @@ const VerdocsSign = class {
262
262
  this.updateRecipientFieldValue(field.name, updateResult);
263
263
  });
264
264
  case 'signature':
265
+ console.log('Creating signature blob', e.detail);
265
266
  const signatureBlob = await (await fetch(e.detail)).blob();
267
+ console.log('Created signature blob', signatureBlob);
266
268
  return createSignature(this.endpoint, 'signature', signatureBlob) //
267
269
  .then(async (newSignature) => {
270
+ console.log('Signature update result', newSignature);
268
271
  const updateResult = await Envelopes.updateEnvelopeFieldSignature(this.endpoint, this.envelopeId, field.name, newSignature.id);
269
272
  this.updateRecipientFieldValue(field.name, updateResult);
273
+ })
274
+ .catch(e => {
275
+ console.warn('Error updating signature', e);
270
276
  });
271
277
  case 'date':
272
278
  const iso = e.target.getAttribute('iso');
@@ -241,11 +241,17 @@ export class VerdocsSign {
241
241
  this.updateRecipientFieldValue(field.name, updateResult);
242
242
  });
243
243
  case 'signature':
244
+ console.log('Creating signature blob', e.detail);
244
245
  const signatureBlob = await (await fetch(e.detail)).blob();
246
+ console.log('Created signature blob', signatureBlob);
245
247
  return createSignature(this.endpoint, 'signature', signatureBlob) //
246
248
  .then(async (newSignature) => {
249
+ console.log('Signature update result', newSignature);
247
250
  const updateResult = await updateEnvelopeFieldSignature(this.endpoint, this.envelopeId, field.name, newSignature.id);
248
251
  this.updateRecipientFieldValue(field.name, updateResult);
252
+ })
253
+ .catch(e => {
254
+ console.warn('Error updating signature', e);
249
255
  });
250
256
  case 'date':
251
257
  const iso = e.target.getAttribute('iso');
@@ -264,11 +264,17 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
264
264
  this.updateRecipientFieldValue(field.name, updateResult);
265
265
  });
266
266
  case 'signature':
267
+ console.log('Creating signature blob', e.detail);
267
268
  const signatureBlob = await (await fetch(e.detail)).blob();
269
+ console.log('Created signature blob', signatureBlob);
268
270
  return createSignature(this.endpoint, 'signature', signatureBlob) //
269
271
  .then(async (newSignature) => {
272
+ console.log('Signature update result', newSignature);
270
273
  const updateResult = await updateEnvelopeFieldSignature(this.endpoint, this.envelopeId, field.name, newSignature.id);
271
274
  this.updateRecipientFieldValue(field.name, updateResult);
275
+ })
276
+ .catch(e => {
277
+ console.warn('Error updating signature', e);
272
278
  });
273
279
  case 'date':
274
280
  const iso = e.target.getAttribute('iso');