repository-provider
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -190,4 +190,5 @@ 'use strict'; | ||
async repository(name) { | ||
const [repoName, branchName] = name.split(/#/); | ||
await this._initialize(); | ||
return this.repositories.get(name); | ||
return this.repositories.get(repoName); | ||
} | ||
@@ -194,0 +195,0 @@ async createRepository(name, options) { |
{ | ||
"name": "repository-provider", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
@@ -441,3 +441,3 @@ [![npm](https://img.shields.io/npm/v/repository-provider.svg)](https://www.npmjs.com/package/repository-provider) | ||
- `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** | ||
- `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** of the repository may contain a #branch | ||
@@ -444,0 +444,0 @@ Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[Repository](#repository)>** |
@@ -49,8 +49,10 @@ import { Repository } from './repository'; | ||
* Lookup a repository | ||
* @param {string} name | ||
* @param {string} name of the repository may contain a #branch | ||
* @return {Promise<Repository>} | ||
*/ | ||
async repository(name) { | ||
const [repoName, branchName] = name.split(/#/); | ||
await this._initialize(); | ||
return this.repositories.get(name); | ||
return this.repositories.get(repoName); | ||
} | ||
@@ -57,0 +59,0 @@ |
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
55342
1038