socket 1.1.90 → 1.1.92
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/CHANGELOG.md +10 -0
- package/dist/cli.js +1 -5
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +4 -4
- package/dist/constants.js.map +1 -1
- package/dist/tsconfig.dts.tsbuildinfo +1 -1
- package/dist/types/commands/scan/reachability-flags.d.mts.map +1 -1
- package/dist/types/utils/glob.d.mts.map +1 -1
- package/dist/utils.js +15 -2
- package/dist/utils.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reachability-flags.d.mts","sourceRoot":"","sources":["../../../../src/commands/scan/reachability-flags.mts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAEhD,eAAO,MAAM,iBAAiB,EAAE,
|
|
1
|
+
{"version":3,"file":"reachability-flags.d.mts","sourceRoot":"","sources":["../../../../src/commands/scan/reachability-flags.mts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAEhD,eAAO,MAAM,iBAAiB,EAAE,SAiH/B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"glob.d.mts","sourceRoot":"","sources":["../../../src/utils/glob.mts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAA;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AACvD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AACjE,OAAO,KAAK,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"glob.d.mts","sourceRoot":"","sources":["../../../src/utils/glob.mts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,KAAK,EAA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BAAgB,mBAAmB,CACjC,KAAK,EAAE,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,EACnC,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,GACvB,MAAM,EAAE,CAgBV"}
|
package/dist/utils.js
CHANGED
|
@@ -4669,6 +4669,19 @@ function ignorePatternToMinimatch(pattern) {
|
|
|
4669
4669
|
const matchInsideSuffix = patternToTest.endsWith('/**') ? '/*' : '';
|
|
4670
4670
|
return `${negatedPrefix}${matchEverywherePrefix}${escapedPatternWithoutLeadingSlash}${matchInsideSuffix}`;
|
|
4671
4671
|
}
|
|
4672
|
+
|
|
4673
|
+
// fast-glob silently discards `ignore` entries that end in `/` (it
|
|
4674
|
+
// treats them as literal directory paths, not glob patterns). The
|
|
4675
|
+
// gitignore convention of writing directory entries as `dist/` lands
|
|
4676
|
+
// here as `**/dist/` after `ignorePatternToMinimatch`, which fast-glob
|
|
4677
|
+
// then drops — defeating the entire ignore. Strip the trailing slash
|
|
4678
|
+
// so fast-glob actually honors the pattern.
|
|
4679
|
+
function stripTrailingSlash(pattern) {
|
|
4680
|
+
if (pattern.length > 1 && pattern.charCodeAt(pattern.length - 1) === 47 /*'/'*/) {
|
|
4681
|
+
return pattern.slice(0, -1);
|
|
4682
|
+
}
|
|
4683
|
+
return pattern;
|
|
4684
|
+
}
|
|
4672
4685
|
function workspacePatternToGlobPattern(workspace) {
|
|
4673
4686
|
const {
|
|
4674
4687
|
length
|
|
@@ -4747,7 +4760,7 @@ async function globWithGitIgnore(patterns, options) {
|
|
|
4747
4760
|
absolute: true,
|
|
4748
4761
|
cwd,
|
|
4749
4762
|
dot: true,
|
|
4750
|
-
ignore: hasNegatedPattern ? globs.defaultIgnore : [...ignores],
|
|
4763
|
+
ignore: hasNegatedPattern ? globs.defaultIgnore : [...ignores].map(stripTrailingSlash),
|
|
4751
4764
|
...additionalOptions
|
|
4752
4765
|
};
|
|
4753
4766
|
|
|
@@ -7904,5 +7917,5 @@ exports.updateConfigValue = updateConfigValue;
|
|
|
7904
7917
|
exports.walkNestedMap = walkNestedMap;
|
|
7905
7918
|
exports.webLink = webLink;
|
|
7906
7919
|
exports.writeSocketJson = writeSocketJson;
|
|
7907
|
-
//# debugId=
|
|
7920
|
+
//# debugId=1376ca2b-1ca3-4d1d-8c29-09378ce0da4a
|
|
7908
7921
|
//# sourceMappingURL=utils.js.map
|