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

babel-plugin-transform-comment-to-assert

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-comment-to-assert - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

6

lib/index.js

@@ -10,5 +10,5 @@ 'use strict';

function visitor(_ref) {
var t = _ref.types;
var template = _ref.template;
var transform = _ref.transform;
var t = _ref.types,
template = _ref.template,
transform = _ref.transform;

@@ -15,0 +15,0 @@ var assertTemplate = template('\n assert.deepEqual($0, $1)\n ');

{
"name": "babel-plugin-transform-comment-to-assert",
"version": "3.0.0",
"version": "3.0.1",
"description": "Replace commented expressions with assert statements",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -1,7 +0,6 @@

# babel-plugin-transform-comment-to-assert
[![Build Status][travis-image]][travis-url] [![npm][npm-image]][npm-url]
# babel-plugin-transform-comment-to-assert [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url]
[travis-image]: https://img.shields.io/travis/laat/babel-plugin-transform-comment-to-assert.svg?style=flat
[travis-url]: https://travis-ci.org/laat/babel-plugin-transform-comment-to-assert
[npm-image]: https://img.shields.io/npm/v/babel-plugin-transform-comment-to-assert.svg?style=flat
[npm-url]: https://npmjs.org/package/babel-plugin-transform-comment-to-assert
[travis-image]: https://travis-ci.org/laat/babel-plugin-transform-comment-to-assert.svg?branch=master
[travis-url]: https://travis-ci.org/laat/babel-plugin-transform-comment-to-assert

@@ -50,3 +49,3 @@ > replace commented expressions with assert statements

replace("console.log('foo') //=> 'bar'")
//=> "console.log('foo'); //=> 'bar'\n\nassert.deepEqual('foo', 'bar');"
//=> "console.log('foo');assert.deepEqual('foo', 'bar');"
```

@@ -53,0 +52,0 @@

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