New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@pinecone-database/pinecone

Package Overview
Dependencies
Maintainers
1
Versions
744
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pinecone-database/pinecone - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

19

dist/index.js

@@ -38,8 +38,4 @@ "use strict";

};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.PineconeClient = void 0;
var axios_1 = __importDefault(require("axios"));
var pinecone_generated_ts_fetch_1 = require("./pinecone-generated-ts-fetch");

@@ -123,3 +119,2 @@ function handler(func, args) {

method: 'GET',
url: whoami,
headers: {

@@ -132,13 +127,15 @@ 'Content-Type': 'application/json',

case 1:
_a.trys.push([1, 3, , 4]);
return [4 /*yield*/, (0, axios_1.default)(request)];
_a.trys.push([1, 4, , 5]);
return [4 /*yield*/, fetch(whoami, request)];
case 2:
response = _a.sent();
project_name = response.data.project_name;
return [4 /*yield*/, response.json()];
case 3:
project_name = (_a.sent()).project_name;
return [2 /*return*/, project_name];
case 3:
case 4:
error_2 = _a.sent();
console.log("PineconeClient: Error getting project name: ".concat(error_2));
return [3 /*break*/, 4];
case 4: return [2 /*return*/];
return [3 /*break*/, 5];
case 5: return [2 /*return*/];
}

@@ -145,0 +142,0 @@ });

{
"name": "@pinecone-database/pinecone",
"version": "0.0.7",
"version": "0.0.8",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "repository": {

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