repository-provider
Advanced tools
Comparing version 5.7.1 to 5.7.2
@@ -277,3 +277,3 @@ 'use strict'; | ||
async createBranch(name, source, options) { | ||
await this._initialize(); | ||
await this.initialize(); | ||
let branch = this._branches.get(name); | ||
@@ -280,0 +280,0 @@ if (branch === undefined) { |
{ | ||
"name": "repository-provider", | ||
"version": "5.7.1", | ||
"version": "5.7.2", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
@@ -257,3 +257,3 @@ [![npm](https://img.shields.io/npm/v/repository-provider.svg)](https://www.npmjs.com/package/repository-provider) | ||
enshures tha \_initialize() will be called only once | ||
enshures that \_initialize() will be called only once | ||
@@ -260,0 +260,0 @@ ## Owner |
@@ -5,3 +5,3 @@ const IS_INITIALIZED = Symbol('isInitialized'); | ||
/** | ||
* enshures tha _initialize() will be called only once | ||
* enshures that _initialize() will be called only once | ||
*/ | ||
@@ -8,0 +8,0 @@ return class OneTimeInititalizer extends base { |
@@ -159,3 +159,3 @@ import { notImplementedError } from "./util"; | ||
async createBranch(name, source, options) { | ||
await this._initialize(); | ||
await this.initialize(); | ||
let branch = this._branches.get(name); | ||
@@ -171,4 +171,6 @@ if (branch === undefined) { | ||
/** | ||
* internal branch creation does no initialization | ||
* Create a new {@link Branch} by cloning a given source branch | ||
* All repository implementations must provide a repository._createBranch() to handle the real branch creation. | ||
* This methos MUST NOT be called by application code directly. It should be implemented by child classes, and called by the internal class methods only. | ||
* Internal branch creation does not call repository.initialize() | ||
* @param {string} name | ||
@@ -175,0 +177,0 @@ * @param {Branch} source branch defaults to master |
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
65952
1670