Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tryvital/vital-node

Package Overview
Dependencies
Maintainers
3
Versions
240
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tryvital/vital-node - npm Package Compare versions

Comparing version 2.1.12 to 2.1.13

8

client/LabTests.ts

@@ -24,2 +24,10 @@ import { AxiosInstance } from 'axios';

}
public async getRequisitionPdf(orderId: string): Promise<string> {
const resp = await this.client.get(
this.baseURL.concat(`/order/${orderId}/requisition/pdf`),
{ headers: { 'Accept': 'application/pdf' } }
);
return resp.data;
}

@@ -26,0 +34,0 @@ public async create_unregistered_testkit_order(

1

dist/client/LabTests.d.ts

@@ -7,2 +7,3 @@ import { AxiosInstance } from 'axios';

constructor(baseURL: string, axios: AxiosInstance);
getRequisitionPdf(orderId: string): Promise<string>;
create_unregistered_testkit_order(user_id: string, lab_test_id: string, shipping_details: ShippingDetails): Promise<OrderRequestResponse>;

@@ -9,0 +10,0 @@ register_testkit_order(user_id: string, sample_id: string, patient_details: PatientDetails, patient_address: PatientAdress, physician?: Physician, consents?: [Consent]): Promise<OrderRequestResponse>;

@@ -45,2 +45,15 @@ "use strict";

}
OrdersApi.prototype.getRequisitionPdf = function (orderId) {
return __awaiter(this, void 0, void 0, function () {
var resp;
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, this.client.get(this.baseURL.concat("/order/" + orderId + "/requisition/pdf"), { headers: { 'Accept': 'application/pdf' } })];
case 1:
resp = _a.sent();
return [2 /*return*/, resp.data];
}
});
});
};
OrdersApi.prototype.create_unregistered_testkit_order = function (user_id, lab_test_id, shipping_details) {

@@ -47,0 +60,0 @@ return __awaiter(this, void 0, void 0, function () {

2

package.json
{
"name": "@tryvital/vital-node",
"version": "2.1.12",
"version": "2.1.13",
"description": "Node client for Vital",

@@ -5,0 +5,0 @@ "author": "maitham",

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