🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

190proof

Package Overview
Dependencies
Maintainers
1
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

190proof - npm Package Compare versions

Comparing version
1.0.93
to
1.0.94
+12
-0
dist/index.js

@@ -969,2 +969,14 @@ "use strict";

);
if (typeof (error2 == null ? void 0 : error2.message) === "string" && error2.message.includes("Cannot fetch content from the provided URL")) {
logger_default.error(
id,
"Circuit breaker: Google could not fetch image URL(s); failing over (no more Google retries)"
);
const fetchError = new Error(
"Google AI could not fetch the provided image URL(s)."
);
fetchError.cause = error2;
fetchError.googleFetchFailure = true;
throw fetchError;
}
const violationReason = CONTENT_VIOLATION_REASONS.has(error2.finishReason) && error2.finishReason || CONTENT_VIOLATION_REASONS.has((_a = error2.promptFeedback) == null ? void 0 : _a.blockReason) && ((_b = error2.promptFeedback) == null ? void 0 : _b.blockReason);

@@ -971,0 +983,0 @@ if (violationReason) {

@@ -938,2 +938,14 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {

);
if (typeof (error2 == null ? void 0 : error2.message) === "string" && error2.message.includes("Cannot fetch content from the provided URL")) {
logger_default.error(
id,
"Circuit breaker: Google could not fetch image URL(s); failing over (no more Google retries)"
);
const fetchError = new Error(
"Google AI could not fetch the provided image URL(s)."
);
fetchError.cause = error2;
fetchError.googleFetchFailure = true;
throw fetchError;
}
const violationReason = CONTENT_VIOLATION_REASONS.has(error2.finishReason) && error2.finishReason || CONTENT_VIOLATION_REASONS.has((_a = error2.promptFeedback) == null ? void 0 : _a.blockReason) && ((_b = error2.promptFeedback) == null ? void 0 : _b.blockReason);

@@ -940,0 +952,0 @@ if (violationReason) {

+1
-1
{
"name": "190proof",
"version": "1.0.93",
"version": "1.0.94",
"description": "",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display