@ovok/core 0.4.59-dev.556 → 0.4.59-dev.557

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.
@@ -26,7 +26,7 @@ exports.OVOK_CORE_REQUIREMENTS = {
26
26
  description: "The FHIR surface a server must provide for the @ovok/core client library's own methods to function.",
27
27
  software: {
28
28
  name: "@ovok/core",
29
- version: "0.4.59-dev.556+6017fd9",
29
+ version: "0.4.59-dev.557+1ffc5a1",
30
30
  },
31
31
  fhirVersion: "4.0.1",
32
32
  format: ["json"],
@@ -6,10 +6,11 @@ const url_1 = require("../../http/url");
6
6
  const SOCKET_PATH = "/ws/subscriptions-r4";
7
7
  const fetchRealtimeBinding = async (http, subscriptionId, baseUrl) => {
8
8
  var _a, _b, _c, _d, _e, _f;
9
+ // No Cache-Control request header: browsers send it in a CORS preflight the API refuses.
9
10
  const parameters = await http.send({
10
11
  method: "GET",
11
12
  path: `Subscription/${(0, url_1.pathSegment)(subscriptionId)}/$get-ws-binding-token`,
12
- headers: { Accept: "application/fhir+json", "Cache-Control": "no-cache" },
13
+ headers: { Accept: "application/fhir+json" },
13
14
  });
14
15
  const token = (_b = (_a = parameters.parameter) === null || _a === void 0 ? void 0 : _a.find((parameter) => parameter.name === "token")) === null || _b === void 0 ? void 0 : _b.valueString;
15
16
  const url = (_d = (_c = parameters.parameter) === null || _c === void 0 ? void 0 : _c.find((parameter) => parameter.name === "websocket-url")) === null || _d === void 0 ? void 0 : _d.valueUrl;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ovok/core",
3
- "version": "0.4.59-dev.556+6017fd9",
3
+ "version": "0.4.59-dev.557+1ffc5a1",
4
4
  "private": false,
5
5
  "main": "dist/next/index.js",
6
6
  "types": "dist/next/index.d.ts",