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

@google/generative-ai

Package Overview
Dependencies
Maintainers
4
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google/generative-ai - npm Package Compare versions

Comparing version 0.17.0 to 0.17.1

dist/scripts/check-format.d.ts

1

dist/generative-ai.d.ts

@@ -640,3 +640,2 @@ /**

safetySettings: SafetySetting[];
requestOptions: RequestOptions;
tools?: Tool[];

@@ -643,0 +642,0 @@ toolConfig?: ToolConfig;

@@ -286,3 +286,3 @@ 'use strict';

*/
const PACKAGE_VERSION = "0.17.0";
const PACKAGE_VERSION = "0.17.1";
const PACKAGE_LOG_HEADER = "genai-js";

@@ -1321,3 +1321,3 @@ var Task;

var _a;
return new ChatSession(this.apiKey, this.model, Object.assign({ generationConfig: this.generationConfig, safetySettings: this.safetySettings, tools: this.tools, toolConfig: this.toolConfig, systemInstruction: this.systemInstruction, cachedContent: (_a = this.cachedContent) === null || _a === void 0 ? void 0 : _a.name }, startChatParams), this.requestOptions);
return new ChatSession(this.apiKey, this.model, Object.assign({ generationConfig: this.generationConfig, safetySettings: this.safetySettings, tools: this.tools, toolConfig: this.toolConfig, systemInstruction: this.systemInstruction, cachedContent: (_a = this.cachedContent) === null || _a === void 0 ? void 0 : _a.name }, startChatParams), this._requestOptions);
}

@@ -1324,0 +1324,0 @@ /**

@@ -72,3 +72,3 @@ 'use strict';

*/
const PACKAGE_VERSION = "0.17.0";
const PACKAGE_VERSION = "0.17.1";
const PACKAGE_LOG_HEADER = "genai-js";

@@ -75,0 +75,0 @@ var Task;

@@ -29,3 +29,2 @@ /**

safetySettings: SafetySetting[];
requestOptions: RequestOptions;
tools?: Tool[];

@@ -32,0 +31,0 @@ toolConfig?: ToolConfig;

@@ -20,4 +20,4 @@ /**

export * from "./shared";
export { RequestOptions, Tool, CodeExecutionTool, SingleRequestOptions, } from "../../types/requests";
export * from "../../types/content";
export { FunctionCallingMode } from "../../types/enums";
export { RequestOptions, Tool, CodeExecutionTool, SingleRequestOptions, } from "../requests";
export * from "../content";
export { FunctionCallingMode } from "../enums";

@@ -29,3 +29,2 @@ /**

safetySettings: SafetySetting[];
requestOptions: RequestOptions;
tools?: Tool[];

@@ -32,0 +31,0 @@ toolConfig?: ToolConfig;

@@ -20,4 +20,4 @@ /**

export * from "./shared";
export { RequestOptions, Tool, CodeExecutionTool, SingleRequestOptions, } from "../../types/requests";
export * from "../../types/content";
export { FunctionCallingMode } from "../../types/enums";
export { RequestOptions, Tool, CodeExecutionTool, SingleRequestOptions, } from "../requests";
export * from "../content";
export { FunctionCallingMode } from "../enums";
{
"name": "@google/generative-ai",
"version": "0.17.0",
"version": "0.17.1",
"description": "Google AI JavaScript SDK",

@@ -26,2 +26,6 @@ "main": "dist/index.js",

},
"files": [
"server",
"dist"
],
"server": [

@@ -37,6 +41,44 @@ "dist",

"test:node:integration": "yarn build && TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' mocha \"test-integration/node/**/*.test.ts\"",
"lint": "eslint -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'",
"api-report": "api-extractor run --local --verbose && api-extractor run -c api-extractor.server.json --local --verbose",
"docs": "yarn build && yarn api-documenter markdown -i ./temp/main -o ../../docs/reference/main && yarn api-documenter markdown -i ./temp/server -o ../../docs/reference/server"
"lint": "eslint -c .eslintrc.js '**/*.ts' --ignore-path './.gitignore'",
"api-report": "api-extractor run -c api-extractor.json --local --verbose && api-extractor run -c api-extractor.server.json --local --verbose",
"docs": "yarn build && yarn api-documenter markdown -i ./temp/main -o ./docs/reference/main && yarn api-documenter markdown -i ./temp/server -o ./docs/reference/server",
"format": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"nodenext\"}' yarn ts-node scripts/run-format.ts",
"format:check": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"nodenext\"}' yarn ts-node scripts/check-format.ts"
},
"devDependencies": {
"@changesets/cli": "^2.27.1",
"@esm-bundle/chai": "^4.3.4-fix.0",
"@microsoft/api-documenter": "^7.23.12",
"@microsoft/api-extractor": "^7.38.2",
"@rollup/plugin-json": "^6.0.1",
"@types/chai": "^4.3.9",
"@types/chai-as-promised": "^7.1.8",
"@types/mocha": "^10.0.3",
"@types/node": "^20.8.10",
"@types/sinon": "^10.0.20",
"@types/sinon-chai": "^3.2.11",
"@typescript-eslint/eslint-plugin": "^6.9.1",
"@typescript-eslint/eslint-plugin-tslint": "^6.9.1",
"@typescript-eslint/parser": "^6.9.1",
"@web/dev-server-esbuild": "^1.0.1",
"@web/test-runner": "^0.18.0",
"chai": "^4.3.10",
"chai-as-promised": "^7.1.1",
"chai-deep-equal-ignore-undefined": "^1.1.1",
"eslint": "^8.52.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-unused-imports": "^3.0.0",
"glob": "^10.3.10",
"mocha": "^10.2.0",
"prettier": "^3.0.3",
"rollup": "^4.2.0",
"rollup-plugin-dts": "^6.1.0",
"rollup-plugin-replace": "^2.2.0",
"rollup-plugin-typescript2": "^0.36.0",
"sinon": "^17.0.1",
"sinon-chai": "^3.7.0",
"ts-node": "^10.9.1",
"tslint": "^6.1.3",
"typescript": "5.2.2"
},
"repository": {

@@ -43,0 +85,0 @@ "type": "git",

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