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.12 to 0.1.13

5

framework/core/controller.js

@@ -374,2 +374,3 @@ "use strict";

* @param value {object|mixed}
* @param refreshSessionId {Boolean}
* @description

@@ -379,3 +380,3 @@ * Set session

*/
setSession: function Controller_setSession(key, value) {
setSession: function Controller_setSession(key, value, refreshSessionId) {
var session = component.get('storage/session'),

@@ -385,3 +386,3 @@ session_id = this.getCookie(session.getCookieKey());

throw new error.HttpError(500, {key: key, session_id: session_id}, 'Controller.getSession: key must be string type');
} else if (!session_id) {
} else if (!session_id || !!refreshSessionId) {
session_id = this.__requestApi__.uuid() + '_' + (new Date).getTime();

@@ -388,0 +389,0 @@ this.setCookie(session.getCookieKey(), session_id, session.getExpiredTime());

2

package.json

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

"description": "Powerful lightweight mvc framework for nodejs",
"version": "0.1.12",
"version": "0.1.13",
"dependencies": {

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

Sorry, the diff of this file is not supported yet

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