npm package diff

Package: @forge/bridge

Versions: 5.8.0-next.16 - 5.8.0-next.17

File: package/out/object-store/download.js

Index: package/out/object-store/download.js
===================================================================
--- package/out/object-store/download.js
+++ package/out/object-store/download.js
@@ -3,10 +3,17 @@
 exports.download = void 0;
 const invoke_1 = require("../invoke");
 const errors_1 = require("../errors");
 const utils_1 = require("./utils");
+const bridge_1 = require("../bridge");
+const callBridge = (0, bridge_1.getCallBridge)();
 const download = async ({ functionKey, keys }) => {
     await (0, utils_1.checkRestrictedEnvironment)();
+    try {
+        await callBridge('trackObjectStoreAction', { action: 'download' });
+    }
+    catch (error) {
+    }
     if (!functionKey || functionKey.length === 0) {
         throw new errors_1.BridgeAPIError('functionKey is required to filter and generate download URLs');
     }
     if (!Array.isArray(keys) || keys.length === 0) {