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 6.43.2-canary-esm-port.0 to 6.45.0

10

lib/create.js

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

import { fileURLToPath } from 'url';
import { dirname, join } from 'path';
const path = require('path');

@@ -11,11 +10,10 @@ /**

*/
export default async function create(gasket, context) {
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
module.exports = async function create(gasket, context) {
const { gitInit, files } = context;
if (gitInit) {
files.add(
join(__dirname, '..', 'generator', '.*')
path.join(__dirname, '..', 'generator', '.*')
);
}
};

2

lib/gitignore.js

@@ -7,3 +7,3 @@ /**

*/
export class Gitignore {
module.exports = class Gitignore {
constructor() {

@@ -10,0 +10,0 @@ this._content = {

@@ -1,5 +0,4 @@

import prompt from './prompt.js';
import create from './create.js';
import postCreate from './post-create.js';
import { default as pkg } from '../package.json' assert { type: 'json' };
const prompt = require('./prompt');
const create = require('./create');
const postCreate = require('./post-create');

@@ -12,4 +11,4 @@ /**

*/
export const hooks = {
name: pkg.name,
module.exports = {
name: require('../package').name,
hooks: {

@@ -16,0 +15,0 @@ prompt,

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

import { runShellCommand } from '@gasket/utils';
const { runShellCommand } = require('@gasket/utils');

@@ -10,3 +10,3 @@ /**

*/
export default {
module.exports = {
timing: {

@@ -13,0 +13,0 @@ last: true

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

import { Gitignore } from './gitignore.js';
const Gitignore = require('./gitignore');

@@ -49,3 +49,3 @@ /**

*/
export default async function promptHook(gasket, context, { prompt }) {
module.exports = async function promptHook(gasket, context, { prompt }) {
if (!('gitInit' in context)) {

@@ -52,0 +52,0 @@ const { gitInit } = await prompt([

{
"name": "@gasket/plugin-git",
"version": "6.43.2-canary-esm-port.0",
"version": "6.45.0",
"description": "Adds git support to your application",
"main": "lib/index.js",
"main": "lib",
"files": [

@@ -10,3 +10,2 @@ "generator",

],
"type": "module",
"scripts": {

@@ -42,12 +41,12 @@ "lint": "eslint .",

"dependencies": {
"@gasket/utils": "^6.43.2-canary-esm-port.0"
"@gasket/utils": "^6.45.0"
},
"devDependencies": {
"cross-env": "^7.0.3",
"eslint": "^8.7.0",
"eslint-config-godaddy": "^7.0.0",
"eslint-plugin-jest": "^27.2.1",
"eslint": "^8.56.0",
"eslint-config-godaddy": "^7.0.2",
"eslint-plugin-jest": "^27.6.3",
"eslint-plugin-json": "^3.1.0",
"eslint-plugin-unicorn": "^44.0.0",
"jest": "^29.3.1"
"jest": "^29.7.0"
},

@@ -66,3 +65,3 @@ "eslintConfig": {

},
"gitHead": "f7e3283fa63e20f353587fe7f4653ebf684538c8"
"gitHead": "e567d11560a0d3721ffbd4649fa4ee8b6b739afb"
}
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