{ "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,mjs,ts,tsx --grep=$MOCHA_GREP --require test/frontend/bootstrap.js --ignore '**/*.spec.{js,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", "test:karma": "karma start", "test:karma:single": "karma start --no-auto-watch --single-run", "start": "node $NODE_APP_OPTIONS app.js", "nodemon": "nodemon $NODE_APP_OPTIONS --config nodemon.json", "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,mjs,ts,tsx,json}'", "format:fix": "prettier --write $PWD/'**/*.{js,mjs,ts,tsx,json}'", "format:styles": "prettier --list-different $PWD/'**/*.less'", "format:styles:fix": "prettier --write $PWD/'**/*.less'", "lint": "eslint --max-warnings 0 --format unix --ext .js,.mjs,.ts,.tsx .", "lint:fix": "eslint --fix --ext .js,.ts,.tsx .", "type-check": "tsc --noEmit", "extract-translations": "i18next-scanner", "migrations": "east", "convert-themes": "node frontend/js/features/source-editor/themes/convert.js", "cypress:open-ct": "SHARELATEX_CONFIG=$PWD/config/settings.webpack.js cypress open --component", "cypress:run-ct": "SHARELATEX_CONFIG=$PWD/config/settings.webpack.js cypress run --component", "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", "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", "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 $SHARELATEX_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 SHARELATEX_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": "SHARELATEX_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; SHARELATEX_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": "SHARELATEX_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 test:karma:single && npm run local:test:acceptance" }, "browserslist": [ "last 1 year", "ie 11", "firefox esr" ], "dependencies": { "@babel/cli": "^7.14.5", "@babel/core": "^7.14.5", "@babel/preset-env": "^7.14.5", "@babel/preset-react": "^7.14.5", "@babel/preset-typescript": "^7.16.0", "@codemirror/autocomplete": "github:overleaf/codemirror-autocomplete#4514fd21c6c9219f5c23a6a675ad843bb7a5b2bd", "@codemirror/commands": "^6.2.3", "@codemirror/lang-markdown": "^6.1.1", "@codemirror/language": "^6.6.0", "@codemirror/lint": "^6.2.1", "@codemirror/search": "github:overleaf/codemirror-search#ea83364b22ad66455fc94babea7d576fa9f76a93", "@codemirror/state": "^6.2.0", "@codemirror/view": "^6.9.6", "@contentful/rich-text-html-renderer": "^16.0.2", "@contentful/rich-text-types": "^16.0.2", "@google-cloud/bigquery": "^6.0.1", "@lezer/common": "^1.0.2", "@lezer/highlight": "^1.1.3", "@lezer/lr": "^1.3.3", "@lezer/markdown": "^1.0.2", "@node-oauth/oauth2-server": "^4.3.0", "@opentelemetry/api": "^1.0.4", "@opentelemetry/auto-instrumentations-web": "^0.27.2", "@opentelemetry/context-zone": "^1.2.0", "@opentelemetry/exporter-jaeger": "^1.2.0", "@opentelemetry/exporter-trace-otlp-http": "^0.28.0", "@opentelemetry/instrumentation": "^0.27.0", "@opentelemetry/instrumentation-document-load": "^0.27.1", "@opentelemetry/instrumentation-xml-http-request": "^0.28.0", "@opentelemetry/resources": "^1.2.0", "@opentelemetry/sdk-trace-base": "^1.2.0", "@opentelemetry/sdk-trace-web": "^1.2.0", "@opentelemetry/semantic-conventions": "^1.2.0", "@overleaf/access-token-encryptor": "*", "@overleaf/logger": "*", "@overleaf/metrics": "*", "@overleaf/o-error": "*", "@overleaf/object-persistor": "*", "@overleaf/ranges-tracker": "*", "@overleaf/redis-wrapper": "*", "@overleaf/settings": "*", "@pmmmwh/react-refresh-webpack-plugin": "^0.5.7", "@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#cea6eaefe2301bf07e7dec54f028537c3fdc4982", "@replit/codemirror-indentation-markers": "overleaf/codemirror-indentation-markers#1b1f93c0bcd04293aea6986aa2275185b2c56803", "@replit/codemirror-vim": "overleaf/codemirror-vim#07f1b50f4b2e703792da75a29e9e1e479b6b7067", "@sentry/browser": "^7.8.1", "@uppy/core": "^1.15.0", "@uppy/dashboard": "^1.11.0", "@uppy/react": "^1.11.0", "@uppy/utils": "^4.0.7", "@uppy/xhr-upload": "^1.6.8", "abort-controller": "^3.0.0", "accepts": "^1.3.7", "ace-builds": "overleaf/ace-builds#v1.4.12-69aace50e6796d42116f8f96e19d2468d8a88af9", "algoliasearch": "^3.35.1", "angular": "~1.8.0", "angular-sanitize": "~1.8.0", "archiver": "^5.3.0", "async": "3.2.2", "backbone": "^1.3.3", "base-x": "^4.0.0", "basic-auth": "^2.0.1", "bcrypt": "^5.0.0", "body-parser": "^1.19.0", "bootstrap": "^3.4.1", "bowser": "^2.11.0", "bufferedstream": "1.6.0", "bull": "^3.18.0", "bunyan": "^1.8.15", "cache-flow": "^1.7.4", "celebrate": "^10.0.1", "chart.js": "^4.0.1", "chartjs-adapter-moment": "^1.0.1", "chartjs-plugin-datalabels": "^2.2.0", "classnames": "^2.2.6", "codemirror": "~5.33.0", "connect-redis": "^6.1.3", "contentful": "^6.1.1", "cookie": "^0.2.3", "cookie-parser": "1.3.5", "core-js": "^3.6.2", "crc-32": "^1.2.2", "crypto-js": "^3.1.9-1", "csurf": "^1.11.0", "csv": "^6.2.5", "d3": "^3.5.16", "dateformat": "1.0.4-1.2.3", "daterangepicker": "overleaf/daterangepicker#e496d2d44ca53e208c930e4cb4bcf29bcefa4550", "downshift": "^6.1.0", "east": "^2.0.2", "email-addresses": "^5.0.0", "events": "^3.3.0", "express": "^4.18.2", "express-bearer-token": "^2.4.0", "express-http-proxy": "^1.6.0", "express-session": "^1.17.1", "formik": "^2.2.9", "fs-extra": "^4.0.2", "fuse.js": "^3.0.0", "globby": "^5.0.0", "handlebars": "^4.7.7", "helmet": "^6.0.1", "i18next": "^19.6.3", "i18next-fs-backend": "^1.0.7", "i18next-http-middleware": "^3.0.2", "isomorphic-unfetch": "^3.0.0", "jose": "^4.3.8", "jquery": "^2.2.4", "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", "match-sorter": "^6.2.0", "mathjax": "^2.7.9", "mathjax-3": "npm:mathjax@^3.2.2", "method-override": "^2.3.3", "minimist": "^1.2.7", "mmmagic": "^0.5.3", "moment": "^2.29.4", "mongodb": "^4.13.0", "mongoose": "^6.9.1", "multer": "overleaf/multer#e1df247fbf8e7590520d20ae3601eaef9f3d2e9e", "nocache": "^2.1.0", "nock": "^13.1.3", "node-fetch": "^2.6.7", "nodemailer": "^6.7.0", "nodemailer-mandrill-transport": "^1.2.0", "nodemailer-ses-transport": "^1.5.1", "nvd3": "^1.8.6", "otplib": "^12.0.1", "p-limit": "^2.3.0", "parse-data-url": "^2.0.0", "passport": "^0.4.1", "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-saml": "^3.2.4", "passport-twitter": "^1.0.4", "pdfjs-dist213": "npm:pdfjs-dist@2.13.216", "pdfjs-dist31": "npm:pdfjs-dist@3.1.81", "prop-types": "^15.7.2", "pug": "^3.0.1", "pug-runtime": "^3.0.1", "qrcode": "^1.4.4", "rate-limiter-flexible": "^2.4.1", "react": "^17.0.2", "react-bootstrap": "^0.33.1", "react-chartjs-2": "^5.0.1", "react-color": "^2.19.3", "react-dnd": "^11.1.3", "react-dnd-html5-backend": "^11.1.3", "react-dom": "^17.0.2", "react-error-boundary": "^2.3.1", "react-i18next": "^11.18.6", "react-linkify": "^1.0.0-alpha", "react-refresh": "^0.14.0", "react2angular": "^4.0.6", "react2angular-shared-context": "^1.1.0", "recurly": "^4.0.0", "referer-parser": "0.0.3", "request": "^2.88.2", "requestretry": "^7.1.0", "rimraf": "2.2.6", "sanitize-html": "^2.8.1", "scroll-into-view-if-needed": "^2.2.25", "tsscmp": "^1.0.6", "underscore": "^1.13.1", "unzipper": "^0.10.11", "utf-8-validate": "^5.0.2", "uuid": "^3.0.1", "valid-data-url": "^2.0.0", "valid-url": "^1.0.9", "xml-crypto": "^2.1.2", "xml2js": "^0.4.22", "xregexp": "^4.3.0", "yauzl": "^2.10.0", "yup": "^0.32.11" }, "devDependencies": { "@babel/register": "^7.14.5", "@juggle/resize-observer": "^3.3.1", "@lezer/generator": "^1.1.3", "@testing-library/cypress": "^9.0.0", "@testing-library/dom": "^8.13.0", "@testing-library/react": "^12.1.5", "@testing-library/react-hooks": "^8.0.0", "@testing-library/user-event": "^14.2.0", "@types/bootstrap": "^5.2.6", "@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/recurly__recurly-js": "^4.22.0", "@types/sinon-chai": "^3.2.8", "@types/uuid": "^8.3.4", "@typescript-eslint/eslint-plugin": "^5.12.1", "@typescript-eslint/parser": "^5.3.1", "acorn": "^7.1.1", "acorn-walk": "^7.1.1", "angular-mocks": "~1.8.0", "autoprefixer": "^9.7.6", "babel-loader": "^8.2.4", "babel-plugin-angularjs-annotate": "^0.10.0", "babel-plugin-macros": "^3.1.0", "c8": "^7.2.0", "chai": "^4.3.6", "chai-as-promised": "^7.1.1", "chai-exclude": "^2.0.3", "cheerio": "^1.0.0-rc.3", "content-disposition": "^0.5.0", "copy-webpack-plugin": "^10.2.4", "css-loader": "^6.7.1", "css-minimizer-webpack-plugin": "^3.4.1", "cypress": "12.2.0", "cypress-plugin-tab": "^1.0.5", "es6-promise": "^4.2.8", "escodegen": "^2.0.0", "eslint-config-standard-jsx": "^11.0.0-0", "eslint-plugin-cypress": "^2.12.1", "eslint-plugin-jsx-a11y": "^6.5.1", "eslint-plugin-react": "^7.27.0", "eslint-plugin-react-hooks": "^4.3.0", "expose-loader": "^3.1.0", "fetch-mock": "^9.10.2", "glob": "^7.1.6", "handlebars-loader": "^1.7.1", "html-webpack-plugin": "^5.5.0", "i18next-scanner": "^3.0.0", "jsdom": "^19.0.0", "jsdom-global": "^3.0.2", "karma": "^6.3.17", "karma-chai-sinon": "^0.1.5", "karma-chrome-launcher": "^3.1.0", "karma-mocha": "^2.0.0", "karma-mocha-reporter": "^2.2.5", "karma-requirejs": "^1.1.0", "karma-webpack": "^5.0.0", "less": "^3.11.1", "less-loader": "^10.2.0", "less-plugin-autoprefix": "^2.0.0", "mensch": "^0.3.4", "mini-css-extract-plugin": "^2.6.0", "mocha": "^10.2.0", "mocha-each": "^2.0.1", "mock-fs": "^5.1.2", "nock": "^13.1.1", "node-fetch": "^2.6.7", "pirates": "^4.0.1", "postcss-loader": "^6.2.1", "requirejs": "^2.3.6", "samlp": "^7.0.2", "sandboxed-module": "overleaf/node-sandboxed-module#cafa2d60f17ce75cc023e6f296eb8de79d92d35d", "sinon": "^7.5.0", "sinon-chai": "^3.7.0", "sinon-mongoose": "^2.3.0", "socket.io-mock": "^1.3.1", "terser-webpack-plugin": "^5.3.1", "timekeeper": "^2.2.0", "to-string-loader": "^1.2.0", "tough-cookie": "^4.0.0", "typescript": "^4.5.5", "val-loader": "^4.0.0", "webpack": "^5.71.0", "webpack-assets-manifest": "^5.1.0", "webpack-cli": "^4.9.2", "webpack-dev-server": "^4.7.4", "webpack-merge": "^5.8.0", "worker-loader": "^3.0.8" } }