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

ci-npm-update

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ci-npm-update - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

4

CHANGES.md
# The Reivision History of ci-npm-update
## v1.0.7 - 2016/09/12
* Support git+ssh protocols (#37)
## v1.0.6 - 2016/08/27

@@ -4,0 +8,0 @@

4

lib/compare_view.js

@@ -10,6 +10,2 @@ "use strict";

}
// url can be:
// git+https://github.com/foo/bar.git
// https://github.com/foo/bar.baz.git
// git@github.com:foo/bar.git
static fixupUrl(repository) {

@@ -16,0 +12,0 @@ if (!(repository && repository.url)) {

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

static parseUrl(url) {
const matched = /^(?:git@|(?:git\+)?https?:\/\/|git:\/\/)([^\/:]+)[\/:]([^\/]+)\/([^\/]+)(?!\.git)/.exec(url);
// url can be:
// git://github.com/foo/bar.git
// git@github.com:foo/bar.git
// git+https://github.com/foo/bar.git
// git+ssh://git@github.com/foo/bar.git
// http://github.com/foo/bar.baz.git
// https://github.com/foo/bar.baz.git
const schemeRegexps = [
"git:\\/\\/",
"git@",
"git\\+https:\\/\\/",
"git\\+ssh:\\/\\/git@",
"http:\\/\\/",
"https:\\/\\/",
];
const hostRegexp = "([^\\/:]+)[\\/:]";
const pathRegexp = "([^\\/]+)\\/([^\\/]+)(?!\\.git)";
const matched = new RegExp(`^(?:${schemeRegexps.join("|")})${hostRegexp}${pathRegexp}$`).exec(url);
if (!matched) {

@@ -15,0 +32,0 @@ throw Error(`Cannot parse git repository URL: ${url}`);

{
"name": "ci-npm-update",
"version": "1.0.6",
"version": "1.0.7",
"description": "Keep NPM dependencies up-to-date with CI, providing version-to-version diff for each library",

@@ -13,3 +13,4 @@ "repository": {

"dry-run": "npm run build && bin/ci-npm-update",
"prepublish": "npm test",
"preversion": "npm test",
"postpublish": "git push origin master && git push origin --tags",
"setup": "npm install && npm dedupe",

@@ -16,0 +17,0 @@ "build": "npm run lint && tsc",

@@ -14,3 +14,3 @@ # ci-npm-update [![CircleCI](https://circleci.com/gh/bitjourney/ci-npm-update.svg?style=svg)](https://circleci.com/gh/bitjourney/ci-npm-update)

```sh
npm install --dev ci-npm-update
npm install --save-dev ci-npm-update
```

@@ -17,0 +17,0 @@

Sorry, the diff of this file is not supported yet

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