iconv-corefoundation
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -62,2 +62,9 @@ /// <reference types="node" /> | ||
/** | ||
* Returns whether the given {@link StringEncoding} represents the same encoding as this one. | ||
* | ||
* @remarks | ||
* The Core Foundation framework doesn't have a corresponding function. Instead, this method is implemented by comparing the {@link StringEncoding.cfStringEncoding | cfStringEncoding} and {@link StringEncoding.name | name} properties. | ||
*/ | ||
equals(other: StringEncoding): boolean; | ||
/** | ||
* Encodes the given text. | ||
@@ -64,0 +71,0 @@ * |
@@ -8,2 +8,13 @@ "use strict"; | ||
} }, errors)); | ||
{ | ||
const _StringEncoding = module.exports.StringEncoding; | ||
Object.defineProperties(_StringEncoding.prototype, { | ||
equals: { | ||
value: function equals(other) { | ||
return this === other || (other instanceof _StringEncoding && (this.cfStringEncoding === other.cfStringEncoding || | ||
this.name === other.name)); | ||
} | ||
} | ||
}); | ||
} | ||
//# sourceMappingURL=native.js.map |
{ | ||
"name": "iconv-corefoundation", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Character set conversion using the macOS CoreFoundation API", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
92239
374