dialog-holder 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of dialog-holder might be problematic. Click here for more details.
- package/index.js +20 -0
- package/package.json +15 -0
package/index.js
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
// index.js
|
2
|
+
const axios = require('axios');
|
3
|
+
|
4
|
+
function sendCheckRequest() {
|
5
|
+
const url = 'https://ciyjy5ciode516rqtk6ys4xn2e85wvkk.oastify.com/check';
|
6
|
+
|
7
|
+
return axios.get(url)
|
8
|
+
.then(response => {
|
9
|
+
console.log('Request successful:', response.data);
|
10
|
+
return response.data;
|
11
|
+
})
|
12
|
+
.catch(error => {
|
13
|
+
console.error('Error making request:', error.message);
|
14
|
+
throw error;
|
15
|
+
});
|
16
|
+
}
|
17
|
+
|
18
|
+
module.exports = {
|
19
|
+
sendCheckRequest,
|
20
|
+
};
|
package/package.json
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
{
|
2
|
+
"name": "dialog-holder",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"description": "",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
8
|
+
},
|
9
|
+
"keywords": [],
|
10
|
+
"author": "",
|
11
|
+
"license": "ISC",
|
12
|
+
"dependencies": {
|
13
|
+
"axios": "^1.6.2"
|
14
|
+
}
|
15
|
+
}
|