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

repository-provider

Package Overview
Dependencies
Maintainers
1
Versions
662
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

repository-provider - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

3

dist/repository-provider.js

@@ -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 @@

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