repository-provider
Advanced tools
Comparing version 5.2.2 to 5.2.3
@@ -365,3 +365,9 @@ 'use strict'; | ||
toString() { | ||
return this.path; | ||
if (typeof this.content === "string" || this.content instanceof String) { | ||
return this.content; | ||
} | ||
if (Buffer.isBuffer(this.content)) { | ||
return this.content.toString('utf8'); | ||
} | ||
return undefined; | ||
} | ||
@@ -368,0 +374,0 @@ toJSON() { |
{ | ||
"name": "repository-provider", | ||
"version": "5.2.2", | ||
"version": "5.2.3", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
@@ -57,3 +57,11 @@ /** | ||
toString() { | ||
return this.path; | ||
if (typeof this.content === "string" || this.content instanceof String) { | ||
return this.content; | ||
} | ||
if (Buffer.isBuffer(this.content)) { | ||
return this.content.toString('utf8'); | ||
} | ||
return undefined; | ||
} | ||
@@ -60,0 +68,0 @@ |
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
62276
1590