summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/npm/node_modules/undici/lib/llhttp/utils.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g4f/Provider/npm/node_modules/undici/lib/llhttp/utils.js15
-rw-r--r--g4f/Provider/npm/node_modules/undici/lib/llhttp/utils.js.map1
2 files changed, 16 insertions, 0 deletions
diff --git a/g4f/Provider/npm/node_modules/undici/lib/llhttp/utils.js b/g4f/Provider/npm/node_modules/undici/lib/llhttp/utils.js
new file mode 100644
index 00000000..8a32e564
--- /dev/null
+++ b/g4f/Provider/npm/node_modules/undici/lib/llhttp/utils.js
@@ -0,0 +1,15 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.enumToMap = void 0;
+function enumToMap(obj) {
+ const res = {};
+ Object.keys(obj).forEach((key) => {
+ const value = obj[key];
+ if (typeof value === 'number') {
+ res[key] = value;
+ }
+ });
+ return res;
+}
+exports.enumToMap = enumToMap;
+//# sourceMappingURL=utils.js.map \ No newline at end of file
diff --git a/g4f/Provider/npm/node_modules/undici/lib/llhttp/utils.js.map b/g4f/Provider/npm/node_modules/undici/lib/llhttp/utils.js.map
new file mode 100644
index 00000000..2d7c3562
--- /dev/null
+++ b/g4f/Provider/npm/node_modules/undici/lib/llhttp/utils.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/llhttp/utils.ts"],"names":[],"mappings":";;;AAIA,SAAgB,SAAS,CAAC,GAAQ;IAChC,MAAM,GAAG,GAAa,EAAE,CAAC;IAEzB,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QAC/B,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;QACvB,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC7B,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;SAClB;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,GAAG,CAAC;AACb,CAAC;AAXD,8BAWC"} \ No newline at end of file