🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@edx/cohesion-wrapper

Package Overview
Dependencies
Maintainers
4
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@edx/cohesion-wrapper

cohesion wrapper

0.0.6
latest
Source
npm
Version published
Weekly downloads
11
-8.33%
Maintainers
4
Weekly downloads
 
Created
Source

Cohesion Wrapper plugin

This is a plugin to add cohesion script to the head element of Learning MFE

Hosted project

frontend-app-learning::env.config.jsx

import {
  PLUGIN_OPERATIONS,
  DIRECT_PLUGIN,
} from "@openedx/frontend-plugin-framework";
import Plugin from "@edx/cohesion-wrapper";

// Load environment variables from .env file
const config = {
  ...process.env,
  pluginSlots: {
    header_slot: {
      plugins: [
        {
          op: PLUGIN_OPERATIONS.Insert,
          widget: {
            id: "cohesion_wrapper",
            type: DIRECT_PLUGIN,
            priority: 1,
            RenderWidget: Plugin,
          },
        },
      ],
    },
  },
};

export default config;

frontend-app-learning::module.config.js

module.exports = {
  localModules: [
    {
      moduleName: "@edx/cohesion-wrapper",
      dir: "../src/frontend-plugins/packages/cohesion-wrapper",
    },
  ],
};

FAQs

Package last updated on 18 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts