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

xjst

Package Overview
Dependencies
Maintainers
4
Versions
162
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xjst - npm Package Compare versions

Comparing version 1.5.4 to 1.7.0

10

lib/xjst/compiler/base.js

@@ -1088,3 +1088,5 @@ var esprima = require('esprima'),

// Initialize globals from the context if asked
if (globalInit[name]) {
if (globalInit.hasOwnProperty(name)) {
var value = globalInit[name];
apply.body.body.unshift({

@@ -1096,8 +1098,8 @@ type: 'ExpressionStatement',

left: { type: 'Identifier', name: name },
right: {
right: value ? {
type: 'MemberExpression',
computed: true,
object: { type: 'Identifier', name: 'ctx' },
property: { type: 'Literal', value: globalInit[name] }
}
property: { type: 'Literal', value: value }
} : { type: 'Identifier', name: 'undefined' }
}

@@ -1104,0 +1106,0 @@ });

2

package.json
{
"name": "xjst",
"description": "XSLT inspired JavaScript templates (with spices)",
"version": "1.5.4",
"version": "1.7.0",
"homepage": "http://github.com/veged/xjst",

@@ -6,0 +6,0 @@ "author": "Sergey Berezhnoy <veged@mail.ru> (http://github.com/veged)",

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