MCPcopy Create free account
hub / github.com/dailydotdev/apps / enrichBootWithFeatures

Function enrichBootWithFeatures

packages/shared/src/lib/boot.ts:130–143  ·  view source on GitHub ↗
(boot: Boot)

Source from the content-addressed store, hash-verified

128};
129
130const enrichBootWithFeatures = async (boot: Boot): Promise<Boot> => {
131 if (!boot.exp || !process.env.NEXT_PUBLIC_EXPERIMENTATION_KEY) {
132 return boot;
133 }
134
135 const features = await decrypt(
136 boot.exp.f,
137 process.env.NEXT_PUBLIC_EXPERIMENTATION_KEY,
138 'AES-CBC',
139 128,
140 );
141
142 return { ...boot, exp: { ...boot.exp, features: JSON.parse(features) } };
143};
144
145interface GetBootDataParams {
146 app: string;

Callers 1

getBootDataFunction · 0.85

Calls 1

decryptFunction · 0.90

Tested by

no test coverage detected