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

@amplitude/analytics-core

Package Overview
Dependencies
Maintainers
20
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amplitude/analytics-core - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

2

lib/cjs/core-client.d.ts

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

import { CoreClient, Config, Event, BaseEvent, EventOptions, Identify, Plugin, Revenue, Result } from '@amplitude/analytics-types';
import { BaseEvent, Config, CoreClient, Event, EventOptions, Identify, Plugin, Result, Revenue } from '@amplitude/analytics-types';
import { Timeline } from './timeline';

@@ -3,0 +3,0 @@ export declare class AmplitudeCore implements CoreClient {

Object.defineProperty(exports, "__esModule", { value: true });
exports.AmplitudeCore = void 0;
var tslib_1 = require("tslib");
var messages_1 = require("./messages");
var timeline_1 = require("./timeline");
var event_builder_1 = require("./utils/event-builder");
var timeline_1 = require("./timeline");
var result_builder_1 = require("./utils/result-builder");
var messages_1 = require("./messages");
var return_wrapper_1 = require("./utils/return-wrapper");

@@ -143,3 +143,5 @@ var AmplitudeCore = /** @class */ (function () {

? this.config.loggerProvider.log(result.message)
: this.config.loggerProvider.error(result.message);
: result.code === 100
? this.config.loggerProvider.warn(result.message)
: this.config.loggerProvider.error(result.message);
return [2 /*return*/, result];

@@ -146,0 +148,0 @@ case 2:

@@ -7,3 +7,3 @@ export { AmplitudeCore } from './core-client';

export { Logger } from './logger';
export { AMPLITUDE_PREFIX } from './constants';
export { AMPLITUDE_PREFIX, STORAGE_PREFIX } from './constants';
export { returnWrapper } from './utils/return-wrapper';

@@ -10,0 +10,0 @@ export { debugWrapper, getClientLogConfig, getClientStates } from './utils/debug';

Object.defineProperty(exports, "__esModule", { value: true });
exports.createIdentifyEvent = exports.BaseTransport = exports.MemoryStorage = exports.UUID = exports.getClientStates = exports.getClientLogConfig = exports.debugWrapper = exports.returnWrapper = exports.AMPLITUDE_PREFIX = exports.Logger = exports.Config = exports.Destination = exports.Revenue = exports.Identify = exports.AmplitudeCore = void 0;
exports.createIdentifyEvent = exports.BaseTransport = exports.MemoryStorage = exports.UUID = exports.getClientStates = exports.getClientLogConfig = exports.debugWrapper = exports.returnWrapper = exports.STORAGE_PREFIX = exports.AMPLITUDE_PREFIX = exports.Logger = exports.Config = exports.Destination = exports.Revenue = exports.Identify = exports.AmplitudeCore = void 0;
var core_client_1 = require("./core-client");

@@ -17,2 +17,3 @@ Object.defineProperty(exports, "AmplitudeCore", { enumerable: true, get: function () { return core_client_1.AmplitudeCore; } });

Object.defineProperty(exports, "AMPLITUDE_PREFIX", { enumerable: true, get: function () { return constants_1.AMPLITUDE_PREFIX; } });
Object.defineProperty(exports, "STORAGE_PREFIX", { enumerable: true, get: function () { return constants_1.STORAGE_PREFIX; } });
var return_wrapper_1 = require("./utils/return-wrapper");

@@ -19,0 +20,0 @@ Object.defineProperty(exports, "returnWrapper", { enumerable: true, get: function () { return return_wrapper_1.returnWrapper; } });

@@ -178,3 +178,4 @@ Object.defineProperty(exports, "__esModule", { value: true });

var _b = tslib_1.__read(_a, 1), result = _b[0];
resolve(result);
var resolveResult = result || (0, result_builder_1.buildResult)(event, 100, 'Event not tracked, no destination plugins on the instance');
resolve(resolveResult);
});

@@ -181,0 +182,0 @@ return [2 /*return*/];

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

import { CoreClient, Config, Event, BaseEvent, EventOptions, Identify, Plugin, Revenue, Result } from '@amplitude/analytics-types';
import { BaseEvent, Config, CoreClient, Event, EventOptions, Identify, Plugin, Result, Revenue } from '@amplitude/analytics-types';
import { Timeline } from './timeline';

@@ -3,0 +3,0 @@ export declare class AmplitudeCore implements CoreClient {

import { __awaiter, __generator, __values } from "tslib";
import { createGroupIdentifyEvent, createIdentifyEvent, createTrackEvent, createRevenueEvent, createGroupEvent, } from './utils/event-builder';
import { CLIENT_NOT_INITIALIZED, OPT_OUT_MESSAGE } from './messages';
import { Timeline } from './timeline';
import { createGroupEvent, createGroupIdentifyEvent, createIdentifyEvent, createRevenueEvent, createTrackEvent, } from './utils/event-builder';
import { buildResult } from './utils/result-builder';
import { CLIENT_NOT_INITIALIZED, OPT_OUT_MESSAGE } from './messages';
import { returnWrapper } from './utils/return-wrapper';

@@ -141,3 +141,5 @@ var AmplitudeCore = /** @class */ (function () {

? this.config.loggerProvider.log(result.message)
: this.config.loggerProvider.error(result.message);
: result.code === 100
? this.config.loggerProvider.warn(result.message)
: this.config.loggerProvider.error(result.message);
return [2 /*return*/, result];

@@ -144,0 +146,0 @@ case 2:

@@ -7,3 +7,3 @@ export { AmplitudeCore } from './core-client';

export { Logger } from './logger';
export { AMPLITUDE_PREFIX } from './constants';
export { AMPLITUDE_PREFIX, STORAGE_PREFIX } from './constants';
export { returnWrapper } from './utils/return-wrapper';

@@ -10,0 +10,0 @@ export { debugWrapper, getClientLogConfig, getClientStates } from './utils/debug';

@@ -7,3 +7,3 @@ export { AmplitudeCore } from './core-client';

export { Logger } from './logger';
export { AMPLITUDE_PREFIX } from './constants';
export { AMPLITUDE_PREFIX, STORAGE_PREFIX } from './constants';
export { returnWrapper } from './utils/return-wrapper';

@@ -10,0 +10,0 @@ export { debugWrapper, getClientLogConfig, getClientStates } from './utils/debug';

@@ -176,3 +176,4 @@ import { __assign, __awaiter, __generator, __read, __values } from "tslib";

var _b = __read(_a, 1), result = _b[0];
resolve(result);
var resolveResult = result || buildResult(event, 100, 'Event not tracked, no destination plugins on the instance');
resolve(resolveResult);
});

@@ -179,0 +180,0 @@ return [2 /*return*/];

{
"name": "@amplitude/analytics-core",
"version": "2.0.3",
"version": "2.0.4",
"description": "",

@@ -38,3 +38,3 @@ "author": "Amplitude Inc",

"dependencies": {
"@amplitude/analytics-types": "^2.1.1",
"@amplitude/analytics-types": "^2.1.2",
"tslib": "^2.4.1"

@@ -45,3 +45,3 @@ },

],
"gitHead": "4d88679924fb78f7ed4e49611a79109e2d2f805c"
"gitHead": "5e4a40950cb5f11abfe7ee03c952f49efd1b6c60"
}

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

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

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

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