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

git-pwa

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-pwa - npm Package Compare versions

Comparing version

to
1.0.2

6

git.js

@@ -13,3 +13,5 @@ #!/usr/bin/env node

if (!oLoader.config.user) {
const aIgnoreCommands = ["clone", "init", "status"];
if (!aIgnoreCommands.includes(process.argv[2]) && !oLoader.config.user) {
oLoader.config.user = {};

@@ -20,3 +22,3 @@ oLoader.config.user.name = readLineSync.question("Enter your user name: ");

}
if (!oLoader.config.user.token) {
if (!aIgnoreCommands.includes(process.argv[2]) && !oLoader.config.user.token) {
oLoader.config.user.token = readLineSync.question("Enter your token: ");

@@ -23,0 +25,0 @@ fs.writeFileSync(`${oLoader.base.dir}/${oLoader.base.gitdir}/config`, ini.stringify(oLoader.config));

{
"name": "git-pwa",
"version": "1.0.1",
"version": "1.0.2",
"description": "git to use in a progressive web app",

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

@@ -67,3 +67,3 @@ import fs from 'fs';

for (let first of this.gitignore) {
first = first.replace("/", "");
first = first.replace(/\/$/, "");
if(this.match(first, second)){

@@ -102,2 +102,8 @@ return true;

async runCommand() {
try{
this.base.ref = await git.currentBranch(this.base);
}catch{
// don't need this
0;
}
this.commandData = {

@@ -130,5 +136,7 @@ clone: {

remote: this.argv._[3] || "origin",
ref: this.argv._[4] || await git.currentBranch(this.base)
ref: this.argv._[4] || this.base.ref
},
init: {
dir: this.argv._[4] || this.base.dir
}
}

@@ -148,6 +156,7 @@ this.command = {

await this.walk(".", oConfig, filelist);
if(filelist.length > 1)
if(filelist.length > 1){
return filelist.join("\n");
else
}else{
return "working folder up to date";
}
}

@@ -154,0 +163,0 @@ },