@batijs/features
Advanced tools
Comparing version 0.0.195 to 0.0.196
@@ -6,4 +6,3 @@ import { F as Flags, C as CategoryLabels } from './features-DQ3aZZCU.js'; | ||
ERROR_COMPILED_R_REACT = 1, | ||
ERROR_AUTH0_E_HONO = 2, | ||
INFO_HATTIP = 3 | ||
INFO_HATTIP = 2 | ||
} | ||
@@ -10,0 +9,0 @@ |
@@ -10,4 +10,3 @@ import { | ||
RulesMessage2[RulesMessage2["ERROR_COMPILED_R_REACT"] = 1] = "ERROR_COMPILED_R_REACT"; | ||
RulesMessage2[RulesMessage2["ERROR_AUTH0_E_HONO"] = 2] = "ERROR_AUTH0_E_HONO"; | ||
RulesMessage2[RulesMessage2["INFO_HATTIP"] = 3] = "INFO_HATTIP"; | ||
RulesMessage2[RulesMessage2["INFO_HATTIP"] = 2] = "INFO_HATTIP"; | ||
return RulesMessage2; | ||
@@ -17,5 +16,2 @@ })(RulesMessage || {}); | ||
// src/rules/utils.ts | ||
function exclusive(message, rules) { | ||
return (fts) => rules.every((r) => fts.has(r)) && message; | ||
} | ||
function requires(message, ifPresent, mustAlsoInclude) { | ||
@@ -43,4 +39,3 @@ const m = Array.from(prepare(mustAlsoInclude)); | ||
requires(1 /* ERROR_COMPILED_R_REACT */, "compiled-css", ["react"]), | ||
includes(3 /* INFO_HATTIP */, "hattip"), | ||
exclusive(2 /* ERROR_AUTH0_E_HONO */, ["auth0", "hono"]) | ||
includes(2 /* INFO_HATTIP */, "hattip") | ||
]; | ||
@@ -47,0 +42,0 @@ |
{ | ||
"name": "@batijs/features", | ||
"version": "0.0.195", | ||
"version": "0.0.196", | ||
"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
160181
1525