mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 06:33:55 +01:00
Merge pull request #30232 from overleaf/ar/convert-clsi-to-es-modules
[clsi] convert to ES modules GitOrigin-RevId: fb7fa52cc8f678ee31be352e62a5dff95e88008b
This commit is contained in:
@@ -1,21 +1,20 @@
|
||||
let OutputCacheManager
|
||||
const { callbackify, promisify } = require('node:util')
|
||||
const async = require('async')
|
||||
const fs = require('node:fs')
|
||||
const Path = require('node:path')
|
||||
const logger = require('@overleaf/logger')
|
||||
const _ = require('lodash')
|
||||
const Settings = require('@overleaf/settings')
|
||||
const crypto = require('node:crypto')
|
||||
const Metrics = require('@overleaf/metrics')
|
||||
|
||||
const OutputFileOptimiser = require('./OutputFileOptimiser')
|
||||
const ContentCacheManager = require('./ContentCacheManager')
|
||||
const {
|
||||
import { callbackify, promisify } from 'node:util'
|
||||
import async from 'async'
|
||||
import fs from 'node:fs'
|
||||
import Path from 'node:path'
|
||||
import logger from '@overleaf/logger'
|
||||
import _ from 'lodash'
|
||||
import Settings from '@overleaf/settings'
|
||||
import crypto from 'node:crypto'
|
||||
import Metrics from '@overleaf/metrics'
|
||||
import OutputFileOptimiser from './OutputFileOptimiser.js'
|
||||
import ContentCacheManager from './ContentCacheManager.js'
|
||||
import {
|
||||
QueueLimitReachedError,
|
||||
TimedOutError,
|
||||
NoXrefTableError,
|
||||
} = require('./Errors')
|
||||
} from './Errors.js'
|
||||
let OutputCacheManager
|
||||
|
||||
const OLDEST_BUILD_DIR = new Map()
|
||||
const PENDING_PROJECT_ACTIONS = new Map()
|
||||
@@ -101,7 +100,7 @@ async function queueDirOperation(dir, fn) {
|
||||
return p
|
||||
}
|
||||
|
||||
module.exports = OutputCacheManager = {
|
||||
export default OutputCacheManager = {
|
||||
CONTENT_SUBDIR: 'content',
|
||||
CACHE_SUBDIR: 'generated-files',
|
||||
ARCHIVE_SUBDIR: 'archived-logs',
|
||||
|
||||
Reference in New Issue
Block a user