@salesforce/lds-adapters-platform-flow-builder 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.
- package/dist/es/es2018/platform-flow-builder.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, create: ObjectCreate } = Object;
|
|
@@ -782,18 +782,11 @@ function keyBuilder(luvio, config) {
|
|
|
782
782
|
}
|
|
783
783
|
function typeCheckConfig(untrustedConfig) {
|
|
784
784
|
const config = {};
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
if (typeof untrustedConfig_flowTriggerType === 'string') {
|
|
791
|
-
config.flowTriggerType = untrustedConfig_flowTriggerType;
|
|
792
|
-
}
|
|
793
|
-
const untrustedConfig_recordTriggerType = untrustedConfig.recordTriggerType;
|
|
794
|
-
if (typeof untrustedConfig_recordTriggerType === 'string') {
|
|
795
|
-
config.recordTriggerType = untrustedConfig_recordTriggerType;
|
|
796
|
-
}
|
|
785
|
+
typeCheckScalars(untrustedConfig, config, {
|
|
786
|
+
flowProcessType: 0 /* String */,
|
|
787
|
+
flowTriggerType: 0 /* String */,
|
|
788
|
+
recordTriggerType: 0 /* String */,
|
|
789
|
+
});
|
|
797
790
|
return config;
|
|
798
791
|
}
|
|
799
792
|
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, create: ObjectCreate } = Object;
|
|
@@ -792,18 +792,11 @@ function keyBuilder(luvio, config) {
|
|
|
792
792
|
}
|
|
793
793
|
function typeCheckConfig(untrustedConfig) {
|
|
794
794
|
const config = {};
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
if (typeof untrustedConfig_flowTriggerType === 'string') {
|
|
801
|
-
config.flowTriggerType = untrustedConfig_flowTriggerType;
|
|
802
|
-
}
|
|
803
|
-
const untrustedConfig_recordTriggerType = untrustedConfig.recordTriggerType;
|
|
804
|
-
if (typeof untrustedConfig_recordTriggerType === 'string') {
|
|
805
|
-
config.recordTriggerType = untrustedConfig_recordTriggerType;
|
|
806
|
-
}
|
|
795
|
+
typeCheckScalars(untrustedConfig, config, {
|
|
796
|
+
flowProcessType: 0 /* String */,
|
|
797
|
+
flowTriggerType: 0 /* String */,
|
|
798
|
+
recordTriggerType: 0 /* String */,
|
|
799
|
+
});
|
|
807
800
|
return config;
|
|
808
801
|
}
|
|
809
802
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -913,4 +906,4 @@ withDefaultLuvio((luvio) => {
|
|
|
913
906
|
});
|
|
914
907
|
|
|
915
908
|
export { getRules, getRules_imperative };
|
|
916
|
-
// version: 1.
|
|
909
|
+
// version: 1.208.1-9aaa359ad
|