@plaidev/karte-action-sdk 1.1.211 → 1.1.212

Sign up to get free protection for your applications and to get access to all the features.
@@ -2141,7 +2141,8 @@ function create(App, options = {
2141
2141
  window.addEventListener(ACTION_DESTROY_EVENT, handleDestroy);
2142
2142
  window.addEventListener('beforeunload', dispatchDestroyEvent, false);
2143
2143
  let modalCleanup = NOOP;
2144
- if (options.karteTemplate?.template_content_types.includes('script')) {
2144
+ if (options.karteTemplate?.template_type === 'script' ||
2145
+ options.karteTemplate?.template_content_types?.includes('script')) {
2145
2146
  runScript$1(options);
2146
2147
  }
2147
2148
  else {
package/dist/index.es.js CHANGED
@@ -2199,7 +2199,8 @@ function create(App, options = {
2199
2199
  window.addEventListener(ACTION_DESTROY_EVENT, handleDestroy);
2200
2200
  window.addEventListener('beforeunload', dispatchDestroyEvent, false);
2201
2201
  let modalCleanup = NOOP;
2202
- if (options.karteTemplate?.template_content_types.includes('script')) {
2202
+ if (options.karteTemplate?.template_type === 'script' ||
2203
+ options.karteTemplate?.template_content_types?.includes('script')) {
2203
2204
  runScript$1(options);
2204
2205
  }
2205
2206
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaidev/karte-action-sdk",
3
- "version": "1.1.211",
3
+ "version": "1.1.212",
4
4
  "author": "Plaid Inc.",
5
5
  "license": "Apache-2.0",
6
6
  "module": "./dist/index.es.js",