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

babel-plugin-macros

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-macros - npm Package Compare versions

Comparing version 2.4.1 to 2.4.2

8

dist/index.js

@@ -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"}
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