esbuild-register
Advanced tools
Comparing version 2.0.0 to 2.1.0
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
101418
1
2796
43
13
6
11
1
- Removedjoycon@^2.2.5
- Removedpirates@^4.0.1
- Removedsource-map-support@^0.5.19
- Removedstrip-json-comments@^3.1.1
- Removedbuffer-from@1.1.2(transitive)
- Removedjoycon@2.2.5(transitive)
- Removedpirates@4.0.6(transitive)
- Removedsource-map@0.6.1(transitive)
- Removedsource-map-support@0.5.21(transitive)
- Removedstrip-json-comments@3.1.1(transitive)