document-bytes 1.6.1 → 1.6.3
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/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -133,7 +133,7 @@ function bytesToBase64(bytes) {
|
|
|
133
133
|
/**
|
|
134
134
|
* Decodes standard-alphabet base64 (RFC 4648 section 4) back to the bytes it was made from.
|
|
135
135
|
*
|
|
136
|
-
* Characters outside the alphabet and the padding character are removed before decoding, so text wrapped across lines
|
|
136
|
+
* Characters outside the alphabet and the padding character are removed before decoding, so text wrapped across lines, which several of the formats built on this deliberately emit, decodes the same as an unwrapped run of the same characters.
|
|
137
137
|
* @param base64 - The base64 text to decode.
|
|
138
138
|
* @throws Error `invalid base64 input` when a four-character group's first two characters are not both in the alphabet, which is the point at which no byte at all can be recovered from that group.
|
|
139
139
|
* @returns The decoded bytes, and an empty array for input that holds no alphabet characters.
|
package/dist/index.d.cts
CHANGED
|
@@ -43,7 +43,7 @@ declare function bytesToBase64(bytes: Uint8Array): string;
|
|
|
43
43
|
/**
|
|
44
44
|
* Decodes standard-alphabet base64 (RFC 4648 section 4) back to the bytes it was made from.
|
|
45
45
|
*
|
|
46
|
-
* Characters outside the alphabet and the padding character are removed before decoding, so text wrapped across lines
|
|
46
|
+
* Characters outside the alphabet and the padding character are removed before decoding, so text wrapped across lines, which several of the formats built on this deliberately emit, decodes the same as an unwrapped run of the same characters.
|
|
47
47
|
* @param base64 - The base64 text to decode.
|
|
48
48
|
* @throws Error `invalid base64 input` when a four-character group's first two characters are not both in the alphabet, which is the point at which no byte at all can be recovered from that group.
|
|
49
49
|
* @returns The decoded bytes, and an empty array for input that holds no alphabet characters.
|
package/dist/index.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ declare function bytesToBase64(bytes: Uint8Array): string;
|
|
|
43
43
|
/**
|
|
44
44
|
* Decodes standard-alphabet base64 (RFC 4648 section 4) back to the bytes it was made from.
|
|
45
45
|
*
|
|
46
|
-
* Characters outside the alphabet and the padding character are removed before decoding, so text wrapped across lines
|
|
46
|
+
* Characters outside the alphabet and the padding character are removed before decoding, so text wrapped across lines, which several of the formats built on this deliberately emit, decodes the same as an unwrapped run of the same characters.
|
|
47
47
|
* @param base64 - The base64 text to decode.
|
|
48
48
|
* @throws Error `invalid base64 input` when a four-character group's first two characters are not both in the alphabet, which is the point at which no byte at all can be recovered from that group.
|
|
49
49
|
* @returns The decoded bytes, and an empty array for input that holds no alphabet characters.
|
package/dist/index.js
CHANGED
|
@@ -132,7 +132,7 @@ function bytesToBase64(bytes) {
|
|
|
132
132
|
/**
|
|
133
133
|
* Decodes standard-alphabet base64 (RFC 4648 section 4) back to the bytes it was made from.
|
|
134
134
|
*
|
|
135
|
-
* Characters outside the alphabet and the padding character are removed before decoding, so text wrapped across lines
|
|
135
|
+
* Characters outside the alphabet and the padding character are removed before decoding, so text wrapped across lines, which several of the formats built on this deliberately emit, decodes the same as an unwrapped run of the same characters.
|
|
136
136
|
* @param base64 - The base64 text to decode.
|
|
137
137
|
* @throws Error `invalid base64 input` when a four-character group's first two characters are not both in the alphabet, which is the point at which no byte at all can be recovered from that group.
|
|
138
138
|
* @returns The decoded bytes, and an empty array for input that holds no alphabet characters.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "document-bytes",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.3",
|
|
4
4
|
"description": "Generic byte-level primitives (ByteWriter, ByteReader, CRC-32, deflate/inflate, base64) and PNG/JPEG image encoding/decoding with zero PDF knowledge — the shared utility package for the documents.js family.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|