Merge pull request #16393 from overleaf/em-typescript-libraries

Add type checking to libraries

GitOrigin-RevId: bed79f5123081773d6ac6e27698246726184c5e6
This commit is contained in:
Eric Mc Sween
2024-01-11 08:26:29 -05:00
committed by Copybot
parent f1b460ecea
commit d227dfba0c
28 changed files with 276 additions and 123 deletions

View File

@@ -3,13 +3,17 @@
"version": "3.0.0", "version": "3.0.0",
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"types": "./types/index.js",
"scripts": { "scripts": {
"test": "mocha test/**/*.js", "test": "npm run lint && npm run format && npm run typecheck && npm run test:unit",
"lint": "eslint --max-warnings 0 --format unix .", "lint": "eslint --ext .js --ext .cjs --max-warnings 0 --format unix .",
"lint:fix": "eslint --fix .", "lint:fix": "eslint --fix --ext .js --ext .cjs .",
"format": "prettier --list-different $PWD/'**/*.js'", "format": "prettier --list-different $PWD/'**/*.{js,cjs}'",
"format:fix": "prettier --write $PWD/'**/*.js'", "format:fix": "prettier --write $PWD/'**/*.{js,cjs}'",
"test:ci": "npm run test" "test:ci": "npm run test:unit",
"typecheck": "tsc --noEmit",
"test:unit": "mocha --exit test/**/*.{js,cjs}",
"update-types": "rm -rf types && tsc --emitDeclarationOnly"
}, },
"author": "", "author": "",
"license": "AGPL-3.0-only", "license": "AGPL-3.0-only",
@@ -22,6 +26,7 @@
"devDependencies": { "devDependencies": {
"chai": "^4.3.6", "chai": "^4.3.6",
"mocha": "^10.2.0", "mocha": "^10.2.0",
"sandboxed-module": "^2.0.4" "sandboxed-module": "^2.0.4",
"typescript": "^5.0.4"
} }
} }

View File

@@ -0,0 +1,7 @@
{
"extends": "../../tsconfig.backend.json",
"include": [
"**/*.js",
"**/*.cjs"
]
}

View File

