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

pope

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pope - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

5

package.json
{
"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

src/index.js

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