UNPKG

o1js-base64

Version:

This repository offers a straightforward API to encode & decode base64-encoded input bytes. It's designed to be an easy-to-use and reliable tool for encoding & decoding base64 data in various projects using [o1js](https://docs.minaprotocol.com/zkapps/o1js

22 lines (21 loc) 547 B
module.exports = (request, options) => { return options.defaultResolver(request, { ...options, packageFilter: (pkg) => { // When importing o1js, we specify the Node ESM import as Jest by default imports the web version if (pkg.name === 'o1js') { return { ...pkg, main: pkg.exports.node.import, }; } if (pkg.name === 'node-fetch') { return { ...pkg, main: pkg.main }; } return { ...pkg, main: pkg.module || pkg.main, }; }, }); };