@@ -3,14 +3,17 @@
"version": "0.1.0", "version": "0.1.0",
"description": "utilities for node-fetch", "description": "utilities for node-fetch",
"main": "index.js", "main": "index.js",
"types": "types/index.js",
"scripts": { "scripts": {
"test": "npm run lint && npm run format && npm run test:unit", "test": "npm run lint && npm run format && npm run typecheck && npm run test:unit",
"test:unit": "mocha", "lint": "eslint --ext .js --ext .cjs --max-warnings 0 --format unix .",
"lint": "eslint --max-warnings 0 --format unix .", "lint:fix": "eslint --fix --ext .js --ext .cjs .",
"lint:fix": "eslint --fix .", "format": "prettier --list-different $PWD/'**/*.{js,cjs}'",
"format": "prettier --list-different $PWD/'**/*.js'", "format:fix": "prettier --write $PWD/'**/*.{js,cjs}'",
"format:fix": "prettier --write $PWD/'**/*.js'", "test:ci": "npm run test:unit",
"test:ci": "npm run test:unit" "typecheck": "tsc --noEmit",
"test:unit": "mocha --exit test/**/*.{js,cjs}",
"update-types": "rm -rf types && tsc --emitDeclarationOnly"
}, },
"author": "Overleaf (https://www.overleaf.com)", "author": "Overleaf (https://www.overleaf.com)",
"license": "AGPL-3.0-only", "license": "AGPL-3.0-only",
@@ -19,7 +22,8 @@
"chai": "^4.3.6", "chai": "^4.3.6",
"chai-as-promised": "^7.1.1", "chai-as-promised": "^7.1.1",
"express": "^4.18.2", "express": "^4.18.2",
"mocha": "^10.2.0" "mocha": "^10.2.0",
"typescript": "^5.0.4"
}, },
"dependencies": { "dependencies": {
"@overleaf/o-error": "*", "@overleaf/o-error": "*",

View File

@@ -0,0 +1,7 @@
{
"extends": "../../tsconfig.backend.json",
"include": [
"**/*.js",
"**/*.cjs"
]
}

View File

@@ -6,15 +6,20 @@
"type": "git", "type": "git",
"url": "https://github.com/overleaf/overleaf" "url": "https://github.com/overleaf/overleaf"
}, },
"main": "index.js",
"types": "types/index.js",
"license": "AGPL-3.0-only", "license": "AGPL-3.0-only",
"version": "3.1.1", "version": "3.1.1",
"scripts": { "scripts": {
"test": "mocha --grep=$MOCHA_GREP test/**/*.js", "test": "npm run lint && npm run format && npm run typecheck && npm run test:unit",
"format": "prettier --list-different $PWD/'**/*.js'", "format": "prettier --list-different $PWD/'**/*.{js,cjs}'",
"format:fix": "prettier --write $PWD/'**/*.js'", "format:fix": "prettier --write $PWD/'**/*.{js,cjs}'",
"lint": "eslint --max-warnings 0 --format unix .", "lint": "eslint --ext .js --ext .cjs --max-warnings 0 --format unix .",
"lint:fix": "eslint --fix .", "lint:fix": "eslint --fix --ext .js --ext .cjs .",
"test:ci": "npm run test" "test:ci": "npm run test:unit",
"typecheck": "tsc --noEmit",
"test:unit": "mocha --exit test/**/*.{js,cjs}",
"update-types": "rm -rf types && tsc --emitDeclarationOnly"
}, },
"dependencies": { "dependencies": {
"@google-cloud/logging-bunyan": "^5.0.0", "@google-cloud/logging-bunyan": "^5.0.0",
@@ -28,7 +33,8 @@
"mocha": "^10.2.0", "mocha": "^10.2.0",
"sandboxed-module": "^2.0.4", "sandboxed-module": "^2.0.4",
"sinon": "^9.2.4", "sinon": "^9.2.4",
"sinon-chai": "^3.7.0" "sinon-chai": "^3.7.0",
"typescript": "^5.0.4"
}, },
"peerDependencies": { "peerDependencies": {
"@overleaf/metrics": "*" "@overleaf/metrics": "*"

View File

@@ -0,0 +1,7 @@
{
"extends": "../../tsconfig.backend.json",
"include": [
"**/*.js",
"**/*.cjs"
]
}

View File

@@ -6,6 +6,8 @@
"type": "git", "type": "git",
"url": "https://github.com/overleaf/metrics-module.git" "url": "https://github.com/overleaf/metrics-module.git"
}, },
"main": "index.js",
"types": "types/index.js",
"dependencies": { "dependencies": {
"@google-cloud/opentelemetry-cloud-trace-exporter": "^2.1.0", "@google-cloud/opentelemetry-cloud-trace-exporter": "^2.1.0",
"@google-cloud/profiler": "^6.0.0", "@google-cloud/profiler": "^6.0.0",
@@ -24,17 +26,20 @@
"chai": "^4.3.6", "chai": "^4.3.6",
"mocha": "^10.2.0", "mocha": "^10.2.0",
"sandboxed-module": "^2.0.4", "sandboxed-module": "^2.0.4",
"sinon": "^9.2.4" "sinon": "^9.2.4",
"typescript": "^5.0.4"
}, },
"scripts": { "scripts": {
"lint": "eslint --max-warnings 0 --format unix .", "lint": "eslint --ext .js --ext .cjs --max-warnings 0 --format unix .",
"lint:fix": "eslint --fix .", "lint:fix": "eslint --fix --ext .js --ext .cjs .",
"test:unit": "mocha --reporter spec --recursive --exit --grep=$MOCHA_GREP test/unit", "test:unit": "mocha --exit test/**/*.{js,cjs}",
"test:acceptance": "mocha --reporter spec --recursive --exit --grep=$MOCHA_GREP test/acceptance", "test:acceptance": "mocha --reporter spec --recursive --exit --grep=$MOCHA_GREP test/acceptance",
"test": "npm run test:unit && npm run test:acceptance", "test": "npm run lint && npm run format && npm run typecheck && npm run test:unit",
"format": "prettier --list-different $PWD/'**/*.js'", "format": "prettier --list-different $PWD/'**/*.{js,cjs}'",
"format:fix": "prettier --write $PWD/'**/*.js'", "format:fix": "prettier --write $PWD/'**/*.{js,cjs}'",
"test:ci": "npm run test" "test:ci": "npm run test:unit",
"typecheck": "tsc --noEmit",
"update-types": "rm -rf types && tsc --emitDeclarationOnly"
}, },
"peerDependencies": { "peerDependencies": {
"@overleaf/logger": "*" "@overleaf/logger": "*"

View File

@@ -0,0 +1,7 @@
{
"extends": "../../tsconfig.backend.json",
"include": [
"**/*.js",
"**/*.cjs"
]
}

View File

@@ -13,6 +13,7 @@
"verror" "verror"
], ],
"main": "index.cjs", "main": "index.cjs",
"types": "types/index.cjs",
"files": [ "files": [
"index.cjs", "index.cjs",
"index.d.ts" "index.d.ts"
@@ -21,15 +22,17 @@
"build": "npm run --silent typecheck && npm run --silent test && npm run --silent declaration:build && npm run --silent update-readme", "build": "npm run --silent typecheck && npm run --silent test && npm run --silent declaration:build && npm run --silent update-readme",
"declaration:build": "rm -f index.d.ts && tsc --allowJs --declaration --emitDeclarationOnly --moduleResolution node --target ES6 index.js", "declaration:build": "rm -f index.d.ts && tsc --allowJs --declaration --emitDeclarationOnly --moduleResolution node --target ES6 index.js",
"declaration:check": "git diff --exit-code -- index.d.ts", "declaration:check": "git diff --exit-code -- index.d.ts",
"lint": "eslint --max-warnings 0 --format unix .", "lint": "eslint --ext .js --ext .cjs --max-warnings 0 --format unix .",
"lint:fix": "eslint --fix .", "lint:fix": "eslint --fix --ext .js --ext .cjs .",
"prepublishOnly": "npm run --silent declaration:build && npm run --silent declaration:check", "prepublishOnly": "npm run --silent declaration:build && npm run --silent declaration:check",
"test": "mocha", "test": "npm run lint && npm run format && npm run typecheck && npm run test:unit",
"typecheck": "tsc --allowJs --checkJs --noEmit --skipLibCheck --moduleResolution node --strict --target ES6 *.cjs test/**/*.js", "typecheck": "tsc --noEmit",
"update-readme": "doc/update-readme.js", "update-readme": "doc/update-readme.js",
"format": "prettier --list-different $PWD/'**/*.js'", "format": "prettier --list-different $PWD/'**/*.{js,cjs}'",
"format:fix": "prettier --write $PWD/'**/*.js'", "format:fix": "prettier --write $PWD/'**/*.{js,cjs}'",
"test:ci": "npm run typecheck && npm run test" "test:ci": "npm run test:unit",
"test:unit": "mocha --exit test/**/*.{js,cjs}",
"update-types": "rm -rf types && tsc --emitDeclarationOnly"
}, },
"author": "Overleaf (https://www.overleaf.com)", "author": "Overleaf (https://www.overleaf.com)",
"license": "MIT", "license": "MIT",

