@salesforce/lds-adapters-community-seo 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.
- package/dist/es/es2018/community-seo.js +6 -13
- package/package.json +1 -1
- package/sfdc/index.js +7 -14
|
@@ -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$1, create: ObjectCreate$1 } = Object;
|
|
@@ -232,18 +232,11 @@ function keyBuilder(luvio, config) {
|
|
|
232
232
|
}
|
|
233
233
|
function typeCheckConfig(untrustedConfig) {
|
|
234
234
|
const config = {};
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
if (typeof untrustedConfig_recordId === 'string') {
|
|
241
|
-
config.recordId = untrustedConfig_recordId;
|
|
242
|
-
}
|
|
243
|
-
const untrustedConfig_fields = untrustedConfig.fields;
|
|
244
|
-
if (typeof untrustedConfig_fields === 'string') {
|
|
245
|
-
config.fields = untrustedConfig_fields;
|
|
246
|
-
}
|
|
235
|
+
typeCheckScalars(untrustedConfig, config, {
|
|
236
|
+
communityId: 0 /* String */,
|
|
237
|
+
recordId: 0 /* String */,
|
|
238
|
+
fields: 0 /* String */,
|
|
239
|
+
});
|
|
247
240
|
return config;
|
|
248
241
|
}
|
|
249
242
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
package/package.json
CHANGED
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$1, create: ObjectCreate$1 } = Object;
|
|
@@ -242,18 +242,11 @@ function keyBuilder(luvio, config) {
|
|
|
242
242
|
}
|
|
243
243
|
function typeCheckConfig(untrustedConfig) {
|
|
244
244
|
const config = {};
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
if (typeof untrustedConfig_recordId === 'string') {
|
|
251
|
-
config.recordId = untrustedConfig_recordId;
|
|
252
|
-
}
|
|
253
|
-
const untrustedConfig_fields = untrustedConfig.fields;
|
|
254
|
-
if (typeof untrustedConfig_fields === 'string') {
|
|
255
|
-
config.fields = untrustedConfig_fields;
|
|
256
|
-
}
|
|
245
|
+
typeCheckScalars(untrustedConfig, config, {
|
|
246
|
+
communityId: 0 /* String */,
|
|
247
|
+
recordId: 0 /* String */,
|
|
248
|
+
fields: 0 /* String */,
|
|
249
|
+
});
|
|
257
250
|
return config;
|
|
258
251
|
}
|
|
259
252
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -363,4 +356,4 @@ withDefaultLuvio((luvio) => {
|
|
|
363
356
|
});
|
|
364
357
|
|
|
365
358
|
export { getRecordSeoProperties, getRecordSeoProperties_imperative };
|
|
366
|
-
// version: 1.
|
|
359
|
+
// version: 1.208.0-027673bd6
|