@salesforce/lwc-adapters-uiapi 1.229.0-dev1 → 1.229.0-dev3
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/main.js +21 -10
- package/package.json +4 -4
package/dist/main.js
CHANGED
|
@@ -533,7 +533,7 @@ function createResourceParamsImpl(config, configMetadata) {
|
|
|
533
533
|
}
|
|
534
534
|
return resourceParams;
|
|
535
535
|
}
|
|
536
|
-
// engine version: 0.
|
|
536
|
+
// engine version: 0.146.0-dev3-502c4337
|
|
537
537
|
|
|
538
538
|
/**
|
|
539
539
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -19775,18 +19775,28 @@ const buildLayoutModeCacheSnapshot = (apiName, recordTypeId, layoutType, mode) =
|
|
|
19775
19775
|
* These are intermediate lookups to check if the record is in the L2 cache
|
|
19776
19776
|
* @param {Luvio} luvio
|
|
19777
19777
|
* @param {GetRecordLayoutTypeConfig} config
|
|
19778
|
-
* @param {BuildCachedSnapshot<BuildSnapshotContext} cachedSnapshot
|
|
19778
|
+
* @param {BuildCachedSnapshot<BuildSnapshotContext>} cachedSnapshot
|
|
19779
19779
|
*/
|
|
19780
19780
|
function makeCacheOnlySnapshot(luvio, config, adapterContext, cachedSnapshot) {
|
|
19781
|
-
return luvio.applyCachePolicy(
|
|
19782
|
-
|
|
19783
|
-
|
|
19784
|
-
|
|
19785
|
-
},
|
|
19786
|
-
}, { config, luvio, adapterContext }, cachedSnapshot,
|
|
19787
|
-
// this won't be invoked since we're requesting only-if-cached
|
|
19781
|
+
return luvio.applyCachePolicy(
|
|
19782
|
+
// Pass empty context so environment will use its default cache-policy
|
|
19783
|
+
{}, { config, luvio, adapterContext }, cachedSnapshot,
|
|
19784
|
+
// disallow hitting the network by returning a gateway timeout
|
|
19788
19785
|
() => {
|
|
19789
|
-
|
|
19786
|
+
return new Promise((resolve) => {
|
|
19787
|
+
resolve({
|
|
19788
|
+
state: 'Error',
|
|
19789
|
+
data: undefined,
|
|
19790
|
+
error: {
|
|
19791
|
+
body: undefined,
|
|
19792
|
+
headers: {},
|
|
19793
|
+
ok: false,
|
|
19794
|
+
status: 504,
|
|
19795
|
+
statusText: 'Gateway Timeout',
|
|
19796
|
+
errorType: 'fetchResponse',
|
|
19797
|
+
},
|
|
19798
|
+
});
|
|
19799
|
+
});
|
|
19790
19800
|
});
|
|
19791
19801
|
}
|
|
19792
19802
|
/**
|
|
@@ -50392,6 +50402,7 @@ function buildSelectionForField$7(source, reader, sel, variables, fragments, isC
|
|
|
50392
50402
|
}
|
|
50393
50403
|
if (fieldData === null) {
|
|
50394
50404
|
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
50405
|
+
reader.exitPath();
|
|
50395
50406
|
return sink;
|
|
50396
50407
|
}
|
|
50397
50408
|
const fieldType = getFieldType(sel);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lwc-adapters-uiapi",
|
|
3
|
-
"version": "1.229.0-
|
|
3
|
+
"version": "1.229.0-dev3",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "UIAPI adapters with LWC bindings",
|
|
6
6
|
"module": "dist/main.js",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"clean": "rm -rf dist src/generated"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@salesforce/lds-adapters-uiapi": "1.229.0-
|
|
34
|
+
"@salesforce/lds-adapters-uiapi": "1.229.0-dev3"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@luvio/lwc-luvio": "0.
|
|
38
|
-
"@salesforce/lds-default-luvio": "1.229.0-
|
|
37
|
+
"@luvio/lwc-luvio": "0.146.0-dev3",
|
|
38
|
+
"@salesforce/lds-default-luvio": "1.229.0-dev3"
|
|
39
39
|
}
|
|
40
40
|
}
|