Socket
Socket
Sign inDemoInstall

jiti

Package Overview
Dependencies
0
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.14.0 to 1.15.0

3

dist/types.d.ts

@@ -27,2 +27,5 @@ export declare type TransformOptions = {

transformOptions?: Omit<TransformOptions, 'source'>;
alias?: Record<string, string>;
nativeModules?: string[];
transformModules?: string[];
};

94

package.json
{
"name": "jiti",
"version": "1.14.0",
"version": "1.15.0",
"description": "Runtime typescript and ESM support for Node.js (CommonJS)",

@@ -16,48 +16,50 @@ "repository": "unjs/jiti",

"devDependencies": {
"@babel/core": "latest",
"@babel/plugin-proposal-decorators": "latest",
"@babel/plugin-proposal-nullish-coalescing-operator": "latest",
"@babel/plugin-proposal-optional-chaining": "latest",
"@babel/plugin-syntax-class-properties": "latest",
"@babel/plugin-transform-modules-commonjs": "latest",
"@babel/plugin-transform-typescript": "latest",
"@babel/preset-typescript": "latest",
"@babel/template": "latest",
"@babel/types": "latest",
"@nuxtjs/eslint-config-typescript": "latest",
"@types/babel__core": "latest",
"@types/babel__template": "latest",
"@types/mkdirp": "latest",
"@types/node": "latest",
"@types/object-hash": "latest",
"@types/resolve": "latest",
"@types/semver": "latest",
"acorn": "latest",
"babel-plugin-dynamic-import-node": "latest",
"babel-plugin-parameter-decorator": "latest",
"create-require": "latest",
"cross-env": "latest",
"destr": "latest",
"eslint": "latest",
"esm": "latest",
"estree-walker": "latest",
"execa": "latest",
"fast-glob": "latest",
"mkdirp": "latest",
"mlly": "latest",
"object-hash": "latest",
"pathe": "latest",
"pirates": "latest",
"pkg-types": "latest",
"semver": "latest",
"standard-version": "latest",
"terser-webpack-plugin": "latest",
"ts-loader": "latest",
"tslib": "latest",
"typescript": "latest",
"vitest": "latest",
"webpack": "latest",
"webpack-cli": "latest"
"@babel/core": "^7.19.0",
"@babel/plugin-proposal-decorators": "^7.19.0",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
"@babel/plugin-proposal-optional-chaining": "^7.18.9",
"@babel/plugin-syntax-class-properties": "^7.12.13",
"@babel/plugin-transform-modules-commonjs": "^7.18.6",
"@babel/plugin-transform-typescript": "^7.19.0",
"@babel/preset-typescript": "^7.18.6",
"@babel/template": "^7.18.10",
"@babel/types": "^7.19.0",
"@nuxtjs/eslint-config-typescript": "^11.0.0",
"@types/babel__core": "^7.1.19",
"@types/babel__template": "^7.4.1",
"@types/mkdirp": "^1.0.2",
"@types/node": "^18.7.15",
"@types/object-hash": "^2.2.1",
"@types/resolve": "^1.20.2",
"@types/semver": "^7.3.12",
"acorn": "^8.8.0",
"babel-plugin-dynamic-import-node": "^2.3.3",
"babel-plugin-parameter-decorator": "^1.0.16",
"config": "^3.3.7",
"create-require": "^1.1.1",
"cross-env": "^7.0.3",
"destr": "^1.1.1",
"escape-string-regexp": "^5.0.0",
"eslint": "^8.23.0",
"esm": "^3.2.25",
"estree-walker": "^3.0.1",
"execa": "^6.1.0",
"fast-glob": "^3.2.11",
"mkdirp": "^1.0.4",
"mlly": "^0.5.14",
"object-hash": "^3.0.0",
"pathe": "^0.3.7",
"pirates": "^4.0.5",
"pkg-types": "^0.3.4",
"semver": "^7.3.7",
"standard-version": "^9.5.0",
"terser-webpack-plugin": "^5.3.6",
"ts-loader": "^9.3.1",
"tslib": "^2.4.0",
"typescript": "^4.8.2",
"vitest": "^0.23.1",
"webpack": "^5.74.0",
"webpack-cli": "^4.10.0"
},
"packageManager": "pnpm@7.3.0",
"packageManager": "pnpm@7.11.0",
"scripts": {

@@ -64,0 +66,0 @@ "build": "pnpm clean && cross-env NODE_ENV=production pnpm webpack",

@@ -19,2 +19,3 @@ # jiti

- V8 compile cache
- Custom resolve alias

@@ -106,2 +107,26 @@ ## Usage

### `alias`
- Type: Object
- Default: -
- Environment Variable: `JITI_ALIAS`
Custom alias map used to resolve ids.
### `nativeModules`
- Type: Array
- Default: ['typescript`]
- Environment Variable: `JITI_NATIVE_MODULES`
List of modules (within `node_modules`) to always use native require for them.
### `transformModules`
- Type: Array
- Default: []
- Environment Variable: `JITI_TRANSFORM_MODULES`
List of modules (within `node_modules`) to transform them regardless of syntax.
## Development

@@ -108,0 +133,0 @@

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc