@crowdin/app-project-module 0.98.0-cf-4 → 0.98.0-cf-5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,6 +18,12 @@ const subscription_1 = require("../util/subscription");
18
18
  const views_1 = require("../views");
19
19
  function handle({ config, allowUnauthorized = false, moduleType, }) {
20
20
  return (0, util_1.runAsyncWrapper)((req, res, next) => __awaiter(this, void 0, void 0, function* () {
21
+ // Allow access to non-HTML files
22
+ const isHtmlFile = /\.html?$/i.test(req.path);
23
+ if (!isHtmlFile) {
24
+ next();
25
+ return;
26
+ }
21
27
  if (allowUnauthorized) {
22
28
  next();
23
29
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crowdin/app-project-module",
3
- "version": "0.98.0-cf-4",
3
+ "version": "0.98.0-cf-5",
4
4
  "description": "Module that generates for you all common endpoints for serving standalone Crowdin App",
5
5
  "main": "out/index.js",
6
6
  "types": "out/index.d.ts",