backend-manager 3.2.42 → 3.2.43
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/package.json
CHANGED
|
@@ -99,11 +99,10 @@ OpenAI.prototype.request = function (options) {
|
|
|
99
99
|
|
|
100
100
|
// Load content
|
|
101
101
|
if (input.path) {
|
|
102
|
-
|
|
102
|
+
const exists = jetpack.exists(input.path);
|
|
103
|
+
if (!exists) {
|
|
103
104
|
return new Error(`Path ${input.path} not found`);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
if (jetpack.isDirectory(input.path)) {
|
|
105
|
+
} else if (exists === 'dir') {
|
|
107
106
|
return new Error(`Path ${input.path} is a directory`);
|
|
108
107
|
}
|
|
109
108
|
|