gj-boomlings-api 1.4.4 → 1.4.5

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/misc/gjReq.js +2 -2
  2. package/package.json +1 -1
package/misc/gjReq.js CHANGED
@@ -2,12 +2,12 @@ module.exports = {
2
2
  gjReq:
3
3
  async function(endpoint, data) {
4
4
  const { server } = require("../config.json");
5
- let headers = new Headers({
5
+ let headers = {
6
6
  "Content-Type": "application/x-www-form-urlencoded",
7
7
  "User-Agent": " ",
8
8
  "Accept-Encoding": "*",
9
9
  "Accept": "*/*"
10
- })
10
+ }
11
11
 
12
12
  let r = await fetch(`${server}${endpoint.endsWith(".php") ? endpoint.split(".php")[0] : endpoint}.php`, {
13
13
  method: 'POST',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gj-boomlings-api",
3
- "version": "1.4.4",
3
+ "version": "1.4.5",
4
4
  "description": "A light-weight Geometry Dash API wrapper",
5
5
  "main": "index.js",
6
6
  "scripts": {