Socket
Socket
Sign inDemoInstall

nx

Package Overview
Dependencies
Maintainers
1
Versions
1394
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nx - npm Package Compare versions

Comparing version 0.8.5 to 0.8.6

5

History.md

@@ -0,1 +1,6 @@

# 0.8.6
======================
* Fixed 多重リクエスト時応答不能になる場合があるバグを修正しました。
* Add リクエストキャッシュに対応(304コード)
# 0.8.5

@@ -2,0 +7,0 @@ ======================

1

lib/nx/app/controller/Abstract/init.js

@@ -16,2 +16,3 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */

// SMTP設定初期化

@@ -18,0 +19,0 @@ me.initSmtpConfig(req, res, function() {

5

lib/nx/app/controller/Abstract/initDatabaseConfig.js

@@ -14,6 +14,5 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */

var me = this,
paths = me.paths;
paths = me.paths,
path = paths.configs + '/database.js';
path = paths.configs + '/database.js';
NX.Path.exists(path, function(exists) {

@@ -20,0 +19,0 @@

@@ -14,6 +14,5 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */

var me = this,
paths = me.paths;
paths = me.paths,
path = paths.configs + '/smtp.js';
path = paths.configs + '/smtp.js';
NX.Path.exists(path, function(exists) {

@@ -20,0 +19,0 @@

@@ -37,2 +37,3 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */

'Content-Type': 'image/x-icon',
'Connection': 'keep-alive',
'Content-Length': data.length,

@@ -39,0 +40,0 @@ 'ETag': '"' + etag + '"',

@@ -16,2 +16,5 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */

// 標準出力へエラーを出力
console.log(err);
// エラードキュメントファイルパス取得

@@ -18,0 +21,0 @@ file = NX.WebView.errorDocument[500];

@@ -67,4 +67,6 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */

me.loadFile(me.paths.template, function(err, data, stat, ext) {
var tplpath = me.paths.template;
me.loadFile(tplpath, function(err, data, stat, ext) {
if(err) {

@@ -101,9 +103,42 @@

headers["Cache-Control"] = "public max-age=" + (maxAge / 1000);
}
res.writeHead(200, headers);
res.end(data);
if(req.headers['if-modified-since']) {
next();
NX.Fs.stat(tplpath, function(err, stat) {
stat = stat || {};
var httpdate = new Date(req.headers['if-modified-since']),
filetime = stat.mtime || new Date(1900, 1, 1);
if(httpdate >= stat.mtime) {
res.writeHead(304, headers);
res.end();
} else {
res.writeHead(200, headers);
res.end(data);
}
next();
});
} else {
res.writeHead(200, headers);
res.end(data);
next();
}
} else {
res.writeHead(200, headers);
res.end(data);
next();
}
};

@@ -110,0 +145,0 @@

@@ -5,3 +5,3 @@ {

"keywords": ["framework", "web", "Web Server", "Application Server", "NextJS", "Ext JS"],
"version" : "0.8.5",
"version" : "0.8.6",
"author" : "Kazuhiro Kotsutsumi <kotsutsumi@xenophy.com>",

@@ -8,0 +8,0 @@ "repository" : "git://github.com/xenophy/NextJS.git",

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