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

dot

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dot - npm Package Compare versions

Comparing version 1.1.1 to 2.0.0-beta.0

5

doT.js

@@ -5,6 +5,7 @@ // doT.js

(function() {
(function () {
"use strict";
var doT = {
name: "doT",
version: "1.1.1",

@@ -77,3 +78,3 @@ templateSettings: {

if (def[d] && def[d].arg && param) {
var rw = (d+":"+param).replace(/'|\\/g, "_");
var rw = unescape((d+":"+param).replace(/'|\\/g, "_"));
def.__exp = def.__exp || {};

@@ -80,0 +81,0 @@ def.__exp[rw] = def[d].text.replace(new RegExp("(^|[^\\w$])" + def[d].arg + "([^\\w$])", "g"), "$1" + param + "$2");

2

package.json

@@ -10,3 +10,3 @@ {

],
"version": "1.1.1",
"version": "2.0.0-beta.0",
"main": "index",

@@ -13,0 +13,0 @@ "bin": {

@@ -9,3 +9,3 @@ # doT

[![npm version](https://badge.fury.io/js/dot.svg)](https://www.npmjs.com/package/dot)
[![Coverage Status](https://coveralls.io/repos/github/olado/doT/badge.svg?branch=master)](https://coveralls.io/github/olado/doT?branch=master)
[![Coverage Status](http://coveralls.io/repos/github/olado/doT/badge.svg?branch=master)](https://coveralls.io/github/olado/doT?branch=master)

@@ -12,0 +12,0 @@

@@ -22,2 +22,11 @@ 'use strict';

});
it('should render define multiline params', function(){
testDef('{{##def.tmp:data:{{=data.openTag}}{{!data.foo}}{{=data.closeTag}}#}}\n' +
'{{# def.tmp:{\n' +
' foo: it.foo,\n' +
' openTag: "<div>",\n' +
' closeTag: "</div>"\n' +
'} }}');
});
});

@@ -24,0 +33,0 @@

@@ -12,2 +12,8 @@ 'use strict';

describe('.name', function (){
it('should have a name', function(){
assert.strictEqual(doT.name, 'doT');
});
});
describe('#template()', function(){

@@ -14,0 +20,0 @@ it('should return a function', function(){

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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