bare-encoding 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -40,6 +40,8 @@ module.exports = class UTF8Decoder {
40
40
 
41
41
  if (this.bytesNeeded === 0) {
42
42
  if (byte <= 0x7f) {
43
+ this.bytesSeen = 0
44
+
43
45
  result += String.fromCharCode(byte)
44
46
  } else {
45
47
  this.bytesSeen = 1
@@ -73,6 +75,7 @@ module.exports = class UTF8Decoder {
73
75
  this.upperBoundary = 0xbf
74
76
 
75
77
  result += '\ufffd'
78
+ i--
76
79
 
77
80
  continue
78
81
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bare-encoding",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "WHATWG text encoding interfaces for JavaScript",
5
5
  "exports": {
6
6
  "./package": "./package.json",