@salesforce/lds-adapters-platform-named-credential 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, StoreKeyMap, deepFreeze } from '@luvio/engine';
|
|
7
|
+
import { serializeStructuredKey, StoreKeyMap, deepFreeze, typeCheckScalars } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -126,18 +126,11 @@ function createResourceParams$2(config) {
|
|
|
126
126
|
}
|
|
127
127
|
function typeCheckConfig$2(untrustedConfig) {
|
|
128
128
|
const config = {};
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
if (typeof untrustedConfig_principalName === 'string') {
|
|
135
|
-
config.principalName = untrustedConfig_principalName;
|
|
136
|
-
}
|
|
137
|
-
const untrustedConfig_principalType = untrustedConfig.principalType;
|
|
138
|
-
if (typeof untrustedConfig_principalType === 'string') {
|
|
139
|
-
config.principalType = untrustedConfig_principalType;
|
|
140
|
-
}
|
|
129
|
+
typeCheckScalars(untrustedConfig, config, {
|
|
130
|
+
externalCredential: 0 /* String */,
|
|
131
|
+
principalName: 0 /* String */,
|
|
132
|
+
principalType: 0 /* String */,
|
|
133
|
+
});
|
|
141
134
|
return config;
|
|
142
135
|
}
|
|
143
136
|
function validateAdapterConfig$2(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, StoreKeyMap, deepFreeze } from 'force/luvioEngine';
|
|
17
|
+
import { serializeStructuredKey, StoreKeyMap, deepFreeze, typeCheckScalars } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -136,18 +136,11 @@ function createResourceParams$2(config) {
|
|
|
136
136
|
}
|
|
137
137
|
function typeCheckConfig$2(untrustedConfig) {
|
|
138
138
|
const config = {};
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
if (typeof untrustedConfig_principalName === 'string') {
|
|
145
|
-
config.principalName = untrustedConfig_principalName;
|
|
146
|
-
}
|
|
147
|
-
const untrustedConfig_principalType = untrustedConfig.principalType;
|
|
148
|
-
if (typeof untrustedConfig_principalType === 'string') {
|
|
149
|
-
config.principalType = untrustedConfig_principalType;
|
|
150
|
-
}
|
|
139
|
+
typeCheckScalars(untrustedConfig, config, {
|
|
140
|
+
externalCredential: 0 /* String */,
|
|
141
|
+
principalName: 0 /* String */,
|
|
142
|
+
principalType: 0 /* String */,
|
|
143
|
+
});
|
|
151
144
|
return config;
|
|
152
145
|
}
|
|
153
146
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -1054,4 +1047,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1054
1047
|
});
|
|
1055
1048
|
|
|
1056
1049
|
export { deleteCredential, getExternalCredentials, getExternalCredentials_imperative, getOAuthCredentialAuthUrl };
|
|
1057
|
-
// version: 1.
|
|
1050
|
+
// version: 1.208.0-027673bd6
|