Commit 9ad64d8d authored by Aral Balkan's avatar Aral Balkan
Browse files

Update to ESM

parent c4bf79b8
const https = require('..')
import https from '../index.js'
// Helpers
function html(message) {
......
const fs = require('fs-extra')
const os = require('os')
const path = require('path')
const https = require('https')
const log = require('./lib/util/log')
const AutoEncrypt = require('@small-tech/auto-encrypt')
const AutoEncryptLocalhost = require('@small-tech/auto-encrypt-localhost')
import os from 'os'
import fs from 'fs-extra'
import path from 'path'
import https from 'https'
import AutoEncrypt from '@small-tech/auto-encrypt'
import AutoEncryptLocalhost from '@small-tech/auto-encrypt-localhost'
import log from './lib/util/log.js'
const AUTO_ENCRYPT_STAGING_SERVER_TYPE = 1
......@@ -61,4 +61,4 @@ smallTechHttps.createServer = function (options, listener) {
return server
}
module.exports = smallTechHttps
export default smallTechHttps
function log(...args) {
export default function log(...args) {
if (process.env.QUIET) {
return
}
console.log(...args)
}
module.exports = log
const os = require('os')
const path = require('path')
const fs = require('fs-extra')
const test = require('tape')
const https = require('..')
const bent = require('bent')
const hostname = require('@small-tech/cross-platform-hostname')
import os from 'os'
import path from 'path'
import fs from 'fs-extra'
import test from 'tape'
import bent from 'bent'
import hostname from '@small-tech/cross-platform-hostname'
import https from '../index.js'
const getHttpsString = bent('GET', 'string')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment