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

marko

Package Overview
Dependencies
Maintainers
2
Versions
935
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

marko - npm Package Compare versions

Comparing version 1.3.14 to 1.3.15

test/test-project/html-templates/body-only-if.marko

7

compiler/Node.js

@@ -414,6 +414,5 @@ /*

}
var nextStripVarId = template.getAttribute('nextStripVarId');
if (nextStripVarId == null) {
nextStripVarId = template.setAttribute('nextStripVarId', 0);
}
var nextStripVarId = template.data.nextStripVarId || (template.data.nextStripVarId = 0);
template.data.nextStripVarId++;
var varName = '__strip' + nextStripVarId++;

@@ -420,0 +419,0 @@ template.statement('var ' + varName + ' = !(' + this.stripExpression + ');');

@@ -245,3 +245,3 @@ /*

this.templateName = null;
this.attributes = {};
this.attributes = this.data = {};
this.concatWrites = this.options.concatWrites !== false;

@@ -248,0 +248,0 @@ this.writer = new CodeWriter(this.concatWrites);

@@ -60,3 +60,3 @@ {

},
"version": "1.3.14"
"version": "1.3.15"
}

@@ -146,2 +146,10 @@ /*

[
'body-only-if', function(attr, node) {
if (!node.setStripExpression) {
node.addError('The c-strip directive is not allowed for target node');
}
node.setStripExpression(attr);
}
],
[
'c-input', function(attr, node) {

@@ -148,0 +156,0 @@ this.inputAttr = attr;

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

});
it.only("should handle 'body-only-if' correctly", function(done) {
testRender("test-project/html-templates/body-only-if.marko", {
url: '/foo'
}, done);
});
});
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