Closed phanshiyu closed 5 months ago
utils
verify
obfuscate
validateSchema
Users whose project support package.json exports should be able to import v4 in a granular fashion:
import { v4 } from "@govtechsg/open-attestation"; import v4 from "@govtechsg/open-attestation/4.0"; // granular import { wrapDocument, wrapDocumentErrors, wrapDocuments } from "@govtechsg/open-attestation/4.0/wrap"; import { signDocument, signDocumentErrors } from "@govtechsg/open-attestation/4.0/sign"; import { verify } from "@govtechsg/open-attestation/4.0/verify"; import { obfuscate, obfuscateErrors } from "@govtechsg/open-attestation/4.0/obfuscate"; import { diagnose, isDocument, isSignedWrappedDocument, isWrappedDocument } from "@govtechsg/open-attestation/4.0/utils";
see src/4.0/exports to see the exported interface
src/4.0/exports
:tada: This PR is included in version 6.10.0-alpha.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
What
utils
utils
and throwing it into v2 as a file of its ownverify
andobfuscate
andvalidateSchema
.Users whose project support package.json exports should be able to import v4 in a granular fashion:
see
src/4.0/exports
to see the exported interface