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.1 to 5.7.2

2

dist/provider.js

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

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