content-entry
Advanced tools
Comparing version 1.7.0 to 1.7.1
@@ -108,2 +108,12 @@ 'use strict'; | ||
} | ||
/** | ||
* compare content against other entry | ||
* @param {Entry} other | ||
* @return {boolean} true if other has the same content (bitwise) | ||
*/ | ||
async equalsContent(other) { | ||
const [a, b] = await Promise.all([this.getBuffer(), other.getBuffer()]); | ||
return a.equals(b); | ||
} | ||
} | ||
@@ -110,0 +120,0 @@ |
{ | ||
"name": "content-entry", | ||
"version": "1.7.0", | ||
"version": "1.7.1", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
@@ -43,6 +43,8 @@ [![npm](https://img.shields.io/npm/v/content-entry.svg)](https://www.npmjs.com/package/content-entry) | ||
- [ContentEntry](#contententry) | ||
- [equalsContent](#equalscontent-1) | ||
- [Parameters](#parameters-6) | ||
- [BufferContentEntryMixin](#buffercontententrymixin) | ||
- [Parameters](#parameters-6) | ||
- [Parameters](#parameters-7) | ||
- [StreamContentEntryMixin](#streamcontententrymixin) | ||
- [Parameters](#parameters-7) | ||
- [Parameters](#parameters-8) | ||
@@ -151,2 +153,12 @@ ## Entry | ||
### equalsContent | ||
compare content against other entry | ||
#### Parameters | ||
- `other` **[Entry](#entry)** | ||
Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** true if other has the same content (bitwise) | ||
## BufferContentEntryMixin | ||
@@ -153,0 +165,0 @@ |
Sorry, the diff of this file is not supported yet
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
26673
644
177