rjweb-server
Advanced tools
Comparing version 0.1.0 to 0.1.1
15
index.js
@@ -9,2 +9,3 @@ const sleep = (milliseconds) => Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, milliseconds) | ||
types: { | ||
post: 'POST', | ||
get: 'GET' | ||
@@ -57,3 +58,3 @@ }, | ||
} else if (urlParam.startsWith(':')) { | ||
params.set(urlParam.replace(':', ''), reqParam) | ||
params.set(urlParam.replace(':', ''), decodeURIComponent(reqParam)) | ||
executeUrl = element.array.join('/') | ||
@@ -89,2 +90,14 @@ exists = true | ||
// Get POST Body | ||
/*res.write('') | ||
let reqBody = ''; | ||
res.on('data', (data) => { | ||
reqBody += data.toString() | ||
}) | ||
await new Promise((resolve) => { | ||
res.once('end', resolve) | ||
})*/ | ||
const ctr = { | ||
@@ -91,0 +104,0 @@ // Properties |
{ | ||
"name": "rjweb-server", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Easy Way to create a Web Server in Node.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
const types = [ | ||
'POST', | ||
'GET' | ||
@@ -3,0 +4,0 @@ ] |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8279
143