yakuza0 2.22.5 → 2.22.6

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yakuza0",
3
- "version": "2.22.5",
3
+ "version": "2.22.6",
4
4
  "description": "yakuza0 with nuxt",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -268,6 +268,10 @@ exports.default = function () {
268
268
  omConf = _config2.default.server.om;
269
269
  // const browsers = Object.keys(yConf.allowBrowsers);
270
270
 
271
+ if (_config2.default.security.helmet) {
272
+ app.use((0, _koaHelmet2.default)());
273
+ }
274
+
271
275
  // if (!yConf.security.helmet || yConf.server.ddos.enabled) {
272
276
  // const unit = parseFloat(yConf.server.ddos.unit);
273
277
  // const ddosDelay = parseInt(yConf.server.ddos.delay);
@@ -775,7 +779,7 @@ exports.default = function () {
775
779
  }
776
780
 
777
781
  if (_config2.default.security.helmet) {
778
- app.use((0, _koaHelmet2.default)());
782
+ // app.use(helmet());
779
783
 
780
784
  if (_config2.default.security.isStupid) {
781
785
  if (typeof _config2.default.server.csp.custom === "string") {
@@ -937,7 +941,7 @@ exports.default = function () {
937
941
  };
938
942
  }());
939
943
 
940
- case 20:
944
+ case 21:
941
945
  case 'end':
942
946
  return _context13.stop();
943
947
  }