Comparing version 0.2.2 to 0.2.3
@@ -28,3 +28,3 @@ module.exports = MiddlewareBase => class SPA extends MiddlewareBase { | ||
const root = path.resolve(options.directory || process.cwd()) | ||
const assetTest = new RegExp(options['spa.asset-test'] || '\\.') | ||
const assetTest = new RegExp(options.spaAssetTest || '\\.') | ||
this.emit('verbose', 'middleware.spa.config', { spa, root, assetTest }) | ||
@@ -31,0 +31,0 @@ return _.get('*', (ctx, route, next) => { |
{ | ||
"name": "lws-spa", | ||
"author": "Lloyd Brookes <75pound@gmail.com>", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "Middleware adding support for Single Page Applications to lws", | ||
@@ -24,7 +24,7 @@ "repository": "https://github.com/lwsjs/spa.git", | ||
"devDependencies": { | ||
"lws": "^1.0.0-pre2.2", | ||
"lws-static": "^0.3.1", | ||
"req-then": "^0.6.2", | ||
"lws": "^1.0.0-pre4.0", | ||
"lws-static": "^0.4.1", | ||
"req-then": "^0.6.4", | ||
"test-runner": "^0.4.0" | ||
} | ||
} |
@@ -14,3 +14,3 @@ const TestRunner = require('test-runner') | ||
const lws = new Lws() | ||
const server = lws.create({ | ||
const server = lws.listen({ | ||
port, | ||
@@ -17,0 +17,0 @@ stack: [ Spa, Static ], |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24966