@visulima/fs 5.0.0-alpha.13 → 5.0.0-alpha.15

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 (186) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/LICENSE.md +30 -0
  3. package/dist/eol.js +3 -26
  4. package/dist/error.js +1 -7
  5. package/dist/glob-parent.js +1 -90
  6. package/dist/glob.d.ts +2 -2
  7. package/dist/glob.js +1 -2
  8. package/dist/index.d.ts +3 -3
  9. package/dist/index.js +1 -38
  10. package/dist/ini.d.ts +2 -2
  11. package/dist/ini.js +1 -4
  12. package/dist/is-glob.js +1 -9
  13. package/dist/json5.d.ts +2 -2
  14. package/dist/json5.js +1 -4
  15. package/dist/jsonc.d.ts +2 -2
  16. package/dist/jsonc.js +1 -4
  17. package/dist/match.d.ts +1 -1
  18. package/dist/match.js +1 -15
  19. package/dist/packem_shared/AlreadyExistsError-CEu6_Tjb.js +1 -0
  20. package/dist/packem_shared/DirectoryError-ddlbUV8C.js +1 -0
  21. package/dist/packem_shared/F_OK-CAwY1qU7.js +1 -0
  22. package/dist/packem_shared/JSONError-D7h6PNWc.js +4 -0
  23. package/dist/packem_shared/NotEmptyError-DMh1o7UL.js +1 -0
  24. package/dist/packem_shared/NotFoundError-BPiW0icm.js +1 -0
  25. package/dist/packem_shared/PermissionError-B1Emi5a9.js +1 -0
  26. package/dist/packem_shared/WalkError-Olmh4908.js +1 -0
  27. package/dist/packem_shared/_commonjsHelpers-D6W6KoPK.js +1 -0
  28. package/dist/packem_shared/assertValidFileContents-BZFnXa7K.js +1 -0
  29. package/dist/packem_shared/assertValidFileOrDirectoryPath-DgPIPmZT.js +1 -0
  30. package/dist/packem_shared/build-rm-options-C1R4reBu.js +1 -0
  31. package/dist/packem_shared/collect-2KPTpCdX.js +1 -0
  32. package/dist/packem_shared/collectSync-BX55r_BH.js +1 -0
  33. package/dist/packem_shared/emptyDir-8utO028L.js +1 -0
  34. package/dist/packem_shared/emptyDirSync-Bk5fUX73.js +1 -0
  35. package/dist/packem_shared/ensureDir-CZ4oUFuo.js +1 -0
  36. package/dist/packem_shared/ensureDirSync-CoPWhbjM.js +1 -0
  37. package/dist/packem_shared/ensureFile-CF1cAAyh.js +1 -0
  38. package/dist/packem_shared/ensureFileSync-C3qR6naU.js +1 -0
  39. package/dist/packem_shared/ensureLink-LLLxlGHn.js +1 -0
  40. package/dist/packem_shared/ensureLinkSync-Dh_GtT8F.js +1 -0
  41. package/dist/packem_shared/ensureSymlink-D50kj2zl.js +1 -0
  42. package/dist/packem_shared/ensureSymlinkSync-BbVDPvI4.js +1 -0
  43. package/dist/packem_shared/findUp-BT07y_Me.js +1 -0
  44. package/dist/packem_shared/findUpSync-BvZiYsKJ.js +1 -0
  45. package/dist/packem_shared/get-file-info-type-CaWGXRjY.js +1 -0
  46. package/dist/packem_shared/glob-MHJQjR39.js +1 -0
  47. package/dist/packem_shared/{glob-sync.d-Dsxhj3BW.d.ts → glob-sync.d-D2sDeSpa.d.ts} +1 -1
  48. package/dist/packem_shared/globSync-CwzlELgS.js +1 -0
  49. package/dist/packem_shared/index-CYIVJA0W.js +1 -0
  50. package/dist/packem_shared/index-DrapuBsB.js +1 -0
  51. package/dist/packem_shared/index-K-NNTkpb.js +11 -0
  52. package/dist/packem_shared/index-yGx8uzZs.js +1 -0
  53. package/dist/packem_shared/indexToLineColumn-BRSZFC6I-BKj3uzZt.js +6 -0
  54. package/dist/packem_shared/ini-preserve-CXc_xkpG.js +4 -0
  55. package/dist/packem_shared/is-stats-identical-CohsLtWy.js +1 -0
  56. package/dist/packem_shared/isAccessible-CDFxsAAo.js +1 -0
  57. package/dist/packem_shared/isAccessibleSync-5nzZWgin.js +1 -0
  58. package/dist/packem_shared/isFsCaseSensitive-CMZVY1A2.js +1 -0
  59. package/dist/packem_shared/jsonc-merge-CQMjx3Vw.js +2 -0
  60. package/dist/packem_shared/move-LmP6P9sn.js +1 -0
  61. package/dist/packem_shared/parseJson-Xx6vHYbv.js +1 -0
  62. package/dist/packem_shared/readFile-BAVMZg5e.js +1 -0
  63. package/dist/packem_shared/readFileSync-CGmzMUF2.js +1 -0
  64. package/dist/packem_shared/readIni-Cfl6HmTS.js +1 -0
  65. package/dist/packem_shared/readIniSync-DPg4UD0P.js +1 -0
  66. package/dist/packem_shared/readJson-kPx68Wv1.js +1 -0
  67. package/dist/packem_shared/readJson5-pXTL9nUE.js +1 -0
  68. package/dist/packem_shared/readJson5Sync-BedQc292.js +1 -0
  69. package/dist/packem_shared/readJsonSync-_HXNI3Se.js +1 -0
  70. package/dist/packem_shared/readJsonc-BzvuAXbT.js +1 -0
  71. package/dist/packem_shared/readJsoncSync-CVG1_QnX.js +1 -0
  72. package/dist/packem_shared/readToml-BO5CZK2P.js +1 -0
  73. package/dist/packem_shared/readTomlSync-1fKo0R52.js +1 -0
  74. package/dist/packem_shared/readYaml-DjK_Vqj1.js +1 -0
  75. package/dist/packem_shared/readYamlSync-C3h6KA2c.js +1 -0
  76. package/dist/packem_shared/remove-DH41Ov_c.js +1 -0
  77. package/dist/packem_shared/removeSync-50OEdnHd.js +1 -0
  78. package/dist/packem_shared/resolve-symlink-target-BofZSDIc.js +1 -0
  79. package/dist/packem_shared/sanitize-CU1xmyrg.js +1 -0
  80. package/dist/packem_shared/stripJsonComments-CzNR77MF.js +1 -0
  81. package/dist/packem_shared/to-uint-8-array-DwgaTasY.js +1 -0
  82. package/dist/packem_shared/{types.d-CixEXeyM.d.ts → types.d-DjZtAjkJ.d.ts} +26 -26
  83. package/dist/packem_shared/walk-D01Qmmvz.js +1 -0
  84. package/dist/packem_shared/walk-include-DCiVAwMP.js +1 -0
  85. package/dist/packem_shared/walkSync-BknSdmKD.js +1 -0
  86. package/dist/packem_shared/writeFile-DNGaDOMX.js +1 -0
  87. package/dist/packem_shared/writeFileSync-CE1i-eMA.js +1 -0
  88. package/dist/packem_shared/writeIni-DG7U4ji0.js +4 -0
  89. package/dist/packem_shared/writeIniSync-Ldt6HFLb.js +4 -0
  90. package/dist/packem_shared/writeJson-BkGlq1Kv.js +4 -0
  91. package/dist/packem_shared/writeJson5-Btud4sQh.js +4 -0
  92. package/dist/packem_shared/writeJson5Sync-Iln3i1IV.js +4 -0
  93. package/dist/packem_shared/writeJsonSync-HndmyvEK.js +4 -0
  94. package/dist/packem_shared/writeJsonc-9oiamG16.js +4 -0
  95. package/dist/packem_shared/writeJsoncSync-BHBziPiK.js +4 -0
  96. package/dist/packem_shared/writeToml-Cj57wZ8B.js +1 -0
  97. package/dist/packem_shared/writeTomlSync-B34ZZp0e.js +1 -0
  98. package/dist/packem_shared/writeYaml-BhQX2yN9.js +1 -0
  99. package/dist/packem_shared/writeYamlSync-DG01FBeC.js +1 -0
  100. package/dist/size.js +1 -146
  101. package/dist/toml.d.ts +1 -1
  102. package/dist/toml.js +1 -4
  103. package/dist/utils.d.ts +1 -1
  104. package/dist/utils.js +1 -6
  105. package/dist/yaml.d.ts +2 -2
  106. package/dist/yaml.js +1 -4
  107. package/package.json +22 -22
  108. package/dist/packem_shared/AlreadyExistsError-6Y9hjgMn.js +0 -27
  109. package/dist/packem_shared/DirectoryError-BfYPkIYP.js +0 -27
  110. package/dist/packem_shared/F_OK-MldBaGxb.js +0 -8
  111. package/dist/packem_shared/JSONError-BkHRnInH.js +0 -26
  112. package/dist/packem_shared/NotEmptyError-B21RUlVr.js +0 -27
  113. package/dist/packem_shared/NotFoundError-BIp61X6k.js +0 -27
  114. package/dist/packem_shared/PermissionError-CjoiJgip.js +0 -27
  115. package/dist/packem_shared/WalkError-DER5A43G.js +0 -24
  116. package/dist/packem_shared/_commonjsHelpers-BqLXS_qQ.js +0 -5
  117. package/dist/packem_shared/assertValidFileContents-BmcLtsGd.js +0 -7
  118. package/dist/packem_shared/assertValidFileOrDirectoryPath-8HANmVjk.js +0 -7
  119. package/dist/packem_shared/build-rm-options-Cl3VDY4O.js +0 -12
  120. package/dist/packem_shared/collect-CqQ3eVab.js +0 -14
  121. package/dist/packem_shared/collectSync-noE08NNv.js +0 -14
  122. package/dist/packem_shared/emptyDir-DnwENOaV.js +0 -46
  123. package/dist/packem_shared/emptyDirSync-6WiHBo8a.js +0 -43
  124. package/dist/packem_shared/ensureDir-DNlPftys.js +0 -53
  125. package/dist/packem_shared/ensureDirSync-DcPZFMy5.js +0 -53
  126. package/dist/packem_shared/ensureFile-BRQpUOUM.js +0 -47
  127. package/dist/packem_shared/ensureFileSync-SBY7A9-C.js +0 -47
  128. package/dist/packem_shared/ensureLink-DJQeauEn.js +0 -55
  129. package/dist/packem_shared/ensureLinkSync-D9RVAglV.js +0 -55
  130. package/dist/packem_shared/ensureSymlink-CoRYDRwr.js +0 -80
  131. package/dist/packem_shared/ensureSymlinkSync-CFimFlgh.js +0 -81
  132. package/dist/packem_shared/findUp-YcNLKdfV.js +0 -84
  133. package/dist/packem_shared/findUpSync-BfA5fheN.js +0 -83
  134. package/dist/packem_shared/get-file-info-type-FD4-jsyg.js +0 -14
  135. package/dist/packem_shared/glob-DY8l7izD.js +0 -5
  136. package/dist/packem_shared/globSync-5P2KJf_g.js +0 -5
  137. package/dist/packem_shared/index-C8W8sfzP.js +0 -830
  138. package/dist/packem_shared/index-CHM-in-V.js +0 -100
  139. package/dist/packem_shared/index-bhgnhm4u.js +0 -167
  140. package/dist/packem_shared/index-xe4o3cYi.js +0 -1784
  141. package/dist/packem_shared/indexToLineColumn-BUb0GPKl-BF770uX7.js +0 -171
  142. package/dist/packem_shared/ini-preserve-Dq_Q_Jgb.js +0 -251
  143. package/dist/packem_shared/is-stats-identical-D8FxpvQU.js +0 -3
  144. package/dist/packem_shared/isAccessible-DuVrTNFV.js +0 -38
  145. package/dist/packem_shared/isAccessibleSync-DI8mM0fA.js +0 -38
  146. package/dist/packem_shared/isFsCaseSensitive-DunL7Iry.js +0 -62
  147. package/dist/packem_shared/jsonc-merge-C6jWcfWh.js +0 -72
  148. package/dist/packem_shared/move-DbpW5_vA.js +0 -134
  149. package/dist/packem_shared/parseJson-BIp89Xjo.js +0 -63
  150. package/dist/packem_shared/readFile-Iz7kvCCk.js +0 -65
  151. package/dist/packem_shared/readFileSync-gm9yfIhh.js +0 -54
  152. package/dist/packem_shared/readIni-CJ2xfpjB.js +0 -10
  153. package/dist/packem_shared/readIniSync-9LUjaSSp.js +0 -10
  154. package/dist/packem_shared/readJson-C_rwm-wq.js +0 -22
  155. package/dist/packem_shared/readJson5-mBoTZppy.js +0 -15
  156. package/dist/packem_shared/readJson5Sync-8WS2yUok.js +0 -15
  157. package/dist/packem_shared/readJsonSync-BMEmCcJ6.js +0 -22
  158. package/dist/packem_shared/readJsonc-j-OS-APg.js +0 -28
  159. package/dist/packem_shared/readJsoncSync-Aw6EMlWO.js +0 -16
  160. package/dist/packem_shared/readToml-B2MHaSes.js +0 -9
  161. package/dist/packem_shared/readTomlSync-DNbK8NEb.js +0 -9
  162. package/dist/packem_shared/readYaml-D5q2a0e1.js +0 -10
  163. package/dist/packem_shared/readYamlSync-BKX-PAfq.js +0 -10
  164. package/dist/packem_shared/remove-C8_gl3jF.js +0 -39
  165. package/dist/packem_shared/removeSync-BJR_wTwN.js +0 -39
  166. package/dist/packem_shared/resolve-symlink-target-Kh4GovFf.js +0 -16
  167. package/dist/packem_shared/sanitize-BZoLN9Fg.js +0 -205
  168. package/dist/packem_shared/stripJsonComments-vo4k0mpF.js +0 -19
  169. package/dist/packem_shared/to-uint-8-array-Dz2nF1y1.js +0 -19
  170. package/dist/packem_shared/walk-CSZgCuDx.js +0 -124
  171. package/dist/packem_shared/walk-include-CZco7BvN.js +0 -16
  172. package/dist/packem_shared/walkSync-C4Cy28xb.js +0 -123
  173. package/dist/packem_shared/writeFile-B8HX0JIQ.js +0 -81
  174. package/dist/packem_shared/writeFileSync-DB8vv8xR.js +0 -81
  175. package/dist/packem_shared/writeIni-i55QrL8y.js +0 -65
  176. package/dist/packem_shared/writeIniSync-CLqJE5t3.js +0 -64
  177. package/dist/packem_shared/writeJson-Bo7C2UHw.js +0 -50
  178. package/dist/packem_shared/writeJson5-vVmHUQOd.js +0 -53
  179. package/dist/packem_shared/writeJson5Sync-oJ546h5k.js +0 -53
  180. package/dist/packem_shared/writeJsonSync-BKZ_9Acr.js +0 -50
  181. package/dist/packem_shared/writeJsonc-BufH_oC5.js +0 -60
  182. package/dist/packem_shared/writeJsoncSync-DB9be1YL.js +0 -59
  183. package/dist/packem_shared/writeToml-DgTW_-7F.js +0 -8
  184. package/dist/packem_shared/writeTomlSync-DiBiE9ja.js +0 -8
  185. package/dist/packem_shared/writeYaml-BWCOome-.js +0 -24
  186. package/dist/packem_shared/writeYamlSync-DBVnXmuY.js +0 -24
