Socket
Socket
Sign inDemoInstall

@unumid/server-sdk

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@unumid/server-sdk - npm Package Compare versions

Comparing version 3.1.1 to 3.1.2

2

build/verifier/sendRequest.d.ts

@@ -8,3 +8,3 @@ import { PresentationRequestPostDto as PresentationRequestPostDtoDeprecatedV2, UnsignedPresentationRequest as UnsignedPresentationRequestDeprecatedV2, SignedPresentationRequest as SignedPresentationRequestDeprecatedV2 } from '@unumid/types-v2';

*/
export declare const constructUnsignedPresentationRequest: (reqBody: SendRequestReqBody) => UnsignedPresentationRequestPb;
export declare const constructUnsignedPresentationRequest: (reqBody: SendRequestReqBody, version: string) => UnsignedPresentationRequestPb;
/**

@@ -11,0 +11,0 @@ * Signs an unsigned PresentationRequest and attaches the resulting Proof

@@ -67,3 +67,3 @@ "use strict";

*/
exports.constructUnsignedPresentationRequest = function (reqBody) {
exports.constructUnsignedPresentationRequest = function (reqBody, version) {
var verifier = reqBody.verifier, holderAppUuid = reqBody.holderAppUuid, credentialRequests = reqBody.credentialRequests, metadata = reqBody.metadata, expiresAt = reqBody.expiresAt, createdAt = reqBody.createdAt, updatedAt = reqBody.updatedAt, id = reqBody.id;

@@ -90,3 +90,3 @@ var uuid = helpers_1.getUUID();

verifier: verifier,
version: '3.0.0'
version: version
};

@@ -316,3 +316,3 @@ };

body = validateSendRequestBody(body);
unsignedPresentationRequest = exports.constructUnsignedPresentationRequest(body);
unsignedPresentationRequest = exports.constructUnsignedPresentationRequest(body, '3.0.0');
signedPR = exports.constructSignedPresentationRequest(unsignedPresentationRequest, eccPrivateKey);

@@ -358,3 +358,3 @@ restData = {

validateSendRequestBodyDeprecated(body);
unsignedPresentationRequest = exports.constructUnsignedPresentationRequest(body);
unsignedPresentationRequest = exports.constructUnsignedPresentationRequest(body, '2.0.0');
signedPR = exports.constructSignedPresentationRequestDeprecatedV2(unsignedPresentationRequest, eccPrivateKey);

@@ -361,0 +361,0 @@ restData = {

{
"name": "@unumid/server-sdk",
"version": "3.1.1",
"version": "3.1.2",
"main": "build/index.js",

@@ -5,0 +5,0 @@ "repository": "git@github.com:UnumID/Server-SDK-TypeScript.git",

@@ -18,3 +18,3 @@ import { configData } from '../config';

*/
export const constructUnsignedPresentationRequest = (reqBody: SendRequestReqBody): UnsignedPresentationRequestPb => {
export const constructUnsignedPresentationRequest = (reqBody: SendRequestReqBody, version: string): UnsignedPresentationRequestPb => {
const {

@@ -53,3 +53,3 @@ verifier,

verifier,
version: '3.0.0'
version
};

@@ -361,3 +361,3 @@ };

const unsignedPresentationRequest = constructUnsignedPresentationRequest(body);
const unsignedPresentationRequest = constructUnsignedPresentationRequest(body, '3.0.0');

@@ -414,3 +414,3 @@ // Create the signed presentation object from the unsignedPresentation object

const unsignedPresentationRequest: UnsignedPresentationRequestDeprecatedV2 = constructUnsignedPresentationRequest(body);
const unsignedPresentationRequest: UnsignedPresentationRequestDeprecatedV2 = constructUnsignedPresentationRequest(body, '2.0.0');

@@ -417,0 +417,0 @@ // Create the signed presentation object from the unsignedPresentation object

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc