babel-plugin-edit-this-page
Advanced tools
Comparing version 0.0.25 to 0.0.26
@@ -13,3 +13,3 @@ "use strict"; | ||
var child_process_1 = require("child_process"); | ||
var debug = console.log; | ||
var debug = process.env.NODE_ENV === 'test' ? console.log : function (x) { return ''; }; | ||
exports.babelPlugin = function (babel, _a) { | ||
@@ -63,3 +63,3 @@ var _b = _a.editableFiles, editableFiles = _b === void 0 ? '**' : _b, _c = _a.githubUrl, githubUrl = _c === void 0 ? '' : _c, _d = _a.branch, branch = _d === void 0 ? 'master' : _d; | ||
}; | ||
console.log("injecting variables to window: " + JSON.stringify(toInject, null, 4)); | ||
debug("injecting variables to window: " + JSON.stringify(toInject, null, 4)); | ||
// babel source code is the transformed markdown, we need the original source code | ||
@@ -66,0 +66,0 @@ // console.log(path.extname(filePath)) |
{ | ||
"name": "babel-plugin-edit-this-page", | ||
"_": "[bump]", | ||
"version": "0.0.25", | ||
"version": "0.0.26", | ||
"description": "Babel plugin for edit-this-page", | ||
@@ -6,0 +6,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
174724
2