UNPKG

contract-is-key

Version:

A framework built using o1js for managing and sharing confidential information. WKF will manage creating verifiable credentials, encrypting VCs by issuers using the owner's public key. Storing the VC for the owner. Facilitates decrypting sharing only data

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, }; }, }); };