{ "name": "@overleaf/web", "description": "The HTTP front end for Overleaf", "private": true, "main": "app.js", "directories": { "public": "./public" }, "scripts": { "test:acceptance:run_dir": "mocha --recursive --timeout 25000 --grep=$MOCHA_GREP --require test/acceptance/bootstrap.js", "test:acceptance:app": "npm run test:acceptance:run_dir -- test/acceptance/src", "test:unit:run_dir": "mocha --recursive --timeout 25000 --exit --grep=$MOCHA_GREP --require test/unit/bootstrap.js", "test:unit:all": "npm run test:unit:run_dir -- test/unit/src modules/*/test/unit/src", "test:unit:all:silent": "npm run test:unit:all -- --reporter dot", "test:unit:app": "npm run test:unit:run_dir -- test/unit/src", "test:frontend": "NODE_ENV=test TZ=GMT mocha --recursive --timeout 5000 --exit --extension js,jsx,mjs,ts,tsx --grep=$MOCHA_GREP --require test/frontend/bootstrap.js --ignore '**/*.spec.{js,jsx,ts,tsx}' --ignore '**/helpers/**/*.{js,jsx,ts,tsx}' test/frontend modules/*/test/frontend", "test:frontend:coverage": "c8 --all --include 'frontend/js' --include 'modules/*/frontend/js' --exclude 'frontend/js/vendor' --reporter=lcov --reporter=text-summary npm run test:frontend", "start": "node app.js", "nodemon": "node --watch app.js --watch-locales", "webpack": "webpack serve --config webpack.config.dev.js", "webpack:production": "webpack --config webpack.config.prod.js", "webpack:profile": "webpack --config webpack.config.prod.js --profile --json > stats.json", "format": "prettier --list-different $PWD/'**/*.{js,jsx,mjs,ts,tsx,json}'", "format:fix": "prettier --write $PWD/'**/*.{js,jsx,mjs,ts,tsx,json}'", "format:styles": "prettier --list-different $PWD/'**/*.{css,less}'", "format:styles:fix": "prettier --write $PWD/'**/*.{css,less}'", "lint": "eslint --max-warnings 0 --format unix --ext .js,.jsx,.mjs,.ts,.tsx .", "lint:fix": "eslint --fix --ext .js,.jsx,.mjs,.ts,.tsx .", "type-check": "tsc --noEmit", "extract-translations": "i18next-scanner", "migrations": "MONGO_SOCKET_TIMEOUT=0 east", "convert-themes": "node frontend/js/features/source-editor/themes/scripts/convert.js", "cypress:open-ct": "OVERLEAF_CONFIG=$PWD/config/settings.webpack.js cypress open --component", "cypress:run-ct": "OVERLEAF_CONFIG=$PWD/config/settings.webpack.js cypress run --component --browser chrome", "cypress:docker:open-ct": "DOCKER_USER=\"$(id -u):$(id -g)\" docker compose -f docker-compose.cypress.yml run --rm cypress run cypress:open-ct", "cypress:docker:run-ct": "DOCKER_USER=\"$(id -u):$(id -g)\" docker compose -f docker-compose.cypress.yml run --rm cypress run cypress:run-ct --browser chrome", "lezer-latex:generate": "node scripts/lezer-latex/generate.js", "lezer-latex:run": "node scripts/lezer-latex/run.mjs", "lezer-latex:benchmark": "node scripts/lezer-latex/benchmark.mjs", "lezer-latex:benchmark-incremental": "node scripts/lezer-latex/test-incremental-parser.mjs", "routes": "bin/routes", "storybook": "storybook dev -p 6006", "build-storybook": "storybook build", "local:nodemon": "set -a;. ../../config/dev-environment.env;. ./docker-compose.common.env;. ../../config/local-dev.env;. ./local-dev.env;. ../../config/local.env; set +a; echo $OVERLEAF_CONFIG; WEB_PORT=13000 LISTEN_ADDRESS=0.0.0.0 npm run nodemon", "local:webpack": "set -a;. ../../config/dev-environment.env;. ./docker-compose.common.env;. ../../config/local-dev.env;. ./local-dev.env;. ../../config/local.env; set +a; PORT=13808 OVERLEAF_CONFIG=$(pwd)/config/settings.webpack.js npm run webpack", "local:test:acceptance:run_dir": "set -a;. $(pwd)/docker-compose.common.env;. $(pwd)/local-test.env; set +a; npm run test:acceptance:run_dir", "local:test:acceptance:run_app": "OVERLEAF_CONFIG=$(pwd)/test/acceptance/config/settings.test.${OVERLEAF_APP}.js npm run local:test:acceptance:run_dir -- $(pwd)/test/acceptance/src", "local:test:acceptance:run_module": "if [ ! -d $(pwd)/modules/${MODULE}/test/acceptance ]; then echo \"Module '${MODULE}' does not have acceptance tests\"; exit 0; fi; OVERLEAF_CONFIG=$(pwd)/modules/${MODULE}/test/acceptance/config/settings.test.js BASE_CONFIG=$(pwd)/test/acceptance/config/settings.test.${OVERLEAF_APP}.js npm run local:test:acceptance:run_dir -- $(pwd)/modules/${MODULE}/test/acceptance", "local:test:acceptance:run_modules": "OVERLEAF_CONFIG=$(pwd)/test/acceptance/config/settings.test.${OVERLEAF_APP}.js node $(pwd)/test/acceptance/getModuleTargets --name-only | xargs -n1 sh -c 'MODULE=$0 npm run local:test:acceptance:run_module || exit 255' $1", "local:test:acceptance:app:saas": "OVERLEAF_APP=saas npm run local:test:acceptance:run_app", "local:test:acceptance:app:server-pro": "OVERLEAF_APP=server-pro npm run local:test:acceptance:run_app", "local:test:acceptance:app:server-ce": "OVERLEAF_APP=server-ce npm run local:test:acceptance:run_app", "local:test:acceptance:app": "echo saas server-pro server-ce | xargs -n1 sh -c 'npm run local:test:acceptance:app:${0} || exit 255'", "local:test:acceptance:modules:saas": "OVERLEAF_APP=saas npm run local:test:acceptance:run_modules", "local:test:acceptance:modules:server-pro": "OVERLEAF_APP=server-pro npm run local:test:acceptance:run_modules", "local:test:acceptance:modules:server-ce": "OVERLEAF_APP=server-ce npm run local:test:acceptance:run_modules", "local:test:acceptance:modules": "echo saas server-ce server-pro | xargs -n1 sh -c 'npm run local:test:acceptance:modules:${0} || exit 255'", "local:test:acceptance": "npm run local:test:acceptance:app && npm run local:test:acceptance:modules", "local:test:unit": "npm run test:unit:all", "local:test:frontend": "npm run test:frontend", "local:test": "npm run local:test:unit && npm run local:test:frontend && npm run local:test:acceptance" }, "browserslist": [ "last 1 year", "ie 11", "firefox esr" ], "dependencies": { "@contentful/rich-text-html-renderer": "^16.0.2", "@contentful/rich-text-types": "^16.0.2", "@google-cloud/bigquery": "^6.0.1", "@node-oauth/oauth2-server": "^5.1.0", "@node-saml/passport-saml": "^4.0.4", "@overleaf/access-token-encryptor": "*", "@overleaf/fetch-utils": "*", "@overleaf/logger": "*", "@overleaf/metrics": "*", "@overleaf/o-error": "*", "@overleaf/object-persistor": "*", "@overleaf/promise-utils": "*", "@overleaf/redis-wrapper": "*", "@overleaf/settings": "*", "@slack/webhook": "^7.0.2", "@xmldom/xmldom": "^0.7.13", "accepts": "^1.3.7", "archiver": "^5.3.0", "async": "3.2.2", "base-x": "^4.0.0", "basic-auth": "^2.0.1", "bcrypt": "^5.0.0", "body-parser": "^1.19.0", "bowser": "^2.11.0", "bull": "^3.18.0", "bunyan": "^1.8.15", "cache-flow": "^1.9.0", "celebrate": "^15.0.3", "connect-redis": "^6.1.3", "content-disposition": "^0.5.0", "contentful": "^6.1.1", "cookie": "^0.2.3", "cookie-parser": "1.3.5", "core-js": "^3.30.2", "crc-32": "^1.2.2", "csurf": "^1.11.0", "csv": "^6.2.5", "dateformat": "1.0.4-1.2.3", "east": "^2.0.2", "email-addresses": "^5.0.0", "express": "^4.18.2", "express-bearer-token": "^2.4.0", "express-http-proxy": "^1.6.0", "express-session": "^1.17.1", "fs-extra": "^4.0.2", "fuse.js": "^3.0.0", "globby": "^5.0.0", "helmet": "^6.0.1", "i18next": "^23.5.1", "i18next-fs-backend": "^2.2.0", "i18next-http-middleware": "^3.4.1", "joi": "^17.12.0", "jose": "^4.3.8", "json2csv": "^4.3.3", "jsonwebtoken": "^9.0.0", "lodash": "^4.17.19", "lru-cache": "^7.10.1", "mailchimp-api-v3": "^1.12.0", "marked": "^4.1.0", "method-override": "^2.3.3", "minimatch": "^7.4.2", "minimist": "^1.2.7", "mmmagic": "^0.5.3", "moment": "^2.29.4", "mongodb": "^4.13.0", "mongoose": "^6.12.0", "multer": "overleaf/multer#e1df247fbf8e7590520d20ae3601eaef9f3d2e9e", "nocache": "^2.1.0", "nock": "^13.1.3", "node-fetch": "^2.6.7", "nodemailer": "^6.7.0", "nodemailer-ses-transport": "^1.5.1", "otplib": "^12.0.1", "p-limit": "^2.3.0", "parse-data-url": "^2.0.0", "passport": "^0.6.0", "passport-google-oauth20": "^2.0.0", "passport-ldapauth": "^2.1.4", "passport-local": "^1.0.0", "passport-oauth2": "^1.5.0", "passport-orcid": "0.0.4", "passport-twitter": "^1.0.4", "pug": "^3.0.1", "pug-runtime": "^3.0.1", "rate-limiter-flexible": "^2.4.1", "recurly": "^4.0.0", "referer-parser": "github:overleaf/nodejs-referer-parser#8b8b103762d05b7be4cfa2f810e1d408be67d7bb", "request": "^2.88.2", "requestretry": "^7.1.0", "rimraf": "2.2.6", "sanitize-html": "^2.8.1", "tough-cookie": "^4.0.0", "tsscmp": "^1.0.6", "utf-8-validate": "^5.0.2", "uuid": "^9.0.1", "valid-data-url": "^2.0.0", "valid-url": "^1.0.9", "w3c-keyname": "^2.2.8", "xml-crypto": "^2.1.2", "xml2js": "^0.6.2", "xregexp": "^4.3.0", "yauzl": "^2.10.0" }, "devDependencies": { "@babel/cli": "^7.23.0", "@babel/core": "^7.23.2", "@babel/preset-env": "^7.23.2", "@babel/preset-react": "^7.22.15", "@babel/preset-typescript": "^7.23.2", "@babel/register": "^7.22.15", "@codemirror/autocomplete": "github:overleaf/codemirror-autocomplete#v6.12.0-overleaf-1", "@codemirror/commands": "^6.3.3", "@codemirror/lang-markdown": "^6.2.4", "@codemirror/language": "^6.10.0", "@codemirror/lint": "^6.5.0", "@codemirror/search": "github:overleaf/codemirror-search#29f7a871969ad64b89341bacbe5d46dda02eee12", "@codemirror/state": "^6.4.0", "@codemirror/view": "^6.23.1", "@juggle/resize-observer": "^3.3.1", "@lezer/common": "^1.1.0", "@lezer/generator": "^1.5.1", "@lezer/highlight": "^1.1.6", "@lezer/lr": "^1.3.13", "@lezer/markdown": "^1.1.0", "@opentelemetry/api": "^1.4.1", "@opentelemetry/auto-instrumentations-web": "^0.33.1", "@opentelemetry/context-zone": "^1.15.2", "@opentelemetry/exporter-trace-otlp-http": "^0.41.2", "@opentelemetry/instrumentation": "^0.41.2", "@opentelemetry/instrumentation-document-load": "^0.33.1", "@opentelemetry/instrumentation-xml-http-request": "^0.41.2", "@opentelemetry/resources": "^1.15.2", "@opentelemetry/sdk-trace-base": "^1.15.2", "@opentelemetry/sdk-trace-web": "^1.15.2", "@opentelemetry/semantic-conventions": "^1.15.2", "@overleaf/codemirror-tree-view": "^0.1.3", "@overleaf/ranges-tracker": "*", "@overleaf/stream-utils": "*", "@pmmmwh/react-refresh-webpack-plugin": "^0.5.11", "@pollyjs/adapter-node-http": "^4.2.1", "@pollyjs/core": "^4.2.1", "@pollyjs/persister-fs": "^4.2.1", "@reach/tabs": "^0.15.0", "@replit/codemirror-emacs": "overleaf/codemirror-emacs#4394c03858f27053f8768258e9493866e06e938e", "@replit/codemirror-indentation-markers": "overleaf/codemirror-indentation-markers#1b1f93c0bcd04293aea6986aa2275185b2c56803", "@replit/codemirror-vim": "overleaf/codemirror-vim#53ce7363f80fba133d51ee861ca5e9b49af8e96b", "@sentry/browser": "^7.8.1", "@storybook/addon-a11y": "^7.5.1", "@storybook/addon-essentials": "^7.5.1", "@storybook/addon-interactions": "^7.5.1", "@storybook/addon-links": "^7.5.1", "@storybook/addons": "^7.5.1", "@storybook/blocks": "^7.5.1", "@storybook/react": "^7.5.1", "@storybook/react-webpack5": "^7.5.1", "@storybook/testing-library": "^0.2.2", "@testing-library/cypress": "^10.0.1", "@testing-library/dom": "^9.3.0", "@testing-library/react": "^12.1.5", "@testing-library/react-hooks": "^8.0.1", "@testing-library/user-event": "^14.4.3", "@types/bootstrap": "^5.2.10", "@types/chai": "^4.3.0", "@types/events": "^3.0.0", "@types/express": "^4.17.13", "@types/mocha": "^9.1.0", "@types/mocha-each": "^2.0.0", "@types/react": "^17.0.40", "@types/react-bootstrap": "^0.32.29", "@types/react-color": "^3.0.6", "@types/react-dom": "^17.0.13", "@types/react-google-recaptcha": "^2.1.5", "@types/react-linkify": "^1.0.0", "@types/recurly__recurly-js": "^4.22.0", "@types/sinon-chai": "^3.2.8", "@types/uuid": "^9.0.8", "@typescript-eslint/eslint-plugin": "^6.7.4", "@typescript-eslint/parser": "^6.7.4", "@uppy/core": "^3.8.0", "@uppy/dashboard": "^3.7.1", "@uppy/react": "^3.2.1", "@uppy/utils": "^5.7.0", "@uppy/xhr-upload": "^3.6.0", "abort-controller": "^3.0.0", "acorn": "^7.1.1", "acorn-walk": "^7.1.1", "algoliasearch": "^3.35.1", "angular": "~1.8.0", "angular-mocks": "~1.8.0", "angular-sanitize": "~1.8.0", "autoprefixer": "^10.4.16", "babel-loader": "^9.1.2", "babel-plugin-angularjs-annotate": "^0.10.0", "babel-plugin-macros": "^3.1.0", "babel-plugin-module-resolver": "^5.0.0", "backbone": "^1.3.3", "bootstrap": "^3.4.1", "bootstrap-5": "npm:bootstrap@^5.3.2", "c8": "^7.2.0", "chai": "^4.3.6", "chai-as-promised": "^7.1.1", "chai-exclude": "^2.0.3", "chart.js": "^4.0.1", "chartjs-adapter-moment": "^1.0.1", "chartjs-plugin-datalabels": "^2.2.0", "cheerio": "^1.0.0-rc.3", "classnames": "^2.2.6", "copy-webpack-plugin": "^11.0.0", "crypto-js": "^4.2.0", "css-loader": "^6.8.1", "css-minimizer-webpack-plugin": "^5.0.1", "cypress": "13.3.3", "cypress-plugin-tab": "^1.0.5", "d3": "^3.5.16", "daterangepicker": "overleaf/daterangepicker#e496d2d44ca53e208c930e4cb4bcf29bcefa4550", "downshift": "^6.1.0", "es6-promise": "^4.2.8", "escodegen": "^2.0.0", "eslint-config-standard-jsx": "^11.0.0", "eslint-plugin-jsx-a11y": "^6.7.1", "eslint-plugin-react": "^7.32.2", "eslint-plugin-react-hooks": "^4.6.0", "events": "^3.3.0", "expose-loader": "^4.1.0", "fetch-mock": "^9.10.2", "formik": "^2.2.9", "glob": "^7.1.6", "handlebars": "^4.7.8", "handlebars-loader": "^1.7.3", "html-webpack-plugin": "^5.5.3", "i18next-scanner": "^4.4.0", "jquery": "^2.2.4", "jsdom": "^19.0.0", "jsdom-global": "^3.0.2", "less": "^3.13.1", "less-loader": "^11.1.3", "match-sorter": "^6.2.0", "mathjax": "^3.2.2", "mensch": "^0.3.4", "mini-css-extract-plugin": "^2.7.6", "mocha": "^10.2.0", "mocha-each": "^2.0.1", "mock-fs": "^5.1.2", "nock": "^13.1.1", "node-fetch": "^2.6.7", "nvd3": "^1.8.6", "pdfjs-dist213": "npm:pdfjs-dist@2.13.216", "pdfjs-dist401": "npm:pdfjs-dist@4.0.189", "pirates": "^4.0.1", "postcss": "^8.4.31", "postcss-loader": "^7.3.3", "prop-types": "^15.7.2", "qrcode": "^1.4.4", "react": "^17.0.2", "react-bootstrap": "^0.33.1", "react-bootstrap-5": "npm:react-bootstrap@^2.10.0", "react-chartjs-2": "^5.0.1", "react-color": "^2.19.3", "react-dnd": "^16.0.1", "react-dnd-html5-backend": "^16.0.1", "react-dom": "^17.0.2", "react-error-boundary": "^2.3.1", "react-google-recaptcha": "^3.1.0", "react-i18next": "^13.3.1", "react-linkify": "^1.0.0-alpha", "react-refresh": "^0.14.0", "react-resizable-panels": "^1.0.3", "react2angular": "^4.0.6", "react2angular-shared-context": "^1.1.0", "requirejs": "^2.3.6", "samlp": "^7.0.2", "sandboxed-module": "overleaf/node-sandboxed-module#cafa2d60f17ce75cc023e6f296eb8de79d92d35d", "scroll-into-view-if-needed": "^2.2.25", "sinon": "^7.5.0", "sinon-chai": "^3.7.0", "sinon-mongoose": "^2.3.0", "socket.io-mock": "^1.3.1", "storybook": "^7.4.0", "terser-webpack-plugin": "^5.3.9", "thread-loader": "^4.0.2", "timekeeper": "^2.2.0", "to-string-loader": "^1.2.0", "typescript": "^5.0.4", "webpack": "^5.89.0", "webpack-assets-manifest": "^5.1.0", "webpack-cli": "^5.1.4", "webpack-dev-server": "^4.15.1", "webpack-merge": "^5.10.0", "worker-loader": "^3.0.8", "yup": "^0.32.11" } }