git-origin-check
Advanced tools
Comparing version 1.0.7 to 1.0.9
@@ -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 @@ | ||
} | ||
``` | ||
``` |
5755
77
+ Addedgit-remote-origin-url@4.0.0(transitive)
+ Addedgit-up@7.0.0(transitive)
+ Addedgit-url-parse@13.1.1(transitive)
+ Addedparse-path@7.0.0(transitive)
+ Addedparse-url@8.1.0(transitive)
- Removedcall-bind-apply-helpers@1.0.1(transitive)
- Removedcall-bound@1.0.3(transitive)
- Removeddecode-uri-component@0.2.2(transitive)
- Removeddunder-proto@1.0.1(transitive)
- Removedes-define-property@1.0.1(transitive)
- Removedes-errors@1.3.0(transitive)
- Removedes-object-atoms@1.1.1(transitive)
- Removedfilter-obj@1.1.0(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedget-intrinsic@1.2.7(transitive)
- Removedget-proto@1.0.1(transitive)
- Removedgit-remote-origin-url@3.1.0(transitive)
- Removedgit-up@4.0.5(transitive)
- Removedgit-url-parse@11.6.0(transitive)
- Removedgopd@1.2.0(transitive)
- Removedhas-symbols@1.1.0(transitive)
- Removedhasown@2.0.2(transitive)
- Removedmath-intrinsics@1.1.0(transitive)
- Removednormalize-url@6.1.0(transitive)
- Removedobject-inspect@1.13.4(transitive)
- Removedparse-path@4.0.4(transitive)
- Removedparse-url@6.0.5(transitive)
- Removedprotocols@1.4.8(transitive)
- Removedqs@6.14.0(transitive)
- Removedquery-string@6.14.1(transitive)
- Removedside-channel@1.1.0(transitive)
- Removedside-channel-list@1.0.0(transitive)
- Removedside-channel-map@1.0.1(transitive)
- Removedside-channel-weakmap@1.0.2(transitive)
- Removedsplit-on-first@1.1.0(transitive)
- Removedstrict-uri-encode@2.0.0(transitive)
Updatedgit-remote-origin-url@^4.0.0
Updatedgit-url-parse@^13.1.0