unpdf 1.0.0 → 1.0.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/dist/index.cjs CHANGED
@@ -208,7 +208,7 @@ async function getMeta$1(data) {
208
208
  const meta = await pdf.getMetadata();
209
209
  return {
210
210
  info: meta?.info ?? {},
211
- metadata: meta?.metadata?.getAll() ?? {}
211
+ metadata: { ...meta?.metadata }
212
212
  };
213
213
  }
214
214
 
package/dist/index.mjs CHANGED
@@ -206,7 +206,7 @@ async function getMeta$1(data) {
206
206
  const meta = await pdf.getMetadata();
207
207
  return {
208
208
  info: meta?.info ?? {},
209
- metadata: meta?.metadata?.getAll() ?? {}
209
+ metadata: { ...meta?.metadata }
210
210
  };
211
211
  }
212
212
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unpdf",
3
3
  "type": "module",
4
- "version": "1.0.0",
4
+ "version": "1.0.1",
5
5
  "packageManager": "pnpm@10.10.0",
6
6
  "description": "PDF handling for Node.js, browsers, and serverless environments",
7
7
  "author": "Johann Schopplich <hello@johannschopplich.com>",