@learncard/core 8.3.1 → 8.4.0
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/core.cjs.development.js +6 -2
- package/dist/core.cjs.development.js.map +2 -2
- package/dist/core.cjs.production.min.js +35 -35
- package/dist/core.cjs.production.min.js.map +3 -3
- package/dist/core.d.ts +6 -0
- package/dist/core.esm.js +6 -2
- package/dist/core.esm.js.map +2 -2
- package/package.json +1 -1
@@ -67648,7 +67648,9 @@ var DIDDataStore = class {
|
|
67648
67648
|
__name(DIDDataStore, "DIDDataStore");
|
67649
67649
|
|
67650
67650
|
// src/wallet/plugins/idx/types.ts
|
67651
|
-
var CredentialsListValidator = mod.object({
|
67651
|
+
var CredentialsListValidator = mod.object({
|
67652
|
+
credentials: CredentialRecordValidator.array()
|
67653
|
+
});
|
67652
67654
|
var BackwardsCompatIDXCredentialValidator = mod.object({ id: mod.string(), title: mod.string(), storageType: mod.literal("ceramic").optional() }).catchall(mod.any());
|
67653
67655
|
var BackwardsCompatCredentialsListValidator = mod.object({
|
67654
67656
|
credentials: CredentialRecordValidator.or(BackwardsCompatIDXCredentialValidator).array()
|
@@ -67826,7 +67828,9 @@ var getIDXPlugin = /* @__PURE__ */ __name(async (learnCard, { modelData, credent
|
|
67826
67828
|
},
|
67827
67829
|
removeAllVerifiableCredentialsInIdx: async () => {
|
67828
67830
|
return removeAllCredentialsFromIdx();
|
67829
|
-
}
|
67831
|
+
},
|
67832
|
+
getIDXIndex: async () => dataStore.get(credentialAlias),
|
67833
|
+
setIDXIndex: async (_learnCard, index) => dataStore.set(credentialAlias, index)
|
67830
67834
|
}
|
67831
67835
|
};
|
67832
67836
|
}, "getIDXPlugin");
|