rjweb-server
Advanced tools
Comparing version 0.2.2 to 0.2.3
{ | ||
"name": "rjweb-server", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "Easy Way to create a Web Server in Node.js", | ||
"main": "index.js", | ||
"main": "index.ts", | ||
"scripts": { | ||
"test": "node index.js" | ||
"test": "node test.js" | ||
}, | ||
@@ -9,0 +9,0 @@ "repository": { |
<h1 align="center">Welcome to rjweb-server 👋</h1> | ||
<center> | ||
<a href="https://www.npmjs.com/package/rjweb-server" target="_blank"> | ||
<img alt="Version" src="https://img.shields.io/npm/v/web-server.svg"> | ||
</a> | ||
<img alt="Version" src="https://img.shields.io/npm/v/rjweb-server.svg"> | ||
</a>0 | ||
<a href="https://github.com/rotvproHD/NPM_WEB-SERVER#readme" target="_blank"> | ||
@@ -40,3 +40,3 @@ <img alt="Documentation" src="https://img.shields.io/badge/documentation-yes-brightgreen.svg" /> | ||
if (!ctr.query.has("name")) return ctr.print('please supply the name query!!') | ||
ctr.print(`Hello, ${ctr.query.get("name")}! How are you doing?`) | ||
@@ -43,0 +43,0 @@ }) |
@@ -12,5 +12,4 @@ const types = [ | ||
set(type, url, code) { | ||
if (!types.includes(type)) throw TypeError('No Valid Request Type: ' + type) | ||
if (!types.includes(type)) throw TypeError(`No Valid Request Type: ${type}\nPossible Values: ${types.toString()}`) | ||
this.urls[url] = { | ||
hasParams: (url.match(/[\:]([A-Za-z0-9]+)/g) === null ? false : true), | ||
array: url.split('/'), | ||
@@ -17,0 +16,0 @@ type, |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
9720
171
1