@gimloader/build
Advanced tools
@@ -25,2 +25,10 @@ import http from 'node:http'; | ||
| const server = http.createServer((req, res) => { | ||
| if (req.method === 'OPTIONS') { | ||
| res.setHeader('Access-Control-Allow-Origin', '*'); | ||
| res.setHeader('Access-Control-Allow-Headers', 'uid, Content-Type'); | ||
| res.setHeader('Access-Control-Allow-Methods', 'GET'); | ||
| res.writeHead(204); | ||
| res.end(); | ||
| return; | ||
| } | ||
| if (req.url === "/getCode") { | ||
@@ -27,0 +35,0 @@ if (this.code) { |
+1
-1
| { | ||
| "name": "@gimloader/build", | ||
| "version": "1.3.0", | ||
| "version": "1.3.1", | ||
| "description": "A package to help build complex plugins for Gimloader", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 2 instances in 1 package
34620
1.07%783
1.03%