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

@firestitch/analytics

Package Overview
Dependencies
Maintainers
7
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@firestitch/analytics - npm Package Compare versions

Comparing version 12.3.1 to 12.3.2

app/services/analytics-processor.service.d.ts

2

app/interfaces/analytics-processor-event.d.ts
import { EventType } from '../enums';
import { Provider } from '../providers/provider';
export interface AnalyticsProcessorEvent {
provider: Provider;
type: string | EventType;
data: any;
}
export interface PurchaseEvent {
transactionId: number;
transactionId?: number;
total?: number;

@@ -10,6 +10,6 @@ shipping?: number;

export interface PurchaseEventProduct {
id: number;
name: string;
price: number;
id?: number;
name?: string;
price?: number;
quantity?: number;
}

@@ -16,5 +16,4 @@ import { Injector } from '@angular/core';

setUser(data: any): void;
private _processEvent;
static ɵfac: i0.ɵɵFactoryDeclaration<FsAnalytics, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<FsAnalytics>;
}

@@ -28,6 +28,6 @@ (function (global, factory) {

var EventType;
exports.EventType = void 0;
(function (EventType) {
EventType["Purcahse"] = "purchase";
})(EventType || (EventType = {}));
})(exports.EventType || (exports.EventType = {}));

@@ -413,3 +413,3 @@ var FS_ANALYTICS_CONFIG = new i0.InjectionToken('fs-analytics-config');

