Comparing version 3.0.5 to 3.0.6
"use strict"; | ||
const regexEscape = require("regex-escape") | ||
, typpy = require("typpy") | ||
, iterateObject = require("iterate-object") | ||
; | ||
var regexEscape = require("regex-escape"), | ||
typpy = require("typpy"), | ||
iterateObject = require("iterate-object"); | ||
@@ -31,4 +30,4 @@ /** | ||
let deep = (obj, path) => { | ||
iterateObject(obj, (value, c) => { | ||
var deep = function deep(obj, path) { | ||
iterateObject(obj, function (value, c) { | ||
path.push(c); | ||
@@ -40,6 +39,3 @@ if (typpy(value, Object)) { | ||
} | ||
text = text.replace( | ||
new RegExp(arr[0] + path.join(".") + arr[1], "gm") | ||
, typpy(value, Function) ? value : String(value) | ||
); | ||
text = text.replace(new RegExp(arr[0] + path.join(".") + arr[1], "gm"), typpy(value, Function) ? value : String(value)); | ||
path.pop(); | ||
@@ -54,2 +50,2 @@ }); | ||
module.exports = barbe; | ||
module.exports = barbe; |
{ | ||
"name": "barbe", | ||
"version": "3.0.5", | ||
"version": "3.0.6", | ||
"description": "Like mustache, but simple, tiny and fast.", | ||
@@ -48,2 +48,3 @@ "main": "lib/index.js", | ||
"menu/", | ||
"scripts/", | ||
"cli.js", | ||
@@ -50,0 +51,0 @@ "index.js" |
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
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
3402
3
39
1
0