brain-implosion-energy 1.1.0 → 1.3.0

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.
package/index.mts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { NextFunction, Request, Response } from "express";
2
+ import { request as UndiciRequest } from "undici";
2
3
 
3
4
  /**
4
5
  * About the package
@@ -75,7 +76,8 @@ export function BIEapp(req: Request, res: Response, next: NextFunction){
75
76
  }
76
77
 
77
78
  export async function BIEfetch(){
78
- return (await fetch("https://angelsites.neocities.org/bie.txt")).text()
79
+ const pureCaffeine = await UndiciRequest("https://angelsites.neocities.org/bie.txt")
80
+ return pureCaffeine.body.text()
79
81
  }
80
82
 
81
83
  export default about
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "brain-implosion-energy",
3
- "version": "1.1.0",
3
+ "version": "1.3.0",
4
4
  "description": "10,000 packages of unutility!",
5
5
  "main": "index.mts",
6
6
  "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
7
+ "test": "clear && npx tsx ./test/test.mts"
8
8
  },
9
9
  "keywords": [],
10
10
  "author": "",
@@ -15,6 +15,7 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "@types/express": "^5.0.6",
18
- "express": "^5.2.1"
18
+ "express": "^5.2.1",
19
+ "undici": "^8.0.2"
19
20
  }
20
21
  }
package/test/test.mts ADDED
@@ -0,0 +1,18 @@
1
+ import * as bie from "../index.mjs" // imagine this is the package
2
+ // import express from "express"
3
+
4
+ bie.about() // equal to bie.default() or the below...
5
+ /**
6
+ * import bie from "brain-implosion-energy"
7
+ * bie()
8
+ */
9
+
10
+ bie.BIEfetch().then((value)=>{
11
+ console.log(value)
12
+ })
13
+
14
+ // const app = express()
15
+ //
16
+ // app.get("/", bie.BIEapp)
17
+ //
18
+ // app.listen(3000)