🚀. Socket Launch Week Day 2:Introducing Manifest Alerts.Learn more
Sign In

@types/git-revision-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/git-revision-webpack-plugin - npm Package Compare versions

Comparing version
3.0.6
to
4.0.0
+5
-20
git-revision-webpack-plugin/package.json
{
"name": "@types/git-revision-webpack-plugin",
"version": "3.0.6",
"description": "TypeScript definitions for git-revision-webpack-plugin",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/git-revision-webpack-plugin",
"license": "MIT",
"contributors": [
{
"name": "Anders Kaseorg",
"githubUsername": "andersk",
"url": "https://github.com/andersk"
}
],
"version": "4.0.0",
"description": "Stub TypeScript definitions entry for git-revision-webpack-plugin, which provides its own types definitions",
"main": "",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/git-revision-webpack-plugin"
},
"scripts": {},
"license": "MIT",
"dependencies": {
"@types/webpack": "^4"
"git-revision-webpack-plugin": "*"
},
"typesPublisherContentHash": "60e2095350d75cb61c24e4bdce8fbd7141f57adb597d48d4dd214662f9da76cc",
"typeScriptVersion": "4.5"
"deprecated": "This is a stub types definition. git-revision-webpack-plugin provides its own type definitions, so you do not need this installed."
}
+2
-40

@@ -1,41 +0,3 @@

# Installation
> `npm install --save @types/git-revision-webpack-plugin`
This is a stub types definition for @types/git-revision-webpack-plugin (https://github.com/pirelenito/git-revision-webpack-plugin).
# Summary
This package contains type definitions for git-revision-webpack-plugin (https://github.com/pirelenito/git-revision-webpack-plugin).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/git-revision-webpack-plugin.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/git-revision-webpack-plugin/index.d.ts)
````ts
import { Compiler, WebpackPluginInstance } from "webpack";
declare namespace GitRevisionPlugin {
interface Options {
lightweightTags?: boolean | undefined;
branch?: boolean | undefined;
commithashCommand?: string | undefined;
versionCommand?: string | undefined;
branchCommand?: string | undefined;
gitWorkTree?: string | undefined;
}
}
declare class GitRevisionPlugin implements WebpackPluginInstance {
constructor(options?: GitRevisionPlugin.Options);
apply(compiler: Compiler): void;
version(): string;
commithash(): string;
branch(): string;
}
export = GitRevisionPlugin;
````
### Additional Details
* Last updated: Tue, 07 Nov 2023 03:09:37 GMT
* Dependencies: [@types/webpack](https://npmjs.com/package/@types/webpack)
# Credits
These definitions were written by [Anders Kaseorg](https://github.com/andersk).
git-revision-webpack-plugin provides its own type definitions, so you don't need @types/git-revision-webpack-plugin installed!
import { Compiler, WebpackPluginInstance } from "webpack";
declare namespace GitRevisionPlugin {
interface Options {
lightweightTags?: boolean | undefined;
branch?: boolean | undefined;
commithashCommand?: string | undefined;
versionCommand?: string | undefined;
branchCommand?: string | undefined;
gitWorkTree?: string | undefined;
}
}
declare class GitRevisionPlugin implements WebpackPluginInstance {
constructor(options?: GitRevisionPlugin.Options);
apply(compiler: Compiler): void;
version(): string;
commithash(): string;
branch(): string;
}
export = GitRevisionPlugin;