parse-path
Advanced tools
Comparing version 4.0.3 to 4.0.4
@@ -29,3 +29,3 @@ "use strict"; | ||
function parsePath(url) { | ||
url = (url || "").trim(); | ||
url = (url || "").trim().replace(/\r?\n|\r/gm, ""); | ||
var output = { | ||
@@ -93,7 +93,8 @@ protocols: protocols(url), | ||
output.resource = splits[0]; | ||
if (splits[1]) { | ||
output.port = Number(splits[1]); | ||
if (isNaN(output.port)) { | ||
var port = splits[1]; | ||
if (port) { | ||
output.port = Number(port); | ||
if (isNaN(output.port) || port.match(/^\d+$/) === null) { | ||
output.port = null; | ||
parts.unshift(splits[1]); | ||
parts.unshift(port); | ||
} | ||
@@ -100,0 +101,0 @@ } else { |
{ | ||
"name": "parse-path", | ||
"version": "4.0.3", | ||
"version": "4.0.4", | ||
"description": "Parse paths (local paths, urls: ssh/git/etc)", | ||
@@ -55,2 +55,2 @@ "main": "lib/index.js", | ||
] | ||
} | ||
} |
@@ -227,31 +227,77 @@ <!-- Please do not edit this file. Edit the `blah` field in the `package.json` instead. If in doubt, open an issue. --> | ||
- `@semantic-release/gitlab` | ||
- `@hawkingnetwork/react-native-tab-view` | ||
- `@pvm/gitlab` | ||
- `eleventy-plugin-embed-soundcloud` | ||
- `eleventy-plugin-embed-twitter` | ||
- `@enkeledi/react-native-week-month-date-picker` | ||
- `@hemith/react-native-tnk` | ||
- `npm_one_1_2_3` | ||
- `native-kakao-login` | ||
- `rn-adyen-dropin` | ||
- `react-fsm-router` | ||
- `react-native-contact-list` | ||
- `react-native-biometric-authenticate` | ||
- `react-native-arunmeena1987` | ||
- `react-native-is7` | ||
- `react-native-kakao-maps` | ||
- `react-native-my-first-try-arun-ramya` | ||
- `react-native-payu-payment-testing` | ||
- `react-native-ytximkit` | ||
- `tria-prima` | ||
- `react-fsm-router` | ||
- `@tjoussen/semantic-release-gitlab-mr` | ||
- `sm-versioning` | ||
- `@corelmax/react-native-my2c2p-sdk` | ||
- `@datalogic/react-native-datalogic-module` | ||
- `@felipesimmi/react-native-datalogic-module` | ||
- `@hawkingnetwork/react-native-tab-view` | ||
- `drowl-base-theme-iconset` | ||
- `native-apple-login` | ||
- `react-native-cplus` | ||
- `npm_qwerty` | ||
- `react-native-arunjeyam1987` | ||
- `react-native-bubble-chart` | ||
- `react-native-flyy` | ||
- `@alphy11/semantic-release-gitlab` | ||
- `@apardellass/react-native-audio-stream` | ||
- `@fgreinacher/semantic-release-gitlab` | ||
- `@geeky-apo/react-native-advanced-clipboard` | ||
- `@j4s0n/semantic-release-gitlab` | ||
- `@saad27/react-native-bottom-tab-tour` | ||
- `@xudong/semantic-release-gitlab` | ||
- `candlelabssdk` | ||
- `react-native-dsphoto-module` | ||
- `react-native-responsive-size` | ||
- `react-native-sayhello-module` | ||
- `@flareapp/ignition-ui` | ||
- `react-feedback-sdk` | ||
- `npm_one_12_34_1_` | ||
- `npm_one_2_2` | ||
- `payutesting` | ||
- `semantic-release-gitee` | ||
- `semantic-release-gitlab-plugin` | ||
- `@pvm/github` | ||
- `@pvm/plugin-conventional-changelog` | ||
- `@devdiary/semantic-devdiary-release` | ||
- `semantic-release-gitlab-plugin` | ||
- `reddit-title-has-verbatim-quote` | ||
- `@apardellass/react-native-audio-stream` | ||
- `l2forlerna` | ||
- `birken-react-native-community-image-editor` | ||
- `luojia-cli-dev` | ||
- `reac-native-arun-ramya-test` | ||
- `react-native-plugpag-wrapper` | ||
- `@alphy11/semantic-release-gitlab` | ||
- `react-native-pulsator-native` | ||
- `react-native-kakao-maps` | ||
- `@geeky-apo/react-native-advanced-clipboard` | ||
- `native-apple-login` | ||
- `native-google-login` | ||
- `native-kakao-login` | ||
- `@hemith/react-native-tnk` | ||
- `react-native-contact-list` | ||
- `@corelmax/react-native-my2c2p-sdk` | ||
- `react-native-arun-ramya-test` | ||
- `react-native-arunramya151` | ||
- `react-native-transtracker-library` | ||
- `semantic-release-version` | ||
- `@screeb/react-native` | ||
- `@cloudoki/donderflow` | ||
- `@buganto/client` | ||
- `@tjoussen/semantic-release-gitlab-mr` | ||
- `astra-ufo-sdk` | ||
- `react-native-syan-photo-picker` | ||
- `@wecraftapps/react-native-use-keyboard` | ||
- `electron-info` | ||
- `@tru_id/tru-sdk-react-native` | ||
- `@datalogic/react-native-datalogic-module` | ||
- `react-native-responsive-size` | ||
- `react-native-flyy` | ||
- `react-native-esc-pos-sahaab` | ||
- `l2forlerna` | ||
- `native-google-login` | ||
- `raact-native-arunramya151` | ||
- `react-native-test-module-hhh` | ||
- `reddit-title-has-verbatim-quote` | ||
- `react-native-badge-control` | ||
- `rn-tm-notify` | ||
- `react-native-jsi-device-info` | ||
@@ -258,0 +304,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14131
119
333