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

babel-plugin-tester

Package Overview
Dependencies
Maintainers
2
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-tester - npm Package Compare versions

Comparing version 11.0.0 to 11.0.1

10

dist/formatters/prettier.d.ts

@@ -15,4 +15,14 @@ import { type Options as PrettierOptions } from 'prettier';

export declare const prettierFormatter: ResultFormatter<{
/**
* Options passed directly to prettier, allowing you to override the defaults.
*/
prettierOptions: MaybePrettierOptions;
/**
* If this deprecated parameter is given as an argument, treat it as the value
* of `prettierOptions`. Otherwise, it should not be used.
*
* @deprecated Use `prettierOptions` instead.
*/
config: MaybePrettierOptions;
}>;
export default prettierFormatter;

15

dist/formatters/prettier.js

@@ -26,11 +26,14 @@ "use strict";

filepath = filename || _nodePath.default.join(cwd, 'dummy.js'),
prettierOptions = getCachedConfig(cwd)
config,
prettierOptions = config || getCachedConfig(cwd)
} = {}) => {
const finalPrettierOptions = {
filepath,
...prettierOptions
};
debug('cwd: %O', cwd);
debug('filepath: %O', filepath);
debug('original code: %O', code);
const formattedCode = (0, _prettier.format)(code, {
filepath,
...prettierOptions
});
debug('prettier options: %O', finalPrettierOptions);
debug('original code: %O', code);
const formattedCode = (0, _prettier.format)(code, finalPrettierOptions);
debug('formatted code: %O', code);

@@ -37,0 +40,0 @@ return formattedCode;

1

dist/index.d.ts

@@ -15,2 +15,3 @@ import { prettierFormatter } from './formatters/prettier';

prettierOptions: import("prettier").Options | null;
config: import("prettier").Options | null;
}>;

@@ -17,0 +18,0 @@ export var unstringSnapshotSerializer: import("pretty-format").Plugin;

@@ -44,2 +44,3 @@ import { prettierFormatter } from './formatters/prettier';

prettierOptions: import("prettier").Options | null;
config: import("prettier").Options | null;
}>;

@@ -46,0 +47,0 @@ export var unstringSnapshotSerializer: import("pretty-format").Plugin;

{
"name": "babel-plugin-tester",
"version": "11.0.0",
"version": "11.0.1",
"description": "Utilities for testing babel plugins",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is too big to display

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