Comparing version 5.0.1 to 5.0.2
@@ -1,17 +0,18 @@ | ||
import { BrowserifyObject, CustomOptions } from "browserify"; | ||
// Note that @types/browserify is not used for a reason: | ||
// https://github.com/TypeStrong/tsify/issues/267 | ||
import * as typescript from "typescript"; | ||
import { CompilerOptions, ModuleKind, ScriptTarget } from "typescript"; | ||
// Provide local definition of Omit for compatibility with TypeScript <3.5 | ||
type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>; | ||
export interface Options extends CustomOptions, Omit<CompilerOptions, "project"> { | ||
export interface Options { | ||
exclude?: string[]; | ||
files?: string[]; | ||
global?: boolean; | ||
include?: string[]; | ||
m?: string; | ||
p?: string | Record<string, any>; | ||
project?: string | Record<string, any>; | ||
t?: string; | ||
typescript?: string | typeof typescript; | ||
global?: boolean; | ||
m?: ModuleKind; | ||
p?: string | CompilerOptions; | ||
project?: string | CompilerOptions; | ||
t?: ScriptTarget; | ||
} | ||
export default function tsify(b: BrowserifyObject, opts: Options): any; | ||
export default function tsify(b: any, opts: Options): any; |
{ | ||
"name": "tsify", | ||
"version": "5.0.1", | ||
"version": "5.0.2", | ||
"description": "Browserify plugin for compiling Typescript", | ||
@@ -31,3 +31,2 @@ "main": "index.js", | ||
"dependencies": { | ||
"@types/browserify": "^12.0.36", | ||
"convert-source-map": "^1.1.0", | ||
@@ -34,0 +33,0 @@ "fs.realpath": "^1.0.0", |
@@ -132,2 +132,3 @@ # tsify | ||
* 5.0.2 - Remove `@types/browserify` and incorrect/undocumented use of TypeScript types in `tsify` signature. | ||
* 5.0.1 - Remove default import from `index.d.ts` and add `@types/browserify` dependency. | ||
@@ -134,0 +135,0 @@ * 5.0.0 - **Breaking**: Fix type declarations for TypeScript 4 compatibility. With this fix, the TypeScript version must be 2.8 or above. |
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
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
8
645
235
43244
- Removed@types/browserify@^12.0.36
- Removed@types/browserify@12.0.40(transitive)
- Removed@types/insert-module-globals@7.0.5(transitive)
- Removed@types/node@22.5.5(transitive)
- Removedundici-types@6.19.8(transitive)