View File

@@ -0,0 +1,7 @@
{
"extends": "../../tsconfig.backend.json",
"include": [
"**/*.js",
"**/*.cjs"
]
}

View File

@@ -3,14 +3,17 @@
"version": "1.0.2", "version": "1.0.2",
"description": "Module for storing objects in multiple backends, with fallback on 404 to assist migration between them", "description": "Module for storing objects in multiple backends, with fallback on 404 to assist migration between them",
"main": "index.js", "main": "index.js",
"types": "types/index.js",
"scripts": { "scripts": {
"test": "npm run lint && npm run format && npm run test:unit", "test": "npm run lint && npm run format && npm run typecheck && npm run test:unit",
"test:unit": "mocha", "test:unit": "mocha --exit test/**/*.{js,cjs}",
"lint": "eslint --max-warnings 0 --format unix .", "lint": "eslint --ext .js --ext .cjs --max-warnings 0 --format unix .",
"lint:fix": "eslint --fix .", "lint:fix": "eslint --fix --ext .js --ext .cjs .",
"format": "prettier --list-different $PWD/'**/*.js'", "format": "prettier --list-different $PWD/'**/*.{js,cjs}'",
"format:fix": "prettier --write $PWD/'**/*.js'", "format:fix": "prettier --write $PWD/'**/*.{js,cjs}'",
"test:ci": "npm run test:unit" "test:ci": "npm run test:unit",
"typecheck": "tsc --noEmit",
"update-types": "rm -rf types && tsc --emitDeclarationOnly"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@@ -39,6 +42,7 @@
"mongodb": "^6.1.0", "mongodb": "^6.1.0",
"sandboxed-module": "^2.0.4", "sandboxed-module": "^2.0.4",
"sinon": "^9.2.4", "sinon": "^9.2.4",
"sinon-chai": "^3.7.0" "sinon-chai": "^3.7.0",
"typescript": "^5.0.4"
} }
} }

