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

zeanium-node

Package Overview
Dependencies
Maintainers
1
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zeanium-node - npm Package Compare versions

Comparing version 0.6.4 to 0.6.5

2

package.json
{
"name": "zeanium-node",
"version": "0.6.4",
"version": "0.6.5",
"description": "Zeanium for Node.js, simple http server and custome your business.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -48,4 +48,4 @@ /**

},
getSelectFields: function (fields){
fields = fields;
getSelectFields: function (inFields){
var fields = inFields||[];
var _props = this.getProperties();

@@ -68,2 +68,3 @@ if(typeof fields == 'function'){

zn.each(fields, function (field, index){
field = field.trim();
if((field).toString().indexOf(' as ')!=-1){

@@ -78,3 +79,3 @@ _fields.push(field);

if(!_prop){
return false;
return -1;
}

@@ -81,0 +82,0 @@ _format = _prop.format;

@@ -77,6 +77,4 @@ /**

if('OPTIONS' == request.method){
var _name = _package.name + '@' + _package.version,
_origin = this._request._serverRequest.headers.origin || this._request._serverRequest.headers.host || this._request._serverRequest.headers.Host || '';
response.writeHead(200, {
'Access-Control-Allow-Origin': _origin,
'Access-Control-Allow-Origin': (request.headers.origin || request.headers.host || request.headers.Host || ''),
'Access-Control-Allow-Methods': 'POST, GET, OPTIONS, DELETE, PUT',

@@ -86,3 +84,3 @@ 'Access-Control-Allow-Headers': 'Accept,Accept-Charset,Accept-Encoding,Accept-Language,Connection,Content-Type,Cookie,DNT,Host,Keep-Alive,Origin,Referer,User-Agent,X-CSRF-Token,X-Requested-With',

'Access-Control-Max-Age': '3600',//一个小时时间
'X-Powered-By': _name,
'X-Powered-By': (_package.name + '@' + _package.version),
'Content-Type': 'text/html;charset=utf-8',

@@ -98,3 +96,3 @@ 'Trailer': 'Content-MD5'

} catch (e){
zn.error('HttpServer.js Line - 61 ' + e.message);
zn.error('HttpServer.js __onRequest error: ' + e.message);
console.log(e.stack);

@@ -101,0 +99,0 @@ }

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