@batijs/features
Advanced tools
Comparing version 0.0.184 to 0.0.186
@@ -1,3 +0,3 @@ | ||
import { c as categoriesGroups } from './features-pXkQVZ7T.js'; | ||
export { C as CategoryLabels, F as Flags, a as categories, d as cliFlags, f as features, b as flags } from './features-pXkQVZ7T.js'; | ||
import { c as categoriesGroups } from './features-DjbmDsRH.js'; | ||
export { C as CategoryLabels, F as Flags, a as categories, d as cliFlags, f as features, b as flags } from './features-DjbmDsRH.js'; | ||
@@ -4,0 +4,0 @@ interface Feature<C = string> { |
@@ -5,3 +5,3 @@ import { | ||
flags | ||
} from "./chunk-JNL4SOUP.js"; | ||
} from "./chunk-F5ETT5VO.js"; | ||
@@ -8,0 +8,0 @@ // src/groups.ts |
@@ -1,2 +0,2 @@ | ||
import { F as Flags, C as CategoryLabels } from './features-pXkQVZ7T.js'; | ||
import { F as Flags, C as CategoryLabels } from './features-DjbmDsRH.js'; | ||
@@ -6,3 +6,4 @@ declare enum RulesMessage { | ||
ERROR_COMPILED_R_REACT = 1, | ||
INFO_HATTIP = 2 | ||
ERROR_AUTH0_E_HONO = 2, | ||
INFO_HATTIP = 3 | ||
} | ||
@@ -9,0 +10,0 @@ |
import { | ||
features, | ||
flags | ||
} from "./chunk-JNL4SOUP.js"; | ||
} from "./chunk-F5ETT5VO.js"; | ||
@@ -10,3 +10,4 @@ // src/rules/enum.ts | ||
RulesMessage2[RulesMessage2["ERROR_COMPILED_R_REACT"] = 1] = "ERROR_COMPILED_R_REACT"; | ||
RulesMessage2[RulesMessage2["INFO_HATTIP"] = 2] = "INFO_HATTIP"; | ||
RulesMessage2[RulesMessage2["ERROR_AUTH0_E_HONO"] = 2] = "ERROR_AUTH0_E_HONO"; | ||
RulesMessage2[RulesMessage2["INFO_HATTIP"] = 3] = "INFO_HATTIP"; | ||
return RulesMessage2; | ||
@@ -16,2 +17,5 @@ })(RulesMessage || {}); | ||
// src/rules/utils.ts | ||
function exclusive(message, rules) { | ||
return (fts) => rules.every((r) => fts.has(r)) && message; | ||
} | ||
function requires(message, ifPresent, mustAlsoInclude) { | ||
@@ -39,3 +43,4 @@ const m = Array.from(prepare(mustAlsoInclude)); | ||
requires(1 /* ERROR_COMPILED_R_REACT */, "compiled-css", ["react"]), | ||
includes(2 /* INFO_HATTIP */, "hattip") | ||
includes(3 /* INFO_HATTIP */, "hattip"), | ||
exclusive(2 /* ERROR_AUTH0_E_HONO */, ["auth0", "hono"]) | ||
]; | ||
@@ -42,0 +47,0 @@ |
{ | ||
"name": "@batijs/features", | ||
"version": "0.0.184", | ||
"version": "0.0.186", | ||
"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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
151359
1469
1