yakuza0 2.20.14-beta.0 → 2.20.14

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/nuxt/head.js CHANGED
@@ -79,7 +79,7 @@ exports.default = function (config) {
79
79
  try {
80
80
  if (!gv.integrity) {
81
81
  var res = (0, _syncRequest2.default)('GET', iUrl, {
82
- timeout: 5000,
82
+ timeout: parseInt(_config2.default.server.sriTimeout, 10) || 5000,
83
83
  headers: {
84
84
  "Host": (0, _yakuza.jsUrl)('hostname', iUrl),
85
85
  "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.80 Safari/537.36"
@@ -20,7 +20,7 @@ exports.default = function (config) {
20
20
  _yakuza._.forEach(csp, function (v, key) {
21
21
  cspObj[_yakuza._.kebabCase(key)] = _yakuza._.compact(v.map(function (k) {
22
22
  if (_config2.default.server.cspStrict) {
23
- if (k === "*" || k === "data:" || k === "'unsafe-eval'" || k === "'unsafe-inline'") {
23
+ if (k === "*" || k.indexOf('*') !== -1 || k === "data:" || k === "'unsafe-eval'" || k === "'unsafe-inline'") {
24
24
  return '';
25
25
  }
26
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yakuza0",
3
- "version": "2.20.14-beta.0",
3
+ "version": "2.20.14",
4
4
  "description": "yakuza0 with nuxt",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -290,6 +290,7 @@ var render = function () {
290
290
  cspSwitch: true,
291
291
  cspStrict: false,
292
292
  sriSwitch: false,
293
+ sriTimeout: 2000,
293
294
  // ...mainConf.server,
294
295
  // ...ykConf.server,
295
296
  // csp,