Socket
Socket
Sign inDemoInstall

@ombori/grid-session-manager

Package Overview
Dependencies
80
Maintainers
18
Versions
46
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.128.0 to 2.129.0

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [2.129.0](https://github.com/ombori/gridapp/compare/v2.128.0...v2.129.0) (2021-12-06)
### Features
* improve sendContactIdentify method ([bef4c53](https://github.com/ombori/gridapp/commit/bef4c53e79ce37af35ca3f67e4ba4095a96cf6dd))
# [2.128.0](https://github.com/ombori/gridapp/compare/v2.127.0...v2.128.0) (2021-12-06)

@@ -8,0 +19,0 @@

6

dist/session-manager.d.ts

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

import { TrackEvent, InitProps, Instance } from './types';
import { TrackEvent, InitProps, Instance, IdentityTypeEnum } from './types';
export default class Session {

@@ -18,5 +18,5 @@ private instance;

*/
sendContactIdentify: ({ interaction, contactType, contact, }: {
sendContactIdentify: ({ interaction, identityType, contact, }: {
interaction: boolean;
contactType: 'PHONE' | 'EMAIL' | 'CLIENT_ID';
identityType: IdentityTypeEnum;
contact: string;

@@ -23,0 +23,0 @@ }) => Promise<void>;

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

interaction: false,
contactType: 'CLIENT_ID',
identityType: types_1.IdentityTypeEnum.CLIENT_ID,
contact: this.instance.clientId,

@@ -150,7 +150,7 @@ }),

*/
this.sendContactIdentify = ({ interaction, contactType, contact, }) => {
this.sendContactIdentify = ({ interaction, identityType, contact, }) => {
return this.trackEvent({
eventType: types_1.EventTypeEnum.CONTACT_IDENTIFY,
interaction,
str1: contactType,
str1: identityType,
str2: contact,

@@ -157,0 +157,0 @@ });

@@ -35,2 +35,8 @@ export declare enum DataResidencyEnum {

}
export declare enum IdentityTypeEnum {
PHONE = "phone",
EMAIL = "email",
CLIENT_ID = "client_id",
OTHER = "other"
}
export interface TrackEvent {

@@ -37,0 +43,0 @@ eventType: string;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EventTypeEnum = exports.DataRequestTypeEnum = exports.DataResidencyEnum = void 0;
exports.IdentityTypeEnum = exports.EventTypeEnum = exports.DataRequestTypeEnum = exports.DataResidencyEnum = void 0;
var DataResidencyEnum;

@@ -41,1 +41,8 @@ (function (DataResidencyEnum) {

})(EventTypeEnum = exports.EventTypeEnum || (exports.EventTypeEnum = {}));
var IdentityTypeEnum;
(function (IdentityTypeEnum) {
IdentityTypeEnum["PHONE"] = "phone";
IdentityTypeEnum["EMAIL"] = "email";
IdentityTypeEnum["CLIENT_ID"] = "client_id";
IdentityTypeEnum["OTHER"] = "other";
})(IdentityTypeEnum = exports.IdentityTypeEnum || (exports.IdentityTypeEnum = {}));
{
"name": "@ombori/grid-session-manager",
"version": "2.128.0",
"version": "2.129.0",
"main": "dist/index.js",

@@ -32,3 +32,3 @@ "scripts": {

},
"gitHead": "2524f2d3ca2ae0c0608d221524b7c43a856e1d96"
"gitHead": "d11525cda5ac1e05127389449610b7681bfc2d36"
}

@@ -11,2 +11,3 @@ import { v4 as uuid } from 'uuid';

RequestData,
IdentityTypeEnum,
} from './types';

@@ -108,3 +109,3 @@ import {

interaction: false,
contactType: 'CLIENT_ID',
identityType: IdentityTypeEnum.CLIENT_ID,
contact: this.instance.clientId,

@@ -201,7 +202,7 @@ }),

interaction,
contactType,
identityType,
contact,
}: {
interaction: boolean;
contactType: 'PHONE' | 'EMAIL' | 'CLIENT_ID';
identityType: IdentityTypeEnum;
contact: string;

@@ -212,3 +213,3 @@ }) => {

interaction,
str1: contactType,
str1: identityType,
str2: contact,

@@ -215,0 +216,0 @@ });

@@ -38,2 +38,9 @@ export enum DataResidencyEnum {

export enum IdentityTypeEnum {
PHONE = 'phone',
EMAIL = 'email',
CLIENT_ID = 'client_id',
OTHER = 'other',
}
export interface TrackEvent {

@@ -40,0 +47,0 @@ eventType: string;

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc