New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

decritty

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

decritty - npm Package Compare versions

Comparing version
1.0.3
to
1.0.4
+1
-1
package.json
{
"name": "decritty",
"version": "1.0.3",
"version": "1.0.4",
"description": "CLI program to change the alacritty configuration",

@@ -5,0 +5,0 @@ "bin": {

@@ -29,2 +29,6 @@ const fs = require('fs')

fs.mkdirSync(DEFAULT_THEME_FOLDER, { recursive: true })
fs.copyFileSync(
`${templateFoler}/${DEFAULT_FILE}`,
`${DEFAULT_FOLDER}/${DEFAULT_FILE}`
)

@@ -44,21 +48,2 @@ const themes = fs.readdirSync(`${templateFoler}/themes/`)

const createDefaultTemplate = () => {
const templateFoler = path.join(__dirname, '..', 'templates')
fs.copyFileSync(
`${templateFoler}/${DEFAULT_FILE}`,
`${DEFAULT_FOLDER}/${DEFAULT_FILE}`
)
copyTemplateFolders()
}
const usingConfigOfUser = () => {
fs.mkdirSync(DEFAULT_FOLDER, { recursive: true })
fs.copyFileSync(
`${BKP_FOLDER}/${DEFAULT_FILE}`,
`${DEFAULT_FOLDER}/${DEFAULT_FILE}`
)
return copyTemplateFolders()
}
const createFolderIfNotExists = () => {

@@ -72,8 +57,6 @@ if (fs.existsSync(BKP_FOLDER))

console.log(`the backup folder was created at: ${BKP_FOLDER} ${'\n'}`)
usingConfigOfUser()
return console.log('Done!' + '\n')
}
fs.mkdirSync(DEFAULT_FOLDER, { recursive: true })
createDefaultTemplate()
copyTemplateFolders()
console.log('Done!' + '\n')

@@ -80,0 +63,0 @@ }