You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

node-powertools

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-powertools - npm Package Compare versions

Comparing version

to
1.2.2

4

dist/index.js

@@ -164,2 +164,6 @@ (function (root, factory) {

Powertools.template = function (string, template) {
if (!string) {
throw new Error('No string provided');
}
return string.replace(/\{([\w\s\.]*)\}/g, function (match, key) {

@@ -166,0 +170,0 @@ var value = getNestedValue(template, key);

2

package.json
{
"name": "node-powertools",
"version": "1.2.1",
"version": "1.2.2",
"description": "Powerful assistive functions for Node and Browser environments.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -164,2 +164,6 @@ (function (root, factory) {

Powertools.template = function (string, template) {
if (!string) {
throw new Error('No string provided');
}
return string.replace(/\{([\w\s\.]*)\}/g, function (match, key) {

@@ -166,0 +170,0 @@ var value = getNestedValue(template, key);