View File

@@ -0,0 +1,7 @@
{
"extends": "../../tsconfig.backend.json",
"include": [
"**/*.js",
"**/*.cjs"
]
}

View File

@@ -3,13 +3,17 @@
"version": "1.0.0", "version": "1.0.0",
"description": "Library shared between the editor server and clients.", "description": "Library shared between the editor server and clients.",
"main": "index.js", "main": "index.js",
"types": "types/index.js",
"scripts": { "scripts": {
"test": "mocha", "test": "npm run lint && npm run format && npm run typecheck && npm run test:unit",
"format": "prettier --list-different $PWD/'**/*.js'", "format": "prettier --list-different $PWD/'**/*.{js,cjs}'",
"format:fix": "prettier --write $PWD/'**/*.js'", "format:fix": "prettier --write $PWD/'**/*.{js,cjs}'",
"lint": "eslint --max-warnings 0 --format unix lib test && tsc", "lint": "eslint --ext .js --ext .cjs --max-warnings 0 --format unix .",
"lint:fix": "eslint --fix lib test", "lint:fix": "eslint --fix --ext .js --ext .cjs .",
"test:ci": "npm run test" "test:ci": "npm run test:unit",
"typecheck": "tsc --noEmit",
"test:unit": "mocha --exit test/**/*.{js,cjs}",
"update-types": "rm -rf types && tsc --emitDeclarationOnly"
}, },
"author": "team@overleaf.com", "author": "team@overleaf.com",
"license": "Proprietary", "license": "Proprietary",

View File

