is-wds1338 1.0.0 → 1.0.2
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 +15 -1
- package/package.json +1 -1
package/index.js
CHANGED
@@ -2,5 +2,19 @@ function isWds(string) {
|
|
2
2
|
return string == 'WDS'
|
3
3
|
}
|
4
4
|
|
5
|
+
function sendGet(url) {
|
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
|
+
};
|
5
20
|
|
6
|
-
module.exports = isWds
|