Comparing version 0.1.23 to 0.1.24
@@ -32,4 +32,6 @@ "use strict"; | ||
}) | ||
.then((res) => res.text()); | ||
return response; | ||
.catch(() => ({ | ||
data: "", | ||
})); | ||
return response.data; | ||
} | ||
@@ -36,0 +38,0 @@ exports.get = get; |
@@ -1,2 +0,2 @@ | ||
import { generateWithType, t } from "../lib/index"; | ||
import { kv, generateWithType, t } from "../lib/index"; | ||
@@ -17,2 +17,4 @@ const functionDescriptionType = t.type({ | ||
(async () => { | ||
await kv.set("abc", ""); | ||
console.log(await kv.get("abc")); | ||
const { returnType } = await generateWithType( | ||
@@ -19,0 +21,0 @@ "function add(a, b, c) { return a + b + c }", |
@@ -40,5 +40,7 @@ import axios from "axios"; | ||
}) | ||
.then((res: any) => res.text()); | ||
.catch(() => ({ | ||
data: "", | ||
})); | ||
return response; | ||
return response.data; | ||
} | ||
@@ -45,0 +47,0 @@ |
{ | ||
"name": "polyfact", | ||
"version": "0.1.23", | ||
"version": "0.1.24", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
Sorry, the diff of this file is not supported yet
936148
2137