diff --git a/package-lock.json b/package-lock.json index 0d97c40d..79868eba 100644 --- a/package-lock.json +++ b/package-lock.json @@ -175,9 +175,9 @@ } }, "node_modules/@atala/prism-wallet-sdk": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@atala/prism-wallet-sdk/-/prism-wallet-sdk-4.0.0.tgz", - "integrity": "sha512-T7BASF9gV3GEUb/Cue4isckrEfKjBs5j+AkGOSGdi6UPwEPyXiUrXzSVRAO9wR+22aaDxhF3gnRohcTfDfZs/g==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@atala/prism-wallet-sdk/-/prism-wallet-sdk-4.0.2.tgz", + "integrity": "sha512-dAQTvFeg8oZsO022ICOWZ/8mfowwXwz26J70VQrFT5drqhIvTER4d7T2CLEgBytchHIk6ueowCGcBlL+JIe9tA==", "dependencies": { "@atala/apollo": "^1.2.10", "@scure/bip32": "^1.3.0", @@ -23082,7 +23082,7 @@ "version": "1.15.2", "license": "Apache-2.0", "dependencies": { - "@atala/prism-wallet-sdk": "^4.0.0", + "@atala/prism-wallet-sdk": "^4.0.2", "@pluto-encrypted/encryption": "1.11.0", "@pluto-encrypted/schemas": "^1.0.0", "@pluto-encrypted/shared": "1.11.3", @@ -23106,7 +23106,7 @@ "@pluto-encrypted/leveldb": "1.12.1" }, "peerDependencies": { - "@atala/prism-wallet-sdk": "^4.0.0" + "@atala/prism-wallet-sdk": "^4.0.2" } }, "packages/encryption": { @@ -23241,7 +23241,7 @@ "version": "1.3.1", "license": "Apache-2.0", "dependencies": { - "@atala/prism-wallet-sdk": "^4.0.0-rc.1", + "@atala/prism-wallet-sdk": "^4.0.2", "@pluto-encrypted/encryption": "1.11.0", "@pluto-encrypted/shared": "1.11.3", "rxdb": "^14.17.0", @@ -23254,7 +23254,7 @@ "@vitest/coverage-v8": "^1.0.4" }, "peerDependencies": { - "@atala/prism-wallet-sdk": "^4.0.0-rc.1" + "@atala/prism-wallet-sdk": "^4.0.2" } }, "packages/shared": { diff --git a/packages/database/package.json b/packages/database/package.json index 1ae439d8..dfea6cae 100644 --- a/packages/database/package.json +++ b/packages/database/package.json @@ -33,7 +33,7 @@ "author": "elribonazo@gmail.com", "license": "Apache-2.0", "peerDependencies": { - "@atala/prism-wallet-sdk": "^4.0.0" + "@atala/prism-wallet-sdk": "^4.0.2" }, "optionalDependencies": { "@pluto-encrypted/indexdb": "1.12.1", @@ -51,7 +51,7 @@ "level": "^6.0.1" }, "dependencies": { - "@atala/prism-wallet-sdk": "^4.0.0", + "@atala/prism-wallet-sdk": "^4.0.2", "@pluto-encrypted/encryption": "1.11.0", "@pluto-encrypted/shared": "1.11.3", "@pluto-encrypted/schemas": "^1.0.0", @@ -63,4 +63,4 @@ "build/*" ], "gitHead": "6aa4ce8bbb9938fc4c4e790efffa5b902631362c" -} +} \ No newline at end of file diff --git a/packages/schemas/package.json b/packages/schemas/package.json index 699b0fe4..50839165 100644 --- a/packages/schemas/package.json +++ b/packages/schemas/package.json @@ -27,7 +27,7 @@ "author": "elribonazo@gmail.com", "license": "Apache-2.0", "peerDependencies": { - "@atala/prism-wallet-sdk": "^4.0.0-rc.1" + "@atala/prism-wallet-sdk": "^4.0.2" }, "devDependencies": { "@pluto-encrypted/encryption": "1.11.0", @@ -35,7 +35,7 @@ "@vitest/coverage-v8": "^1.0.4" }, "dependencies": { - "@atala/prism-wallet-sdk": "^4.0.0-rc.1", + "@atala/prism-wallet-sdk": "^4.0.2", "@pluto-encrypted/encryption": "1.11.0", "@pluto-encrypted/shared": "1.11.3", "rxdb": "^14.17.0", @@ -46,4 +46,4 @@ "build/*" ], "gitHead": "6aa4ce8bbb9938fc4c4e790efffa5b902631362c" -} +} \ No newline at end of file diff --git a/packages/schemas/src/schemas/credential/orm.ts b/packages/schemas/src/schemas/credential/orm.ts index 925df347..386cd826 100644 --- a/packages/schemas/src/schemas/credential/orm.ts +++ b/packages/schemas/src/schemas/credential/orm.ts @@ -7,7 +7,8 @@ export const CredentialMethods: CredentialMethodTypes = { if (this.recoveryId === SDK.JWTVerifiableCredentialRecoveryId) { const jwtString = Buffer.from(this.credentialData).toString() const jwtObj = JSON.parse(jwtString) - return SDK.JWTCredential.fromJWT(jwtObj, jwtString) + const fromJWT = SDK.JWTCredential.fromJWT(jwtObj, jwtObj.jti) + return fromJWT } else if (this.recoveryId === SDK.AnonCredsRecoveryId) { const credentialData = Buffer.from(this.credentialData).toString() const credentialJson = JSON.parse(credentialData) diff --git a/packages/test-suite/src/index.ts b/packages/test-suite/src/index.ts index e439bc65..433c992e 100644 --- a/packages/test-suite/src/index.ts +++ b/packages/test-suite/src/index.ts @@ -289,14 +289,14 @@ export function runTestSuite(suite: TestSuite, testStorage: RxTestStorage): void } }) } - debugger; + const deleteResponse = await storageInstance.bulkWrite( [toDelete], testContext ) - debugger; + expect(deleteResponse.error).toStrictEqual({}) - debugger; + const foundDoc = await storageInstance.findDocumentsById([pkey], false) expect(foundDoc).toStrictEqual({}) @@ -913,7 +913,7 @@ export function runTestSuite(suite: TestSuite, testStorage: RxTestStorage): void describe('.query()', () => { it('should find all documents', async ({ expect }) => { - debugger; + storageInstance = await storage.createStorageInstance<{ key: string, value: string }>({ databaseInstanceToken: randomCouchString(10), databaseName: randomCouchString(12), @@ -923,7 +923,7 @@ export function runTestSuite(suite: TestSuite, testStorage: RxTestStorage): void multiInstance: false, devMode: true }) - debugger; + const writeData = { key: 'foobar', value: 'barfoo', @@ -934,14 +934,14 @@ export function runTestSuite(suite: TestSuite, testStorage: RxTestStorage): void lwt: now() } } - debugger; + await storageInstance.bulkWrite( [{ document: writeData }], testContext ) - debugger; + const writeData2 = { key: 'foobar2', value: 'barfoo2', @@ -958,7 +958,7 @@ export function runTestSuite(suite: TestSuite, testStorage: RxTestStorage): void }], testContext ) - debugger; + const preparedQuery = prepareQuery( storageInstance.schema, { @@ -971,7 +971,7 @@ export function runTestSuite(suite: TestSuite, testStorage: RxTestStorage): void ) const allDocs = await storageInstance.query(preparedQuery) const first = allDocs.documents[0] - debugger; + expect(first).not.toBe(undefined) expect(first.value).toBe('barfoo')