@blockchain-com/constellation
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -1,16 +0,19 @@ | ||
declare const tracking: ({ api }: { | ||
declare const tracking: ({ api, platform }: { | ||
api: string; | ||
platform: 'WALLET' | 'EXCHANGE' | 'BLOCKCHAIN_COM' | 'EXPLORER'; | ||
}) => { | ||
deleteIdentifier: () => void; | ||
hasConsent: () => Promise<boolean>; | ||
publish: ({ context, events, platform }: { | ||
publish: ({ context, events }: { | ||
context: { | ||
traits: { | ||
nabu_id: string; | ||
}; | ||
campaign?: { | ||
[key: string]: unknown; | ||
} | undefined; | ||
traits?: { | ||
[key: string]: unknown; | ||
} | undefined; | ||
}; | ||
events: { | ||
[key: string]: any; | ||
[key: string]: unknown; | ||
}[]; | ||
platform: 'WALLET' | 'EXCHANGE' | 'BLOCKCHAIN_COM' | 'EXPLORER'; | ||
}) => void; | ||
@@ -17,0 +20,0 @@ setIdentifier: () => void; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tracking = ({ api }) => { | ||
const tracking = ({ api, platform }) => { | ||
const hasConsent = async () => { | ||
@@ -24,3 +24,3 @@ const res = await fetch(`${api}/events/tracking/consent`, { credentials: 'include' }); | ||
}; | ||
const publish = ({ context, events, platform }) => { | ||
const publish = ({ context, events }) => { | ||
fetch(`${api}/publish`, { | ||
@@ -27,0 +27,0 @@ body: JSON.stringify({ |
@@ -1,16 +0,19 @@ | ||
declare const tracking: ({ api }: { | ||
declare const tracking: ({ api, platform }: { | ||
api: string; | ||
platform: 'WALLET' | 'EXCHANGE' | 'BLOCKCHAIN_COM' | 'EXPLORER'; | ||
}) => { | ||
deleteIdentifier: () => void; | ||
hasConsent: () => Promise<boolean>; | ||
publish: ({ context, events, platform }: { | ||
publish: ({ context, events }: { | ||
context: { | ||
traits: { | ||
nabu_id: string; | ||
}; | ||
campaign?: { | ||
[key: string]: unknown; | ||
} | undefined; | ||
traits?: { | ||
[key: string]: unknown; | ||
} | undefined; | ||
}; | ||
events: { | ||
[key: string]: any; | ||
[key: string]: unknown; | ||
}[]; | ||
platform: 'WALLET' | 'EXCHANGE' | 'BLOCKCHAIN_COM' | 'EXPLORER'; | ||
}) => void; | ||
@@ -17,0 +20,0 @@ setIdentifier: () => void; |
@@ -1,2 +0,2 @@ | ||
const tracking = ({ api }) => { | ||
const tracking = ({ api, platform }) => { | ||
const hasConsent = async () => { | ||
@@ -22,3 +22,3 @@ const res = await fetch(`${api}/events/tracking/consent`, { credentials: 'include' }); | ||
}; | ||
const publish = ({ context, events, platform }) => { | ||
const publish = ({ context, events }) => { | ||
fetch(`${api}/publish`, { | ||
@@ -25,0 +25,0 @@ body: JSON.stringify({ |
{ | ||
"name": "@blockchain-com/constellation", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
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
28515
446