@analytics.bridged.xyz/google-analytics-component
Advanced tools
Comparing version 0.0.4 to 0.0.5
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.event = void 0; | ||
const node_fetch_1 = __importDefault(require("node-fetch")); | ||
async function event(ev, options) { | ||
@@ -11,3 +15,3 @@ var _a; | ||
try { | ||
const _reqres = await fetch(`${_requestBaseUrl}?measurement_id=${ev.measurement_id}&api_secret=${ev.api_secret}`, { | ||
const _reqres = await node_fetch_1.default(`${_requestBaseUrl}?measurement_id=${ev.measurement_id}&api_secret=${ev.api_secret}`, { | ||
method: "POST", | ||
@@ -14,0 +18,0 @@ body: JSON.stringify({ |
{ | ||
"name": "@analytics.bridged.xyz/google-analytics-component", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Bridged internal analytics components", | ||
@@ -20,3 +20,6 @@ "main": "dist/index.js", | ||
"typescript": "^4.2.4" | ||
}, | ||
"dependencies": { | ||
"node-fetch": "^2.6.1" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
17334
102
0
1
+ Addednode-fetch@^2.6.1
+ Addednode-fetch@2.7.0(transitive)
+ Addedtr46@0.0.3(transitive)
+ Addedwebidl-conversions@3.0.1(transitive)
+ Addedwhatwg-url@5.0.0(transitive)