var data = Object.assign(Object.assign({}, options), { value: value });
if (type === EventType.Purcahse) {
if (type === exports.EventType.Purcahse) {
var prucahseEvent = value;

@@ -500,3 +500,3 @@ type = 'Purchase';

};
if (type === EventType.Purcahse) {
if (type === exports.EventType.Purcahse) {
var prucahseEvent = value;

@@ -576,3 +576,3 @@ data = {

};
if (type === EventType.Purcahse) {
if (type === exports.EventType.Purcahse) {
var purchaseEvent = value;

@@ -660,2 +660,19 @@ data = {

var AnalyticsProcessorService = /** @class */ (function () {
function AnalyticsProcessorService() {
}
AnalyticsProcessorService.prototype.process = function (event) {
return rxjs.of(event);
};
return AnalyticsProcessorService;
}());
AnalyticsProcessorService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AnalyticsProcessorService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
AnalyticsProcessorService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AnalyticsProcessorService, providedIn: 'root' });
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AnalyticsProcessorService, decorators: [{
type: i0.Injectable,
args: [{
providedIn: 'root',
}]
}] });
var FsAnalytics = /** @class */ (function () {

@@ -669,3 +686,3 @@ function FsAnalytics(_config, _injector, _router) {

FsAnalytics.prototype.init = function () {
this._processorService = this._config.processor;
this._processorService = this._config.processor || new AnalyticsProcessorService();
if (this._config.providers.googleAnalytics) {

@@ -690,12 +707,11 @@ this._providers.push(new GoogleAnalyticsProvider(this._injector, this._config, this._router));

.map(function (product) { return (Object.assign(Object.assign({}, product), { price: product.price || 0, quantity: product.quantity || 1 })); }) });
this.trackEvent(EventType.Purcahse, event);
this.trackEvent(exports.EventType.Purcahse, event);
};
FsAnalytics.prototype.trackEvent = function (type, data) {
var _this = this;
this._providers
.filter(function (provider) { return _this._processEvent(provider, type, data); })
.forEach(function (provider) {
_this._processEvent(provider, type, data)
.subscribe(function (_a) {
var provider = _a.provider, type = _a.type, data = _a.data;
this._processorService.process({ type: type, data: data })
.pipe(operators.take(1))
.subscribe(function () {
_this._providers
.forEach(function (provider) {
provider.trackEvent(type, data);

@@ -710,7 +726,2 @@ });

};
FsAnalytics.prototype._processEvent = function (provider, type, data) {
return this._processorService ?
this._processorService.process({ provider: provider, type: type, data: data })
: rxjs.of({ provider: provider, type: type, data: data });
};
return FsAnalytics;

@@ -717,0 +728,0 @@ }());

export {};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5hbHl0aWNzLXByb2Nlc3Nvci1ldmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9hcHAvaW50ZXJmYWNlcy9hbmFseXRpY3MtcHJvY2Vzc29yLWV2ZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJcbmltcG9ydCB7IEV2ZW50VHlwZSB9IGZyb20gJy4uL2VudW1zJztcbmltcG9ydCB7IFByb3ZpZGVyIH0gZnJvbSAnLi4vcHJvdmlkZXJzL3Byb3ZpZGVyJztcblxuXG5leHBvcnQgaW50ZXJmYWNlIEFuYWx5dGljc1Byb2Nlc3NvckV2ZW50IHtcbiAgcHJvdmlkZXI6IFByb3ZpZGVyLFxuICB0eXBlOiBzdHJpbmcgfCBFdmVudFR5cGUsXG4gIGRhdGE6IGFueVxufSJdfQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5hbHl0aWNzLXByb2Nlc3Nvci1ldmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9hcHAvaW50ZXJmYWNlcy9hbmFseXRpY3MtcHJvY2Vzc29yLWV2ZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJcbmltcG9ydCB7IEV2ZW50VHlwZSB9IGZyb20gJy4uL2VudW1zJztcblxuXG5leHBvcnQgaW50ZXJmYWNlIEFuYWx5dGljc1Byb2Nlc3NvckV2ZW50IHtcbiAgdHlwZTogc3RyaW5nIHwgRXZlbnRUeXBlLFxuICBkYXRhOiBhbnlcbn0iXX0=
export {};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXZlbnQtcHVyY2hhc2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8u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AgbmFtZT86IHN0cmluZyxcbiAgcHJpY2U/OiBudW1iZXIsXG4gIHF1YW50aXR5PzogbnVtYmVyLFxufVxuIl19
import { Inject, Injectable, Injector } from '@angular/core';
import { Router } from '@angular/router';
import { of } from 'rxjs';
import { take } from 'rxjs/operators';
import { EventType } from '../enums';
import { FS_ANALYTICS_CONFIG } from '../injectors';
import { FacebookPixelProvider, GoogleAnalyticsProvider, GoogleTagsProvider, KlaviyoProvider } from '../providers';
import { AnalyticsProcessorService } from './analytics-processor.service';
import * as i0 from "@angular/core";

@@ -17,3 +18,3 @@ import * as i1 from "@angular/router";

init() {
this._processorService = this._config.processor;
this._processorService = this._config.processor || new AnalyticsProcessorService();
if (this._config.providers.googleAnalytics) {

@@ -41,7 +42,7 @@ this._providers.push(new GoogleAnalyticsProvider(this._injector, this._config, this._router));

trackEvent(type, data) {
this._providers
.filter((provider) => this._processEvent(provider, type, data))
.forEach((provider) => {
this._processEvent(provider, type, data)
.subscribe(({ provider, type, data }) => {
this._processorService.process({ type, data })
.pipe(take(1))
.subscribe(() => {
this._providers
.forEach((provider) => {
provider.trackEvent(type, data);

@@ -56,7 +57,2 @@ });

}
_processEvent(provider, type, data) {
return this._processorService ?
this._processorService.process({ provider, type, data })
: of({ provider, type, data });
}
}

@@ -74,2 +70,2 @@ FsAnalytics.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsAnalytics, deps: [{ token: FS_ANALYTICS_CONFIG }, { token: i0.Injector }, { token: i1.Router }], target: i0.ɵɵFactoryTarget.Injectable });

}] }, { type: i0.Injector }, { type: i1.Router }]; } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5hbHl0aWNzLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvYXBwL3NlcnZpY2VzL2FuYWx5dGljcy5zZXJ2aWNlLnRzIl0sIm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5cGU6IHN0cmluZywgZGF0YT86IGFueSkge1xuICAgIHRoaXMuX3Byb2Nlc3NvclNlcnZpY2UucHJvY2Vzcyh7IHR5cGUsIGRhdGEgfSlcbiAgICAgIC5waXBlKFxuICAgICAgICB0YWtlKDEpLFxuICAgICAgKVxuICAgICAgLnN1YnNjcmliZSgoKSA9PiB7XG4gICAgICAgIHRoaXMuX3Byb3ZpZGVyc1xuICAgICAgICAgIC5mb3JFYWNoKChwcm92aWRlcikgPT4ge1xuICAgICAgICAgICAgcHJvdmlkZXIudHJhY2tFdmVudCh0eXBlLCBkYXRhKTtcbiAgICAgICAgICB9KTtcbiAgICAgIH0pO1xuICB9XG5cbiAgcHVibGljIHNldFVzZXIoZGF0YSkge1xuICAgIHRoaXMuX3Byb3ZpZGVycy5mb3JFYWNoKChwcm92aWRlcikgPT4ge1xuICAgICAgcHJvdmlkZXIuc2V0VXNlcihkYXRhKTtcbiAgICB9KTtcbiAgfVxufVxuIl19

@@ -1,7 +0,8 @@

export { FsAnalyticsDirective } from './app/directives/analytics/analytics.directive';
export { FsAnalyticsDirective } from './app/directives/analytics';
export { FsAnalyticsModule } from './app/fs-analytics.module';
export { FsAnalytics } from './app/services/analytics.service';
export { FsAnalytics } from './app/services';
export * from './app/enums';
export * from './app/interfaces';
export * from './app/providers';
export { FS_ANALYTICS_CONFIG } from './app/injectors/analytics-config.injector';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLGdEQUFnRCxDQUFDO0FBQ3RGLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLDJCQUEyQixDQUFDO0FBQzlELE9BQU8sRUFBRSxXQUFXLEVB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QztBQUM1QixjQUFjLGtCQUFrQixDQUFDO0FBQ2pDLGNBQWMsaUJBQWlCLENBQUM7QUFFaEMsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sMkNBQTJDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJcbmV4cG9ydCB7IEZzQW5hbHl0aWNzRGlyZWN0aXZlIH0gZnJvbSAnLi9hcHAvZGlyZWN0aXZlcy9hbmFseXRpY3MnO1xuZXhwb3J0IHsgRnNBbmFseXRpY3NNb2R1bGUgfSBmcm9tICcuL2FwcC9mcy1hbmFseXRpY3MubW9kdWxlJztcbmV4cG9ydCB7IEZzQW5hbHl0aWNzIH0gZnJvbSAnLi9hcHAvc2VydmljZXMnO1xuXG5leHBvcnQgKiBmcm9tICcuL2FwcC9lbnVtcyc7XG5leHBvcnQgKiBmcm9tICcuL2FwcC9pbnRlcmZhY2VzJztcbmV4cG9ydCAqIGZyb20gJy4vYXBwL3Byb3ZpZGVycyc7XG5cbmV4cG9ydCB7IEZTX0FOQUxZVElDU19DT05GSUcgfSBmcm9tICcuL2FwcC9pbmplY3RvcnMvYW5hbHl0aWNzLWNvbmZpZy5pbmplY3Rvcic7XG4iXX0=
import * as i0 from '@angular/core';
import { InjectionToken, Injectable, Inject, Directive, Input, NgModule } from '@angular/core';
import { of, Subject, fromEvent } from 'rxjs';
import { skip, filter, takeUntil } from 'rxjs/operators';
import { skip, filter, take, takeUntil } from 'rxjs/operators';
import * as i1 from '@angular/router';

@@ -260,2 +260,16 @@ import { NavigationEnd } from '@angular/router';

class AnalyticsProcessorService {
process(event) {
return of(event);
}
}
AnalyticsProcessorService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AnalyticsProcessorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
AnalyticsProcessorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AnalyticsProcessorService, providedIn: 'root' });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AnalyticsProcessorService, decorators: [{
type: Injectable,
args: [{
providedIn: 'root',
}]
}] });
class FsAnalytics {

@@ -269,3 +283,3 @@ constructor(_config, _injector, _router) {

init() {
this._processorService = this._config.processor;
this._processorService = this._config.processor || new AnalyticsProcessorService();
if (this._config.providers.googleAnalytics) {

@@ -293,7 +307,7 @@ this._providers.push(new GoogleAnalyticsProvider(this._injector, this._config, this._router));

trackEvent(type, data) {
this._providers
.filter((provider) => this._processEvent(provider, type, data))
.forEach((provider) => {
this._processEvent(provider, type, data)
.subscribe(({ provider, type, data }) => {
this._processorService.process({ type, data })
.pipe(take(1))
.subscribe(() => {
this._providers
.forEach((provider) => {
provider.trackEvent(type, data);

@@ -308,7 +322,2 @@ });

}
_processEvent(provider, type, data) {
return this._processorService ?
this._processorService.process({ provider, type, data })
: of({ provider, type, data });
}
}

@@ -392,3 +401,3 @@ FsAnalytics.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsAnalytics, deps: [{ token: FS_ANALYTICS_CONFIG }, { token: i0.Injector }, { token: i1.Router }], target: i0.ɵɵFactoryTarget.Injectable });

export { FS_ANALYTICS_CONFIG, FacebookPixelProvider, FsAnalytics, FsAnalyticsDirective, FsAnalyticsModule, GoogleAnalyticsProvider, GoogleTagsProvider, KlaviyoProvider, Provider };
export { EventType, FS_ANALYTICS_CONFIG, FacebookPixelProvider, FsAnalytics, FsAnalyticsDirective, FsAnalyticsModule, GoogleAnalyticsProvider, GoogleTagsProvider, KlaviyoProvider, Provider };
//# sourceMappingURL=firestitch-analytics.js.map
{
"name": "@firestitch/analytics",
"version": "12.3.1",
"version": "12.3.2",
"repository": {

@@ -5,0 +5,0 @@ "type": "git",

@@ -1,6 +0,7 @@

export { FsAnalyticsDirective } from './app/directives/analytics/analytics.directive';
export { FsAnalyticsDirective } from './app/directives/analytics';
export { FsAnalyticsModule } from './app/fs-analytics.module';
export { FsAnalytics } from './app/services/analytics.service';
export { FsAnalytics } from './app/services';
export * from './app/enums';
export * from './app/interfaces';
export * from './app/providers';
export { FS_ANALYTICS_CONFIG } from './app/injectors/analytics-config.injector';

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