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

ajs

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ajs - npm Package Compare versions

Comparing version 1.2.10 to 1.2.11

2

lib/compiler.js

@@ -48,3 +48,3 @@ "use strict";

this.compiled = "var include = function (request, customLocals) {\n" + " __ajs.inc(request, customLocals, __locals)\n" + " }" + " , render = __ajs.ren\n" + " , print = __ajs.out;\n" + "with(__locals) {\n" + "try {\n" + this._make(this.tree) + ";\n" + this._endFunc + "();\n" + "} catch(e) { \n" + "console.log(e.stack);" + this._errFunc + "(e, typeof __filename !== 'undefined' ? __filename : 'missing filename') }\n" + "}";
this.compiled = "var include = function (request, customLocals) {\n" + " __ajs.inc(request, customLocals, __locals)\n" + " }" + " , render = __ajs.ren\n" + " , print = __ajs.out;\n" + "with(__locals) {\n" + "try {\n" + this._make(this.tree) + ";\n" + this._endFunc + "();\n" + "} catch(e) { " + this._errFunc + "(e, __filename) }\n" + "}";

@@ -51,0 +51,0 @@ var fn = new Function('__ajs, __locals', this.compiled);

@@ -45,3 +45,3 @@ "use strict";

res.render = function (filename, locals, opts) {
filename = normalizeFilename(path.resolve(templateDir, filename));
filename = normalizeFilename(path.join(templateDir, filename));

@@ -48,0 +48,0 @@ ajs._load(filename, opts, function (err, template) {

@@ -14,3 +14,3 @@ {

],
"version": "1.2.10",
"version": "1.2.11",
"author": "Ionică Bizău <bizauionica@gmail.com> (https://ionicabizau.net)",

@@ -17,0 +17,0 @@ "contributors": [

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