@storm-software/workspace-tools 1.66.13 → 1.66.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.
- package/CHANGELOG.md +24 -0
- package/package.json +1 -1
- package/src/executors/cargo-publish/executor.ts +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
## 1.66.15 (2024-03-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### 🩹 Fixes
|
|
5
|
+
|
|
6
|
+
- **git-tools:** Resolve issue with module type compiler options ([5c4a20b7](https://github.com/storm-software/storm-ops/commit/5c4a20b7))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### ❤️ Thank You
|
|
10
|
+
|
|
11
|
+
- Patrick Sullivan
|
|
12
|
+
|
|
13
|
+
## 1.66.14 (2024-03-28)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### 🩹 Fixes
|
|
17
|
+
|
|
18
|
+
- **workspace-tools:** Add proper invocation of `axios` module ([a6ba8116](https://github.com/storm-software/storm-ops/commit/a6ba8116))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### ❤️ Thank You
|
|
22
|
+
|
|
23
|
+
- Patrick Sullivan
|
|
24
|
+
|
|
1
25
|
## 1.66.13 (2024-03-28)
|
|
2
26
|
|
|
3
27
|
|
package/package.json
CHANGED
|
@@ -4,17 +4,9 @@ import { readFileSync } from "node:fs";
|
|
|
4
4
|
import { parseCargoToml } from "../../utils/toml";
|
|
5
5
|
import type { CargoPublishExecutorSchema } from "./schema.d";
|
|
6
6
|
import { encode } from "node:querystring";
|
|
7
|
-
|
|
7
|
+
import axios from "axios";
|
|
8
8
|
|
|
9
9
|
const LARGE_BUFFER = 1024 * 1000000;
|
|
10
|
-
const RegistryApi = axios.default.create({
|
|
11
|
-
baseURL: "https://crates.io/api/v1/crates",
|
|
12
|
-
headers: {
|
|
13
|
-
"Content-Type": "application/json",
|
|
14
|
-
Authorization: process.env.CARGO_REGISTRY_TOKEN
|
|
15
|
-
},
|
|
16
|
-
timeout: 8000
|
|
17
|
-
});
|
|
18
10
|
|
|
19
11
|
export default async function runExecutor(
|
|
20
12
|
options: CargoPublishExecutorSchema,
|
|
@@ -50,9 +42,17 @@ export default async function runExecutor(
|
|
|
50
42
|
);
|
|
51
43
|
|
|
52
44
|
try {
|
|
53
|
-
const result = await
|
|
54
|
-
|
|
55
|
-
|
|
45
|
+
const result = await axios({
|
|
46
|
+
method: "get",
|
|
47
|
+
url: `https://crates.io/api/v1/crates/${encode(cargoToml.package.name)}/${encode(
|
|
48
|
+
cargoToml.package.version
|
|
49
|
+
)}`,
|
|
50
|
+
headers: {
|
|
51
|
+
"Content-Type": "application/json",
|
|
52
|
+
Authorization: process.env.CARGO_REGISTRY_TOKEN
|
|
53
|
+
},
|
|
54
|
+
timeout: 8000
|
|
55
|
+
});
|
|
56
56
|
if (result?.data) {
|
|
57
57
|
console.warn(
|
|
58
58
|
`Skipped package "${cargoToml.package.name}" from project "${context.projectName}" because v${cargoToml.package.version} already exists in https://crates.io with tag "latest"`
|