babel-plugin-captains-log
Advanced tools
Comparing version 1.0.1 to 1.1.0
@@ -108,8 +108,11 @@ 'use strict'; | ||
return args.reduce(function (acc, arg) { | ||
var result = []; | ||
args.forEach(function (arg) { | ||
if (!t.isLiteral(arg)) { | ||
return [].concat((0, _toConsumableArray3.default)(acc), [t.stringLiteral(arg.getSource()), arg.node]); | ||
result.push(t.stringLiteral(arg.getSource()), arg.node); | ||
} else { | ||
result.push(arg.node); | ||
} | ||
return [].concat((0, _toConsumableArray3.default)(acc), [arg.node]); | ||
}, []); | ||
}); | ||
return result; | ||
} | ||
@@ -116,0 +119,0 @@ |
@@ -38,3 +38,3 @@ 'use strict'; | ||
// this should deep merge in the furture when we are dealing with more than just flags | ||
// this should deep merge in the future when we are dealing with more than just flags | ||
var mergeOptions = function mergeOptions(options) { | ||
@@ -41,0 +41,0 @@ var sanitizedOptions = (0, _keys2.default)(options || {}).filter(function (key) { |
{ | ||
"name": "babel-plugin-captains-log", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"files": [ | ||
@@ -5,0 +5,0 @@ "dist" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
212
0
16419