Socket
Socket
Sign inDemoInstall

git-up

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-up - npm Package Compare versions

Comparing version 5.0.0 to 6.0.0

15

lib/index.js

@@ -29,15 +29,13 @@ "use strict";

function gitUp(input) {
if (input.includes("token")) debugger;
var output = parseUrl(input);
output.token = "";
var splits = output.user.split(":");
if (splits.length === 2) {
if (splits[1] === "x-oauth-basic") {
output.token = splits[0];
} else if (splits[0] === "x-token-auth") {
output.token = splits[1];
}
if (output.password === "x-oauth-basic") {
output.token = output.user;
} else if (output.user === "x-token-auth") {
output.token = output.password;
}
if (isSsh(output.protocols) || isSsh(input)) {
if (isSsh(output.protocols) || output.protocols.length === 0 && isSsh(input)) {
output.protocol = "ssh";

@@ -48,2 +46,3 @@ } else if (output.protocols.length) {

output.protocol = "file";
output.protocols = ["file"];
}

@@ -50,0 +49,0 @@

{
"name": "git-up",
"version": "5.0.0",
"version": "6.0.0",
"description": "A low level git url parser.",

@@ -30,4 +30,4 @@ "main": "lib/index.js",

"dependencies": {
"is-ssh": "^1.3.0",
"parse-url": "^6.0.0"
"is-ssh": "^1.4.0",
"parse-url": "^7.0.2"
},

@@ -34,0 +34,0 @@ "devDependencies": {

@@ -210,34 +210,69 @@ <!-- Please do not edit this file. Edit the `blah` field in the `package.json` instead. If in doubt, open an issue. -->

- `@jamo/gatsby-telemetry`
- `@enkeledi/react-native-week-month-date-picker`
- `erxes-telemetry`
- `front-end-styleguide-cli`
- `front-end-styleguide-init`
- `codelofts-git-url-parse`
- `hubgit`
- `gb-notifications`
- `@apardellass/react-native-audio-stream`
- `l2forlerna`
- `react-native-plugpag-wrapper`
- `ship-release`
- `react-native-pulsator-native`
- `react-native-kakao-maps`
- `@geeky-apo/react-native-advanced-clipboard`
- `native-apple-login`
- `native-google-login`
- `@astrojs/telemetry`
- `@hemith/react-native-tnk`
- `miguelcostero-ng2-toasty`
- `native-kakao-login`
- `npm_one_1_2_3`
- `react-native-biometric-authenticate`
- `react-native-arunmeena1987`
- `react-native-contact-list`
- `react-native-payu-payment-testing`
- `react-native-is7`
- `react-native-my-first-try-arun-ramya`
- `react-native-kakao-maps`
- `react-native-ytximkit`
- `rn-adyen-dropin`
- `@positionex/position-sdk`
- `@corelmax/react-native-my2c2p-sdk`
- `@felipesimmi/react-native-datalogic-module`
- `@hawkingnetwork/react-native-tab-view`
- `react-native-cplus`
- `npm_qwerty`
- `native-apple-login`
- `drowl-base-theme-iconset`
- `react-native-arunjeyam1987`
- `react-native-bubble-chart`
- `react-native-flyy`
- `@apardellass/react-native-audio-stream`
- `@geeky-apo/react-native-advanced-clipboard`
- `@saad27/react-native-bottom-tab-tour`
- `candlelabssdk`
- `codelofts-git-url-parse`
- `generator-bootstrap-boilerplate-template`
- `react-feedback-sdk`
- `npm_one_12_34_1_`
- `npm_one_2_2`
- `react-native-responsive-size`
- `react-native-test-module-hhh`
- `react-native-is7`
- `react-native-sayhello-module`
- `react-native-dsphoto-module`
- `payutesting`
- `@con-test/react-native-concent-common`
- `birken-react-native-community-image-editor`
- `git-web`
- `luojia-cli-dev`
- `reac-native-arun-ramya-test`
- `react-native-transtracker-library`
- `react-native-pulsator-native`
- `react-native-arun-ramya-test`
- `react-native-arunramya151`
- `react-native-plugpag-wrapper`
- `@screeb/react-native`
- `ship-release`
- `@buganto/client`
- `@datalogic/react-native-datalogic-module`
- `birken-react-native-community-image-editor`
- `native-kakao-login`
- `angularvezba`
- `astra-ufo-sdk`
- `react-native-syan-photo-picker`
- `@wecraftapps/react-native-use-keyboard`
- `l2forlerna`
- `native-google-login`
- `raact-native-arunramya151`
- `react-native-modal-progress-bar`
- `@hawkingnetwork/react-native-tab-view`
- `miguelcostero-ng2-toasty`
- `drowl-base-theme-iconset`
- `rn-custom-tabview`
- `@ntt_app/react-native-custom-notification`
- `react-native-test-module-hhh`
- `react-native-badge-control`
- `react-native-jsi-device-info`
- `front-end-styleguide-cli`
- `front-end-styleguide-init`
- `hubgit`

@@ -244,0 +279,0 @@

Sorry, the diff of this file is not supported yet

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