shared-context
Advanced tools
+7
-5
@@ -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 @@ |
+1
-1
| { | ||
| "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", |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
6838
0.77%71
2.9%1
Infinity%