@cerema/cadriciel 1.6.0 → 1.6.1-beta

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/cli.js CHANGED
@@ -13,7 +13,10 @@ const axios = require('axios'); // For making HTTP requests.
13
13
  // Locating the '.cadriciel' directory starting from the current working directory.
14
14
  const CADRICIEL_PATH = findCadricielDir(process.cwd());
15
15
  const CADRICIEL_COMMAND = 'cad';
16
- const CADRICIEL_PERMALINK =
16
+ let CADRICIEL_PERMALINK = '';
17
+ const pkg = require(path.join(__dirname, 'package.json'));
18
+
19
+ CADRICIEL_PERMALINK =
17
20
  'https://gist.githubusercontent.com/zucatti/08b37516b23c08028a2b07694f0329b6/raw/cadriciel-url.json';
18
21
  global.CADRICIEL_URI = '';
19
22
  //global.CADRICIEL_URI = 'http://localhost:3000/api';
@@ -509,7 +512,9 @@ const checkCachePermaLink = async () => {
509
512
 
510
513
  const cachedData = getCachedData();
511
514
  if (cachedData) {
512
- global.CADRICIEL_URI = cachedData.api + '/api';
515
+ if (pkg.version.indexOf('-beta') > -1)
516
+ global.CADRICIEL_URI = cachedData['api-recette'] + '/api';
517
+ else global.CADRICIEL_URI = cachedData.api + '/api';
513
518
  }
514
519
  };
515
520
 
package/lib/cadriciel.js CHANGED
@@ -21,7 +21,7 @@ class CadricielAPI {
21
21
  }
22
22
  this.client = axios.create({
23
23
  baseURL: baseURL,
24
- timeout: 10000,
24
+ timeout: 3600000,
25
25
  headers: { Authorization: 'Bearer ' + token },
26
26
  httpsAgent: httpsAgent,
27
27
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cerema/cadriciel",
3
- "version": "1.6.0",
3
+ "version": "1.6.1-beta",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "npm": ">=8.0.0",
@@ -11,13 +11,13 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "adm-zip": "^0.5.10",
14
- "axios": "^1.5.1",
14
+ "axios": "^1.7.9",
15
15
  "boxen": "5.1.2",
16
16
  "chalk-v2": "^1.0.2",
17
17
  "cli-progress": "^3.12.0",
18
18
  "commander": "^10.0.0",
19
19
  "dotenv": "^16.3.1",
20
- "express": "^4.18.2",
20
+ "express": "^4.21.2",
21
21
  "figlet": "^1.5.2",
22
22
  "fs-extra": "^11.2.0",
23
23
  "inquirer": "8.2.5",
@@ -26,7 +26,7 @@
26
26
  "listr": "^0.14.3",
27
27
  "log-beautify": "^1.2.0",
28
28
  "mkdirp": "^3.0.1",
29
- "nanoid": "^3.3.6",
29
+ "nanoid": "^3.0.0",
30
30
  "ora": "^5.4.1",
31
31
  "prompts": "^2.4.2",
32
32
  "recursive-readdir": "^2.2.3",