Socket
Socket
Sign inDemoInstall

generator-maestro

Package Overview
Dependencies
540
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.5 to 1.1.6

1

app/templates/config/middleware.js

@@ -21,3 +21,2 @@ const checkAuth = function(req, res, next){

else {
console.log('no user')
res.cookie(global.PROJECT_NAME + '_user','null')

@@ -24,0 +23,0 @@ res.cookie('tiy_full_stack_app_name', global.PROJECT_NAME)

2

app/templates/src/scripts/init.js

@@ -15,3 +15,3 @@ const init = function() {

var app_name = findCookie('tiy_full_stack_app_name')
var user = findCookie(app_name + '_user')
var user = eval(findCookie(app_name + '_user'))
if (user) {

@@ -18,0 +18,0 @@ localStorage.setItem(app_name + '_user',user)

@@ -55,3 +55,3 @@ import Backbone from 'backbone'

UserAuthModel.getCurrentUser = function() {
return localStorage[app_name + '_user'] ? new User(JSON.parse(localStorage[app_name + '_user'])) : null
return JSON.parse(localStorage.getItem(app_name + '_user')) ? new User(JSON.parse(localStorage.getItem(app_name + '_user')) : null
}

@@ -58,0 +58,0 @@

{
"name": "generator-maestro",
"version": "1.1.5",
"version": "1.1.6",
"description": "generator for the full-stack Mongo-Express-React-Node framework Maestro",

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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc