@adviser/cement 0.2.44 → 0.2.45
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.cjs +3 -0
- package/index.cjs.map +1 -1
- package/index.d.cts +1 -1
- package/index.d.ts +1 -1
- package/index.js +3 -0
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/src/http_header.ts +4 -1
- package/src/jsr.json +1 -1
- package/ts/http_header.d.ts +1 -1
- package/ts/http_header.d.ts.map +1 -1
- package/ts/http_header.js +3 -0
- package/ts/http_header.js.map +1 -1
- package/ts/http_header.test.js +6 -0
- package/ts/http_header.test.js.map +1 -1
package/index.cjs
CHANGED
@@ -2783,6 +2783,9 @@ var HttpHeader = class _HttpHeader {
|
|
2783
2783
|
this._headers = /* @__PURE__ */ new Map();
|
2784
2784
|
}
|
2785
2785
|
static from(headers) {
|
2786
|
+
if (headers instanceof _HttpHeader) {
|
2787
|
+
return headers.Clone();
|
2788
|
+
}
|
2786
2789
|
const h = new _HttpHeader();
|
2787
2790
|
if (headers) {
|
2788
2791
|
if (Array.isArray(headers)) {
|