Skip to content
Snippets Groups Projects
Commit 761fa4d8 authored by Yi Ding's avatar Yi Ding
Browse files

switch back to cjs default

parent ade5587a
No related branches found
No related tags found
No related merge requests found
......@@ -14,16 +14,14 @@
"engines": {
"node": ">=18.0.0"
},
"types": "./dist/index.d.ts",
"type": "module",
"exports": {
"import": {
"default": "./dist/index.js",
"types": "./dist/index.d.ts"
"default": "./dist/index.mjs",
"types": "./dist/index.d.mts"
},
"require": {
"default": "./dist/index.cjs",
"types": "./dist/index.d.cts"
"default": "./dist/index.js",
"types": "./dist/index.d.ts"
}
},
"scripts": {
......
......@@ -38,7 +38,7 @@ const {
* - Get response body
* - Check if timeout
*/
export default async function fetchAdapter(config) {
module.exports = async function fetchAdapter(config) {
const request = createRequest(config);
const promiseChain = [getResponse(request, config)];
......@@ -65,7 +65,7 @@ export default async function fetchAdapter(config) {
: settle(resolve, reject, data);
}
});
}
};
/**
* Fetch API stage two is to get response body. This funtion tries to retrieve
......
......@@ -5,7 +5,13 @@ module.exports = {
"turbo/no-undeclared-env-vars": [
"error",
{
allowList: ["OPENAI_API_KEY", "REPLICATE_API_TOKEN"],
allowList: [
"OPENAI_API_KEY",
"REPLICATE_API_TOKEN",
"DEBUG",
"no_proxy",
"NO_PROXY",
],
},
],
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment