@salesforce/lds-adapters-industries-sustainability-reference-data 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;
|
|
@@ -195,14 +195,10 @@ function createResourceParams(config) {
|
|
|
195
195
|
}
|
|
196
196
|
function typeCheckConfig(untrustedConfig) {
|
|
197
197
|
const config = {};
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
}
|
|
202
|
-
const untrustedConfig_recordTypeId = untrustedConfig.recordTypeId;
|
|
203
|
-
if (typeof untrustedConfig_recordTypeId === 'string') {
|
|
204
|
-
config.recordTypeId = untrustedConfig_recordTypeId;
|
|
205
|
-
}
|
|
198
|
+
typeCheckScalars(untrustedConfig, config, {
|
|
199
|
+
category: 0 /* String */,
|
|
200
|
+
recordTypeId: 0 /* String */,
|
|
201
|
+
});
|
|
206
202
|
return config;
|
|
207
203
|
}
|
|
208
204
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-industries-sustainability-reference-data",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.208.1",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "Sustainability Reference Data",
|
|
6
6
|
"main": "dist/es/es2018/industries-sustainability-reference-data.js",
|
package/sfdc/index.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
16
|
-
import { serializeStructuredKey, deepFreeze, StoreKeyMap } from 'force/luvioEngine';
|
|
16
|
+
import { serializeStructuredKey, deepFreeze, StoreKeyMap, typeCheckScalars } from 'force/luvioEngine';
|
|
17
17
|
|
|
18
18
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
19
19
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -204,14 +204,10 @@ function createResourceParams(config) {
|
|
|
204
204
|
}
|
|
205
205
|
function typeCheckConfig(untrustedConfig) {
|
|
206
206
|
const config = {};
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
}
|
|
211
|
-
const untrustedConfig_recordTypeId = untrustedConfig.recordTypeId;
|
|
212
|
-
if (typeof untrustedConfig_recordTypeId === 'string') {
|
|
213
|
-
config.recordTypeId = untrustedConfig_recordTypeId;
|
|
214
|
-
}
|
|
207
|
+
typeCheckScalars(untrustedConfig, config, {
|
|
208
|
+
category: 0 /* String */,
|
|
209
|
+
recordTypeId: 0 /* String */,
|
|
210
|
+
});
|
|
215
211
|
return config;
|
|
216
212
|
}
|
|
217
213
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -274,4 +270,4 @@ withDefaultLuvio((luvio) => {
|
|
|
274
270
|
});
|
|
275
271
|
|
|
276
272
|
export { uploadReferenceData };
|
|
277
|
-
// version: 1.
|
|
273
|
+
// version: 1.208.1-9aaa359ad
|