mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
feature: cloudcmd: migrate to ESM
This commit is contained in:
parent
e8a81c49ea
commit
4533a25c6f
184 changed files with 339 additions and 388 deletions
|
|
@ -1,12 +1,11 @@
|
|||
'use strict';
|
||||
import httpAuth from 'http-auth';
|
||||
import criton from 'criton';
|
||||
import currify from 'currify';
|
||||
|
||||
const httpAuth = require('http-auth');
|
||||
const criton = require('criton');
|
||||
const currify = require('currify');
|
||||
const middle = currify(_middle);
|
||||
const check = currify(_check);
|
||||
|
||||
module.exports = (config) => {
|
||||
export default (config) => {
|
||||
const auth = httpAuth.basic({
|
||||
realm: 'Cloud Commander',
|
||||
}, check(config));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue