@le-space/node 0.1.10 → 0.1.11
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/index.js +11 -1
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -34,10 +34,20 @@ function jsonEnv(name, fallback, env = process.env) {
|
|
|
34
34
|
|
|
35
35
|
// src/github-outputs.ts
|
|
36
36
|
import { appendFile } from "fs/promises";
|
|
37
|
+
import { randomUUID } from "crypto";
|
|
37
38
|
async function appendGithubOutput(name, value, env = process.env) {
|
|
38
39
|
const outputFile = env.GITHUB_OUTPUT;
|
|
39
40
|
if (!outputFile) return;
|
|
40
|
-
|
|
41
|
+
const normalized = String(value ?? "");
|
|
42
|
+
if (/\r|\n/.test(normalized)) {
|
|
43
|
+
const marker = `__ALEPH_OUTPUT_${randomUUID()}__`;
|
|
44
|
+
await appendFile(outputFile, `${name}<<${marker}
|
|
45
|
+
${normalized}
|
|
46
|
+
${marker}
|
|
47
|
+
`);
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
await appendFile(outputFile, `${name}=${normalized}
|
|
41
51
|
`);
|
|
42
52
|
}
|
|
43
53
|
async function appendGithubSummary(lines, env = process.env) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@le-space/node",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"description": "Node and GitHub Actions adapters for shared Aleph tooling.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
"access": "public"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@le-space/core": "0.1.
|
|
20
|
-
"@le-space/shared-types": "0.1.
|
|
21
|
-
"@le-space/rootfs": "0.1.
|
|
19
|
+
"@le-space/core": "0.1.11",
|
|
20
|
+
"@le-space/shared-types": "0.1.11",
|
|
21
|
+
"@le-space/rootfs": "0.1.11",
|
|
22
22
|
"ethers": "^6.15.0"
|
|
23
23
|
}
|
|
24
24
|
}
|