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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "backend-manager",
3
- "version": "3.2.42",
3
+ "version": "3.2.43",
4
4
  "description": "Quick tools for developing Firebase functions",
5
5
  "main": "src/manager/index.js",
6
6
  "bin": {
@@ -99,11 +99,10 @@ OpenAI.prototype.request = function (options) {
99
99
 
100
100
  // Load content
101
101
  if (input.path) {
102
- if (!jetpack.exists(input.path)) {
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