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.0 to 1.0.1

2

package.json
{
"name": "json-templater",
"version": "1.0.0",
"version": "1.0.1",
"description": "Simple json/js object template strings",

@@ -5,0 +5,0 @@ "main": "template.js",

@@ -66,2 +66,8 @@ suite('string', function() {

verify(
'dots as key names',
['{{woot.bar.baz}}', { 'woot.bar.baz': 'yup' }],
'yup'
);
verify(
'array view',

@@ -68,0 +74,0 @@ [

@@ -23,2 +23,5 @@ /**

function extractValue(path, view) {
// Short circuit for direct matches.
if (view && view[path]) return view[path];
var parts = path.split('.');

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