@@ -1,100 +0,0 @@
1
- const INDENT_REGEX = /^(?:( )+|\t+)/;
2
- const INDENT_TYPE_SPACE = "space";
3
- const INDENT_TYPE_TAB = "tab";
4
- function shouldIgnoreSingleSpace(ignoreSingleSpaces, indentType, value) {
5
- return ignoreSingleSpaces && indentType === INDENT_TYPE_SPACE && value === 1;
6
- }
7
- function makeIndentsMap(string, ignoreSingleSpaces) {
8
- const indents = /* @__PURE__ */ new Map();
9
- let previousSize = 0;
10
- let previousIndentType;
11
- let key;
12
- for (const line of string.split(/\n/g)) {
13
- if (!line) {
14
- continue;
15
- }
16
- const matches = line.match(INDENT_REGEX);
17
- if (matches === null) {
18
- previousSize = 0;
19
- previousIndentType = "";
20
- } else {
21
- const indent = matches[0].length;
22
- const indentType = matches[1] ? INDENT_TYPE_SPACE : INDENT_TYPE_TAB;
23
- if (shouldIgnoreSingleSpace(ignoreSingleSpaces, indentType, indent)) {
24
- continue;
25
- }
26
- if (indentType !== previousIndentType) {
27
- previousSize = 0;
28
- }
29
- previousIndentType = indentType;
30
- let use = 1;
31
- let weight = 0;
32
- const indentDifference = indent - previousSize;
33
- previousSize = indent;
34
- if (indentDifference === 0) {
35
- use = 0;
36
- weight = 1;
37
- } else {
38
- const absoluteIndentDifference = Math.abs(indentDifference);
39
- if (shouldIgnoreSingleSpace(ignoreSingleSpaces, indentType, absoluteIndentDifference)) {
40
- continue;
41
- }
42
- key = encodeIndentsKey(indentType, absoluteIndentDifference);
43
- }
44
- const entry = indents.get(key);
45
- indents.set(key, entry === void 0 ? [1, 0] : [entry[0] + use, entry[1] + weight]);
46
- }
47
- }
48
- return indents;
49
- }
50
- function encodeIndentsKey(indentType, indentAmount) {
51
- const typeCharacter = indentType === INDENT_TYPE_SPACE ? "s" : "t";
52
- return typeCharacter + String(indentAmount);
53
- }
54
- function decodeIndentsKey(indentsKey) {
55
- const keyHasTypeSpace = indentsKey[0] === "s";
56
- const type = keyHasTypeSpace ? INDENT_TYPE_SPACE : INDENT_TYPE_TAB;
57
- const amount = Number(indentsKey.slice(1));
58
- return { type, amount };
59
- }
60
- function getMostUsedKey(indents) {
61
- let result;
62
- let maxUsed = 0;
63
- let maxWeight = 0;
64
- for (const [key, [usedCount, weight]] of indents) {
65
- if (usedCount > maxUsed || usedCount === maxUsed && weight > maxWeight) {
66
- maxUsed = usedCount;
67
- maxWeight = weight;
68
- result = key;
69
- }
70
- }
71
- return result;
72
- }
73
- function makeIndentString(type, amount) {
74
- const indentCharacter = type === INDENT_TYPE_SPACE ? " " : " ";
75
- return indentCharacter.repeat(amount);
76
- }
77
- function detectIndent(string) {
78
- if (typeof string !== "string") {
79
- throw new TypeError("Expected a string");
80
- }
81
- let indents = makeIndentsMap(string, true);
82
- if (indents.size === 0) {
83
- indents = makeIndentsMap(string, false);
84
- }
85
- const keyOfMostUsedIndent = getMostUsedKey(indents);
86
- let type;
87
- let amount = 0;
88
- let indent = "";
89
- if (keyOfMostUsedIndent !== void 0) {
90
- ({ type, amount } = decodeIndentsKey(keyOfMostUsedIndent));
91
- indent = makeIndentString(type, amount);
92
- }
93
- return {
94
- amount,
95
- type,
96
- indent
97
- };
98
- }
99
-
100
- export { detectIndent as d };
@@ -1,167 +0,0 @@
1
- var isExtglob;
2
- var hasRequiredIsExtglob;
3
-
4
- function requireIsExtglob () {
5
- if (hasRequiredIsExtglob) return isExtglob;
6
- hasRequiredIsExtglob = 1;
7
- /*!
8
- * is-extglob <https://github.com/jonschlinkert/is-extglob>
9
- *
10
- * Copyright (c) 2014-2016, Jon Schlinkert.
11
- * Licensed under the MIT License.
12
- */
13
- isExtglob = function isExtglob(str) {
14
- if (typeof str !== "string" || str === "") {
15
- return false;
16
- }
17
- var match;
18
- while (match = /(\\).|([@?!+*]\(.*\))/g.exec(str)) {
19
- if (match[2]) return true;
20
- str = str.slice(match.index + match[0].length);
21
- }
22
- return false;
23
- };
24
- return isExtglob;
25
- }
26
-
27
- var isGlob;
28
- var hasRequiredIsGlob;
29
-
30
- function requireIsGlob () {
31
- if (hasRequiredIsGlob) return isGlob;
32
- hasRequiredIsGlob = 1;
33
- /*!
34
- * is-glob <https://github.com/jonschlinkert/is-glob>
35
- *
36
- * Copyright (c) 2014-2017, Jon Schlinkert.
37
- * Released under the MIT License.
38
- */
39
- var isExtglob = requireIsExtglob();
40
- var chars = { "{": "}", "(": ")", "[": "]" };
41
- var strictCheck = function(str) {
42
- if (str[0] === "!") {
43
- return true;
44
- }
45
- var index = 0;
46
- var pipeIndex = -2;
47
- var closeSquareIndex = -2;
48
- var closeCurlyIndex = -2;
49
- var closeParenIndex = -2;
50
- var backSlashIndex = -2;
51
- while (index < str.length) {
52
- if (str[index] === "*") {
53
- return true;
54
- }
55
- if (str[index + 1] === "?" && /[\].+)]/.test(str[index])) {
56
- return true;
57
- }
58
- if (closeSquareIndex !== -1 && str[index] === "[" && str[index + 1] !== "]") {
59
- if (closeSquareIndex < index) {
60
- closeSquareIndex = str.indexOf("]", index);
61
- }
62
- if (closeSquareIndex > index) {
63
- if (backSlashIndex === -1 || backSlashIndex > closeSquareIndex) {
64
- return true;
65
- }
66
- backSlashIndex = str.indexOf("\\", index);
67
- if (backSlashIndex === -1 || backSlashIndex > closeSquareIndex) {
68
- return true;
69
- }
70
- }
71
- }
72
- if (closeCurlyIndex !== -1 && str[index] === "{" && str[index + 1] !== "}") {
73
- closeCurlyIndex = str.indexOf("}", index);
74
- if (closeCurlyIndex > index) {
75
- backSlashIndex = str.indexOf("\\", index);
76
- if (backSlashIndex === -1 || backSlashIndex > closeCurlyIndex) {
77
- return true;
78
- }
79
- }
80
- }
81
- if (closeParenIndex !== -1 && str[index] === "(" && str[index + 1] === "?" && /[:!=]/.test(str[index + 2]) && str[index + 3] !== ")") {
82
- closeParenIndex = str.indexOf(")", index);
83
- if (closeParenIndex > index) {
84
- backSlashIndex = str.indexOf("\\", index);
85
- if (backSlashIndex === -1 || backSlashIndex > closeParenIndex) {
86
- return true;
87
- }
88
- }
89
- }
90
- if (pipeIndex !== -1 && str[index] === "(" && str[index + 1] !== "|") {
91
- if (pipeIndex < index) {
92
- pipeIndex = str.indexOf("|", index);
93
- }
94
- if (pipeIndex !== -1 && str[pipeIndex + 1] !== ")") {
95
- closeParenIndex = str.indexOf(")", pipeIndex);
96
- if (closeParenIndex > pipeIndex) {
97
- backSlashIndex = str.indexOf("\\", pipeIndex);
98
- if (backSlashIndex === -1 || backSlashIndex > closeParenIndex) {
99
- return true;
100
- }
101
- }
102
- }
103
- }
104
- if (str[index] === "\\") {
105
- var open = str[index + 1];
106
- index += 2;
107
- var close = chars[open];
108
- if (close) {
109
- var n = str.indexOf(close, index);
110
- if (n !== -1) {
111
- index = n + 1;
112
- }
113
- }
114
- if (str[index] === "!") {
115
- return true;
116
- }
117
- } else {
118
- index++;
119
- }
120
- }
121
- return false;
122
- };
123
- var relaxedCheck = function(str) {
124
- if (str[0] === "!") {
125
- return true;
126
- }
127
- var index = 0;
128
- while (index < str.length) {
129
- if (/[*?{}()[\]]/.test(str[index])) {
130
- return true;
131
- }
132
- if (str[index] === "\\") {
133
- var open = str[index + 1];
134
- index += 2;
135
- var close = chars[open];
136
- if (close) {
137
- var n = str.indexOf(close, index);
138
- if (n !== -1) {
139
- index = n + 1;
140
- }
141
- }
142
- if (str[index] === "!") {
143
- return true;
144
- }
145
- } else {
146
- index++;
147
- }
148
- }
149
- return false;
150
- };
151
- isGlob = function isGlob(str, options) {
152
- if (typeof str !== "string" || str === "") {
153
- return false;
154
- }
155
- if (isExtglob(str)) {
156
- return true;
157
- }
158
- var check = strictCheck;
159
- if (options && options.strict === false) {
160
- check = relaxedCheck;
161
- }
162
- return check(str);
163
- };
164
- return isGlob;
165
- }
166
-
167
- export { requireIsGlob as r };