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

string.format

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

string.format - npm Package Compare versions

Comparing version 1.2.5 to 1.3.0

9

index.js

@@ -22,3 +22,3 @@ /* jslint node: true */

try {
replace = eval(capture);
replace = contextEval(params,capture);
replace = JSON.decycled(replace);

@@ -48,2 +48,9 @@ if(typeof replace === 'string'){

return replaced;
}
function contextEval($__context,$__evaluation){
for(var i=0,k=Object.keys($__context),l=k.length;i<l;i++){
eval("var "+k[i]+" = $__context['"+k[i]+"'];");
}
return eval($__evaluation);
}

2

package.json
{
"name": "string.format",
"description": "String prototype method -> 'Hello {name}!'.format({name:'Homer'});",
"version": "1.2.5",
"version": "1.3.0",
"author": {

@@ -6,0 +6,0 @@ "name": "Bifuer",

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