Socket
Socket
Sign inDemoInstall

babel-macros

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-macros - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

5

dist/index.js

@@ -145,2 +145,7 @@ 'use strict';

var macro = require(requirePath);
if (macro.name !== 'macroWrapper') {
throw new Error(
// eslint-disable-next-line prefer-template
`The macro imported from "${source}" must be wrapped in "createMacro" ` + `which you can get from "babel-macros". ` + `Please refer to the documentation to see how to do this properly: https://github.com/kentcdodds/babel-macros/blob/master/other/docs/author.md#writing-a-macro`);
}
try {

@@ -147,0 +152,0 @@ macro({

2

package.json
{
"name": "babel-macros",
"version": "1.0.0",
"version": "1.0.1",
"description": "Enables zero-config, importable babel plugins",

@@ -5,0 +5,0 @@ "main": "dist/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