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

tripartite

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tripartite - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

15

browserify-transform.js

@@ -6,5 +6,14 @@ var through = require('through2');

var fileName = file.toString()
if (/\.tri$/.test(fileName)) {
var templateName = fileName.substring(0, fileName.length - 4)
var processable = false
var templateName
if (/\.tri$/.test(fileName)) {
templateName = fileName.substring(0, fileName.length - 4)
processable = true
}
if (/\.body$/.test(fileName)) {
templateName = fileName.substring(0, fileName.length - 5)
processable = true
}
if(processable) {
if(__dirname.indexOf('node_modules') > -1) {

@@ -11,0 +20,0 @@ var start = __dirname.substring(0, __dirname.indexOf('node_modules'))

2

package.json
{
"name": "tripartite",
"version": "1.0.5",
"version": "1.0.6",
"description": "A simple and fast javascript templating library",

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

@@ -42,2 +42,6 @@

t.prototype.getTemplate = function(name) {
return this.templates[name]
}
t.prototype.parseTemplateScript = function(tx) {

@@ -146,3 +150,3 @@ var tks = this.tts(tx);

for(var i = 0; i < this.ed.length; i++) {
r += this.tripartite.templates[at](this.ed[i]);
r += this.getTemplate(at)(this.ed[i]);
}

@@ -152,3 +156,3 @@ return r;

else {
return this.tripartite.templates[at](this.ed);
return this.getTemplate(at)(this.ed);
}

@@ -159,2 +163,6 @@ }

ae.prototype.getTemplate = function(name) {
return this.tripartite.getTemplate(name)
}
/* evaluate data selector expression */

@@ -161,0 +169,0 @@ ae.prototype.edse = function(cc) {

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