Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

workspace-tools

Package Overview
Dependencies
Maintainers
2
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

workspace-tools - npm Package Compare versions

Comparing version 0.16.0 to 0.16.1

17

CHANGELOG.json

@@ -5,3 +5,18 @@ {

{
"date": "Tue, 25 May 2021 21:47:22 GMT",
"date": "Thu, 27 May 2021 20:04:00 GMT",
"tag": "workspace-tools_v0.16.1",
"version": "0.16.1",
"comments": {
"patch": [
{
"comment": "getting rid of console logs from the library",
"author": "kchau@microsoft.com",
"commit": "7f47e421c14b9122d19f848f8039ae266c55e692",
"package": "workspace-tools"
}
]
}
},
{
"date": "Tue, 25 May 2021 21:47:27 GMT",
"tag": "workspace-tools_v0.16.0",

@@ -8,0 +23,0 @@ "version": "0.16.0",

# Change Log - workspace-tools
This log was last generated on Tue, 25 May 2021 21:47:22 GMT and should not be manually modified.
This log was last generated on Thu, 27 May 2021 20:04:00 GMT and should not be manually modified.
<!-- Start content -->
## 0.16.1
Thu, 27 May 2021 20:04:00 GMT
### Patches
- getting rid of console logs from the library (kchau@microsoft.com)
## 0.16.0
Tue, 25 May 2021 21:47:22 GMT
Tue, 25 May 2021 21:47:27 GMT

@@ -11,0 +19,0 @@ ### Minor changes

1

lib/__tests__/getDefaultRemote.test.js

@@ -21,3 +21,2 @@ "use strict";

setupFixture_1.setupLocalRemote(cwd, "myRemote", "basic");
console.log(cwd);
// act

@@ -24,0 +23,0 @@ const remote = git_1.getDefaultRemote(cwd);

@@ -20,3 +20,3 @@ "use strict";

// Pass, the package.json is invalid
console.warn(`Invalid package.json file detected ${packageJsonPath}: `, e);
throw new Error(`Invalid package.json file detected ${packageJsonPath}: ${e.message}`);
}

@@ -23,0 +23,0 @@ });

@@ -26,3 +26,3 @@ declare type ProcessOutput = {

}): void;
export declare function getUntrackedChanges(cwd: string): string[] | undefined;
export declare function getUntrackedChanges(cwd: string): string[];
export declare function fetchRemote(remote: string, cwd: string): void;

@@ -34,4 +34,4 @@ export declare function fetchRemoteBranch(remote: string, remoteBranch: string, cwd: string): void;

*/
export declare function getUnstagedChanges(cwd: string): string[] | undefined;
export declare function getChanges(branch: string, cwd: string): string[] | undefined;
export declare function getUnstagedChanges(cwd: string): string[];
export declare function getChanges(branch: string, cwd: string): string[];
/**

@@ -43,6 +43,6 @@ * Gets all the changes between the branch and the merge-base

export declare function getBranchChanges(branch: string, cwd: string): string[];
export declare function getChangesBetweenRefs(fromRef: string, toRef: string, options: string[], pattern: string, cwd: string): string[] | undefined;
export declare function getStagedChanges(cwd: string): string[] | undefined;
export declare function getRecentCommitMessages(branch: string, cwd: string): string[] | undefined;
export declare function getUserEmail(cwd: string): string | null | undefined;
export declare function getChangesBetweenRefs(fromRef: string, toRef: string, options: string[], pattern: string, cwd: string): string[];
export declare function getStagedChanges(cwd: string): string[];
export declare function getRecentCommitMessages(branch: string, cwd: string): string[];
export declare function getUserEmail(cwd: string): string | null;
export declare function getBranchName(cwd: string): string | null;

@@ -49,0 +49,0 @@ export declare function getFullBranchRef(branch: string, cwd: string): string | null;

@@ -64,6 +64,6 @@ "use strict";

if (!gitResult.success) {
console.error(`CRITICAL ERROR: running git command: git ${args.join(" ")}!`);
console.error(gitResult.stdout && gitResult.stdout.toString().trimRight());
console.error(gitResult.stderr && gitResult.stderr.toString().trimRight());
process.exit(1);
process.exitCode = 1;
throw new Error(`CRITICAL ERROR: running git command: git ${args.join(" ")}!
${gitResult.stdout && gitResult.stdout.toString().trimRight()}
${gitResult.stderr && gitResult.stderr.toString().trimRight()}`);
}

@@ -96,3 +96,3 @@ }

catch (e) {
console.error("Cannot gather information about changes: ", e.message);
throw new Error(`Cannot gather information about untracked changes: ${e.message}`);
}

@@ -124,3 +124,3 @@ }

catch (e) {
console.error("Cannot gather information about changes: ", e.message);
throw new Error(`Cannot gather information about unstaged changes: ${e.message}`);
}

@@ -134,3 +134,3 @@ }

catch (e) {
console.error("Cannot gather information about changes: ", e.message);
throw new Error(`Cannot gather information about changes: ${e.message}`);
}

@@ -149,3 +149,3 @@ }

catch (e) {
throw new Error(e.message);
throw new Error(`Cannot gather information about branch changes: ${e.message}`);
}

@@ -161,3 +161,3 @@ }

catch (e) {
console.error("Cannot gather information about changes: ", e.message);
throw new Error(`Cannot gather information about change between refs changes (${fromRef} to ${toRef}): ${e.message}`);
}

@@ -171,3 +171,3 @@ }

catch (e) {
console.error("Cannot gather information about changes: ", e.message);
throw new Error(`Cannot gather information about staged changes: ${e.message}`);
}

@@ -187,3 +187,3 @@ }

catch (e) {
console.error("Cannot gather information about recent commits: ", e.message);
throw new Error(`Cannot gather information about recent commits: ${e.message}`);
}

@@ -201,3 +201,3 @@ }

catch (e) {
console.error("Cannot gather information about user.email: ", e.message);
throw new Error(`Cannot gather information about user.email: ${e.message}`);
}

@@ -214,3 +214,3 @@ }

catch (e) {
console.error("Cannot get branch name: ", e.message);
throw new Error(`Cannot get branch name: ${e.message}`);
}

@@ -246,3 +246,3 @@ return null;

catch (e) {
console.error("Cannot get current git hash");
throw new Error(`Cannot get current git hash: ${e.message}`);
}

@@ -287,3 +287,3 @@ return null;

catch (e) {
console.error("Cannot stage changes", e.message);
throw new Error(`Cannot stage changes: ${e.message}`);
}

@@ -296,9 +296,7 @@ }

if (!commitResults.success) {
console.error("Cannot commit changes");
console.log(commitResults.stdout);
console.error(commitResults.stderr);
throw new Error(`Cannot commit changes: ${commitResults.stdout} ${commitResults.stderr}`);
}
}
catch (e) {
console.error("Cannot commit changes", e.message);
throw new Error(`Cannot commit changes: ${e.message}`);
}

@@ -402,3 +400,2 @@ }

catch (e) {
console.log("failed to read package.json");
throw new Error("invalid package.json detected");

@@ -429,3 +426,2 @@ }

}
console.log(`Defaults to "origin"`);
return "origin";

@@ -432,0 +428,0 @@ }

{
"name": "workspace-tools",
"version": "0.16.0",
"version": "0.16.1",
"license": "MIT",

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

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