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
168
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.0.0-next.25 to 7.0.0-next.26

5

lib/index.d.ts

@@ -8,1 +8,6 @@ import type { Gitignore } from './internal';

}
export default {
name: '@gasket/plugin-git',
hooks: {}
};

25

lib/post-create.js

@@ -18,19 +18,20 @@ /// <reference types="@gasket/cli" />

if (gitInit) {
// Init a git repo
await runShellCommand('git', ['init'], { cwd });
try {
// Init a git repo
await runShellCommand('git', ['init'], { cwd });
// Use `main` branch
await runShellCommand('git', ['checkout', '-b', 'main'], { cwd });
// Use `main` branch
await runShellCommand('git', ['checkout', '-b', 'main'], { cwd });
// Add all files
await runShellCommand('git', ['add', '.'], { cwd });
// Add all files
await runShellCommand('git', ['add', '.'], { cwd });
// Create a commit
await runShellCommand(
'git',
['commit', '-m', ':tada: Created new repository with gasket create'],
{ cwd }
);
// Create a commit
await runShellCommand('git', ['commit', '-m', ':tada: Created new repository with gasket create'], { cwd });
} catch (err) {
const exists = err.stderr.includes('fatal: a branch named \'main\' already exists');
context.warnings.push(exists ? 'A branch named \'main\' already exists' : err.stderr);
}
}
}
};
{
"name": "@gasket/plugin-git",
"version": "7.0.0-next.25",
"version": "7.0.0-next.26",
"description": "Adds git support to your application",
"main": "lib",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"files": [

@@ -42,3 +43,3 @@ "generator",

"dependencies": {
"@gasket/utils": "^7.0.0-next.25"
"@gasket/utils": "^7.0.0-next.26"
},

@@ -69,3 +70,3 @@ "devDependencies": {

},
"gitHead": "0782b4f4d07d18fb6bd44ecaab3e6bdafd6d4c9d"
"gitHead": "b885d3f60fc68f944186105b1c4adb6440817581"
}
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