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

kepler-companion

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kepler-companion - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

8

KeplerCompanion.d.ts

@@ -5,6 +5,6 @@ export declare type KeplerCompanionConfiguration = {

ssl?: boolean;
trackingPath?: string;
telemetryPath?: string;
enabled?: boolean;
};
export declare type TrackingOpts = {
export declare type TelemetryOpts = {
action: string;

@@ -24,4 +24,4 @@ product: string;

turnOff(): void;
track(opts: TrackingOpts, timeout?: number): Promise<unknown> | void;
private _track;
add(opts: TelemetryOpts): Promise<unknown> | void;
private _add;
}

@@ -55,3 +55,3 @@ "use strict";

}
track(opts, timeout = 1000) {
add(opts) {
if (!this.config.enabled) {

@@ -64,8 +64,5 @@ return;

}
return Promise.race([
this._track(opts).catch(() => { }),
new Promise((resolve) => setTimeout(resolve, timeout))
]);
this._add(opts).catch(() => { });
}
async _track(opts) {
async _add(opts) {
const user = this.getUserId(opts.product);

@@ -72,0 +69,0 @@ try {

{
"name": "kepler-companion",
"version": "1.1.1",
"version": "1.1.2",
"description": "Kepler analytics toolkit for client side",

@@ -5,0 +5,0 @@ "main": "index.js",

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