reusable-serverless-template
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -30,2 +30,5 @@ /** | ||
* It appends the indentation to every line of resolved file, based on the whitespaces before $file declaration | ||
* | ||
* file name, parameter names and values can not contain characters '{', ':', ',' or '=' | ||
* | ||
* @param content content with params | ||
@@ -32,0 +35,0 @@ * @param dir current directory absolute path |
@@ -96,2 +96,5 @@ "use strict"; | ||
* It appends the indentation to every line of resolved file, based on the whitespaces before $file declaration | ||
* | ||
* file name, parameter names and values can not contain characters '{', ':', ',' or '=' | ||
* | ||
* @param content content with params | ||
@@ -101,3 +104,3 @@ * @param dir current directory absolute path | ||
resolveFiles(content, dir) { | ||
const paramRegexpStr = '([\\t ]*)\\${tfile:([^:]+)(:(.*))?}'; | ||
const paramRegexpStr = '([\\t ]*)\\${tfile:([^:}]+)(:([^}]))?}'; | ||
const paramRegexp = new RegExp(paramRegexpStr, 'g'); //global to find all occurrences | ||
@@ -104,0 +107,0 @@ content = content.replace(paramRegexp, (match) => { |
{ | ||
"name": "reusable-serverless-template", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"main": "dist/src/index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -28,4 +28,6 @@ # Reusable serverless template | ||
Loads the specified file recursively and apply parameters to matched variables names specified using opt, and custom | ||
placeholders | ||
placeholders. | ||
Avoid using reserved characters for file names, parameter names and values ``{`` ``:`` ``,`` ``=`` | ||
**Syntax:** ``` tfile:[file path]:[parameters]```, where | ||
@@ -32,0 +34,0 @@ * _file_ a relative path to nested template file (relative to the directory of the top level file) |
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
25218
470
128