Skip to content

Commit 454a362

Browse files
committed
add todo
1 parent db35629 commit 454a362

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

esm/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// todo : encodeURIComponent usage?
2+
// todo : https://github.com/Swizec/better-fetch implemntation
23
const castArray=a=>Array.isArray(a)?a:[a];
34
const prefix=p=>s=>p+s;
45
const join=(d=',')=>a=>castArray(a).join(d);
@@ -64,4 +65,4 @@ export default (baseUrl, config={})=>{
6465
me:()=>_fetch('GET',null,['me'])
6566
//,openapi:()=>_fetch('GET',null,['openapi'])
6667
};
67-
};
68+
};

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// todo : encodeURIComponent usage?
2+
// todo : https://github.com/Swizec/better-fetch implemntation
23
const castArray=a=>Array.isArray(a)?a:[a];
34
const prefix=p=>s=>p+s;
45
const join=(d=',')=>a=>castArray(a).join(d);
@@ -66,4 +67,4 @@ var index = (baseUrl, config={})=>{
6667
};
6768
};
6869

69-
export default index;
70+
export { index as default };

0 commit comments

Comments
 (0)