vidspotai-shared 1.0.64 → 1.0.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bytedance.service.d.ts","sourceRoot":"","sources":["../../../../../src/services/aiGen/providers/bytedance/bytedance.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,qBAAqB,EACrB,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,UAAU,CAAC;AAUlB,qBAAa,gBAAiB,SAAQ,wBAAwB;IAC5D,OAAO,CAAC,QAAQ,CAAC,OAAO,CACsD;IAI9E,OAAO,CAAC,cAAc;IAStB,OAAO,CAAC,WAAW;IAIb,aAAa,CACjB,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,qBAAqB,CAAC;IAuJ3B,gBAAgB,CAAC,EACrB,IAAI,EACJ,cAAc,EACd,cAAyB,GAC1B,EAAE,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"bytedance.service.d.ts","sourceRoot":"","sources":["../../../../../src/services/aiGen/providers/bytedance/bytedance.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,qBAAqB,EACrB,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,UAAU,CAAC;AAUlB,qBAAa,gBAAiB,SAAQ,wBAAwB;IAC5D,OAAO,CAAC,QAAQ,CAAC,OAAO,CACsD;IAI9E,OAAO,CAAC,cAAc;IAStB,OAAO,CAAC,WAAW;IAIb,aAAa,CACjB,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,qBAAqB,CAAC;IAuJ3B,gBAAgB,CAAC,EACrB,IAAI,EACJ,cAAc,EACd,cAAyB,GAC1B,EAAE,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IA4HjD,aAAa,CAAC,MAAM,EAAE,iBAAiB,GAAG,MAAM;CAgDjD"}
|
|
@@ -178,6 +178,7 @@ class ByteDanceService extends baseAiGenProvider_service_1.BaseAiGenProviderServ
|
|
|
178
178
|
// Sensitive content (matches sceneMonitor.isContentPolicyError so Slack stays quiet).
|
|
179
179
|
if (errCode?.startsWith("OutputVideoSensitiveContentDetected") ||
|
|
180
180
|
errCode?.startsWith("OutputImageSensitiveContentDetected") ||
|
|
181
|
+
errCode?.startsWith("OutputAudioSensitiveContentDetected") ||
|
|
181
182
|
errCode?.startsWith("InputVideoSensitiveContentDetected") ||
|
|
182
183
|
errCode?.startsWith("InputImageSensitiveContentDetected") ||
|
|
183
184
|
errCode?.startsWith("InputTextSensitiveContentDetected")) {
|
|
@@ -118,7 +118,9 @@ exports.AnalyticsService = AnalyticsService;
|
|
|
118
118
|
* map key under `failuresByCode`. Empty/undefined collapses to `unknown`.
|
|
119
119
|
*/
|
|
120
120
|
function sanitizeCodeKey(code) {
|
|
121
|
-
if (
|
|
121
|
+
if (code == null || code === "")
|
|
122
122
|
return "unknown";
|
|
123
|
-
return
|
|
123
|
+
// Defensive: providers occasionally return numeric codes (e.g. Google's
|
|
124
|
+
// gRPC status codes). Coerce to string before regex-replacing.
|
|
125
|
+
return String(code).replace(/[.\/~*[\]]/g, "_");
|
|
124
126
|
}
|