@giphy/js-analytics
Advanced tools
Comparing version 3.0.0 to 3.1.0
@@ -12,2 +12,3 @@ "use strict"; | ||
}; | ||
var _a; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -27,2 +28,3 @@ var js_util_1 = require("@giphy/js-util"); | ||
var debouncedPingbackEvent = throttle_debounce_1.debounce(1000, sendPingbacks); | ||
(_a = global_1.default.addEventListener) === null || _a === void 0 ? void 0 : _a.call(global_1.default, 'beforeunload', sendPingbacks); | ||
var pingback = function (_a) { | ||
@@ -29,0 +31,0 @@ var userId = _a.userId, eventType = _a.eventType, actionType = _a.actionType, attributes = _a.attributes, _b = _a.queueEvents, queueEvents = _b === void 0 ? true : _b, analyticsResponsePayload = _a.analyticsResponsePayload; |
@@ -11,3 +11,3 @@ { | ||
"name": "@giphy/js-analytics", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"main": "dist/index.js", | ||
@@ -25,3 +25,3 @@ "types": "dist/index.d.ts", | ||
"@giphy/js-types": "^3.1.0", | ||
"@giphy/js-util": "^2.2.0", | ||
"@giphy/js-util": "^2.3.0", | ||
"append-query": "^2.1.0", | ||
@@ -36,3 +36,3 @@ "throttle-debounce": "^2.3.0" | ||
}, | ||
"gitHead": "e44fe56b1cc4b4f7180a8e6759cb2710bc91f89d" | ||
"gitHead": "89a1f7721ebf52233bd0de4f71b7b8279a79a6df" | ||
} |
@@ -21,2 +21,4 @@ import { getPingbackId, Logger } from '@giphy/js-util' | ||
gl.addEventListener?.('beforeunload', sendPingbacks) | ||
const pingback = ({ | ||
@@ -23,0 +25,0 @@ userId, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22189
442
Updated@giphy/js-util@^2.3.0