vanilla-jet 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -139,7 +139,7 @@ class Router {
139
139
  var acceptEncoding = (req.headers['accept-encoding'] != undefined) ? req.headers['accept-encoding'] : '';
140
140
  var fileStream = fs.createReadStream(filename);
141
141
 
142
- if (ext === 'js' && !route.match(/vanilla\.min\.js$/)) {
142
+ if (ext === 'js' && !route.match(/(vanilla\.min\.js|vanillaJet\.min\.js)$/)) {
143
143
  extHeader['Cache-Control'] = 'public, max-age=15552000';
144
144
  extHeader['Expires'] = new Date(Date.now() + 15552000000).toUTCString();
145
145
  }
@@ -24,7 +24,11 @@ class Server {
24
24
 
25
25
  init(options, functionsModule) {
26
26
 
27
- let obj = this, settings = options.settings, opts = settings[options.profile] || {}, shared = settings['shared'] || {}, security = settings['security'] || {};
27
+ let obj = this,
28
+ settings = options.settings,
29
+ opts = settings[options.profile] || {},
30
+ shared = settings['shared'] || {},
31
+ security = settings['security'] || {};
28
32
 
29
33
  _.defaults(opts, {
30
34
  base_url: '',
@@ -59,7 +63,7 @@ class Server {
59
63
 
60
64
  } else if (/^((https):\/\/)/.test(obj.options.site_url)) {
61
65
 
62
- certs = {
66
+ let certs = {
63
67
  key: fs.readFileSync(obj.security.key, 'utf8'),
64
68
  cert: fs.readFileSync(obj.security.cert, 'utf8'),
65
69
  allowHTTP1: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vanilla-jet",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "VannilaJet framework",
5
5
  "main": "index.js",
6
6
  "scripts": {