@salesforce/pwa-kit-runtime 3.9.1 → 3.10.0-dev
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/pwa-kit-runtime",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.10.0-dev",
|
|
4
4
|
"description": "The PWAKit Runtime",
|
|
5
5
|
"homepage": "https://github.com/SalesforceCommerceCloud/pwa-kit/tree/develop/packages/pwa-kit-runtime#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@loadable/component": "^5.15.3",
|
|
49
|
-
"@salesforce/pwa-kit-dev": "3.
|
|
49
|
+
"@salesforce/pwa-kit-dev": "3.10.0-dev",
|
|
50
50
|
"@serverless/event-mocks": "^1.1.1",
|
|
51
51
|
"aws-lambda-mock-context": "^3.2.1",
|
|
52
52
|
"fs-extra": "^11.1.1",
|
|
53
|
-
"internal-lib-build": "3.
|
|
53
|
+
"internal-lib-build": "3.10.0-dev",
|
|
54
54
|
"nock": "^13.3.0",
|
|
55
55
|
"nodemon": "^2.0.22",
|
|
56
56
|
"sinon": "^13.0.2",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"supertest": "^4.0.2"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
|
-
"@salesforce/pwa-kit-dev": "3.
|
|
61
|
+
"@salesforce/pwa-kit-dev": "3.10.0-dev"
|
|
62
62
|
},
|
|
63
63
|
"peerDependenciesMeta": {
|
|
64
64
|
"@salesforce/pwa-kit-dev": {
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"publishConfig": {
|
|
73
73
|
"directory": "dist"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "d86dc7bea3fe03a0f475ecf1a0ab878374f07026"
|
|
76
76
|
}
|
|
@@ -59,7 +59,11 @@ class MetricsSender {
|
|
|
59
59
|
apiVersion: '2010-08-01',
|
|
60
60
|
// The AWS_REGION variable is defined by the Lambda
|
|
61
61
|
// environment.
|
|
62
|
-
region: process.env.AWS_REGION || 'us-east-1'
|
|
62
|
+
region: process.env.AWS_REGION || 'us-east-1',
|
|
63
|
+
// Setting maxRetries to 0 will prevent the SDK from retrying.
|
|
64
|
+
// This is necessary because under high load, there will be backpressure
|
|
65
|
+
// on the Lambda function, and causing severe performance issues (400-500ms latency)
|
|
66
|
+
maxRetries: 0
|
|
63
67
|
});
|
|
64
68
|
}
|
|
65
69
|
return this._CW;
|
|
@@ -119,7 +123,7 @@ class MetricsSender {
|
|
|
119
123
|
// Send the metrics
|
|
120
124
|
promises.push(this._putMetricData(cw, queue));
|
|
121
125
|
}
|
|
122
|
-
return Promise.all(promises).catch(
|
|
126
|
+
return Promise.all(promises).catch(/* istanbul ignore next */
|
|
123
127
|
err => _loggerInstance.default.warn(`Metrics: error during flush: ${err}`, {
|
|
124
128
|
namespace: 'metrics-sender.flush',
|
|
125
129
|
additionalProperties: {
|