@salesforce/lds-adapters-analytics-tableau-embedding 1.207.0 → 1.208.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@
4
4
  * For full license text, see the LICENSE.txt file
5
5
  */
6
6
 
7
- import { serializeStructuredKey, deepFreeze, StoreKeyMap } from '@luvio/engine';
7
+ import { serializeStructuredKey, deepFreeze, StoreKeyMap, typeCheckScalars } from '@luvio/engine';
8
8
 
9
9
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
10
  const { keys: ObjectKeys, create: ObjectCreate } = Object;
@@ -456,18 +456,11 @@ function keyBuilder$1(luvio, config) {
456
456
  }
457
457
  function typeCheckConfig$1(untrustedConfig) {
458
458
  const config = {};
459
- const untrustedConfig_cb = untrustedConfig.cb;
460
- if (typeof untrustedConfig_cb === 'string') {
461
- config.cb = untrustedConfig_cb;
462
- }
463
- const untrustedConfig_siteId = untrustedConfig.siteId;
464
- if (typeof untrustedConfig_siteId === 'string') {
465
- config.siteId = untrustedConfig_siteId;
466
- }
467
- const untrustedConfig_tabUrl = untrustedConfig.tabUrl;
468
- if (typeof untrustedConfig_tabUrl === 'string') {
469
- config.tabUrl = untrustedConfig_tabUrl;
470
- }
459
+ typeCheckScalars(untrustedConfig, config, {
460
+ cb: 0 /* String */,
461
+ siteId: 0 /* String */,
462
+ tabUrl: 0 /* String */,
463
+ });
471
464
  return config;
472
465
  }
473
466
  function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
@@ -730,18 +723,11 @@ function createResourceParams(config) {
730
723
  }
731
724
  function typeCheckConfig(untrustedConfig) {
732
725
  const config = {};
733
- const untrustedConfig_cb = untrustedConfig.cb;
734
- if (typeof untrustedConfig_cb === 'string') {
735
- config.cb = untrustedConfig_cb;
736
- }
737
- const untrustedConfig_siteId = untrustedConfig.siteId;
738
- if (typeof untrustedConfig_siteId === 'string') {
739
- config.siteId = untrustedConfig_siteId;
740
- }
741
- const untrustedConfig_tabUrl = untrustedConfig.tabUrl;
742
- if (typeof untrustedConfig_tabUrl === 'string') {
743
- config.tabUrl = untrustedConfig_tabUrl;
744
- }
726
+ typeCheckScalars(untrustedConfig, config, {
727
+ cb: 0 /* String */,
728
+ siteId: 0 /* String */,
729
+ tabUrl: 0 /* String */,
730
+ });
745
731
  return config;
746
732
  }
747
733
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-analytics-tableau-embedding",
3
- "version": "1.207.0",
3
+ "version": "1.208.1",
4
4
  "description": "The APIs in this family are supporting embedding of Tableau vizualizations into Salesforce.",
5
5
  "license": "MIT",
6
6
  "main": "dist/es/es2018/analytics-tableau-embedding.js",
package/sfdc/index.js CHANGED
@@ -14,7 +14,7 @@
14
14
  /* proxy-compat-disable */
15
15
  import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
16
16
  import { withDefaultLuvio } from 'force/ldsEngine';
17
- import { serializeStructuredKey, deepFreeze, StoreKeyMap } from 'force/luvioEngine';
17
+ import { serializeStructuredKey, deepFreeze, StoreKeyMap, typeCheckScalars } from 'force/luvioEngine';
18
18
 
19
19
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
20
20
  const { keys: ObjectKeys, create: ObjectCreate } = Object;
@@ -466,18 +466,11 @@ function keyBuilder$1(luvio, config) {
466
466
  }
467
467
  function typeCheckConfig$1(untrustedConfig) {
468
468
  const config = {};
469
- const untrustedConfig_cb = untrustedConfig.cb;
470
- if (typeof untrustedConfig_cb === 'string') {
471
- config.cb = untrustedConfig_cb;
472
- }
473
- const untrustedConfig_siteId = untrustedConfig.siteId;
474
- if (typeof untrustedConfig_siteId === 'string') {
475
- config.siteId = untrustedConfig_siteId;
476
- }
477
- const untrustedConfig_tabUrl = untrustedConfig.tabUrl;
478
- if (typeof untrustedConfig_tabUrl === 'string') {
479
- config.tabUrl = untrustedConfig_tabUrl;
480
- }
469
+ typeCheckScalars(untrustedConfig, config, {
470
+ cb: 0 /* String */,
471
+ siteId: 0 /* String */,
472
+ tabUrl: 0 /* String */,
473
+ });
481
474
  return config;
482
475
  }
483
476
  function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
@@ -728,18 +721,11 @@ function createResourceParams(config) {
728
721
  }
729
722
  function typeCheckConfig(untrustedConfig) {
730
723
  const config = {};
731
- const untrustedConfig_cb = untrustedConfig.cb;
732
- if (typeof untrustedConfig_cb === 'string') {
733
- config.cb = untrustedConfig_cb;
734
- }
735
- const untrustedConfig_siteId = untrustedConfig.siteId;
736
- if (typeof untrustedConfig_siteId === 'string') {
737
- config.siteId = untrustedConfig_siteId;
738
- }
739
- const untrustedConfig_tabUrl = untrustedConfig.tabUrl;
740
- if (typeof untrustedConfig_tabUrl === 'string') {
741
- config.tabUrl = untrustedConfig_tabUrl;
742
- }
724
+ typeCheckScalars(untrustedConfig, config, {
725
+ cb: 0 /* String */,
726
+ siteId: 0 /* String */,
727
+ tabUrl: 0 /* String */,
728
+ });
743
729
  return config;
744
730
  }
745
731
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -816,4 +802,4 @@ withDefaultLuvio((luvio) => {
816
802
  });
817
803
 
818
804
  export { getEAS, getEAS_imperative, getJWT, getJWT_imperative, postJWT };
819
- // version: 1.207.0-d542abb81
805
+ // version: 1.208.1-9aaa359ad