discourse/package.json
Vinoth Kannan 9d2eaec88f
DEV: enable CORS to all CDN get requests from workbox. (#11896)
To prevent opaque cache files, now all the CDN files will be requested in 'cors' mode if the cdn_cors_enabled global setting is enabled. Before enabling the setting, should enable the cors in the CDN server by adding the response header `access-control-allow-origin: *` or `access-control-allow-origin: https://discourse.example.com.`

And other external file requests other than CDN will not be cached if the response type is opaque.
2021-02-02 11:38:29 +05:30

57 lines
1.9 KiB
JSON

{
"name": "discourse",
"version": "1.0.0",
"main": "index.js",
"repository": "git@github.com:discourse/discourse.git",
"author": "Discourse",
"license": "GPL-2.0-only",
"dependencies": {
"@fortawesome/fontawesome-free": "5.11.2",
"@popperjs/core": "v2.0.6",
"ace-builds": "1.4.12",
"blueimp-file-upload": "10.13.0",
"bootbox": "3.2.0",
"bootstrap": "v3.4.1",
"chart.js": "2.9.3",
"chartjs-plugin-datalabels": "^0.7.0",
"eslint-config-discourse": "^1.1.8",
"handlebars": "^4.7.0",
"highlight.js": "https://github.com/highlightjs/highlight.js",
"intersection-observer": "^0.5.1",
"jquery": "3.5.1",
"jquery-color": "3.0.0-alpha.1",
"jquery-tags-input": "1.3.5",
"jquery.autoellipsis": "https://github.com/pvdspek/jquery.autoellipsis",
"magnific-popup": "1.1.0",
"markdown-it": "10.0.0",
"moment": "2.29.1",
"moment-timezone": "0.5.31",
"moment-timezone-names-translations": "https://github.com/discourse/moment-timezone-names-translations",
"mousetrap": "https://github.com/discourse/mousetrap#firefox-alt-key",
"pikaday": "1.8.0",
"resumablejs": "1.1.0",
"spectrum-colorpicker": "1.8.0",
"workbox-cacheable-response": "^4.3.1",
"workbox-core": "^4.3.1",
"workbox-expiration": "^4.3.1",
"workbox-routing": "^4.3.1",
"workbox-strategies": "^4.3.1",
"workbox-sw": "^4.3.1"
},
"devDependencies": {
"@mixer/parallel-prettier": "^2.0.1",
"@arkweid/lefthook": "^0.7.2",
"chrome-launcher": "^0.12.0",
"chrome-remote-interface": "^0.25",
"lodash-cli": "https://github.com/lodash-archive/lodash-cli.git",
"pretender": "^1.6",
"puppeteer": "1.20",
"qunit": "2.8.0",
"route-recognizer": "^0.3.3",
"sinon": "^9.0.2"
},
"scripts": {
"preinstall": "node -e \"if(process.env.npm_execpath.indexOf('yarn') === -1) throw new Error('NPM is not supported, please use Yarn instead. ')\""
}
}