Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@blockchain-com/constellation

Package Overview
Dependencies
Maintainers
4
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blockchain-com/constellation - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

17

dist/cjs/services/tracking.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc