@forge/cli-shared 3.19.0 → 3.19.1-next.0
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
CHANGED
|
@@ -7,7 +7,7 @@ export declare class FileSystemReader {
|
|
|
7
7
|
readFile(filePath: string): string | undefined;
|
|
8
8
|
readFileAsync(filePath: string): Promise<string | undefined>;
|
|
9
9
|
recursiveReadDir(rootDir: string, ignores?: ReadonlyArray<string | IgnoreFunction>): Promise<string[]>;
|
|
10
|
-
readGlob(
|
|
10
|
+
readGlob(pattern: string): Promise<string[]>;
|
|
11
11
|
hasGlobSpecialChars(pattern: string): boolean;
|
|
12
12
|
readBinaryFile(filePath: string): Buffer | undefined;
|
|
13
13
|
readBinaryFileAsync(filePath: string): Promise<Buffer | undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-system-reader.d.ts","sourceRoot":"","sources":["../../src/file-system/file-system-reader.ts"],"names":[],"mappings":";;AAAA,OAAO,EAA4B,MAAM,IAAI,CAAC;AAU9C,KAAK,cAAc,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,OAAO,CAAC;AAEjE,qBAAa,gBAAgB;IACpB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAIrC,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAQxC,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAS5D,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,CAAC,MAAM,GAAG,cAAc,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAgBtG,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"file-system-reader.d.ts","sourceRoot":"","sources":["../../src/file-system/file-system-reader.ts"],"names":[],"mappings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
|
51
|
-
}
|
|
52
|
-
else {
|
|
53
|
-
resolve(matches);
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
});
|
|
46
|
+
async readGlob(pattern) {
|
|
47
|
+
const results = await (0, glob_1.glob)(pattern, {});
|
|
48
|
+
results.sort();
|
|
49
|
+
return results;
|
|
57
50
|
}
|
|
58
51
|
hasGlobSpecialChars(pattern) {
|
|
59
52
|
return (0, glob_1.hasMagic)(pattern);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/cli-shared",
|
|
3
|
-
"version": "3.19.0",
|
|
3
|
+
"version": "3.19.1-next.0",
|
|
4
4
|
"description": "Common functionality for Forge CLI",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"fp-ts": "^2.16.1",
|
|
29
29
|
"fs-extra": "^11.1.1",
|
|
30
30
|
"get-folder-size": "^2.0.1",
|
|
31
|
-
"glob": "^
|
|
31
|
+
"glob": "^10.3.6",
|
|
32
32
|
"graphql": "^15.8.0",
|
|
33
33
|
"graphql-request": "3.7.0",
|
|
34
34
|
"ignore-walk": "^3.0.4",
|
|
@@ -57,7 +57,6 @@
|
|
|
57
57
|
"@types/cross-spawn": "^6.0.3",
|
|
58
58
|
"@types/fs-extra": "^11.0.2",
|
|
59
59
|
"@types/get-folder-size": "^2.0.0",
|
|
60
|
-
"@types/glob": "7.2.0",
|
|
61
60
|
"@types/ignore-walk": "^4.0.0",
|
|
62
61
|
"@types/inquirer": "^8.2.6",
|
|
63
62
|
"@types/jest": "^29.5.5",
|
|
@@ -70,4 +69,4 @@
|
|
|
70
69
|
"jest-fixtures": "^0.6.0",
|
|
71
70
|
"jest-matcher-specific-error": "^1.0.0"
|
|
72
71
|
}
|
|
73
|
-
}
|
|
72
|
+
}
|