qualifire 1.1.8 → 1.1.9
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/lib/index.js +5 -6
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Qualifire = void 0;
|
|
4
|
-
const types_1 = require("./types");
|
|
5
4
|
/**
|
|
6
5
|
* Represents the Qualifire SDK.
|
|
7
6
|
*/
|
|
@@ -39,11 +38,11 @@ class Qualifire {
|
|
|
39
38
|
throw new Error(`Qualifire API error: ${response.statusText}`);
|
|
40
39
|
}
|
|
41
40
|
const jsonResponse = await response.json();
|
|
42
|
-
const parsed =
|
|
43
|
-
if (!parsed.success) {
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
return
|
|
41
|
+
// const parsed = evaluationResponseSchema.safeParse(jsonResponse);
|
|
42
|
+
// if (!parsed.success) {
|
|
43
|
+
// throw new Error('Qualifire API error: Evaluation failed');
|
|
44
|
+
// }
|
|
45
|
+
return jsonResponse;
|
|
47
46
|
}
|
|
48
47
|
};
|
|
49
48
|
const key = apiKey || process.env.QUALIFIRE_API_KEY;
|