New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

jsmartier

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsmartier - npm Package Compare versions

Comparing version 0.2.3 to 0.2.4

2

jsmartier.js

@@ -5,3 +5,3 @@ /**

*/
console.log('jsmartier version 0.2.3');
console.log('jsmartier version 0.2.4');
// modules

@@ -8,0 +8,0 @@ var FS = require('fs');

@@ -5,3 +5,3 @@ {

"main": "jsmartier.js",
"version": "0.2.3",
"version": "0.2.4",
"scripts": {

@@ -8,0 +8,0 @@ "test": "echo \"Error: no test specified\" && exit 1"

@@ -52,3 +52,3 @@ var stringify = JSON.stringify;

forEach : function(vars, config, args, cb) {
var arr = args.from, $item = args.item, $name = args.name, buf = '';
var arr = args.from, $item = args.item, $key = args.key, $name = args.name, buf = '';
if (Object.prototype.toString.call(arr) === '[object Array]') {

@@ -67,2 +67,4 @@ arr.forEach(call);

$vars[$item] = item;
if ($key)
$vars[$key] = i;
var foreach = $vars.smarty.foreach = {};

@@ -72,4 +74,6 @@ foreach[$name] = {

};
var params =
buf += cb($vars, {
index : 1,
index : i,
iteration : i + 1

@@ -76,0 +80,0 @@ });

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