mirror of https://github.com/186526/handlers.js
Compare commits
2 Commits
b1558bd9fa
...
fccf33d953
Author | SHA1 | Date |
---|---|---|
186526 | fccf33d953 | |
186526 | f199ef7f33 |
|
@ -8,7 +8,7 @@ jobs:
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [14.x, 16.x, 18.x]
|
node-version: [18.x, 20.x]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
134
package.json
134
package.json
|
@ -1,68 +1,68 @@
|
||||||
{
|
{
|
||||||
"name": "handlers.js",
|
"name": "handlers.js",
|
||||||
"description": "Handlers.js is a unified and lightweight web application framework for multiple platforms.",
|
"description": "Handlers.js is a unified and lightweight web application framework for multiple platforms.",
|
||||||
"version": "0.1.1",
|
"version": "0.1.1-2",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"webpack": "./dist/index.js",
|
"webpack": "./dist/index.js",
|
||||||
"browser": "./dist/main.serviceworker.js",
|
"browser": "./dist/main.serviceworker.js",
|
||||||
"module": "./dist/index.js",
|
"module": "./dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"files": [
|
"files": [
|
||||||
"dist",
|
"dist",
|
||||||
"LICENSE"
|
"LICENSE"
|
||||||
],
|
],
|
||||||
"author": "186526 <i@186526.xyz>",
|
"author": "186526 <i@186526.xyz>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/186526/handlers.js"
|
"url": "https://github.com/186526/handlers.js"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"web framework",
|
"web framework",
|
||||||
"lightweight",
|
"lightweight",
|
||||||
"cross-platform",
|
"cross-platform",
|
||||||
"unified"
|
"unified"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"path-to-regexp": "^6.2.1"
|
"path-to-regexp": "^6.2.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@cloudflare/workers-types": "^3.13.0",
|
"@cloudflare/workers-types": "^3.13.0",
|
||||||
"@types/jest": "^28.1.4",
|
"@types/jest": "^28.1.4",
|
||||||
"@types/node": "^18.0.0",
|
"@types/node": "^18.0.0",
|
||||||
"@webpack-cli/generators": "^2.5.0",
|
"@webpack-cli/generators": "^2.5.0",
|
||||||
"axios": "^0.27.2",
|
"axios": "^0.27.2",
|
||||||
"bluebird": "^3.7.2",
|
"bluebird": "^3.7.2",
|
||||||
"bun-types": "^0.1.4",
|
"bun-types": "^0.1.4",
|
||||||
"jest": "^28.1.2",
|
"jest": "^28.1.2",
|
||||||
"prettier": "^2.7.1",
|
"prettier": "^2.7.1",
|
||||||
"ts-jest": "^28.0.5",
|
"ts-jest": "^28.0.5",
|
||||||
"ts-loader": "^9.3.1",
|
"ts-loader": "^9.3.1",
|
||||||
"ts-node": "^10.8.1",
|
"ts-node": "^10.8.1",
|
||||||
"typescript": "^4.7.4",
|
"typescript": "^4.7.4",
|
||||||
"webpack": "^5.73.0",
|
"webpack": "^5.73.0",
|
||||||
"webpack-cli": "^4.10.0"
|
"webpack-cli": "^4.10.0"
|
||||||
},
|
},
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "yarn clean && yarn build:node && yarn build:serviceworker && yarn build:cfworker && yarn build:deno && yarn build:txiki && yarn build:bun",
|
"build": "yarn clean && yarn build:node && yarn build:serviceworker && yarn build:cfworker && yarn build:deno && yarn build:txiki && yarn build:bun",
|
||||||
"build:node": "BUILD_TARGET=node webpack",
|
"build:node": "BUILD_TARGET=node webpack",
|
||||||
"build:serviceworker": "BUILD_TARGET=serviceworker webpack",
|
"build:serviceworker": "BUILD_TARGET=serviceworker webpack",
|
||||||
"build:cfworker": "BUILD_TARGET=cfworker webpack",
|
"build:cfworker": "BUILD_TARGET=cfworker webpack",
|
||||||
"build:deno": "BUILD_TARGET=deno webpack",
|
"build:deno": "BUILD_TARGET=deno webpack",
|
||||||
"build:txiki": "BUILD_TARGET=txiki webpack",
|
"build:txiki": "BUILD_TARGET=txiki webpack",
|
||||||
"build:bun": "BUILD_TARGET=bun webpack",
|
"build:bun": "BUILD_TARGET=bun webpack",
|
||||||
"watch": "webpack --watch",
|
"watch": "webpack --watch",
|
||||||
"clean": "rm -rf ./dist",
|
"clean": "rm -rf ./dist",
|
||||||
"demo": "env NODE_ENV=development yarn build:node && node ./dist/main.node.js",
|
"demo": "env NODE_ENV=development yarn build:node && node ./dist/main.node.js",
|
||||||
"tsc": "tsc",
|
"tsc": "tsc",
|
||||||
"test:node": "jest ./test/node.test.ts",
|
"test:node": "jest ./test/node.test.ts",
|
||||||
"test:deno": "BUILD_TARGET=deno:test webpack && jest ./test/deno.test.ts",
|
"test:deno": "BUILD_TARGET=deno:test webpack && jest ./test/deno.test.ts",
|
||||||
"coverage": "jest --collectCoverage --",
|
"coverage": "jest --collectCoverage --",
|
||||||
"prepublish": "env NODE_ENV=production yarn build && yarn tsc"
|
"prepublish": "env NODE_ENV=production yarn build && yarn tsc"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=14.0.0"
|
"node": ">=18.0.0"
|
||||||
},
|
},
|
||||||
"type": "module"
|
"type": "module"
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,6 +35,7 @@ export class handler<RequestCustomType, ResponseCustomType> {
|
||||||
responseMessage = thisResponse;
|
responseMessage = thisResponse;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return responseMessage;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue