@adviser/cement 0.2.42 → 0.2.43

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/index.d.cts CHANGED
@@ -594,10 +594,10 @@ declare const VERSION: string;
594
594
  declare class HeadersImpl extends Headers {
595
595
  readonly _headers: Map<string, string>;
596
596
  constructor(init: Map<string, string>);
597
- [Symbol.iterator](): HeadersIterator<[string, string]>;
598
- entries(): HeadersIterator<[string, string]>;
599
- keys(): HeadersIterator<string>;
600
- values(): HeadersIterator<string>;
597
+ [Symbol.iterator](): IterableIterator<[string, string]>;
598
+ entries(): IterableIterator<[string, string]>;
599
+ keys(): IterableIterator<string>;
600
+ values(): IterableIterator<string>;
601
601
  append(key: string, value: string | string[] | undefined): HeadersImpl;
602
602
  }
603
603
  declare class HttpHeader {
package/index.d.ts CHANGED
@@ -594,10 +594,10 @@ declare const VERSION: string;
594
594
  declare class HeadersImpl extends Headers {
595
595
  readonly _headers: Map<string, string>;
596
596
  constructor(init: Map<string, string>);
597
- [Symbol.iterator](): HeadersIterator<[string, string]>;
598
- entries(): HeadersIterator<[string, string]>;
599
- keys(): HeadersIterator<string>;
600
- values(): HeadersIterator<string>;
597
+ [Symbol.iterator](): IterableIterator<[string, string]>;
598
+ entries(): IterableIterator<[string, string]>;
599
+ keys(): IterableIterator<string>;
600
+ values(): IterableIterator<string>;
601
601
  append(key: string, value: string | string[] | undefined): HeadersImpl;
602
602
  }
603
603
  declare class HttpHeader {
package/index.js CHANGED
@@ -1,8 +1,3 @@
1
- import {
2
- ConsoleWriterStream,
3
- FanoutWriteStream,
4
- utils_exports
5
- } from "./chunk-3RHIVQAA.js";
6
1
  import {
7
2
  WebSysAbstraction
8
3
  } from "./chunk-N3NUTN4B.js";
@@ -31,6 +26,11 @@ import {
31
26
  WrapperSysAbstraction,
32
27
  envFactory
33
28
  } from "./chunk-N5LQQXOU.js";
29
+ import {
30
+ ConsoleWriterStream,
31
+ FanoutWriteStream,
32
+ utils_exports
33
+ } from "./chunk-3RHIVQAA.js";
34
34
  import {
35
35
  Utf8EnDecoder,
36
36
  Utf8EnDecoderSingleton
@@ -1972,9 +1972,9 @@ var HttpHeader = class _HttpHeader {
1972
1972
  } else {
1973
1973
  for (const k in headers) {
1974
1974
  const v = headers[k];
1975
- if (v) {
1976
- h.Add(k, v);
1977
- }
1975
+ (Array.isArray(v) ? v : [v]).forEach((v2) => {
1976
+ h.Add(k, v2);
1977
+ });
1978
1978
  }
1979
1979
  }
1980
1980
  }