File tree Expand file tree Collapse file tree 3 files changed +23
-13
lines changed Expand file tree Collapse file tree 3 files changed +23
-13
lines changed Original file line number Diff line number Diff line change 52
52
"@lukeed/uuid" : " ^2.0.0" ,
53
53
"@segment/analytics.js-video-plugins" : " ^0.2.1" ,
54
54
"@segment/facade" : " ^3.4.9" ,
55
- "customerio-gist-web" : " 3.15.3 " ,
55
+ "customerio-gist-web" : " 3.15.6 " ,
56
56
"dset" : " ^3.1.2" ,
57
57
"js-cookie" : " 3.0.1" ,
58
58
"node-fetch" : " ^2.6.7" ,
Original file line number Diff line number Diff line change @@ -195,9 +195,9 @@ async function registerPlugins(
195
195
const schemaFilter = opts . plan ?. track
196
196
? await import (
197
197
/* webpackChunkName: "schemaFilter" */ '../plugins/schema-filter'
198
- ) . then ( ( mod ) => {
199
- return mod . schemaFilter ( opts . plan ?. track , legacySettings )
200
- } )
198
+ ) . then ( ( mod ) => {
199
+ return mod . schemaFilter ( opts . plan ?. track , legacySettings )
200
+ } )
201
201
: undefined
202
202
203
203
const mergedSettings = mergedOptions ( legacySettings , options )
@@ -209,12 +209,22 @@ async function registerPlugins(
209
209
tsubMiddleware
210
210
) . catch ( ( ) => [ ] )
211
211
212
- const inAppPlugin = options . integrations ?. [ 'Customer.io In-App Plugin' ] as InAppPluginSettings
212
+ const inAppPluginName = 'Customer.io In-App Plugin'
213
+ let inAppPluginSettings = mergedSettings [
214
+ inAppPluginName
215
+ ] as InAppPluginSettings
216
+ if ( ! inAppPluginSettings ) {
217
+ inAppPluginSettings = options . integrations ?. [
218
+ inAppPluginName
219
+ ] as InAppPluginSettings
220
+ }
221
+
222
+ const inAppPlugin = inAppPluginSettings
213
223
? await import (
214
224
/* webpackChunkName: "inAppPlugin" */ '../plugins/in-app-plugin'
215
- ) . then ( ( mod ) => {
216
- return mod . InAppPlugin ( options . integrations ?. [ 'Customer.io In-App Plugin' ] as InAppPluginSettings )
217
- } )
225
+ ) . then ( ( mod ) => {
226
+ return mod . InAppPlugin ( inAppPluginSettings )
227
+ } )
218
228
: undefined
219
229
220
230
const toRegister = [
Original file line number Diff line number Diff line change @@ -777,7 +777,7 @@ __metadata:
777
777
aws-sdk : ^2.814.0
778
778
circular-dependency-plugin : ^5.2.2
779
779
compression-webpack-plugin : ^8.0.1
780
- customerio-gist-web : 3.15.3
780
+ customerio-gist-web : 3.15.6
781
781
dset : ^3.1.2
782
782
execa : ^4.1.0
783
783
flat : ^5.0.2
@@ -5505,12 +5505,12 @@ __metadata:
5505
5505
languageName : node
5506
5506
linkType : hard
5507
5507
5508
- " customerio-gist-web@npm:3.15.3 " :
5509
- version : 3.15.3
5510
- resolution : " customerio-gist-web@npm:3.15.3 "
5508
+ " customerio-gist-web@npm:3.15.6 " :
5509
+ version : 3.15.6
5510
+ resolution : " customerio-gist-web@npm:3.15.6 "
5511
5511
dependencies :
5512
5512
uuid : ^8.3.2
5513
- checksum : c14cdefbf29e08fb1fde35f18843255071e0c71e5467e50e2614f93459ca3b1f18b2afc8b88c132bac3da854127271e90409dbb96b5d39e9bfcf6603c342f7b5
5513
+ checksum : 4ecbdfe4a24b06bc718401f063b7c825135fcb413b2d708fa8314505a65f9b698baca9d5425e75fb4cd4c9a61a513edba9e598780f7774847c7ed1284373eae2
5514
5514
languageName : node
5515
5515
linkType : hard
5516
5516
You can’t perform that action at this time.
0 commit comments