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

@threekit/analytics

Package Overview
Dependencies
Maintainers
0
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@threekit/analytics - npm Package Compare versions

Comparing version 0.1.101 to 0.1.102

24

dist/sessions/Session.d.ts

@@ -47,2 +47,26 @@ import { ARStage, type AssetOption, Configuration, type Context, OptionInteractionType, OptionsType, PlayerType, type QuizOption, ShareType, type ThreekitAuthProps, type ValueOption, VisualInteractionType } from '@threekit/rest-api';

}): void;
change({ assetId, configuration, changeDuration, downloadSize }: {
assetId?: string;
configuration?: Configuration;
changeDuration?: number;
downloadSize?: number;
}): void;
imageUpload({ assetId, configuration, imageUploadId, imageUploadFileId }: {
assetId?: string;
configuration?: Configuration;
imageUploadId: string;
imageUploadFileId: string;
}): void;
personalizeText({ assetId, configuration, personalizeId, personalizedText }: {
assetId?: string;
configuration?: Configuration;
personalizeId: string;
personalizedText: string;
}): void;
parametricValue({ assetId, configuration, parametricId, parametricValue }: {
assetId?: string;
configuration?: Configuration;
parametricId: string;
parametricValue: number;
}): void;
load({ playerType, loadDuration, downloadDuration, parseDuration, prefetch, loadOptions, downloadSize, assetId, configuration, componentId, partialLoad }: {

@@ -49,0 +73,0 @@ playerType: PlayerType;

@@ -162,2 +162,55 @@ import { errorToString } from '@threekit/diagnostics';

}
change({ assetId, configuration, changeDuration, downloadSize }) {
this.tryCatchBlock(() => {
const event = {
...this.getCommonEventProperties({
assetId,
configuration
}),
eventType: Event2Type.Change,
changeDuration: changeDuration !== undefined ? roundTo(changeDuration, 3) : undefined,
downloadSize
};
this.reportEvent(event);
});
}
imageUpload({ assetId, configuration, imageUploadId, imageUploadFileId }) {
this.tryCatchBlock(() => {
const event = {
...this.getCommonEventProperties({}),
eventType: Event2Type.ImageUpload,
assetId,
configuration,
imageUploadId,
imageUploadFileId
};
this.reportEvent(event);
});
}
personalizeText({ assetId, configuration, personalizeId, personalizedText }) {
this.tryCatchBlock(() => {
const event = {
...this.getCommonEventProperties({}),
eventType: Event2Type.PersonalizeText,
assetId,
configuration,
personalizeId,
personalizedText
};
this.reportEvent(event);
});
}
parametricValue({ assetId, configuration, parametricId, parametricValue }) {
this.tryCatchBlock(() => {
const event = {
...this.getCommonEventProperties({}),
eventType: Event2Type.ParametricValue,
assetId,
configuration,
parametricId,
parametricValue
};
this.reportEvent(event);
});
}
load({ playerType, loadDuration, downloadDuration, parseDuration, prefetch, loadOptions, downloadSize, assetId, configuration, componentId, partialLoad }) {

@@ -164,0 +217,0 @@ this.tryCatchBlock(() => {

6

package.json
{
"name": "@threekit/analytics",
"version": "0.1.101",
"version": "0.1.102",
"type": "module",

@@ -9,7 +9,7 @@ "main": "dist/index.js",

"@threekit/diagnostics": "*",
"@threekit/rest-api": "^0.1.101",
"@threekit/rest-api": "^0.1.102",
"uuid": "^9.0.1"
},
"sideEffects": false,
"gitHead": "213387499edbebceac21b421cb8821a0898f8302"
"gitHead": "800bdf4d1c06e4c22bdb4f6445b042d6c0e96369"
}

@@ -258,2 +258,104 @@ import { errorToString } from '@threekit/diagnostics';

change({
assetId,
configuration,
changeDuration,
downloadSize
}: {
assetId?: string;
configuration?: Configuration;
changeDuration?: number;
downloadSize?: number;
}) {
this.tryCatchBlock(() => {
const event: Event2 = {
...this.getCommonEventProperties({
assetId,
configuration
}),
eventType: Event2Type.Change,
changeDuration:
changeDuration !== undefined ? roundTo(changeDuration, 3) : undefined,
downloadSize
};
this.reportEvent(event);
});
}
imageUpload({
assetId,
configuration,
imageUploadId,
imageUploadFileId
}: {
assetId?: string;
configuration?: Configuration;
imageUploadId: string;
imageUploadFileId: string;
}) {
this.tryCatchBlock(() => {
const event: Event2 = {
...this.getCommonEventProperties({}),
eventType: Event2Type.ImageUpload,
assetId,
configuration,
imageUploadId,
imageUploadFileId
};
this.reportEvent(event);
});
}
personalizeText({
assetId,
configuration,
personalizeId,
personalizedText
}: {
assetId?: string;
configuration?: Configuration;
personalizeId: string;
personalizedText: string;
}) {
this.tryCatchBlock(() => {
const event: Event2 = {
...this.getCommonEventProperties({}),
eventType: Event2Type.PersonalizeText,
assetId,
configuration,
personalizeId,
personalizedText
};
this.reportEvent(event);
});
}
parametricValue({
assetId,
configuration,
parametricId,
parametricValue
}: {
assetId?: string;
configuration?: Configuration;
parametricId: string;
parametricValue: number;
}) {
this.tryCatchBlock(() => {
const event: Event2 = {
...this.getCommonEventProperties({}),
eventType: Event2Type.ParametricValue,
assetId,
configuration,
parametricId,
parametricValue
};
this.reportEvent(event);
});
}
load({

@@ -260,0 +362,0 @@ playerType,

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