@hylid/env 2.12.0-alpha.32 → 2.12.0-alpha.34

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.
Files changed (2) hide show
  1. package/lib/utils.js +0 -6
  2. package/package.json +1 -1
package/lib/utils.js CHANGED
@@ -7,16 +7,10 @@ export function isNotMP() {
7
7
  }
8
8
  export function getMatchName(checks, pattern) {
9
9
  var matches = checks.filter(function (check) {
10
- console.log('xxxxx', check, check.match.every(function (reg) {
11
- return reg.test(pattern);
12
- }), [/miniprogram/i, /^((?!griver).)*$/i, /alipay/i].every(function (reg) {
13
- return reg.test(pattern);
14
- }));
15
10
  return check.match.every(function (reg) {
16
11
  return reg.test(pattern);
17
12
  });
18
13
  });
19
- console.log('查看匹配哈哈哈', matches);
20
14
  if (!matches.length) return;
21
15
  var defaultName = matches[0].name;
22
16
  if (matches.length > 1) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hylid/env",
3
- "version": "2.12.0-alpha.32",
3
+ "version": "2.12.0-alpha.34",
4
4
  "main": "lib/index.js",
5
5
  "files": [
6
6
  "lib"