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 5.7.5 to 6.0.0

32

dist/provider.js

@@ -197,2 +197,11 @@ 'use strict';

}
async addPullRequest(pullRequest) {
return this.repository.addPullRequest(pullRequest);
}
async deletePullRequest(name) {
return this.repository.deletePullRequest(name);
}
get pullRequestClass() {
return this.repository.pullRequestClass;
}
list(matchingPatterns) {

@@ -207,5 +216,2 @@ return _wrapAsyncGenerator(function* () {})();

}
get pullRequestClass() {
return this.repository.pullRequestClass;
}
async _initialize() {}

@@ -450,3 +456,3 @@ async refId(ref = this.ref) {

}
constructor(repository, name, options) {
constructor(source, destination, name, options) {
const properties = {

@@ -456,4 +462,7 @@ name: {

},
repository: {
value: repository
source: {
value: source
},
destination: {
value: destination
}

@@ -481,9 +490,12 @@ };

Object.defineProperties(this, properties);
repository.addPullRequest(this);
destination.addPullRequest(this);
}
get repository() {
return this.destination.repository;
}
get provider() {
return this.repository.provider;
return this.destination.provider;
}
async delete() {
return this.repository.deletePullRequest(this.name);
return this.destination.deletePullRequest(this.name);
}

@@ -501,2 +513,4 @@ async merge() {

return {
source: this.source,
destination: this.destination,
name: this.name,

@@ -503,0 +517,0 @@ title: this.title,

{
"name": "repository-provider",
"version": "5.7.5",
"version": "6.0.0",
"publishConfig": {

@@ -5,0 +5,0 @@ "access": "public"

@@ -325,3 +325,4 @@ [![npm](https://img.shields.io/npm/v/repository-provider.svg)](https://www.npmjs.com/package/repository-provider)

- `repository` **Repositoy**
- `source` **[Branch](#branch)**
- `destination` **[Branch](#branch)**
- `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**

@@ -337,4 +338,4 @@ - `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**

- `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
- `repository` **[Repository](#repository)**
- `provider` **[Provider](#provider)**
- `source` **[Branch](#branch)**
- `destination` **[Branch](#branch)**
- `title` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?**

@@ -341,0 +342,0 @@ - `state` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?**

@@ -161,3 +161,19 @@ import { notImplementedError } from "./util";

async addPullRequest(pullRequest) {
return this.repository.addPullRequest(pullRequest);
}
async deletePullRequest(name) {
return this.repository.deletePullRequest(name);
}
/**
* By default we use the repository implementation.
* @return {Class} as defined in the repository
*/
get pullRequestClass() {
return this.repository.pullRequestClass;
}
/**
* List paths of the branch

@@ -186,9 +202,2 @@ * @param {string[]} matchingPatterns

/**
* By default we use the repository implementation.
* @return {Class} as defined in the repository
*/
get pullRequestClass() {
return this.repository.pullRequestClass;
}

@@ -195,0 +204,0 @@ async _initialize() {}

@@ -6,3 +6,4 @@ import { notImplementedError, propertiesFromOptions } from "./util";

* {@link Repository#addPullRequest}
* @param {Repositoy} repository
* @param {Branch} source
* @param {Branch} destination
* @param {string} name

@@ -16,4 +17,4 @@ * @param {Object} options

* @property {string} name
* @property {Repository} repository
* @property {Provider} provider
* @property {Branch} source
* @property {Branch} destination
* @property {string} [title]

@@ -65,6 +66,7 @@ * @property {string} [state]

constructor(repository, name, options) {
constructor(source, destination, name, options) {
const properties = {
name: { value: name },
repository: { value: repository }
source: { value: source },
destination: { value: destination }
};

@@ -96,5 +98,9 @@

repository.addPullRequest(this);
destination.addPullRequest(this);
}
get repository() {
return this.destination.repository;
}
/**

@@ -104,3 +110,3 @@ * @return {Provider}

get provider() {
return this.repository.provider;
return this.destination.provider;
}

@@ -114,3 +120,3 @@

async delete() {
return this.repository.deletePullRequest(this.name);
return this.destination.deletePullRequest(this.name);
}

@@ -140,2 +146,4 @@

return {
source: this.source,
destination: this.destination,
name: this.name,

@@ -142,0 +150,0 @@ title: this.title,

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