remove old stuff

This commit is contained in:
Erik 2023-05-15 22:42:43 +03:00
parent 3032a8b83d
commit 104bee2c19
Signed by: Navy.gif
GPG Key ID: 2532FBBB61C65A68
2 changed files with 0 additions and 9 deletions

View File

@ -1,5 +1,3 @@
nodeLinker: node-modules
npmRegistryServer: "https://registry.corgi.wtf"
yarnPath: .yarn/releases/yarn-3.5.1.cjs

View File

@ -8,9 +8,6 @@ import FlagManager from "../components/FlagManager.js";
// Prod: (1 << 3)
// };
const CONSUMERS = [ 'client', 'server', 'api' ];
const ENVS = [ 'test', 'prod' ];
class Flag {
#manager: FlagManager;
@ -35,13 +32,9 @@ class Flag {
if (!data.consumer)
throw new Error('Missing consumer');
if (!CONSUMERS.includes(data.consumer))
throw new Error('Bad consumer');
if (!data.env)
throw new Error('Missing env');
if (!ENVS.includes(data.env))
throw new Error('Bad env');
if (!('value' in data))
throw new Error('Missing value');