@dereekb/util 13.10.7 → 13.10.9
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/fetch/package.json +2 -2
- package/index.cjs.js +3 -0
- package/index.esm.js +3 -0
- package/package.json +2 -1
- package/src/lib/file/pdf.d.ts +3 -0
- package/test/package.json +2 -2
package/fetch/package.json
CHANGED
package/index.cjs.js
CHANGED
|
@@ -10143,6 +10143,9 @@ function toReadableError(inputError) {
|
|
|
10143
10143
|
* Like {@link bufferHasValidPdfMarkings}, this is a lightweight heuristic — it detects
|
|
10144
10144
|
* the vast majority of encrypted PDFs but does not fully parse the PDF structure.
|
|
10145
10145
|
*
|
|
10146
|
+
* Note: this returns true for both fully-encrypted PDFs and write-protected-only PDFs.
|
|
10147
|
+
* Use `detectPdfEncryption` from `@dereekb/nestjs` when that distinction matters.
|
|
10148
|
+
*
|
|
10146
10149
|
* @example
|
|
10147
10150
|
* ```ts
|
|
10148
10151
|
* const pdfBytes = await readFile('protected.pdf');
|
package/index.esm.js
CHANGED
|
@@ -10141,6 +10141,9 @@ function toReadableError(inputError) {
|
|
|
10141
10141
|
* Like {@link bufferHasValidPdfMarkings}, this is a lightweight heuristic — it detects
|
|
10142
10142
|
* the vast majority of encrypted PDFs but does not fully parse the PDF structure.
|
|
10143
10143
|
*
|
|
10144
|
+
* Note: this returns true for both fully-encrypted PDFs and write-protected-only PDFs.
|
|
10145
|
+
* Use `detectPdfEncryption` from `@dereekb/nestjs` when that distinction matters.
|
|
10146
|
+
*
|
|
10144
10147
|
* @example
|
|
10145
10148
|
* ```ts
|
|
10146
10149
|
* const pdfBytes = await readFile('protected.pdf');
|
package/package.json
CHANGED
package/src/lib/file/pdf.d.ts
CHANGED
|
@@ -45,6 +45,9 @@ export declare function bufferHasValidPdfMarkings(buffer: Pick<Buffer<ArrayBuffe
|
|
|
45
45
|
* Like {@link bufferHasValidPdfMarkings}, this is a lightweight heuristic — it detects
|
|
46
46
|
* the vast majority of encrypted PDFs but does not fully parse the PDF structure.
|
|
47
47
|
*
|
|
48
|
+
* Note: this returns true for both fully-encrypted PDFs and write-protected-only PDFs.
|
|
49
|
+
* Use `detectPdfEncryption` from `@dereekb/nestjs` when that distinction matters.
|
|
50
|
+
*
|
|
48
51
|
* @example
|
|
49
52
|
* ```ts
|
|
50
53
|
* const pdfBytes = await readFile('protected.pdf');
|