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.7 to 2.1.8

client/AtHomePhlebotomy.ts

3

client/index.ts

@@ -8,2 +8,3 @@ export { ActivityApi } from './Activity';

export { WorkoutsApi } from './Workouts';
export { AtHomePhlebotomyApi } from './AtHomePhlebotomy';
export { LabTestsApi } from './LabTests';

@@ -13,2 +14,2 @@ export { ProfileApi } from './Profile';

export { MealsApi } from './Meals';
export { TestkitsApi } from "./Testkits";
export { TestkitsApi } from './Testkits';

@@ -8,2 +8,3 @@ export { ActivityApi } from './Activity';

export { WorkoutsApi } from './Workouts';
export { AtHomePhlebotomyApi } from './AtHomePhlebotomy';
export { LabTestsApi } from './LabTests';

@@ -13,2 +14,2 @@ export { ProfileApi } from './Profile';

export { MealsApi } from './Meals';
export { TestkitsApi } from "./Testkits";
export { TestkitsApi } from './Testkits';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TestkitsApi = exports.MealsApi = exports.DevicesAPI = exports.ProfileApi = exports.LabTestsApi = exports.WorkoutsApi = exports.WebhooksApi = exports.UserApi = exports.SleepApi = exports.LinkApi = exports.BodyApi = exports.ActivityApi = void 0;
exports.TestkitsApi = exports.MealsApi = exports.DevicesAPI = exports.ProfileApi = exports.LabTestsApi = exports.AtHomePhlebotomyApi = exports.WorkoutsApi = exports.WebhooksApi = exports.UserApi = exports.SleepApi = exports.LinkApi = exports.BodyApi = exports.ActivityApi = void 0;
var Activity_1 = require("./Activity");

@@ -18,2 +18,4 @@ Object.defineProperty(exports, "ActivityApi", { enumerable: true, get: function () { return Activity_1.ActivityApi; } });

Object.defineProperty(exports, "WorkoutsApi", { enumerable: true, get: function () { return Workouts_1.WorkoutsApi; } });
var AtHomePhlebotomy_1 = require("./AtHomePhlebotomy");
Object.defineProperty(exports, "AtHomePhlebotomyApi", { enumerable: true, get: function () { return AtHomePhlebotomy_1.AtHomePhlebotomyApi; } });
var LabTests_1 = require("./LabTests");

@@ -20,0 +22,0 @@ Object.defineProperty(exports, "LabTestsApi", { enumerable: true, get: function () { return LabTests_1.LabTestsApi; } });

@@ -1,2 +0,2 @@

import { ActivityApi, BodyApi, LinkApi, SleepApi, UserApi, WebhooksApi, WorkoutsApi, ProfileApi, DevicesAPI, MealsApi, LabTestsApi } from './client';
import { ActivityApi, AtHomePhlebotomyApi, BodyApi, LinkApi, SleepApi, UserApi, WebhooksApi, WorkoutsApi, ProfileApi, DevicesAPI, MealsApi, LabTestsApi } from './client';
import { ClientConfig } from './lib/models';

@@ -17,2 +17,3 @@ import { VitalsApi } from './client/Vitals';

LabTests: LabTestsApi;
AtHomePhlebotomy: AtHomePhlebotomyApi;
Profile: ProfileApi;

@@ -19,0 +20,0 @@ Providers: ProviderApi;

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

if (!config.api_key) {
throw new Error("You must provide an API key");
throw new Error('You must provide an API key');
}

@@ -81,3 +81,3 @@ var baseURL;

headers = config.headers;
headers["x-vital-api-key"] = this.config.api_key;
headers['x-vital-api-key'] = this.config.api_key;
config.headers = __assign({}, headers);

@@ -99,2 +99,3 @@ return [2 /*return*/, config];

this.LabTests = new client_1.LabTestsApi(baseURL.concat('/v3'), axiosApiInstance);
this.AtHomePhlebotomy = new client_1.AtHomePhlebotomyApi(baseURL.concat('/v3'), axiosApiInstance);
this.Profile = new client_1.ProfileApi(baseURL.concat('/v2'), axiosApiInstance);

@@ -101,0 +102,0 @@ this.Providers = new Provider_1.ProviderApi(baseURL.concat('/v2'), axiosApiInstance);

@@ -5,2 +5,3 @@ import axios from 'axios';

ActivityApi,
AtHomePhlebotomyApi,
BodyApi,

@@ -15,3 +16,3 @@ LinkApi,

MealsApi,
LabTestsApi
LabTestsApi,
} from './client';

@@ -35,2 +36,3 @@ import { ClientConfig } from './lib/models';

LabTests: LabTestsApi;
AtHomePhlebotomy: AtHomePhlebotomyApi;
Profile: ProfileApi;

@@ -42,4 +44,4 @@ Providers: ProviderApi;

this.config = config;
if(!config.api_key){
throw new Error("You must provide an API key");
if (!config.api_key) {
throw new Error('You must provide an API key');
}

@@ -62,3 +64,3 @@ let baseURL;

const headers = config.headers;
headers["x-vital-api-key"] = this.config.api_key;
headers['x-vital-api-key'] = this.config.api_key;
config.headers = {

@@ -84,2 +86,6 @@ ...headers,

this.LabTests = new LabTestsApi(baseURL.concat('/v3'), axiosApiInstance);
this.AtHomePhlebotomy = new AtHomePhlebotomyApi(
baseURL.concat('/v3'),
axiosApiInstance
);
this.Profile = new ProfileApi(baseURL.concat('/v2'), axiosApiInstance);

@@ -86,0 +92,0 @@ this.Providers = new ProviderApi(baseURL.concat('/v2'), axiosApiInstance);

{
"name": "@tryvital/vital-node",
"version": "2.1.7",
"version": "2.1.8",
"description": "Node client for Vital",

@@ -25,5 +25,7 @@ "author": "maitham",

"dependencies": {
"@types/humps": "^2.0.2",
"axios": ">=0.21.2 <1.0.0",
"axios-retry": "^3.2.4",
"crypto": "^1.0.1",
"humps": "^2.0.1",
"svix": "0.64.2"

@@ -30,0 +32,0 @@ },

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