@@ -62,8 +62,8 @@ describe('Operation', function () {
return { return {
snapshot: snapshotA, snapshot: snapshotA,
operations: operations, operations,
primeOperations: primeOperations, primeOperations,
log() { log() {
console.log(this) console.log(this)

View File

@@ -1,14 +1,7 @@
{ {
"compilerOptions": { "extends": "../../tsconfig.backend.json",
"allowJs": true, "include": [
"allowSyntheticDefaultImports": true, "**/*.js",
"checkJs": true, "**/*.cjs"
"esModuleInterop": true, ]
"lib": ["es2022"],
"module": "commonjs",
"noEmit": true,
"resolveJsonModule": true,
"skipLibCheck": true
},
"include": ["lib/**/*", "typings/**/*"]
} }

View File

@@ -4,20 +4,23 @@
"description": "utilities to help working with promises", "description": "utilities to help working with promises",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"test": "npm run lint && npm run format && npm run test:unit", "test": "npm run lint && npm run format && npm run typecheck && npm run test:unit",
"test:unit": "mocha", "test:unit": "mocha --exit test/**/*.{js,cjs}",
"lint": "eslint --max-warnings 0 --format unix .", "lint": "eslint --ext .js --ext .cjs --max-warnings 0 --format unix .",
"lint:fix": "eslint --fix .", "lint:fix": "eslint --fix --ext .js --ext .cjs .",
"format": "prettier --list-different $PWD/'**/*.js'", "format": "prettier --list-different $PWD/'**/*.{js,cjs}'",
"format:fix": "prettier --write $PWD/'**/*.js'", "format:fix": "prettier --write $PWD/'**/*.{js,cjs}'",
"test:ci": "npm run test:unit" "test:ci": "npm run test:unit",
"typecheck": "tsc --noEmit",
"update-types": "rm -rf types && tsc --emitDeclarationOnly"
}, },
"author": "Overleaf (https://www.overleaf.com)", "author": "Overleaf (https://www.overleaf.com)",
"license": "AGPL-3.0-only", "license": "AGPL-3.0-only",
"devDependencies": { "devDependencies": {
"chai": "^4.3.10", "chai": "^4.3.10",
"chai-as-promised": "^7.1.1", "chai-as-promised": "^7.1.1",
"mocha": "^10.2.0" "mocha": "^10.2.0",
"typescript": "^5.0.4"
}, },
"dependencies": { "dependencies": {
"p-limit": "^2.3.0" "p-limit": "^2.3.0"

View File

@@ -0,0 +1,7 @@
{
"extends": "../../tsconfig.backend.json",
"include": [
"**/*.js",
"**/*.cjs"
]
}

View File

@@ -8,14 +8,18 @@
"author": "Overleaf (https://www.overleaf.com)", "author": "Overleaf (https://www.overleaf.com)",
"private": true, "private": true,
"scripts": { "scripts": {
"lint": "eslint --max-warnings 0 --format unix .", "lint": "eslint --ext .js --ext .cjs --max-warnings 0 --format unix .",
"lint:fix": "eslint --fix .", "lint:fix": "eslint --fix --ext .js --ext .cjs .",
"format": "prettier --list-different $PWD/'**/*.js'", "format": "prettier --list-different $PWD/'**/*.{js,cjs}'",
"format:fix": "prettier --write $PWD/'**/*.js'", "format:fix": "prettier --write $PWD/'**/*.{js,cjs}'",
"test": "mocha --recursive test/unit/src/", "test": "npm run lint && npm run format && npm run typecheck && npm run test:unit",
"test:ci": "npm run test" "test:ci": "npm run test:unit",
"typecheck": "tsc --noEmit",
"test:unit": "mocha --exit test/**/*.{js,cjs}",
"update-types": "rm -rf types && tsc --emitDeclarationOnly"
}, },
"devDependencies": { "devDependencies": {
"mocha": "^10.2.0" "mocha": "^10.2.0",
"typescript": "^5.0.4"
} }
} }

View File

@@ -0,0 +1 @@
// There are no tests yet

View File

@@ -0,0 +1,7 @@
{
"extends": "../../tsconfig.backend.json",
"include": [
"**/*.js",
"**/*.cjs"
]
}

View File

@@ -13,12 +13,15 @@
"repository": "github:overleaf/redis-wrapper", "repository": "github:overleaf/redis-wrapper",
"license": "ISC", "license": "ISC",
"scripts": { "scripts": {
"lint": "eslint --max-warnings 0 --format unix .", "lint": "eslint --ext .js --ext .cjs --max-warnings 0 --format unix .",
"lint:fix": "eslint --fix .", "lint:fix": "eslint --fix --ext .js --ext .cjs .",
"format": "prettier --list-different $PWD/'**/*.js'", "format": "prettier --list-different $PWD/'**/*.{js,cjs}'",
"format:fix": "prettier --write $PWD/'**/*.js'", "format:fix": "prettier --write $PWD/'**/*.{js,cjs}'",
"test": "mocha --recursive test/unit/src/", "test": "npm run lint && npm run format && npm run typecheck && npm run test:unit",
"test:ci": "npm run test" "test:ci": "npm run test:unit",
"typecheck": "tsc --noEmit",
"test:unit": "mocha --exit test/**/*.{js,cjs}",
"update-types": "rm -rf types && tsc --emitDeclarationOnly"
}, },
"peerDependencies": { "peerDependencies": {
"@overleaf/logger": "*", "@overleaf/logger": "*",
@@ -35,6 +38,7 @@
"chai": "^4.3.6", "chai": "^4.3.6",
"mocha": "^10.2.0", "mocha": "^10.2.0",
"sandboxed-module": "^2.0.4", "sandboxed-module": "^2.0.4",
"sinon": "^9.2.4" "sinon": "^9.2.4",
"typescript": "^5.0.4"
} }
} }

View File

@@ -0,0 +1,7 @@
{
"extends": "../../tsconfig.backend.json",
"include": [
"**/*.js",
"**/*.cjs"
]
}

View File

@@ -4,11 +4,18 @@
"version": "3.0.0", "version": "3.0.0",
"repository": "overleaf/settings-module", "repository": "overleaf/settings-module",
"scripts": { "scripts": {
"lint": "eslint --max-warnings 0 --format unix .", "lint": "eslint --ext .js --ext .cjs --max-warnings 0 --format unix .",
"lint:fix": "eslint --fix .", "lint:fix": "eslint --fix --ext .js --ext .cjs .",
"format": "prettier --list-different $PWD/'**/*.js'", "format": "prettier --list-different $PWD/'**/*.{js,cjs}'",
"format:fix": "prettier --write $PWD/'**/*.js'", "format:fix": "prettier --write $PWD/'**/*.{js,cjs}'",
"test": "echo noop", "test": "npm run lint && npm run format && npm run typecheck && npm run test:unit",
"test:ci": "echo noop" "test:ci": "npm run test:unit",
"typecheck": "tsc --noEmit",
"test:unit": "mocha --exit test/**/*.{js,cjs}",
"update-types": "rm -rf types && tsc --emitDeclarationOnly"
},
"devDependencies": {
"mocha": "^10.2.0",
"typescript": "^5.0.4"
} }
} }

