@batijs/features
Advanced tools
Comparing version 0.0.259 to 0.0.260
@@ -37,4 +37,5 @@ import { c as categoriesGroups, F as Flags } from './features--7HDnptH.js'; | ||
get hasDatabase(): boolean; | ||
get hasD1(): boolean; | ||
} | ||
export { BatiSet, type Category, type Feature, type FeatureLink, Flags, categoriesGroups }; |
@@ -92,2 +92,3 @@ import { | ||
#servers; | ||
// eslint-disable-next-line no-unused-private-class-members | ||
#databases; | ||
@@ -107,4 +108,7 @@ constructor(flags2, allFeatures) { | ||
get hasDatabase() { | ||
return this.hasOneOf(this.#databases); | ||
return this.has("sqlite") || this.has("drizzle"); | ||
} | ||
get hasD1() { | ||
return this.has("cloudflare") && (this.has("sqlite") || this.has("drizzle")); | ||
} | ||
}; | ||
@@ -111,0 +115,0 @@ export { |
@@ -65,2 +65,3 @@ import { | ||
}), | ||
// TODO: sqlite does not work on stackblitz either | ||
includes(8 /* INFO_DRIZZLE_STACKBLITZ */, "drizzle") | ||
@@ -67,0 +68,0 @@ ]; |
{ | ||
"name": "@batijs/features", | ||
"version": "0.0.259", | ||
"version": "0.0.260", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "type": "module", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
191445
1882