@tinacms/cli 1.5.38 → 1.5.39
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/dist/index.js +11 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -31,7 +31,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
31
31
|
var import_clipanion8 = require("clipanion");
|
|
32
32
|
|
|
33
33
|
// package.json
|
|
34
|
-
var version = "1.5.
|
|
34
|
+
var version = "1.5.39";
|
|
35
35
|
|
|
36
36
|
// src/next/commands/dev-command/index.ts
|
|
37
37
|
var import_clipanion2 = require("clipanion");
|
|
@@ -3584,6 +3584,11 @@ var supportedDatabaseAdapters = {
|
|
|
3584
3584
|
from: "mongodb-level",
|
|
3585
3585
|
imported: ["MongodbLevel"],
|
|
3586
3586
|
packageName: "mongodb-level"
|
|
3587
|
+
},
|
|
3588
|
+
{
|
|
3589
|
+
from: "mongodb",
|
|
3590
|
+
imported: [],
|
|
3591
|
+
packageName: "mongodb"
|
|
3587
3592
|
}
|
|
3588
3593
|
]
|
|
3589
3594
|
},
|
|
@@ -3862,7 +3867,11 @@ var makeImportString = (imports) => {
|
|
|
3862
3867
|
if (!imports) {
|
|
3863
3868
|
return "";
|
|
3864
3869
|
}
|
|
3865
|
-
|
|
3870
|
+
const filtered = imports.filter((x) => x.imported.length > 0);
|
|
3871
|
+
if (filtered.length === 0) {
|
|
3872
|
+
return "";
|
|
3873
|
+
}
|
|
3874
|
+
return filtered.map((x) => {
|
|
3866
3875
|
return `import { ${x.imported.join(",")} } from '${x.from}'`;
|
|
3867
3876
|
}).join("\n");
|
|
3868
3877
|
};
|