@cerema/cadriciel 1.4.16 → 1.4.17

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.
@@ -96,7 +96,6 @@ module.exports = (args) => {
96
96
  try {
97
97
  var response = await cadriciel.get('/login');
98
98
  } catch (e) {
99
- console.log(e);
100
99
  console.log(' ');
101
100
  console.log(
102
101
  chalk.red(' [AUTH]') +
@@ -114,7 +113,6 @@ module.exports = (args) => {
114
113
  response.token,
115
114
  async (err) => {
116
115
  if (err) {
117
- console.log(err);
118
116
  return res
119
117
  .status(500)
120
118
  .send("Erreur lors de l'écriture du token.");
@@ -136,7 +134,6 @@ module.exports = (args) => {
136
134
  );
137
135
  })
138
136
  .catch((error) => {
139
- console.log(error);
140
137
  res
141
138
  .status(500)
142
139
  .send("Erreur lors de l'échange du code d'autorisaton.");
package/lib/cadriciel.js CHANGED
@@ -13,7 +13,6 @@ class CadricielAPI {
13
13
  token = fs.readFileSync(HomeDir + '/account', 'utf-8');
14
14
  token = token.replace(/\n/g, '');
15
15
  } catch (e) {
16
- console.log(e);
17
16
  console.log(
18
17
  chalk.bold(' [AUTH] ') +
19
18
  chalk.red(
@@ -29,17 +28,11 @@ class CadricielAPI {
29
28
  timeout: 10000,
30
29
  headers: { Authorization: 'Bearer ' + token },
31
30
  });
32
- console.log({
33
- baseURL: baseURL,
34
- timeout: 10000,
35
- headers: { Authorization: 'Bearer ' + token },
36
- });
37
31
  }
38
32
 
39
33
  async get(url, params = {}) {
40
34
  try {
41
35
  const response = await this.client.get(url, { params });
42
- console.log(response);
43
36
  return response.data;
44
37
  } catch (error) {
45
38
  throw error;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cerema/cadriciel",
3
- "version": "1.4.16",
3
+ "version": "1.4.17",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "npm": ">=8.0.0",