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

babel-plugin-transform-react-pug

Package Overview
Dependencies
Maintainers
2
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-react-pug - npm Package Compare versions

Comparing version 3.0.0 to 3.1.0

21

lib/code-gen.js

@@ -24,4 +24,22 @@ 'use strict';

var code = _ref.code;
var t = babel.types;
var types = babel.types;
var baseLine = path.node.loc.start.line;
var lastLine = 0;
var t = {};
function getFn(key) {
return function () {
var res = types[key].apply(types, arguments);
var loc = { line: baseLine + lastLine, column: 0 };
res.loc = { start: loc, end: loc };
return res;
};
}
for (var key in types) {
if (/^is|^assert/.test(key)) {
t[key] = types[key];
} else {
t[key] = getFn(key);
}
}
var nodes = t.identifier('pug_nodes');

@@ -343,2 +361,3 @@ function withString(node, stringLiteral) {

if (typeof this['visit' + node.type] === 'function') {
lastLine = node.line;
return this['visit' + node.type](node, mode, block);

@@ -345,0 +364,0 @@ } else {

2

package.json
{
"name": "babel-plugin-transform-react-pug",
"version": "3.0.0",
"version": "3.1.0",
"description": "A plugin for transpiling pug templates to jsx",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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