New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@gasket/plugin-git

Package Overview
Dependencies
Maintainers
8
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gasket/plugin-git - npm Package Compare versions

Comparing version 7.2.0-canary.20 to 7.2.0

1

lib/gitignore.js

@@ -21,2 +21,3 @@ /**

/**
* TODO: convert to jsdocs imports
* Adds content to gitignore

@@ -23,0 +24,0 @@ * @param {string | string[]} name - name of file or directory to add to

7

lib/index.d.ts

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

import type { Plugin } from '@gasket/core';
import type { Gitignore } from './internal';

@@ -9,7 +10,7 @@

export default {
const plugin: Plugin = {
name: '@gasket/plugin-git',
version: '',
description: '',
hooks: {}
};
export = plugin;
{
"name": "@gasket/plugin-git",
"version": "7.2.0-canary.20",
"version": "7.2.0",
"description": "Adds git support to your application",

@@ -34,5 +34,2 @@ "main": "lib/index.js",

"author": "GoDaddy Operating Company, LLC",
"maintainers": [
"Sivan Mehta <smehta@godaddy.com>"
],
"license": "MIT",

@@ -44,3 +41,3 @@ "bugs": {

"dependencies": {
"@gasket/utils": "^7.2.0-canary.20"
"@gasket/utils": "^7.2.0"
},

@@ -50,6 +47,6 @@ "devDependencies": {

"eslint": "^8.56.0",
"eslint-config-godaddy": "^7.1.0",
"eslint-plugin-jest": "^27.6.3",
"eslint-config-godaddy": "^7.1.1",
"eslint-plugin-jest": "^28.6.0",
"eslint-plugin-json": "^3.1.0",
"eslint-plugin-unicorn": "^44.0.0",
"eslint-plugin-unicorn": "^55.0.0",
"jest": "^29.7.0",

@@ -72,3 +69,3 @@ "typescript": "^5.4.5"

},
"gitHead": "abdb788c7ff44f4c6db7a5885e96e2dd315273fc"
"gitHead": "8790fd065f4bcb853fc9a2deecf0833999f41443"
}

@@ -53,4 +53,4 @@ # @gasket/plugin-git

```js
module.exports = {
id: 'gasket-plugin-example',
export default {
name: 'gasket-plugin-example',
hooks: {

@@ -61,13 +61,13 @@ create(gasket, createContext) {

// See if `gitignore` is on the create context
if(gitignore) {
if(gitignore) {
// ignore a single file
gitignore.add('file-to-be-ignored.js');
// ignore wildcard rules
gitignore.add('*.tmp');
// ignore multiple files and/or directories
gitignore.add(['file1.js', 'dir2/']);
// add an ignore under a category
// add an ignore under a category
gitignore.add('node_modules', 'dependencies');

@@ -114,2 +114,1 @@ }

[plugin hook timings]:/packages/gasket-engine/README.md
[Gitignore]: ./lib/gitignore.js

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc