@salesforce/lds-network-fetch 1.413.0 → 1.414.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/ldsNetworkFetch.js +2 -20
- package/dist/types/main.d.ts +0 -1
- package/dist/types/utils.d.ts +0 -1
- package/package.json +2 -2
package/dist/ldsNetworkFetch.js
CHANGED
|
@@ -756,24 +756,6 @@ async function getDurableCacheDataForIncomingRequest(resourceRequest, storageAnd
|
|
|
756
756
|
}
|
|
757
757
|
}
|
|
758
758
|
}
|
|
759
|
-
// Copied from requestId generation on core
|
|
760
|
-
function generateRequestId() {
|
|
761
|
-
function guid() {
|
|
762
|
-
function s4() {
|
|
763
|
-
return Math.floor((1 + Math.random()) * 0x10000)
|
|
764
|
-
.toString(16)
|
|
765
|
-
.substring(1);
|
|
766
|
-
}
|
|
767
|
-
return s4() + s4();
|
|
768
|
-
}
|
|
769
|
-
return [
|
|
770
|
-
Math.round(window.performance.now() * 1000000),
|
|
771
|
-
guid(),
|
|
772
|
-
Math.round(Math.random() * 100000000),
|
|
773
|
-
]
|
|
774
|
-
.join('')
|
|
775
|
-
.substring(0, 18);
|
|
776
|
-
}
|
|
777
759
|
|
|
778
760
|
// noop implementation for when one is not provided
|
|
779
761
|
let internalRequestLogger = {
|
|
@@ -857,5 +839,5 @@ function instrument(newInstrumentation) {
|
|
|
857
839
|
Object.assign(instrumentation, newInstrumentation);
|
|
858
840
|
}
|
|
859
841
|
|
|
860
|
-
export {
|
|
861
|
-
// version: 1.
|
|
842
|
+
export { instrument, setupFetchNetworkAdapter, setupLexNetworkAdapter };
|
|
843
|
+
// version: 1.414.1-a1d9b7b404
|
package/dist/types/main.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export { setupFetchNetworkAdapter, setupLexNetworkAdapter } from './networkAdapter';
|
|
2
2
|
export type { RequestLogger } from './networkAdapter';
|
|
3
|
-
export { generateRequestId } from './utils';
|
|
4
3
|
export type { RequestInterceptor, ResponseInterceptor, Interceptors } from './utils';
|
|
5
4
|
export { instrument, FetchNetworkInstrumentation } from './instrumentation';
|
package/dist/types/utils.d.ts
CHANGED
|
@@ -22,5 +22,4 @@ export type Interceptors<Context = any> = {
|
|
|
22
22
|
};
|
|
23
23
|
export declare const platformFetchAdapterWithInterceptors: (resourceRequest: ResourceRequest, resourceRequestContext: ResourceRequestContext, requestInterceptors: RequestInterceptor[], interceptorContext: any) => Promise<FetchResponse<any>>;
|
|
24
24
|
export declare function getDurableCacheDataForIncomingRequest(resourceRequest: ResourceRequest, storageAndLogger: LdsStorageConfig | null, transactionKey: string): Promise<unknown>;
|
|
25
|
-
export declare function generateRequestId(): string;
|
|
26
25
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-network-fetch",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.414.1",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "LDS Network Adapter using fetch",
|
|
6
6
|
"main": "dist/ldsNetworkFetch.js",
|
|
@@ -38,6 +38,6 @@
|
|
|
38
38
|
"@luvio/network-adapter-fetch": "0.158.7"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@salesforce/lds-network-aura": "^1.
|
|
41
|
+
"@salesforce/lds-network-aura": "^1.414.1"
|
|
42
42
|
}
|
|
43
43
|
}
|