@vereign/core 1.7.6 → 1.7.7

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
@@ -148,6 +148,7 @@ var CHMED16AController = class {
148
148
  }
149
149
  });
150
150
  this.logger = logger;
151
+ this.appVersion = appVersion;
151
152
  this.sds = new import_chmed_parser.SDS(
152
153
  "https://oauth2.sds.hin.ch",
153
154
  logger,
@@ -219,7 +220,7 @@ var CHMED16AController = class {
219
220
  return __async(this, null, function* () {
220
221
  const pdfStart = Date.now();
221
222
  try {
222
- const pdf = new import_pdf_generator.PDFLib(this.logger);
223
+ const pdf = new import_pdf_generator.PDFLib(this.logger, this.appVersion);
223
224
  const pdfBuffer = yield pdf.generateBuffer(json);
224
225
  res.setHeader("Content-Type", "application/pdf");
225
226
  res.setHeader("Content-Disposition", 'inline; filename="chmed16a.pdf"');
package/dist/index.js CHANGED
@@ -124,6 +124,7 @@ var CHMED16AController = class {
124
124
  }
125
125
  });
126
126
  this.logger = logger;
127
+ this.appVersion = appVersion;
127
128
  this.sds = new SDS(
128
129
  "https://oauth2.sds.hin.ch",
129
130
  logger,
@@ -195,7 +196,7 @@ var CHMED16AController = class {
195
196
  return __async(this, null, function* () {
196
197
  const pdfStart = Date.now();
197
198
  try {
198
- const pdf = new PDFLib(this.logger);
199
+ const pdf = new PDFLib(this.logger, this.appVersion);
199
200
  const pdfBuffer = yield pdf.generateBuffer(json);
200
201
  res.setHeader("Content-Type", "application/pdf");
201
202
  res.setHeader("Content-Disposition", 'inline; filename="chmed16a.pdf"');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vereign/core",
3
- "version": "1.7.6",
3
+ "version": "1.7.7",
4
4
  "description": "core api library for e prescription project",
5
5
  "repository": {
6
6
  "type": "git",
@@ -61,8 +61,8 @@
61
61
  "zod-openapi": "^5.3.1"
62
62
  },
63
63
  "dependencies": {
64
- "@vereign/chmed-parser": "^1.10.9",
65
- "@vereign/pdf-generator": "^1.6.9",
64
+ "@vereign/chmed-parser": "^1.10.10",
65
+ "@vereign/pdf-generator": "^1.6.11",
66
66
  "express": "^5.2.1",
67
67
  "pdfkit": "^0.17.1",
68
68
  "winston": "^3.17.0",