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

reusable-serverless-template

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reusable-serverless-template - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

3

dist/src/YamlTemplate.d.ts

@@ -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

5

dist/src/YamlTemplate.js

@@ -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)

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