@dereekb/util 13.10.8 → 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.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@dereekb/util/fetch",
3
- "version": "13.10.8",
3
+ "version": "13.10.9",
4
4
  "peerDependencies": {
5
- "@dereekb/util": "13.10.8",
5
+ "@dereekb/util": "13.10.9",
6
6
  "make-error": "^1.3.6",
7
7
  "fast-content-type-parse": "^3.0.0"
8
8
  },
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/util",
3
- "version": "13.10.8",
3
+ "version": "13.10.9",
4
4
  "sideEffects": false,
5
5
  "exports": {
6
6
  "./test": {
@@ -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');
package/test/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@dereekb/util/test",
3
- "version": "13.10.8",
3
+ "version": "13.10.9",
4
4
  "peerDependencies": {
5
- "@dereekb/util": "13.10.8",
5
+ "@dereekb/util": "13.10.9",
6
6
  "make-error": "^1.3.6"
7
7
  },
8
8
  "exports": {