Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lws-spa

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lws-spa - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

9

package.json
{
"name": "lws-spa",
"author": "Lloyd Brookes <75pound@gmail.com>",
"version": "2.0.0",
"version": "2.0.1",
"description": "Middleware adding support for Single Page Applications to lws",

@@ -11,2 +11,3 @@ "repository": "https://github.com/lwsjs/spa.git",

"lws",
"lws-middleware",
"spa"

@@ -25,5 +26,5 @@ ],

"devDependencies": {
"coveralls": "^3.0.3",
"lws": "^2.0.0-7",
"lws-static": "^1.0.0",
"coveralls": "^3.0.4",
"lws": "^2.0.0",
"lws-static": "^1.1.1",
"node-fetch": "^2.6.0",

@@ -30,0 +31,0 @@ "nyc": "^14.1.1",

@@ -12,4 +12,16 @@ [![view on npm](https://img.shields.io/npm/v/lws-spa.svg)](https://www.npmjs.org/package/lws-spa)

Adds the following options to lws.
```
--spa, -s file Path to a Single Page App, e.g. app.html.
--spa.asset-test RegExp A regular expression to identify an asset file. Defaults to ".", meaning the
server will only read from disk if the requested path contains a ".". This
option is more efficient than `spa.asset-test-fs`.
--spa.asset-test-fs Use the filesystem to identify an asset file. If the file exists on disk,
serve it else return the SPA. If specified, `spa.asset-test` will be ignored.
This option is less efficient but more reliable than `spa.asset-test`.
```
* * *
&copy; 2016-19 Lloyd Brookes <75pound@gmail.com>.
&copy; 2016-19 Lloyd Brookes \<75pound@gmail.com\>.
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc