@masa-finance/analytics-sdk
Advanced tools
Comparing version 0.0.6 to 0.0.7
{ | ||
"name": "@masa-finance/analytics-sdk", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"main": "dist/src/index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -0,2 +1,4 @@ | ||
import { AxiosInstance } from "axios"; | ||
import type { BaseEventData, Event, EventType } from "./interfaces/EventData"; | ||
export declare const analyticsClient: AxiosInstance; | ||
export declare const logEvent: ({ type, user_address, client_id, event_data, endpoint, }: { | ||
@@ -3,0 +5,0 @@ type: EventType; |
@@ -42,6 +42,6 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.logEvent = void 0; | ||
exports.logEvent = exports.analyticsClient = void 0; | ||
var axios_1 = __importDefault(require("axios")); | ||
var config_1 = require("./config"); | ||
var client = axios_1.default.create({ | ||
exports.analyticsClient = axios_1.default.create({ | ||
baseURL: config_1.API_URL, | ||
@@ -64,3 +64,3 @@ }); | ||
}; | ||
return [4 /*yield*/, client.post("/".concat(endpoint), event_1, { | ||
return [4 /*yield*/, exports.analyticsClient.post("/".concat(endpoint), event_1, { | ||
headers: { | ||
@@ -67,0 +67,0 @@ "Content-Type": "application/json", |
@@ -1,2 +0,2 @@ | ||
export { logEvent } from "./event-logger"; | ||
export { analyticsClient, logEvent } from "./event-logger"; | ||
export * from "./interfaces"; | ||
@@ -3,0 +3,0 @@ export { MasaAnalytics } from "./masa-analytics"; |
@@ -17,4 +17,5 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.generateSignature = exports.MasaAnalytics = exports.logEvent = void 0; | ||
exports.generateSignature = exports.MasaAnalytics = exports.logEvent = exports.analyticsClient = void 0; | ||
var event_logger_1 = require("./event-logger"); | ||
Object.defineProperty(exports, "analyticsClient", { enumerable: true, get: function () { return event_logger_1.analyticsClient; } }); | ||
Object.defineProperty(exports, "logEvent", { enumerable: true, get: function () { return event_logger_1.logEvent; } }); | ||
@@ -21,0 +22,0 @@ __exportStar(require("./interfaces"), exports); |
{ | ||
"name": "@masa-finance/analytics-sdk", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"main": "dist/src/index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
40158
599