yakuza0 2.23.41 → 2.23.42

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.
@@ -40,10 +40,6 @@ var _replace = require('./replace');
40
40
 
41
41
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
42
42
 
43
- // Remove e-mail addresses left in bundled dependency banners/comments. The
44
- // optional backslashes also cover addresses escaped by some bundlers/scanners.
45
- var emailAddressPattern = /[a-z0-9.!#$%&'*+/=?^_`{|}~-]+\\?@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/ig;
46
-
47
43
  var customExtend = function customExtend(_ref) {
48
44
  var eslint = _ref.eslint,
49
45
  alias = _ref.alias,
@@ -90,8 +86,8 @@ exports.default = function (config) {
90
86
  // test: /package.json/,
91
87
  test: /\.js$/,
92
88
  rules: [{
93
- search: emailAddressPattern,
94
- replace: ''
89
+ search: _replace.emailAddressPattern,
90
+ replace: '$1'
95
91
  }, {
96
92
  // search: /(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/ig,
97
93
  search: '@indutny.com',
@@ -17,6 +17,12 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
17
17
  var path = require('path');
18
18
  var fs = require('fs');
19
19
 
20
+ // Start only at a token boundary: retrying at every character of a large
21
+ // base64/data-URI token without an @ makes the unanchored pattern quadratic.
22
+ // Keep the captured delimiter with '$1'; optional backslashes cover escaped
23
+ // addresses in bundled comments and strings.
24
+ exports.emailAddressPattern = /(^|[^a-z0-9.!#$%&'*+/=?^_`{|}~-])[a-z0-9.!#$%&'*+/=?^_`{|}~-]+\\?@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/ig;
25
+
20
26
  function getAllFiles(root) {
21
27
  var res = [],
22
28
  files = fs.readdirSync(root);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yakuza0",
3
- "version": "2.23.41",
3
+ "version": "2.23.42",
4
4
  "description": "yakuza0 with nuxt",
5
5
  "main": "index.js",
6
6
  "scripts": {