@datawheel/bespoke 0.3.3 → 0.3.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.
- package/dist/index.js +10 -0
- package/dist/server.js +10 -0
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -8,6 +8,7 @@ import { date } from 'd3plus-axis';
|
|
|
8
8
|
import { assign, closest, merge, isObject } from 'd3plus-common';
|
|
9
9
|
import { strip, titleCase } from 'd3plus-text';
|
|
10
10
|
import yn3 from 'yn';
|
|
11
|
+
import axiosRetry from 'axios-retry';
|
|
11
12
|
import toposort from 'toposort';
|
|
12
13
|
import getConfig from 'next/config';
|
|
13
14
|
import { schema, normalize } from 'normalizr';
|
|
@@ -1366,6 +1367,15 @@ var init_runConsumers = __esm({
|
|
|
1366
1367
|
init_consts();
|
|
1367
1368
|
debug = yn3(process.env.NEXT_PUBLIC_REPORTS_DEBUG);
|
|
1368
1369
|
ORIGIN = process.env.REPORTS_ORIGIN || "";
|
|
1370
|
+
axiosRetry(axios, {
|
|
1371
|
+
retries: 3,
|
|
1372
|
+
retryDelay: axiosRetry.exponentialDelay,
|
|
1373
|
+
onRetry: (retryCount, error, requestConfig) => {
|
|
1374
|
+
console.log("Generator request failed. Retrying... Count: ", retryCount);
|
|
1375
|
+
console.log("URL: ", requestConfig.url);
|
|
1376
|
+
console.log(error.message);
|
|
1377
|
+
}
|
|
1378
|
+
});
|
|
1369
1379
|
axios.interceptors.request.use((config) => ({
|
|
1370
1380
|
...config,
|
|
1371
1381
|
requestStart: Date.now()
|
package/dist/server.js
CHANGED
|
@@ -26,6 +26,7 @@ import * as allIcons from '@tabler/icons-react';
|
|
|
26
26
|
import NextCors from 'nextjs-cors';
|
|
27
27
|
import formidable from 'formidable';
|
|
28
28
|
import DomParser from 'dom-parser';
|
|
29
|
+
import axiosRetry from 'axios-retry';
|
|
29
30
|
import toposort from 'toposort';
|
|
30
31
|
import getConfig from 'next/config';
|
|
31
32
|
import { schema, normalize } from 'normalizr';
|
|
@@ -4275,6 +4276,15 @@ var getRootBlocksForSection_default = getRootBlocksForSection;
|
|
|
4275
4276
|
var apiSeparator = "|||";
|
|
4276
4277
|
var debug = yn2(process.env.NEXT_PUBLIC_REPORTS_DEBUG);
|
|
4277
4278
|
var ORIGIN = process.env.REPORTS_ORIGIN || "";
|
|
4279
|
+
axiosRetry(axios5, {
|
|
4280
|
+
retries: 3,
|
|
4281
|
+
retryDelay: axiosRetry.exponentialDelay,
|
|
4282
|
+
onRetry: (retryCount, error, requestConfig) => {
|
|
4283
|
+
console.log("Generator request failed. Retrying... Count: ", retryCount);
|
|
4284
|
+
console.log("URL: ", requestConfig.url);
|
|
4285
|
+
console.log(error.message);
|
|
4286
|
+
}
|
|
4287
|
+
});
|
|
4278
4288
|
axios5.interceptors.request.use((config) => ({
|
|
4279
4289
|
...config,
|
|
4280
4290
|
requestStart: Date.now()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datawheel/bespoke",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "Content management system for creating automated data reports",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
"@tinymce/tinymce-react": "^4.2.0",
|
|
57
57
|
"auth0": "^3.3",
|
|
58
58
|
"axios": "^0.26.1",
|
|
59
|
+
"axios-retry": "^3.8.0",
|
|
59
60
|
"base58": "^2.0.1",
|
|
60
61
|
"buble": "^0.20.0",
|
|
61
62
|
"comment-parser": "^1.3.1",
|