Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "pope", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Micro templating engine for strings only.", | ||
@@ -27,5 +27,2 @@ "main": "index.js", | ||
}, | ||
"dependencies": { | ||
"npmlog": "^2.0.0" | ||
}, | ||
"directories": { | ||
@@ -32,0 +29,0 @@ "test": "test" |
@@ -9,4 +9,2 @@ 'use strict' | ||
const log = require('npmlog') | ||
/** | ||
@@ -37,3 +35,3 @@ * @description get nested properties from a given | ||
/** | ||
* @description parses a given template string and | ||
* @description parses a given template string and | ||
* replace dynamic placeholders with actual data | ||
@@ -55,4 +53,3 @@ * @method pope | ||
if(!value){ | ||
log.warn(item + ' not found in data object') | ||
formattedString = formattedString.replace(result[0], '') | ||
formattedString = formattedString.replace(result[0], '') | ||
}else{ | ||
@@ -69,2 +66,2 @@ formattedString = formattedString.replace(result[0], value) | ||
prop: prop | ||
} | ||
} |
0
5234
65
- Removednpmlog@^2.0.0
- Removedansi@0.3.1(transitive)
- Removedare-we-there-yet@1.1.7(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removeddelegates@1.0.0(transitive)
- Removedgauge@1.2.7(transitive)
- Removedhas-unicode@2.0.1(transitive)
- Removedinherits@2.0.4(transitive)
- Removedisarray@1.0.0(transitive)
- Removedlodash.pad@4.5.1(transitive)
- Removedlodash.padend@4.6.1(transitive)
- Removedlodash.padstart@4.6.1(transitive)
- Removednpmlog@2.0.4(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedreadable-stream@2.3.8(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedstring_decoder@1.1.1(transitive)
- Removedutil-deprecate@1.0.2(transitive)