View File

@@ -0,0 +1 @@
// There are no tests yet

View File

@@ -0,0 +1,7 @@
{
"extends": "../../tsconfig.backend.json",
"include": [
"**/*.js",
"**/*.cjs"
]
}

View File

@@ -3,20 +3,24 @@
"version": "0.1.0", "version": "0.1.0",
"description": "stream handling utilities", "description": "stream handling utilities",
"main": "index.js", "main": "index.js",
"types": "types/index.js",
"scripts": { "scripts": {
"test": "npm run lint && npm run format && npm run test:unit", "test": "npm run lint && npm run format && npm run typecheck && npm run test:unit",
"test:unit": "mocha", "test:unit": "mocha --exit test/**/*.{js,cjs}",
"lint": "eslint --max-warnings 0 --format unix .", "lint": "eslint --ext .js --ext .cjs --max-warnings 0 --format unix .",
"lint:fix": "eslint --fix .", "lint:fix": "eslint --fix --ext .js --ext .cjs .",
"format": "prettier --list-different $PWD/'**/*.js'", "format": "prettier --list-different $PWD/'**/*.{js,cjs}'",
"format:fix": "prettier --write $PWD/'**/*.js'", "format:fix": "prettier --write $PWD/'**/*.{js,cjs}'",
"test:ci": "npm run test:unit" "test:ci": "npm run test:unit",
"typecheck": "tsc --noEmit",
"update-types": "rm -rf types && tsc --emitDeclarationOnly"
}, },
"author": "Overleaf (https://www.overleaf.com)", "author": "Overleaf (https://www.overleaf.com)",
"license": "AGPL-3.0-only", "license": "AGPL-3.0-only",
"devDependencies":{ "devDependencies": {
"chai": "^4.3.6", "chai": "^4.3.6",
"chai-as-promised": "^7.1.1", "chai-as-promised": "^7.1.1",
"mocha": "^10.2.0" "mocha": "^10.2.0",
"typescript": "^5.0.4"
} }
} }

View File

@@ -0,0 +1,7 @@
{
"extends": "../../tsconfig.backend.json",
"include": [
"**/*.js",
"**/*.cjs"
]
}

70
package-lock.json generated
View File

