Socket
Socket
Sign inDemoInstall

@segment/analytics.js-core

Package Overview
Dependencies
49
Maintainers
153
Versions
69
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.13.9 to 4.0.0-beta.1

6

HISTORY.md
4.0.0-beta.1 / 2020-07-30
=========================
* export interfaces
* fix importing types issues
3.13.8 / 2020-07-29

@@ -3,0 +9,0 @@ ===================

8

lib/global-modules.d.ts

@@ -1,2 +0,2 @@

import { SegmentAnalytics } from './index.d'
import { SegmentAnalytics } from './index.d';

@@ -6,7 +6,7 @@ declare global {

interface Global {
analytics: SegmentAnalytics.AnalyticsJS
analytics: SegmentAnalytics.AnalyticsJS;
}
}
interface Window {
analytics: SegmentAnalytics.AnalyticsJS
analytics: SegmentAnalytics.AnalyticsJS;
jQuery: any;

@@ -17,2 +17,2 @@ Zepto: any;

export {};
export {};

@@ -1,3 +0,3 @@

export namespace SegmentAnalytics {
export interface SegmentOpts {
export declare namespace SegmentAnalytics {
interface SegmentOpts {
integrations?: any;

@@ -8,3 +8,3 @@ anonymousId?: string;

export interface IntegrationsSettings {
interface IntegrationsSettings {
// TODO remove `any`

@@ -14,3 +14,3 @@ [key: string]: any;

export interface CookieOptions {
interface CookieOptions {
maxage?: number;

@@ -22,3 +22,3 @@ domain?: string;

export interface MetricsOptions {
interface MetricsOptions {
host?: string;

@@ -30,7 +30,7 @@ sampleRate?: number;

export interface StoreOptions {
interface StoreOptions {
enabled?: boolean;
}
export interface UserOptions {
interface UserOptions {
cookie?: {

@@ -46,3 +46,3 @@ key: string;

export interface GroupOptions {
interface GroupOptions {
cookie?: {

@@ -57,3 +57,3 @@ key: string;

export interface SegmentIntegration {
interface SegmentIntegration {
All?: boolean;

@@ -63,3 +63,3 @@ [integration: string]: boolean | undefined;

export interface InitOptions {
interface InitOptions {
initialPageview?: boolean;

@@ -74,3 +74,3 @@ cookie?: CookieOptions;

export interface AnalyticsJS {
interface AnalyticsJS {
Integrations: { [name: string]: unknown };

@@ -281,6 +281,2 @@ require: any;

declare var analytics: SegmentAnalytics.AnalyticsJS;
declare module '@segment/analytics.js-core' {
var analytics: SegmentAnalytics.AnalyticsJS;
export default analytics;
}
export default analytics;
'use strict';
import { SegmentAnalytics } from './index.d'
import { SegmentAnalytics } from './index.d';

@@ -5,0 +5,0 @@ /**

{
"name": "@segment/analytics.js-core",
"author": "Segment <friends@segment.com>",
"version": "3.13.9",
"version": "4.0.0-beta.1",
"description": "The hassle-free way to integrate analytics into any web application.",

@@ -6,0 +6,0 @@ "types": "lib/index.d.ts",

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc