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

git-origin-check

Package Overview
Dependencies
Maintainers
8
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-origin-check - npm Package Compare versions

Comparing version 1.0.7 to 1.0.9

7

lib/originCheck.js

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

const gitRemoteOriginUrl = require('git-remote-origin-url');
const gitUrlParse = require('git-url-parse');

@@ -9,5 +8,5 @@ const getSshConfig = require('get-ssh-config');

const getRemoteOriginUrl = async url => {
return await gitRemoteOriginUrl();
}
const getRemoteOriginUrl = async (url) => {
return (await import("git-remote-origin-url")).default();
};

@@ -14,0 +13,0 @@ module.exports.check = async (expectedHost) => {

{
"name": "git-origin-check",
"version": "1.0.7",
"version": "1.0.9",
"description": "Validates Git origin is set to correct host.",

@@ -27,11 +27,11 @@ "bin": {

"get-ssh-config": "^1.3.0",
"git-remote-origin-url": "^3.1.0",
"git-url-parse": "^11.4.0"
"git-remote-origin-url": "^4.0.0",
"git-url-parse": "^13.1.0"
},
"devDependencies": {
"chai": "^4.2.0",
"mocha": "^8.2.1",
"rewire": "^5.0.0",
"sinon": "^9.2.1"
"chai": "^4.3.7",
"mocha": "^8.4.0",
"rewire": "^6.0.0",
"sinon": "^15.0.1"
}
}

@@ -5,5 +5,4 @@ # git-origin-check

[![Build Status](https://travis-ci.org/Cox-Automotive/git-origin-check.svg?branch=master)](https://travis-ci.org/Cox-Automotive/git-origin-check)
[![Build Status](https://travis-ci.org/Cox-Automotive/git-origin-check.svg?branch=main)](https://travis-ci.org/Cox-Automotive/git-origin-check)
Validates Git origin is set to the correct host. When used in combination with Husky as a `pre-push` hook it enables users to ensure code is not inadvertently pushed to the wrong Github instance. This will check static origin URLs as well as SSH aliases for the correct URL.

@@ -27,2 +26,2 @@

}
```
```
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