cborg 1.9.0 → 1.9.1

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.
package/lib/byte-utils.js CHANGED
@@ -44,8 +44,8 @@ export const toString = useBuffer
44
44
  (bytes, start, end) => {
45
45
  return end - start > 64
46
46
  ? // eslint-disable-line operator-linebreak
47
- // @ts-ignore
48
- globalThis.Buffer.from(bytes.subarray(start, end)).toString('utf8')
47
+ // @ts-ignore
48
+ globalThis.Buffer.from(bytes.subarray(start, end)).toString('utf8')
49
49
  : utf8Slice(bytes, start, end)
50
50
  }
51
51
  /* c8 ignore next 11 */
@@ -69,8 +69,8 @@ export const fromString = useBuffer
69
69
  (string) => {
70
70
  return string.length > 64
71
71
  ? // eslint-disable-line operator-linebreak
72
- // @ts-ignore
73
- globalThis.Buffer.from(string)
72
+ // @ts-ignore
73
+ globalThis.Buffer.from(string)
74
74
  : utf8ToBytes(string)
75
75
  }
76
76
  /* c8 ignore next 7 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cborg",
3
- "version": "1.9.0",
3
+ "version": "1.9.1",
4
4
  "description": "Fast CBOR with a focus on strictness",
5
5
  "main": "./cjs/cborg.js",
6
6
  "bin": {
@@ -38,7 +38,7 @@
38
38
  "ipld-garbage": "^4.0.10",
39
39
  "mocha": "^9.1.3",
40
40
  "polendina": "~2.0.1",
41
- "standard": "^16.0.4",
41
+ "standard": "^17.0.0",
42
42
  "typescript": "~4.6.2"
43
43
  },
44
44
  "exports": {