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.13.0 to 1.14.0

dist/plugins/babel-plugin-transform-import-meta.d.ts

2

dist/utils.d.ts

@@ -0,1 +1,2 @@

import type { PackageJson } from 'pkg-types';
export declare function isDir(filename: string): boolean;

@@ -6,1 +7,2 @@ export declare function isWritable(filename: string): boolean;

export declare function isObject(val: any): boolean;
export declare function readNearestPackageJSON(path: string): PackageJson | undefined;

30

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

@@ -15,12 +15,2 @@ "repository": "unjs/jiti",

],
"scripts": {
"build": "yarn clean && cross-env NODE_ENV=production yarn webpack",
"clean": "rm -rf dist",
"dev": "yarn clean && yarn webpack --watch",
"jiti": "cross-env JITI_DEBUG=1 JITI_CACHE=false ./bin/jiti.js",
"jiti:legacy": "cross-env JITI_DEBUG=1 npx node@12 ./bin/jiti.js",
"lint": "eslint --ext .ts,.js .",
"release": "yarn test && yarn build && yarn standard-version && git push --follow-tags && npm publish",
"test": "vitest"
},
"devDependencies": {

@@ -35,4 +25,7 @@ "@babel/core": "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",

@@ -46,3 +39,2 @@ "@types/node": "latest",

"babel-plugin-parameter-decorator": "latest",
"babel-plugin-transform-import-meta": "latest",
"create-require": "latest",

@@ -61,2 +53,3 @@ "cross-env": "latest",

"pirates": "latest",
"pkg-types": "latest",
"semver": "latest",

@@ -71,3 +64,14 @@ "standard-version": "latest",

"webpack-cli": "latest"
},
"packageManager": "pnpm@7.3.0",
"scripts": {
"build": "pnpm clean && cross-env NODE_ENV=production pnpm webpack",
"clean": "rm -rf dist",
"dev": "pnpm clean && pnpm webpack --watch",
"jiti": "cross-env JITI_DEBUG=1 JITI_CACHE=false ./bin/jiti.js",
"jiti:legacy": "cross-env JITI_DEBUG=1 npx node@12 ./bin/jiti.js",
"lint": "eslint --ext .ts,.js .",
"release": "pnpm test && pnpm build && pnpm standard-version && git push --follow-tags && pnpm publish",
"test": "vitest"
}
}
}

@@ -69,3 +69,3 @@ # jiti

- Default: `true`
- Environment Vriable: `JITI_CACHE`
- Environment Variable: `JITI_CACHE`

@@ -80,3 +80,3 @@ Use transpile cache

- Default: `false`
- Environment Vriable: `JITI_ESM_RESOLVE`
- Environment Variable: `JITI_ESM_RESOLVE`

@@ -96,6 +96,13 @@ Using esm resolution algorithm to support `import` condition.

- Default `false`
- Environment Vriable: `JITI_SOURCE_MAPS`
- Environment Variable: `JITI_SOURCE_MAPS`
Add inline source map to transformed source for better debugging.
### `interopDefault`
- Type: Boolean
- Default: `false`
Return the `.default` export of a module at the top-level.
## Development

@@ -102,0 +109,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