babel-plugin-macros
Advanced tools
Comparing version 2.4.1 to 2.4.2
@@ -10,2 +10,3 @@ 'use strict'; | ||
var p = require('path'); | ||
var resolve = require('resolve'); | ||
// const printAST = require('ast-pretty-print') | ||
@@ -176,7 +177,6 @@ | ||
var requirePath = source; | ||
var isRelative = source.indexOf('.') === 0; | ||
if (isRelative) { | ||
requirePath = p.join(p.dirname(getFullFilename(filename)), source); | ||
} | ||
var requirePath = resolve.sync(source, { | ||
basedir: p.dirname(getFullFilename(filename)) | ||
}); | ||
@@ -183,0 +183,0 @@ var macro = interopRequire(requirePath); |
@@ -1,1 +0,1 @@ | ||
{"name":"babel-plugin-macros","version":"2.4.1","description":"Enables zero-config, importable babel plugins","main":"dist/index.js","scripts":{"add-contributor":"kcd-scripts contributors add","build":"kcd-scripts build","lint":"kcd-scripts lint","test":"kcd-scripts test","test:update":"npm test -- --updateSnapshot","validate":"kcd-scripts validate","setup":"npm install && npm run validate -s","precommit":"kcd-scripts precommit"},"files":["dist"],"keywords":["babel-plugin","macros","macro","babel-macro","babel-plugin-macro","babel-macros","babel-plugin-macros"],"author":"Kent C. Dodds <kent@doddsfamily.us> (http://kentcdodds.com/)","license":"MIT","dependencies":{"cosmiconfig":"^5.0.5"},"devDependencies":{"@babel/core":"^7.1.0","@babel/parser":"^7.1.0","@babel/types":"^7.0.0","ast-pretty-print":"^2.0.1","babel-plugin-tester":"^5.0.0","cpy":"^7.0.0","kcd-scripts":"^0.32.1"},"eslintConfig":{"extends":"./node_modules/kcd-scripts/eslint.js"},"eslintIgnore":["node_modules","coverage","dist"],"babel":{"presets":["./other/babel-config.js"]},"repository":{"type":"git","url":"https://github.com/kentcdodds/babel-plugin-macros.git"},"bugs":{"url":"https://github.com/kentcdodds/babel-plugin-macros/issues"},"homepage":"https://github.com/kentcdodds/babel-plugin-macros#readme"} | ||
{"name":"babel-plugin-macros","version":"2.4.2","description":"Enables zero-config, importable babel plugins","main":"dist/index.js","scripts":{"add-contributor":"kcd-scripts contributors add","build":"kcd-scripts build","lint":"kcd-scripts lint","test":"kcd-scripts test","test:update":"npm test -- --updateSnapshot","validate":"kcd-scripts validate","setup":"npm install && npm run validate -s","precommit":"kcd-scripts precommit"},"files":["dist"],"keywords":["babel-plugin","macros","macro","babel-macro","babel-plugin-macro","babel-macros","babel-plugin-macros"],"author":"Kent C. Dodds <kent@doddsfamily.us> (http://kentcdodds.com/)","license":"MIT","dependencies":{"cosmiconfig":"^5.0.5","resolve":"^1.8.1"},"devDependencies":{"@babel/core":"^7.1.0","@babel/parser":"^7.1.0","@babel/types":"^7.0.0","ast-pretty-print":"^2.0.1","babel-plugin-tester":"^5.0.0","cpy":"^7.0.0","kcd-scripts":"^0.32.1"},"eslintConfig":{"extends":"./node_modules/kcd-scripts/eslint.js"},"eslintIgnore":["node_modules","coverage","dist"],"babel":{"presets":["./other/babel-config.js"]},"repository":{"type":"git","url":"https://github.com/kentcdodds/babel-plugin-macros.git"},"bugs":{"url":"https://github.com/kentcdodds/babel-plugin-macros/issues"},"homepage":"https://github.com/kentcdodds/babel-plugin-macros#readme"} |
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
30485
2
+ Addedresolve@^1.8.1
+ Addedfunction-bind@1.1.2(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedis-core-module@2.15.1(transitive)
+ Addedpath-parse@1.0.7(transitive)
+ Addedresolve@1.22.8(transitive)
+ Addedsupports-preserve-symlinks-flag@1.0.0(transitive)