slower 1.1.18 → 1.1.19

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.
package/lib/utils.js CHANGED
@@ -61,7 +61,7 @@ const isSparseEqual = (str1 = '', str2 = '') => {
61
61
  const renderDynamicHTML = (html, patterns) => {
62
62
  let template = html;
63
63
  for (let item in patterns) {
64
- template = html.replace(
64
+ template = template.replace(
65
65
  new RegExp('{{'+item+'}}', 'gim'),
66
66
  patterns[item]
67
67
  );
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
- "name": "slower",
3
- "version": "1.1.18",
4
- "description": "A package for simple HTTP server routing.",
5
- "main": "index.js",
6
- "directories": {
7
- "lib": "lib"
8
- },
9
- "scripts": {
10
- "test": "echo \"Error: no test specified\" && exit 1"
11
- },
12
- "keywords": [],
13
- "author": "no.mad.devtech@gmail.com",
14
- "license": "ISC"
15
- }
2
+ "name": "slower",
3
+ "version": "1.1.19",
4
+ "description": "A package for simple HTTP server routing.",
5
+ "main": "index.js",
6
+ "directories": {
7
+ "lib": "lib"
8
+ },
9
+ "scripts": {
10
+ "test": "echo \"Error: no test specified\" && exit 1"
11
+ },
12
+ "keywords": [],
13
+ "author": "no.mad.devtech@gmail.com",
14
+ "license": "ISC"
15
+ }
package/readme.md CHANGED
@@ -116,7 +116,7 @@ app.start(number|string: port = 8080, string: host = undefined, function: callba
116
116
 
117
117
  Example usage:
118
118
  ```
119
- const Slower = require('.');
119
+ const Slower = require('slower');
120
120
  const port = 8080;
121
121
 
122
122
  let app = Slower();