Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

akyuu

Package Overview
Dependencies
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

akyuu - npm Package Compare versions

Comparing version 0.4.0 to 0.5.0

example/demo/src/controllers/test_post.js

17

CHANGELOG.md

@@ -9,2 +9,3 @@ # Akyuu Changelog

<td>
<a href="#0.5.0">0.5.0</a><br />
<a href="#0.4.0">0.4.0</a><br />

@@ -16,4 +17,18 @@ <a href="#0.3.0">0.3.0</a><br />

<a id="0.5.0"></a>
## 2017-10-23, Version 0.5.0 (Current), @DuanPengfei
### Notable changes
* **Cluster**
* Add the dependency of akyuu-cluster and make logger to adapt cluster.
### Commits
* [[`2b08b1777f`](https://github.com/akyuujs/akyuu/commit/2b08b1777f6efcb2012ad0b59892be0071069cd5)] - **example**: fix jiandan page loading failed & some eslint error (@xiaoqiangsdl) [#33](https://github.com/akyuujs/akyuu/pull/33)
* [[`503a140b20`](https://github.com/akyuujs/akyuu/commit/503a140b203ae89b759a27a98684fd31b3189367)] - **service**: fix http use error (@mapleincode) [#31](https://github.com/akyuujs/akyuu/pull/31)
* [[`32417bc8a4`](https://github.com/akyuujs/akyuu/commit/32417bc8a41bff2c1e6b617e46344d53a3d9cd4a)] - **(SEMVER-MINOR) cluster, logger**: support for akyuu.startCluster() (@XadillaX) [#28](https://github.com/akyuujs/akyuu/pull/28)
<a id="0.4.0"></a>
## 2017-07-28, Version 0.4.0 (Current), @XadillaX
## 2017-07-28, Version 0.4.0, @XadillaX

@@ -20,0 +35,0 @@ ### Notable changes

@@ -18,2 +18,8 @@ /**

cluster: {
workerCount: 2,
entry: path.join(__dirname, "../../app.js"),
limit: 2
},
test: {

@@ -20,0 +26,0 @@ test1: true

8

example/demo/src/services/jiandan.js

@@ -14,5 +14,5 @@ /**

/**
* @class JiandanXXOO
* @class Jiandan
*/
class JiandanXXOO extends HTTP {
class Jiandan extends HTTP {
/**

@@ -22,3 +22,3 @@ * @constructor

constructor() {
super("http://jandan.net/ooxx");
super("https://jandan.net/ooxx");
}

@@ -87,2 +87,2 @@

module.exports = JiandanXXOO;
module.exports = Jiandan;

@@ -20,1 +20,3 @@ /**

module.exports = akyuu;
akyuu.startCluster = require("akyuu-cluster").startCluster.bind(akyuu, __dirname);

@@ -47,3 +47,3 @@ /**

// before init boot, file: xxx.before.js, if not before then continue
if(beforeInit && !files[i].endsWith('.before.js')) {
if(beforeInit && !files[i].endsWith(".before.js")) {
continue;

@@ -53,6 +53,6 @@ }

// after init boot, file: xxx.after.js || xxx.js, if not after then continue
if(!beforeInit && files[i].endsWith('.before.js')) {
if(!beforeInit && files[i].endsWith(".before.js")) {
continue;
}
if(!files[i].endsWith('.js')) {
if(!files[i].endsWith(".js")) {
continue;

@@ -59,0 +59,0 @@ }

@@ -38,4 +38,4 @@ /**

const apiClass = require(`${directory}/${filenames[i]}`);
const apiClassInstance = new apiClass();
const ApiClass = require(`${directory}/${filenames[i]}`);
const apiClassInstance = new ApiClass();
let apiClassName = apiClassInstance.constructor.name;

@@ -45,3 +45,3 @@ apiClassName = Case.snake(apiClassName);

this.services[apiClassName] = apiClassInstance;
this.serviceClasses[apiClassName] = apiClass;
this.serviceClasses[apiClassName] = ApiClass;
this.logger.info(`Service \`${apiName}\` loaded.`);

@@ -48,0 +48,0 @@ }

@@ -57,2 +57,3 @@ /**

for(let i = 0; i < this.transportConfig.length; i++) {
if(this.transportConfig[i].enabled === false) continue;
const type = _.startCase(this.transportConfig[i].type);

@@ -59,0 +60,0 @@ const transportOption = Object.assign({}, this.transportConfig[i], {

@@ -100,3 +100,3 @@ /**

request(method, router, params, callback) {
_request(method, router, params, callback) {
if(typeof params === "function") {

@@ -156,2 +156,4 @@ callback = params;

HTTPRequester.prototype.request = HTTPRequester.prototype._request;
module.exports = HTTPRequester;
{
"name": "akyuu",
"version": "0.4.0",
"version": "0.5.0",
"description": "Yet another web framework based on express.js named Akyuu.",

@@ -29,2 +29,3 @@ "main": "index.js",

"dependencies": {
"akyuu-cluster": "^1.0.0",
"async": "^2.1.5",

@@ -61,2 +62,2 @@ "case": "^1.5.2",

]
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc