Skip to content

Commit 8585ea8

Browse files
committed
feat: bump several cross & dev dependencies
1 parent a08a29e commit 8585ea8

File tree

8 files changed

+1688
-1318
lines changed

8 files changed

+1688
-1318
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ workflows:
99
jobs:
1010
build:
1111
docker:
12-
- image: circleci/node:16-stretch
12+
- image: cimg/node:20.11
1313
steps:
1414
- checkout
1515
- restore_cache:

.mocharc.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

.mocharc.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
reporter: spec
2+
ui: bdd
3+
enableSourceMaps: true,
4+
recursive: true
5+
exit: true
6+
timeout: 5000
7+
8+
file:
9+
- test/support/env.js
10+
11+
spec: test/**/*.test.{js,ts}

lib/oneflow.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
const Order = require('./models/Order');
22
const crypto = require('crypto');
3-
const URL = require('url');
43
const axios = require('axios');
5-
const axiosRetry = require('axios-retry');
4+
const axiosRetry = require('axios-retry').default;
65
const { isRetryableError, exponentialDelay } = require('./customRetry');
76

87
function OneFlowClient(baseUrl, token, secret, options = {}) {
@@ -26,7 +25,7 @@ function OneFlowClient(baseUrl, token, secret, options = {}) {
2625
}
2726

2827
function makeHeaders(url, method, options) {
29-
const parsedUrl = URL.parse(url);
28+
const parsedUrl = new URL(url);
3029
const pathname = parsedUrl.pathname;
3130
const timestamp = new Date().toISOString();
3231
const headers = {

0 commit comments

Comments
 (0)