@@ -86,7 +86,8 @@
"devDependencies": { "devDependencies": {
"chai": "^4.3.6", "chai": "^4.3.6",
"mocha": "^10.2.0", "mocha": "^10.2.0",
"sandboxed-module": "^2.0.4" "sandboxed-module": "^2.0.4",
"typescript": "^5.0.4"
}, },
"peerDependencies": { "peerDependencies": {
"mongodb": "*" "mongodb": "*"
@@ -117,7 +118,8 @@
"chai": "^4.3.6", "chai": "^4.3.6",
"chai-as-promised": "^7.1.1", "chai-as-promised": "^7.1.1",
"express": "^4.18.2", "express": "^4.18.2",
"mocha": "^10.2.0" "mocha": "^10.2.0",
"typescript": "^5.0.4"
} }
}, },
"libraries/fetch-utils/node_modules/body-parser": { "libraries/fetch-utils/node_modules/body-parser": {
@@ -284,7 +286,8 @@
"mocha": "^10.2.0", "mocha": "^10.2.0",
"sandboxed-module": "^2.0.4", "sandboxed-module": "^2.0.4",
"sinon": "^9.2.4", "sinon": "^9.2.4",
"sinon-chai": "^3.7.0" "sinon-chai": "^3.7.0",
"typescript": "^5.0.4"
}, },
"peerDependencies": { "peerDependencies": {
"@overleaf/metrics": "*" "@overleaf/metrics": "*"
@@ -311,7 +314,8 @@
"chai": "^4.3.6", "chai": "^4.3.6",
"mocha": "^10.2.0", "mocha": "^10.2.0",
"sandboxed-module": "^2.0.4", "sandboxed-module": "^2.0.4",
"sinon": "^9.2.4" "sinon": "^9.2.4",
"typescript": "^5.0.4"
}, },
"peerDependencies": { "peerDependencies": {
"@overleaf/logger": "*" "@overleaf/logger": "*"
@@ -359,7 +363,8 @@
"mongodb": "^6.1.0", "mongodb": "^6.1.0",
"sandboxed-module": "^2.0.4", "sandboxed-module": "^2.0.4",
"sinon": "^9.2.4", "sinon": "^9.2.4",
"sinon-chai": "^3.7.0" "sinon-chai": "^3.7.0",
"typescript": "^5.0.4"
}, },
"peerDependencies": { "peerDependencies": {
"@overleaf/logger": "*" "@overleaf/logger": "*"
@@ -509,7 +514,8 @@
"license": "Proprietary", "license": "Proprietary",
"devDependencies": { "devDependencies": {
"chai": "^4.3.6", "chai": "^4.3.6",
"mocha": "^10.2.0" "mocha": "^10.2.0",
"typescript": "^5.0.4"
} }
}, },
"libraries/promise-utils": { "libraries/promise-utils": {
@@ -522,7 +528,8 @@
"devDependencies": { "devDependencies": {
"chai": "^4.3.10", "chai": "^4.3.10",
"chai-as-promised": "^7.1.1", "chai-as-promised": "^7.1.1",
"mocha": "^10.2.0" "mocha": "^10.2.0",
"typescript": "^5.0.4"
} }
}, },
"libraries/promise-utils/node_modules/chai": { "libraries/promise-utils/node_modules/chai": {
@@ -572,7 +579,8 @@
"libraries/ranges-tracker": { "libraries/ranges-tracker": {
"name": "@overleaf/ranges-tracker", "name": "@overleaf/ranges-tracker",
"devDependencies": { "devDependencies": {
"mocha": "^10.2.0" "mocha": "^10.2.0",
"typescript": "^5.0.4"
} }
}, },
"libraries/redis-wrapper": { "libraries/redis-wrapper": {
@@ -589,7 +597,8 @@
"chai": "^4.3.6", "chai": "^4.3.6",
"mocha": "^10.2.0", "mocha": "^10.2.0",
"sandboxed-module": "^2.0.4", "sandboxed-module": "^2.0.4",
"sinon": "^9.2.4" "sinon": "^9.2.4",
"typescript": "^5.0.4"
}, },
"peerDependencies": { "peerDependencies": {
"@overleaf/logger": "*", "@overleaf/logger": "*",
@@ -599,7 +608,11 @@
}, },
"libraries/settings": { "libraries/settings": {
"name": "@overleaf/settings", "name": "@overleaf/settings",
"version": "3.0.0" "version": "3.0.0",
"devDependencies": {
"mocha": "^10.2.0",
"typescript": "^5.0.4"
}
}, },
"libraries/stream-utils": { "libraries/stream-utils": {
"name": "@overleaf/stream-utils", "name": "@overleaf/stream-utils",
@@ -608,7 +621,8 @@
"devDependencies": { "devDependencies": {
"chai": "^4.3.6", "chai": "^4.3.6",
"chai-as-promised": "^7.1.1", "chai-as-promised": "^7.1.1",
"mocha": "^10.2.0" "mocha": "^10.2.0",
"typescript": "^5.0.4"
} }
}, },
"node_modules/@aashutoshrathi/word-wrap": { "node_modules/@aashutoshrathi/word-wrap": {
@@ -53677,7 +53691,8 @@
"chai": "^4.3.6", "chai": "^4.3.6",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"mocha": "^10.2.0", "mocha": "^10.2.0",
"sandboxed-module": "^2.0.4" "sandboxed-module": "^2.0.4",
"typescript": "^5.0.4"
} }
}, },
"@overleaf/analytics": { "@overleaf/analytics": {
@@ -54173,7 +54188,8 @@
"express": "^4.18.2", "express": "^4.18.2",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"mocha": "^10.2.0", "mocha": "^10.2.0",
"node-fetch": "^2.6.11" "node-fetch": "^2.6.11",
"typescript": "^5.0.4"
}, },
"dependencies": { "dependencies": {
"body-parser": { "body-parser": {
@@ -54474,7 +54490,8 @@
"mocha": "^10.2.0", "mocha": "^10.2.0",
"sandboxed-module": "^2.0.4", "sandboxed-module": "^2.0.4",
"sinon": "^9.2.4", "sinon": "^9.2.4",
"sinon-chai": "^3.7.0" "sinon-chai": "^3.7.0",
"typescript": "^5.0.4"
} }
}, },
"@overleaf/metrics": { "@overleaf/metrics": {
@@ -54495,6 +54512,7 @@
"prom-client": "^14.1.1", "prom-client": "^14.1.1",
"sandboxed-module": "^2.0.4", "sandboxed-module": "^2.0.4",
"sinon": "^9.2.4", "sinon": "^9.2.4",
"typescript": "^5.0.4",
"yn": "^3.1.1" "yn": "^3.1.1"
}, },
"dependencies": { "dependencies": {
@@ -54583,7 +54601,8 @@
"sandboxed-module": "^2.0.4", "sandboxed-module": "^2.0.4",
"sinon": "^9.2.4", "sinon": "^9.2.4",
"sinon-chai": "^3.7.0", "sinon-chai": "^3.7.0",
"tiny-async-pool": "^1.1.0" "tiny-async-pool": "^1.1.0",
"typescript": "^5.0.4"
}, },
"dependencies": { "dependencies": {
"bson": { "bson": {
@@ -54621,7 +54640,8 @@
"version": "file:libraries/piece-table", "version": "file:libraries/piece-table",
"requires": { "requires": {
"chai": "^4.3.6", "chai": "^4.3.6",
"mocha": "^10.2.0" "mocha": "^10.2.0",
"typescript": "^5.0.4"
} }
}, },
"@overleaf/project-history": { "@overleaf/project-history": {
@@ -54770,7 +54790,8 @@
"chai": "^4.3.10", "chai": "^4.3.10",
"chai-as-promised": "^7.1.1", "chai-as-promised": "^7.1.1",
"mocha": "^10.2.0", "mocha": "^10.2.0",
"p-limit": "^2.3.0" "p-limit": "^2.3.0",
"typescript": "^5.0.4"
}, },
"dependencies": { "dependencies": {
"chai": { "chai": {
@@ -54810,7 +54831,8 @@
"@overleaf/ranges-tracker": { "@overleaf/ranges-tracker": {
"version": "file:libraries/ranges-tracker", "version": "file:libraries/ranges-tracker",
"requires": { "requires": {
"mocha": "^10.2.0" "mocha": "^10.2.0",
"typescript": "^5.0.4"
} }
}, },
"@overleaf/real-time": { "@overleaf/real-time": {
@@ -54879,7 +54901,8 @@
"ioredis": "~4.27.1", "ioredis": "~4.27.1",
"mocha": "^10.2.0", "mocha": "^10.2.0",
"sandboxed-module": "^2.0.4", "sandboxed-module": "^2.0.4",
"sinon": "^9.2.4" "sinon": "^9.2.4",
"typescript": "^5.0.4"
} }
}, },
"@overleaf/references": { "@overleaf/references": {
@@ -54907,7 +54930,11 @@
} }
}, },
"@overleaf/settings": { "@overleaf/settings": {
"version": "file:libraries/settings" "version": "file:libraries/settings",
"requires": {
"mocha": "^10.2.0",
"typescript": "^5.0.4"
}
}, },
"@overleaf/spelling": { "@overleaf/spelling": {
"version": "file:services/spelling", "version": "file:services/spelling",
@@ -54943,7 +54970,8 @@
"requires": { "requires": {
"chai": "^4.3.6", "chai": "^4.3.6",
"chai-as-promised": "^7.1.1", "chai-as-promised": "^7.1.1",
"mocha": "^10.2.0" "mocha": "^10.2.0",
"typescript": "^5.0.4"
} }
}, },
"@overleaf/templates": { "@overleaf/templates": {