microsoft-graph 3.10.3 → 3.10.4

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.
@@ -74,7 +74,7 @@ async function execute(request) {
74
74
  retryAfterMilliseconds = requestedRetryAfterSeconds * 1000;
75
75
  }
76
76
  else {
77
- retryAfterMilliseconds += Math.random() * 1000; // Add some randomness to the retry delay to avoid thundering herd problem
77
+ retryAfterMilliseconds += Math.round(Math.random() * 1000); // Add some randomness to the retry delay to avoid thundering herd problem
78
78
  }
79
79
  errorLog += waitToString(retryAfterMilliseconds);
80
80
  await (0, sleep_ts_1.sleep)(retryAfterMilliseconds);
@@ -196,7 +196,7 @@ function responseToString(response) {
196
196
  return message;
197
197
  }
198
198
  function waitToString(milliseconds) {
199
- return ` ⏳ Wait ${milliseconds}ms for retry.\n`;
199
+ return ` ⏳ Wait ${milliseconds.toLocaleString()}ms for retry.\n`;
200
200
  }
201
201
  function errorObjectToString(obj) {
202
202
  const maxLength = 1024;
@@ -66,7 +66,7 @@ export async function execute(request) {
66
66
  retryAfterMilliseconds = requestedRetryAfterSeconds * 1000;
67
67
  }
68
68
  else {
69
- retryAfterMilliseconds += Math.random() * 1000; // Add some randomness to the retry delay to avoid thundering herd problem
69
+ retryAfterMilliseconds += Math.round(Math.random() * 1000); // Add some randomness to the retry delay to avoid thundering herd problem
70
70
  }
71
71
  errorLog += waitToString(retryAfterMilliseconds);
72
72
  await sleep(retryAfterMilliseconds);
@@ -188,7 +188,7 @@ function responseToString(response) {
188
188
  return message;
189
189
  }
190
190
  function waitToString(milliseconds) {
191
- return ` ⏳ Wait ${milliseconds}ms for retry.\n`;
191
+ return ` ⏳ Wait ${milliseconds.toLocaleString()}ms for retry.\n`;
192
192
  }
193
193
  function errorObjectToString(obj) {
194
194
  const maxLength = 1024;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microsoft-graph",
3
- "version": "3.10.3",
3
+ "version": "3.10.4",
4
4
  "description": "Microsoft GraphAPI SDK for NodeJS",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",