@learncard/ceramic-plugin 1.1.20 → 1.1.22
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.
- package/dist/{ceramic-plugin.cjs.development.js → ceramic-plugin.cjs.development.cjs} +7 -2
- package/dist/{ceramic-plugin.cjs.development.js.map → ceramic-plugin.cjs.development.cjs.map} +2 -2
- package/dist/{ceramic-plugin.cjs.production.min.js → ceramic-plugin.cjs.production.min.cjs} +124 -124
- package/dist/{ceramic-plugin.cjs.production.min.js.map → ceramic-plugin.cjs.production.min.cjs.map} +3 -3
- package/dist/ceramic-plugin.esm.js +7 -2
- package/dist/ceramic-plugin.esm.js.map +2 -2
- package/dist/ceramic.d.ts.map +1 -1
- package/dist/{index.js → index.cjs} +2 -2
- package/dist/index.d.cts +6 -0
- package/package.json +19 -6
|
@@ -37062,7 +37062,7 @@ __export(index_exports, {
|
|
|
37062
37062
|
module.exports = __toCommonJS(index_exports);
|
|
37063
37063
|
|
|
37064
37064
|
// src/ceramic.ts
|
|
37065
|
-
var import_lodash6 = __toESM(require_lodash());
|
|
37065
|
+
var import_lodash6 = __toESM(require_lodash(), 1);
|
|
37066
37066
|
|
|
37067
37067
|
// ../../../node_modules/.pnpm/did-resolver@3.2.2/node_modules/did-resolver/lib/resolver.module.js
|
|
37068
37068
|
function _catch(body, recover) {
|
|
@@ -63466,6 +63466,9 @@ var getCeramicPlugin = /* @__PURE__ */ __name(async (learnCard, { ceramicEndpoin
|
|
|
63466
63466
|
await import_types.VCValidator.or(import_types.VPValidator).parseAsync(vc);
|
|
63467
63467
|
return streamIdToCeramicURI(await publishContentToCeramic(vc, {}, {}, encryption));
|
|
63468
63468
|
}, "uploadCredential");
|
|
63469
|
+
const envelopeRejection = /* @__PURE__ */ __name((envelope) => new Error(
|
|
63470
|
+
`Ceramic does not support format-tagged credential envelopes (got format="${envelope.format}"). Use LearnCloud or the LearnCard Network store for non-W3C credentials (SD-JWT-VC, mDoc, etc.).`
|
|
63471
|
+
), "envelopeRejection");
|
|
63469
63472
|
return {
|
|
63470
63473
|
name: "Ceramic",
|
|
63471
63474
|
displayName: "Ceramic",
|
|
@@ -63473,10 +63476,12 @@ var getCeramicPlugin = /* @__PURE__ */ __name(async (learnCard, { ceramicEndpoin
|
|
|
63473
63476
|
store: {
|
|
63474
63477
|
upload: /* @__PURE__ */ __name(async (_learnCard, vc) => {
|
|
63475
63478
|
_learnCard.debug?.("learnCard.store.Ceramic.upload");
|
|
63479
|
+
if ((0, import_types.isStoredCredentialEnvelope)(vc)) throw envelopeRejection(vc);
|
|
63476
63480
|
return uploadCredential(vc);
|
|
63477
63481
|
}, "upload"),
|
|
63478
63482
|
uploadEncrypted: /* @__PURE__ */ __name(async (_learnCard, vc, params) => {
|
|
63479
63483
|
_learnCard.debug?.("learnCard.store.Ceramic.uploadEncrypted");
|
|
63484
|
+
if ((0, import_types.isStoredCredentialEnvelope)(vc)) throw envelopeRejection(vc);
|
|
63480
63485
|
return uploadCredential(vc, {
|
|
63481
63486
|
encrypt: true,
|
|
63482
63487
|
controllersCanDecrypt: true,
|
|
@@ -63559,4 +63564,4 @@ fast-json-patch/module/duplex.mjs:
|
|
|
63559
63564
|
* MIT license
|
|
63560
63565
|
*)
|
|
63561
63566
|
*/
|
|
63562
|
-
//# sourceMappingURL=ceramic-plugin.cjs.development.
|
|
63567
|
+
//# sourceMappingURL=ceramic-plugin.cjs.development.cjs.map
|