auth0-lab / mdl

Parse and validate MDOC CBOR encoded binaries according to ISO 18013-5.
Apache License 2.0
83 stars 5 forks source link

Missing import of Buffer in DeviceResponse.ts #5

Closed kkmanos closed 3 months ago

kkmanos commented 3 months ago

As we were testing the library on a browser application, we realized that the browser couldn't generate a device response because "Buffer" is not defined in the browser context, but only in the NodeJS API.

This error occurs because "Buffer" is not imported from the "buffer" package in the DeviceResponse.ts file.

The following line should solve the issue:

import { Buffer } from 'buffer';
github-actions[bot] commented 3 months ago

:tada: This issue has been resolved in version 1.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: