add curlirize
This commit is contained in:
parent
fb7eea3dfe
commit
e9b1582539
|
@ -18,6 +18,7 @@
|
|||
"@types/winston": "^2.4.4",
|
||||
"awesome-typescript-loader": "^5.2.1",
|
||||
"axios": "0.19.0",
|
||||
"axios-curlirize": "^1.3.4",
|
||||
"axios-logger": "^2.3.0",
|
||||
"backpack-core": "^0.8.4",
|
||||
"cors": "2.8.5",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import axios from "axios"
|
||||
import curlirize from 'axios-curlirize';
|
||||
import cors from "cors"
|
||||
import express, { Request, Response } from "express"
|
||||
import fileUpload, { UploadedFile } from "express-fileupload"
|
||||
|
@ -12,6 +13,7 @@ import shortid from "shortid"
|
|||
import { Logger } from "winston"
|
||||
import logger from "./logger"
|
||||
|
||||
curlirize(axios);
|
||||
|
||||
// import * as AxiosLogger from 'axios-logger'
|
||||
// AxiosLogger.setGlobalConfig({
|
||||
|
|
|
@ -2815,6 +2815,11 @@ aws4@^1.8.0:
|
|||
resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.9.0.tgz#24390e6ad61386b0a747265754d2a17219de862c"
|
||||
integrity sha512-Uvq6hVe90D0B2WEnUqtdgY1bATGz3mw33nH9Y+dmA+w5DHvUmBgkr5rM/KCHpCsiFNRUfokW/szpPPgMK2hm4A==
|
||||
|
||||
axios-curlirize@^1.3.4:
|
||||
version "1.3.4"
|
||||
resolved "https://registry.yarnpkg.com/axios-curlirize/-/axios-curlirize-1.3.4.tgz#399ca88e2e4a3f39aefe9fd81576c4bb2124e872"
|
||||
integrity sha512-IxZqHdzKZcPFye1B7saIXcs7zbObRCLNBQWKC+tCQgxl0K57XRosejWDdeVYf00LeLp0SVMZNel2GzL3XPFe1g==
|
||||
|
||||
axios-logger@^2.3.0:
|
||||
version "2.3.0"
|
||||
resolved "https://registry.yarnpkg.com/axios-logger/-/axios-logger-2.3.0.tgz#7c7b0891f71e691d72ef5ab143f2921fedec5196"
|
||||
|
|
Reference in New Issue