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

barbe

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

barbe - npm Package Compare versions

Comparing version 3.0.5 to 3.0.6

18

lib/index.js
"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"

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