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

mvcjs

Package Overview
Dependencies
Maintainers
1
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mvcjs - npm Package Compare versions

Comparing version 0.1.0-rc3 to 0.1.0-rc4

23

framework/core/request.js

@@ -300,13 +300,14 @@ "use strict";

key = key.toLowerCase();
value = Type.isString(value) ? value : value.toString();
if (this.hasHeader(key) && !Type.isArray(this.headers[key])) {
item = this.getHeader(key);
this.headers[key] = [];
this.headers[key].push(item);
this.headers[key].push(value);
} else if (this.hasHeader(key) && Type.isArray(this.headers[key])) {
this.headers[key].push(value);
} else {
this.headers[key] = value;
value = Type.isString(value) ? value : Type.isInitialized(value) ? value.toString() : null;
if (Type.isString(value)) {
if (this.hasHeader(key) && !Type.isArray(this.headers[key])) {
item = this.getHeader(key);
this.headers[key] = [];
this.headers[key].push(item);
this.headers[key].push(value);
} else if (this.hasHeader(key) && Type.isArray(this.headers[key])) {
this.headers[key].push(value);
} else {
this.headers[key] = value;
}
}

@@ -313,0 +314,0 @@ } else {

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

"description": "Powerful lightweight mvc framework for nodejs",
"version": "0.1.0-rc3",
"version": "0.1.0-rc4",
"dependencies": {

@@ -8,0 +8,0 @@ "mongoose": "3.8.x",

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