repository-provider
Advanced tools
Comparing version 5.2.3 to 5.2.4
@@ -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} |
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
62380
487
1587