Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

shared-context

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shared-context - npm Package Compare versions

Comparing version
1.3.0
to
1.3.1-BETA-1
+7
-5
index.js

@@ -72,7 +72,9 @@ var setPrototypeOf = require('setprototypeof');

// Track which keys should be persisted through route changes as globals,
// non-configurable/modifiable but enumerable
Object.defineProperty(res.locals[localsVar], globalsVar, {
value: globalKeys,
enumerable: true
});
// non-configurable/modifiable but enumerable, only on backend
if (!_window) {
Object.defineProperty(res.locals[localsVar], globalsVar, {
value: globalKeys,
enumerable: true
});
}
}

@@ -79,0 +81,0 @@

{
"name": "shared-context",
"version": "1.3.0",
"version": "1.3.1-BETA-1",
"description": "Share data with the browser with automatic escaping",

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