@batijs/features 0.0.258 → 0.0.260
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.d.ts +1 -0
- package/dist/index.js +5 -1
- package/dist/rules.js +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -89,6 +89,7 @@ tailored for Vike.`
|
|
|
89
89
|
// src/helpers.ts
|
|
90
90
|
var BatiSet = class extends Set {
|
|
91
91
|
#servers;
|
|
92
|
+
// eslint-disable-next-line no-unused-private-class-members
|
|
92
93
|
#databases;
|
|
93
94
|
constructor(flags2, allFeatures) {
|
|
94
95
|
super(flags2);
|
|
@@ -103,7 +104,10 @@ var BatiSet = class extends Set {
|
|
|
103
104
|
return this.hasOneOf(this.#servers);
|
|
104
105
|
}
|
|
105
106
|
get hasDatabase() {
|
|
106
|
-
return this.
|
|
107
|
+
return this.has("sqlite") || this.has("drizzle");
|
|
108
|
+
}
|
|
109
|
+
get hasD1() {
|
|
110
|
+
return this.has("cloudflare") && (this.has("sqlite") || this.has("drizzle"));
|
|
107
111
|
}
|
|
108
112
|
};
|
|
109
113
|
export {
|
package/dist/rules.js
CHANGED