Skip to content

Commit 0e3d4df

Browse files
committed
bump customerio-gist-web to 3.19.0 (includes types)
1 parent a97ec86 commit 0e3d4df

File tree

4 files changed

+15
-10
lines changed

4 files changed

+15
-10
lines changed

packages/browser/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"@lukeed/uuid": "^2.0.0",
5353
"@segment/analytics.js-video-plugins": "^0.2.1",
5454
"@segment/facade": "^3.4.9",
55-
"customerio-gist-web": "3.18.3",
55+
"customerio-gist-web": "3.19.0",
5656
"dset": "^3.1.2",
5757
"js-cookie": "3.0.1",
5858
"node-fetch": "^2.6.7",

packages/browser/src/plugins/in-app-plugin/__tests__/index.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ describe('Customer.io In-App Plugin', () => {
3535
}
3636
},
3737
off: jest.fn(),
38+
dispatch: jest.fn(),
3839
}
3940

4041
const options: CustomerioSettings = { apiKey: 'foo' }

packages/browser/src/plugins/in-app-plugin/index.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export function InAppPlugin(settings: InAppPluginSettings): Plugin {
7373
deliveryId: deliveryId,
7474
message: {
7575
dismiss: function () {
76-
Gist.dismissMessage(message?.instanceId)
76+
void Gist.dismissMessage(message?.instanceId)
7777
},
7878
},
7979
})
@@ -121,7 +121,7 @@ export function InAppPlugin(settings: InAppPluginSettings): Plugin {
121121
actionValue: params.action,
122122
message: {
123123
dismiss: function () {
124-
Gist.dismissMessage(params.message.instanceId)
124+
void Gist.dismissMessage(params.message.instanceId)
125125
},
126126
},
127127
})
@@ -179,7 +179,7 @@ export function InAppPlugin(settings: InAppPluginSettings): Plugin {
179179
const page: string =
180180
ctx.event?.properties?.name ?? ctx.event?.properties?.url
181181
if (typeof page === 'string' && page.length > 0) {
182-
Gist.setCurrentRoute(page)
182+
void Gist.setCurrentRoute(page)
183183
}
184184

185185
return ctx
@@ -265,7 +265,11 @@ function _handleInboxMessageAction(
265265
action: string
266266
) {
267267
const deliveryId = message?.deliveryId
268-
if (action === 'opened' && typeof deliveryId !== 'undefined' && deliveryId !== '') {
268+
if (
269+
action === 'opened' &&
270+
typeof deliveryId !== 'undefined' &&
271+
deliveryId !== ''
272+
) {
269273
void analyticsInstance.track(JourneysEvents.Metric, {
270274
deliveryId: message.deliveryId,
271275
metric: JourneysEvents.Opened,

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ __metadata:
777777
aws-sdk: ^2.814.0
778778
circular-dependency-plugin: ^5.2.2
779779
compression-webpack-plugin: ^8.0.1
780-
customerio-gist-web: 3.18.3
780+
customerio-gist-web: 3.19.0
781781
dset: ^3.1.2
782782
execa: ^4.1.0
783783
flat: ^5.0.2
@@ -5632,12 +5632,12 @@ __metadata:
56325632
languageName: node
56335633
linkType: hard
56345634

5635-
"customerio-gist-web@npm:3.18.3":
5636-
version: 3.18.3
5637-
resolution: "customerio-gist-web@npm:3.18.3"
5635+
"customerio-gist-web@npm:3.19.0":
5636+
version: 3.19.0
5637+
resolution: "customerio-gist-web@npm:3.19.0"
56385638
dependencies:
56395639
uuid: ^8.3.2
5640-
checksum: 6c58ef8c34de192490babcfbc2d25744916e89f5218d34f4621a96c3a25fa9531eb989f4da7f79b821947f4c43a4c1805487208a904d6f078f5a2f60a4660b5c
5640+
checksum: e61f522854a8130f0033e1da3e79f844b2bd878635c954eda0d2678f2013b0367073fce3a7a13e7357b29dcee3dbdd0fb670343a9db1e7b9c72a50fec53f01a9
56415641
languageName: node
56425642
linkType: hard
56435643

0 commit comments

Comments
 (0)