Socket
Socket
Sign inDemoInstall

@aries-framework/askar

Package Overview
Dependencies
11
Maintainers
3
Versions
198
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.0-alpha.65 to 0.4.0-alpha.66

15

build/storage/AskarStorageService.js

@@ -101,11 +101,4 @@ "use strict";

catch (error) {
if ((0, askarError_1.isAskarError)(error) &&
(error.code === askarError_1.AskarErrorCode.NotFound ||
// FIXME: this is current output from askar wrapper but does not describe specifically a not found scenario
error.message === 'Received null pointer. The native library could not find the value.')) {
throw new core_1.RecordNotFoundError(`record with id ${id} not found.`, {
recordType: recordClass.type,
cause: error,
});
}
if (error instanceof core_1.RecordNotFoundError)
throw error;
throw new core_1.WalletError(`Error getting record`, { cause: error });

@@ -144,6 +137,2 @@ }

catch (error) {
if ((0, askarError_1.isAskarError)(error) && // FIXME: this is current output from askar wrapper but does not describe specifically a 0 length scenario
error.message === 'Received null pointer. The native library could not find the value.') {
return instances;
}
throw new core_1.WalletError(`Error executing query`, { cause: error });

@@ -150,0 +139,0 @@ }

@@ -585,11 +585,2 @@ "use strict";

catch (error) {
if ((0, utils_1.isAskarError)(error) &&
(error.code === utils_1.AskarErrorCode.NotFound ||
// FIXME: this is current output from askar wrapper but does not describe specifically a not found scenario
error.message === 'Received null pointer. The native library could not find the value.')) {
throw new core_1.RecordNotFoundError(`KeyPairRecord not found for public key: ${publicKeyBase58}.`, {
recordType: 'KeyPairRecord',
cause: error,
});
}
throw new core_1.WalletError('Error retrieving KeyPair record', { cause: error });

@@ -596,0 +587,0 @@ }

10

package.json

@@ -5,3 +5,3 @@ {

"types": "build/index",
"version": "0.4.0-alpha.65+39c4ed0e",
"version": "0.4.0-alpha.66+c72ba149",
"files": [

@@ -28,4 +28,4 @@ "build"

"dependencies": {
"@aries-framework/core": "0.4.0-alpha.65+39c4ed0e",
"@hyperledger/aries-askar-shared": "^0.1.0-dev.3",
"@aries-framework/core": "0.4.0-alpha.66+c72ba149",
"@hyperledger/aries-askar-shared": "^0.1.0-dev.4",
"bn.js": "^5.2.1",

@@ -38,3 +38,3 @@ "class-transformer": "^0.5.1",

"devDependencies": {
"@hyperledger/aries-askar-nodejs": "^0.1.0-dev.3",
"@hyperledger/aries-askar-nodejs": "^0.1.0-dev.4",
"@types/bn.js": "^5.1.0",

@@ -45,3 +45,3 @@ "reflect-metadata": "^0.1.13",

},
"gitHead": "39c4ed0e88a59a7a8bbe763edea7445e9fb20bc4"
"gitHead": "c72ba149bad3a4596f5818b28516f6286b9088bf"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc