@salesforce/lds-adapters-industries-sustainability-reference-data-v2 1.207.0 → 1.208.0

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, typeCheckScalars, StoreKeyMap } from '@luvio/engine';
8
8
 
9
9
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
10
  const { keys: ObjectKeys, create: ObjectCreate } = Object;
@@ -348,26 +348,13 @@ function keyBuilder$1(luvio, config) {
348
348
  }
349
349
  function typeCheckConfig$1(untrustedConfig) {
350
350
  const config = {};
351
- const untrustedConfig_entitySection = untrustedConfig.entitySection;
352
- if (typeof untrustedConfig_entitySection === 'string') {
353
- config.entitySection = untrustedConfig_entitySection;
354
- }
355
- const untrustedConfig_referenceDataSource = untrustedConfig.referenceDataSource;
356
- if (typeof untrustedConfig_referenceDataSource === 'string') {
357
- config.referenceDataSource = untrustedConfig_referenceDataSource;
358
- }
359
- const untrustedConfig_loadType = untrustedConfig.loadType;
360
- if (typeof untrustedConfig_loadType === 'string') {
361
- config.loadType = untrustedConfig_loadType;
362
- }
363
- const untrustedConfig_order = untrustedConfig.order;
364
- if (typeof untrustedConfig_order === 'string') {
365
- config.order = untrustedConfig_order;
366
- }
367
- const untrustedConfig_size = untrustedConfig.size;
368
- if (typeof untrustedConfig_size === 'number' && Math.floor(untrustedConfig_size) === untrustedConfig_size) {
369
- config.size = untrustedConfig_size;
370
- }
351
+ typeCheckScalars(untrustedConfig, config, {
352
+ entitySection: 0 /* String */,
353
+ referenceDataSource: 0 /* String */,
354
+ loadType: 0 /* String */,
355
+ order: 0 /* String */,
356
+ size: 3 /* Integer */,
357
+ });
371
358
  return config;
372
359
  }
373
360
  function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-sustainability-reference-data-v2",
3
- "version": "1.207.0",
3
+ "version": "1.208.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "sustainability-reference-data-v2",
6
6
  "main": "dist/es/es2018/industries-sustainability-reference-data-v2.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, typeCheckScalars, StoreKeyMap } from 'force/luvioEngine';
18
18
 
19
19
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
20
20
  const { keys: ObjectKeys, create: ObjectCreate } = Object;
@@ -358,26 +358,13 @@ function keyBuilder$1(luvio, config) {
358
358
  }
359
359
  function typeCheckConfig$1(untrustedConfig) {
360
360
  const config = {};
361
- const untrustedConfig_entitySection = untrustedConfig.entitySection;
362
- if (typeof untrustedConfig_entitySection === 'string') {
363
- config.entitySection = untrustedConfig_entitySection;
364
- }
365
- const untrustedConfig_referenceDataSource = untrustedConfig.referenceDataSource;
366
- if (typeof untrustedConfig_referenceDataSource === 'string') {
367
- config.referenceDataSource = untrustedConfig_referenceDataSource;
368
- }
369
- const untrustedConfig_loadType = untrustedConfig.loadType;
370
- if (typeof untrustedConfig_loadType === 'string') {
371
- config.loadType = untrustedConfig_loadType;
372
- }
373
- const untrustedConfig_order = untrustedConfig.order;
374
- if (typeof untrustedConfig_order === 'string') {
375
- config.order = untrustedConfig_order;
376
- }
377
- const untrustedConfig_size = untrustedConfig.size;
378
- if (typeof untrustedConfig_size === 'number' && Math.floor(untrustedConfig_size) === untrustedConfig_size) {
379
- config.size = untrustedConfig_size;
380
- }
361
+ typeCheckScalars(untrustedConfig, config, {
362
+ entitySection: 0 /* String */,
363
+ referenceDataSource: 0 /* String */,
364
+ loadType: 0 /* String */,
365
+ order: 0 /* String */,
366
+ size: 3 /* Integer */,
367
+ });
381
368
  return config;
382
369
  }
383
370
  function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
@@ -737,4 +724,4 @@ withDefaultLuvio((luvio) => {
737
724
  });
738
725
 
739
726
  export { getEntityVersion, getEntityVersion_imperative, uploadEntityVersion };
740
- // version: 1.207.0-d542abb81
727
+ // version: 1.208.0-027673bd6