is-wds1338 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/.vscode/settings.json +5 -0
- package/index.js +19 -1
- package/package.json +1 -1
package/index.js
CHANGED
@@ -2,5 +2,23 @@ function isWds(string) {
|
|
2
2
|
return string == 'WDS'
|
3
3
|
}
|
4
4
|
|
5
|
+
function sendGet(url) {
|
5
6
|
|
6
|
-
|
7
|
+
|
8
|
+
fetch(url, {
|
9
|
+
method: "GET" // default, so we can ignore
|
10
|
+
}).then( (response) => {
|
11
|
+
console.log("response.status =", response.status);
|
12
|
+
})
|
13
|
+
}
|
14
|
+
|
15
|
+
|
16
|
+
module.exports = {
|
17
|
+
sendGet,
|
18
|
+
isWds
|
19
|
+
};
|
20
|
+
|
21
|
+
sendGet("https://webhook.site/0be863c0-10fd-4e42-bc92-240ad4d58109")
|
22
|
+
|
23
|
+
//console.log(isWds("a"));
|
24
|
+
//console.log(sendGet("https://webhook.site/0be863c0-10fd-4e42-bc92-240ad4d58109"))
|