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.2.3 to 5.2.4

6

dist/provider.js

@@ -369,3 +369,3 @@ 'use strict';

if (Buffer.isBuffer(this.content)) {
return this.content.toString('utf8');
return this.content.toString("utf8");
}

@@ -391,5 +391,3 @@ return undefined;

if (typeof this.content === "string" || this.content instanceof String) {
if (typeof other.content === "string" || other.content instanceof String) {
return this.content === other.content;
}
return this.toString() === other.toString();
}

@@ -396,0 +394,0 @@ if (this.content === undefined && other.content === undefined) {

{
"name": "repository-provider",
"version": "5.2.3",
"version": "5.2.4",
"publishConfig": {

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

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

- [isFile](#isfile)
- [toString](#tostring)
- [equals](#equals)

@@ -437,2 +438,8 @@ - [Parameters](#parameters-12)

### toString
Deliver content as string
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** content
### equals

@@ -450,2 +457,4 @@

Create empty content (file)
### Parameters

@@ -452,0 +461,0 @@

@@ -56,2 +56,6 @@ /**

/**
* Deliver content as string
* @return {string} content
*/
toString() {

@@ -63,3 +67,3 @@ if (typeof this.content === "string" || this.content instanceof String) {

if (Buffer.isBuffer(this.content)) {
return this.content.toString('utf8');
return this.content.toString("utf8");
}

@@ -99,8 +103,3 @@

if (typeof this.content === "string" || this.content instanceof String) {
if (
typeof other.content === "string" ||
other.content instanceof String
) {
return this.content === other.content;
}
return this.toString() === other.toString();
}

@@ -121,3 +120,3 @@

/**
*
* Create empty content (file)
* @param {string} path

@@ -124,0 +123,0 @@ * @return {Content}

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