Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@unifygtm/intent-client",
"version": "1.9.2",
"version": "1.9.3",
"description": "JavaScript client for interacting with the Unify Intent API in the browser.",
"keywords": [
"unify",
Expand Down
2 changes: 1 addition & 1 deletion src/client/storage/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const TEST_STORAGE_VALUE = 'test';
* @param value the value to parse
* @returns the safely parsed value
*/
export function safeParse<T = unknown>(value: string): T | string {
export function safeParse<T = string>(value: string): T | string {
try {
return JSON.parse(value);
} catch {
Expand Down
2 changes: 1 addition & 1 deletion src/client/unify-intent-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ export default class UnifyIntentClient {
* @param unify - the `UnifyIntentClient` to apply method calls to
*/
function flushUnifyQueue(unify: UnifyIntentClient, apiClient: UnifyApiClient) {
const queue: [string, unknown[]][] = Array.isArray(window.unify)
const queue = Array.isArray(window.unify)
? [...window.unify]
: Array.isArray(window.unifyBrowser)
? [...window.unifyBrowser]
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export type TrackEventData = Omit<
components['schemas']['TrackEvent'],
keyof Omit<AnalyticsEventBase, 'type'>
>;
export type TrackEventProperties = Pick<TrackEventData, 'properties'>;
export type TrackEventProperties = TrackEventData['properties'];

export type UCompany =
components['schemas']['CreateOrUpdateUCompanyAttributes'];
Expand Down