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

esbuild-jest

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esbuild-jest - npm Package Compare versions

Comparing version 0.2.0-beta.2 to 0.2.0

6

esbuild-jest.es.js

@@ -14,5 +14,5 @@ import { resolve } from 'path';

const build = (filename) => {
const outFiles = buildSync({
const {outputFiles} = buildSync({
entryPoints: [filename],
outfile: "./dist/main.js",
outdir: "./dist",
minify: false,

@@ -25,3 +25,3 @@ bundle: true,

});
return outFiles.outputFiles.reduce((cur, item) => {
return outputFiles.reduce((cur, item) => {
const key = item.path.includes(".map") ? "map" : "code";

@@ -28,0 +28,0 @@ cur[key] = Buffer.from(item.contents).toString();

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

const build = (filename) => {
const outFiles = esbuild.buildSync({
const {outputFiles} = esbuild.buildSync({
entryPoints: [filename],
outfile: "./dist/main.js",
outdir: "./dist",
minify: false,

@@ -27,3 +27,3 @@ bundle: true,

});
return outFiles.outputFiles.reduce((cur, item) => {
return outputFiles.reduce((cur, item) => {
const key = item.path.includes(".map") ? "map" : "code";

@@ -30,0 +30,0 @@ cur[key] = Buffer.from(item.contents).toString();

{
"name": "esbuild-jest",
"version": "0.2.0-beta.2",
"version": "0.2.0",
"description": "Jest plugin to use esbuild for transformation",

@@ -23,5 +23,5 @@ "main": "esbuild-jest.js",

"homepage": "https://github.com/aelbore/esbuild-jest#readme",
"peerDependencies": {
"esbuild": ">=0.5.22"
"dependencies": {
"esbuild": "^0.5.24"
}
}

@@ -11,3 +11,3 @@ # esbuild-jest

```bash
npm install --save-dev esbuild-jest esbuild
npm install --save-dev esbuild-jest
```

@@ -25,2 +25,2 @@

}
```
```
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