@bleedingdev/modern-js-create-request 3.5.0-ultramodern.31 → 3.5.0-ultramodern.32

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.
@@ -244,7 +244,7 @@ const createRequestFactory = (environment)=>{
244
244
  path: finalPath
245
245
  });
246
246
  }
247
- if (!isServerTarget) headers.accept = "application/json,*/*;q=0.8";
247
+ if (!isServerTarget) (0, external_policyCore_js_namespaceObject.writeHeader)(headers, 'accept', "application/json,*/*;q=0.8");
248
248
  if (isServerTarget) {
249
249
  if (void 0 === (0, external_policyCore_js_namespaceObject.readHeader)(headers, external_policyCore_js_namespaceObject.TRACEPARENT_HEADER)) {
250
250
  const incomingTraceparent = (0, external_policyCore_js_namespaceObject.firstHeaderValue)((0, external_policyCore_js_namespaceObject.readHeader)(incomingHeaders, external_policyCore_js_namespaceObject.TRACEPARENT_HEADER));
@@ -255,7 +255,7 @@ const createRequestFactory = (environment)=>{
255
255
  attachEnvelopeHeaderIfRequired(headers, requestId, url, incomingHeaders);
256
256
  attachSecuredOperationHeaders(headers, requestId, method, path, operationContext);
257
257
  if ('get' === method.toLowerCase()) body = void 0;
258
- if (isServerTarget) headers.accept = "application/json,*/*;q=0.8";
258
+ if (isServerTarget) (0, external_policyCore_js_namespaceObject.writeHeader)(headers, 'accept', "application/json,*/*;q=0.8");
259
259
  return (0, external_transport_js_namespaceObject.executeWithResilience)({
260
260
  requestId,
261
261
  target: environment.target,
@@ -211,7 +211,7 @@ const createRequestFactory = (environment)=>{
211
211
  path: finalPath
212
212
  });
213
213
  }
214
- if (!isServerTarget) headers.accept = "application/json,*/*;q=0.8";
214
+ if (!isServerTarget) writeHeader(headers, 'accept', "application/json,*/*;q=0.8");
215
215
  if (isServerTarget) {
216
216
  if (void 0 === readHeader(headers, TRACEPARENT_HEADER)) {
217
217
  const incomingTraceparent = firstHeaderValue(readHeader(incomingHeaders, TRACEPARENT_HEADER));
@@ -222,7 +222,7 @@ const createRequestFactory = (environment)=>{
222
222
  attachEnvelopeHeaderIfRequired(headers, requestId, url, incomingHeaders);
223
223
  attachSecuredOperationHeaders(headers, requestId, method, path, operationContext);
224
224
  if ('get' === method.toLowerCase()) body = void 0;
225
- if (isServerTarget) headers.accept = "application/json,*/*;q=0.8";
225
+ if (isServerTarget) writeHeader(headers, 'accept', "application/json,*/*;q=0.8");
226
226
  return executeWithResilience({
227
227
  requestId,
228
228
  target: environment.target,
@@ -212,7 +212,7 @@ const createRequestFactory = (environment)=>{
212
212
  path: finalPath
213
213
  });
214
214
  }
215
- if (!isServerTarget) headers.accept = "application/json,*/*;q=0.8";
215
+ if (!isServerTarget) writeHeader(headers, 'accept', "application/json,*/*;q=0.8");
216
216
  if (isServerTarget) {
217
217
  if (void 0 === readHeader(headers, TRACEPARENT_HEADER)) {
218
218
  const incomingTraceparent = firstHeaderValue(readHeader(incomingHeaders, TRACEPARENT_HEADER));
@@ -223,7 +223,7 @@ const createRequestFactory = (environment)=>{
223
223
  attachEnvelopeHeaderIfRequired(headers, requestId, url, incomingHeaders);
224
224
  attachSecuredOperationHeaders(headers, requestId, method, path, operationContext);
225
225
  if ('get' === method.toLowerCase()) body = void 0;
226
- if (isServerTarget) headers.accept = "application/json,*/*;q=0.8";
226
+ if (isServerTarget) writeHeader(headers, 'accept', "application/json,*/*;q=0.8");
227
227
  return executeWithResilience({
228
228
  requestId,
229
229
  target: environment.target,
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "modern",
18
18
  "modern.js"
19
19
  ],
20
- "version": "3.5.0-ultramodern.31",
20
+ "version": "3.5.0-ultramodern.32",
21
21
  "modern:source": "./src/node.ts",
22
22
  "types": "./dist/types/browser.d.ts",
23
23
  "main": "./dist/cjs/node.js",
@@ -62,8 +62,8 @@
62
62
  "encoding": "^0.1.13",
63
63
  "path-to-regexp": "^8.4.2",
64
64
  "qs": "^6.15.3",
65
- "@modern-js/runtime-utils": "npm:@bleedingdev/modern-js-runtime-utils@3.5.0-ultramodern.31",
66
- "@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.5.0-ultramodern.31"
65
+ "@modern-js/runtime-utils": "npm:@bleedingdev/modern-js-runtime-utils@3.5.0-ultramodern.32",
66
+ "@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.5.0-ultramodern.32"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@rslib/core": "0.23.1",
@@ -73,8 +73,8 @@
73
73
  "happy-dom": "^20.10.6",
74
74
  "nock": "^14.0.16",
75
75
  "typescript": "^6.0.3",
76
- "@modern-js/types": "npm:@bleedingdev/modern-js-types@3.5.0-ultramodern.31",
77
- "@scripts/rstest-config": "2.66.0"
76
+ "@scripts/rstest-config": "2.66.0",
77
+ "@modern-js/types": "npm:@bleedingdev/modern-js-types@3.5.0-ultramodern.32"
78
78
  },
79
79
  "sideEffects": false,
80
80
  "publishConfig": {