buttercup-pw/buttercup-core

View on GitHub
source/env/web/index.ts

Summary

Maintainability
B
4 hrs
Test Coverage
import { getCryptoResources } from "./crypto";
import { getCompressionResources as getV1CompressionResources } from "./compression.v1";
import { getCompressionResources as getV2CompressionResources } from "./compression.v2";
import { getEnvironmentResources } from "./environment";
import { getNetResources } from "./net";
import { getRNGResources } from "./rng";
import { getEncodingResources } from "./encoding";
import { AppEnv } from "../core/appEnv";

export function applyWebConfiguration(appEnv: AppEnv) {
    appEnv.setProperties(getCryptoResources());
    appEnv.setProperties(getV1CompressionResources());
    appEnv.setProperties(getV2CompressionResources());
    appEnv.setProperties(getEnvironmentResources());
    appEnv.setProperties(getNetResources());
    appEnv.setProperties(getRNGResources());
    appEnv.setProperties(getEncodingResources());
}