Skip to content

Commit

Permalink
plugin-management: Move code to ESM module
Browse files Browse the repository at this point in the history
  • Loading branch information
illume committed Jul 18, 2024
1 parent 1a68213 commit 020a2f8
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
/**
* plugin-management-utils.js has the core logic for managing plugins in Headlamp.
* plugin-management.mjs has the core logic for managing plugins in Headlamp.
*
* Provides methods for installing, updating, listing and uninstalling plugins.
*
* Used by:
* - plugins/headlamp-plugin/bin/headlamp-plugin.js cli
* - app/ to manage plugins.
*/
const fs = require('fs');
const os = require('os');
const zlib = require('zlib');
const tar = require('tar');
const path = require('path');
const crypto = require('crypto');
const stream = require('stream');
const semver = require('semver');
const envPaths = require('env-paths');
import fs from 'fs';
import os from 'os';
import zlib from 'zlib';
import tar from 'tar';
import path from 'path';
import crypto from 'crypto';
import stream from 'stream';
import semver from 'semver';
import envPaths from 'env-paths';

// comment out for testing
// function sleep(ms) {
Expand Down

0 comments on commit 020a2f8

Please sign in to comment.