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

json-templater

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-templater - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

9

object.js

@@ -31,8 +31,2 @@ var renderString = require('./string');

switch (typeof input) {
// these types cannot be mutated
case 'boolean':
case 'number':
case 'undefined':
return input;
// object is slightly special if null we move on

@@ -45,2 +39,5 @@ case 'object':

return handler(input);
// all other types cannot be mutated
default:
return input;
}

@@ -47,0 +44,0 @@ }

{
"name": "json-templater",
"version": "1.0.1",
"version": "1.0.2",
"description": "Simple json/js object template strings",
"main": "template.js",
"scripts": {
"test": "./node_modules/.bin/mocha *_test.js"
"test": "mocha *_test.js",
"bench": "node-bench bench/object.js"
},

@@ -9,0 +10,0 @@ "repository": {

@@ -41,3 +41,3 @@ # json-templater [![Build Status](https://travis-ci.org/lightsofapollo/json-templater.svg?branch=master)](https://travis-ci.org/lightsofapollo/json-templater)

{
magic_key_magic: {
magic_key_key: {
key: 'interpolation is nice value'

@@ -44,0 +44,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