Socket
Socket
Sign inDemoInstall

esbuild-register

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esbuild-register - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

6

dist/node.d.ts
import { TransformOptions } from 'esbuild';
declare const FILE_LOADERS: {

@@ -10,5 +11,6 @@ readonly '.js': "js";

declare type EXTENSIONS = keyof typeof FILE_LOADERS;
export declare function register(esbuildOptions?: TransformOptions & {
declare function register(esbuildOptions?: TransformOptions & {
extensions?: EXTENSIONS[];
}): void;
export {};
export { register };
{
"name": "esbuild-register",
"description": "Transpile JSX, TypeScript and esnext features on the fly with esbuild",
"version": "2.0.0",
"version": "2.1.0",
"main": "register.js",

@@ -12,3 +12,3 @@ "license": "MIT",

"scripts": {
"build": "tsup src/node.ts",
"build": "tsup src/node.ts --dts",
"test": "npm run build && node -r ./register.js tests/test.ts",

@@ -20,18 +20,17 @@ "prepublishOnly": "npm run build"

},
"dependencies": {
"pirates": "^4.0.1",
"source-map-support": "^0.5.19",
"strip-json-comments": "^3.1.1",
"joycon": "^2.2.5"
},
"devDependencies": {
"@egoist/prettier-config": "^0.1.0",
"@types/node": "^14.0.23",
"@types/source-map-support": "^0.5.2",
"esbuild": "^0.8.31",
"@types/source-map-support": "^0.5.3",
"esbuild": "^0.8.55",
"execa": "^4.0.3",
"tsup": "^2.0.3",
"typescript": "^3.9.6",
"joycon": "^2.2.5",
"pirates": "^4.0.1",
"source-map": "^0.6.0",
"source-map-support": "^0.5.19",
"strip-json-comments": "^3.1.1",
"tsup": "^4.6.1",
"typescript": "^4.2.2",
"uvu": "^0.2.2"
}
}

@@ -6,2 +6,4 @@ # esbuild-register

```bash
npm i esbuild-register -D
# Or Yarn
yarn add esbuild-register --dev

@@ -8,0 +10,0 @@ ```

require('./dist/node').register({
format: 'cjs',
target: `node${process.version.slice(1)}`,
})

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