@salesforce/lds-drafts 1.242.0 → 1.243.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/ldsDrafts.js
CHANGED
|
@@ -1167,9 +1167,6 @@ class AbstractResourceRequestActionHandler {
|
|
|
1167
1167
|
}
|
|
1168
1168
|
async buildPendingAction(request, queue) {
|
|
1169
1169
|
const targetId = await this.getIdFromRequest(request);
|
|
1170
|
-
if (targetId === undefined) {
|
|
1171
|
-
return Promise.reject(new Error('Cannot determine target id from the resource request'));
|
|
1172
|
-
}
|
|
1173
1170
|
const tag = this.buildTagForTargetId(targetId);
|
|
1174
1171
|
const handlerActions = queue.filter((x) => x.handler === this.handlerId);
|
|
1175
1172
|
if (request.method === 'post' && actionsForTag(tag, handlerActions).length > 0) {
|
|
@@ -35,7 +35,12 @@ export declare abstract class AbstractResourceRequestActionHandler<ResponseType,
|
|
|
35
35
|
abstract handlerId: string;
|
|
36
36
|
abstract canHandlePublish(key: string): boolean;
|
|
37
37
|
abstract canRepresentationContainDraftMetadata(representationName: string): boolean;
|
|
38
|
-
|
|
38
|
+
/**
|
|
39
|
+
* Extracts or synthesizes an id from a given resource request
|
|
40
|
+
* @throws if the id cannot be determined or synthesized
|
|
41
|
+
* @param request the request to get the id from
|
|
42
|
+
*/
|
|
43
|
+
abstract getIdFromRequest(request: ResourceRequest): Promise<string>;
|
|
39
44
|
abstract getIdFromResponseBody(responseBody: ResponseType): string;
|
|
40
45
|
abstract buildTagForTargetId(id: string): string;
|
|
41
46
|
abstract buildCacheKeysFromResponse(response: ResponseType): DurableStoreKeyMetadataMap;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-drafts",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.243.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "LDS Drafts",
|
|
6
6
|
"main": "dist/ldsDrafts.js",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"release:corejar": "yarn build && ../core-build/scripts/core.js --adapter=lds-drafts"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@luvio/engine": "0.150.
|
|
28
|
-
"@luvio/environments": "0.150.
|
|
27
|
+
"@luvio/engine": "0.150.2",
|
|
28
|
+
"@luvio/environments": "0.150.2",
|
|
29
29
|
"@salesforce/lds-utils-adapters": "*"
|
|
30
30
|
}
|
|
31
31
|
}
|