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 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 baseApiUrl = 'https://dev-api.creomnia.ai';
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) => {
@@ -0,0 +1,3 @@
1
+ export declare const config: {
2
+ baseApiUrl: string;
3
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.config = void 0;
4
+ exports.config = {
5
+ baseApiUrl: 'https://dev-api.creomnia.ai'
6
+ };
@@ -0,0 +1,3 @@
1
+ export declare const config: {
2
+ baseApiUrl: string;
3
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.config = void 0;
4
+ exports.config = {
5
+ baseApiUrl: 'https://dev-api.creomnia.ai'
6
+ };
@@ -0,0 +1,3 @@
1
+ export declare const config: {
2
+ baseApiUrl: string;
3
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.config = void 0;
4
+ exports.config = {
5
+ baseApiUrl: 'https://api.creomnia.ai'
6
+ };
@@ -0,0 +1,3 @@
1
+ export declare const config: {
2
+ baseApiUrl: string;
3
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.config = void 0;
4
+ exports.config = {
5
+ baseApiUrl: 'https://qa-api.creomnia.ai'
6
+ };
package/package.json CHANGED
@@ -1,16 +1,13 @@
1
1
  {
2
2
  "name": "creo-flow-extensions-base",
3
- "version": "1.0.0-dev.2",
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",