creo-flow-extensions-base 1.0.0-dev.2 → 1.0.0-dev.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/lib/api/index.js +3 -2
- package/lib/config/dev/index.d.ts +3 -0
- package/lib/config/dev/index.js +6 -0
- package/lib/config/index.d.ts +3 -0
- package/lib/config/index.js +6 -0
- package/lib/config/prod/index.d.ts +3 -0
- package/lib/config/prod/index.js +6 -0
- package/lib/config/qa/index.d.ts +3 -0
- package/lib/config/qa/index.js +6 -0
- package/package.json +2 -5
package/lib/api/index.js
CHANGED
|
@@ -5,10 +5,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ownApi = void 0;
|
|
7
7
|
const axios_1 = __importDefault(require("axios"));
|
|
8
|
-
const
|
|
8
|
+
const config_1 = require("../config");
|
|
9
|
+
const baseApiUrl = config_1.config.baseApiUrl;
|
|
9
10
|
exports.ownApi = axios_1.default.create({
|
|
10
11
|
baseURL: baseApiUrl,
|
|
11
|
-
timeout: 60000 * 2,
|
|
12
|
+
timeout: 60000 * 2, // 120sec
|
|
12
13
|
maxContentLength: 200 * 1000 * 1024 * 1024, // 2 000 MB
|
|
13
14
|
});
|
|
14
15
|
const retryRequest = (error) => {
|
package/package.json
CHANGED
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "creo-flow-extensions-base",
|
|
3
|
-
"version": "1.0.0-dev.
|
|
3
|
+
"version": "1.0.0-dev.4",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"repository": "git@github.com:CloudDataHub/cdh-flow-extension-base.git",
|
|
6
6
|
"author": "Ilia Kobaliia",
|
|
7
7
|
"license": "ISC",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"clean": "rm -rf ./lib",
|
|
10
|
-
"build": "npm run clean && tsc"
|
|
11
|
-
"publishPackage": "npm run build && npm publish",
|
|
12
|
-
"publishPackageDev": "npm run build && npm publish --tag dev",
|
|
13
|
-
"publishPackageQa": "npm run build && npm publish --tag qa"
|
|
10
|
+
"build": "npm run clean && tsc"
|
|
14
11
|
},
|
|
15
12
|
"devDependencies": {
|
|
16
13
|
"@types/jsonwebtoken": "^9.0.5",
|