bulletin-deploy 0.6.8-rc.0 → 0.6.8
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/dist/bug-report.js +2 -2
- package/dist/{chunk-FI2IKRB7.js → chunk-KHLH5WQY.js} +1 -1
- package/dist/{chunk-AUTRMT26.js → chunk-LVCOE5CC.js} +5 -2
- package/dist/{chunk-GJVD4HRJ.js → chunk-SLARK556.js} +19 -3
- package/dist/{chunk-GCAPBR6G.js → chunk-SYJ2L6RU.js} +1 -1
- package/dist/deploy.js +3 -3
- package/dist/dotns.js +2 -2
- package/dist/index.js +3 -3
- package/dist/telemetry.d.ts +3 -1
- package/dist/telemetry.js +5 -1
- package/dist/version-check.js +2 -2
- package/package.json +1 -1
package/dist/bug-report.js
CHANGED
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
classifyErrorArea,
|
|
3
3
|
isInteractive,
|
|
4
4
|
promptYesNo
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-SYJ2L6RU.js";
|
|
6
6
|
import {
|
|
7
7
|
VERSION
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-SLARK556.js";
|
|
9
9
|
import "./chunk-QGM4M3NI.js";
|
|
10
10
|
|
|
11
11
|
// src/bug-report.ts
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
TX_TIMEOUT_MS,
|
|
5
5
|
fetchNonce,
|
|
6
6
|
validateDomainLabel
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KHLH5WQY.js";
|
|
8
8
|
import {
|
|
9
9
|
merkleizeJS
|
|
10
10
|
} from "./chunk-GZ5UUECB.js";
|
|
@@ -18,10 +18,12 @@ import {
|
|
|
18
18
|
VERSION,
|
|
19
19
|
captureWarning,
|
|
20
20
|
initTelemetry,
|
|
21
|
+
resolveRunner,
|
|
22
|
+
resolveRunnerType,
|
|
21
23
|
setDeployAttribute,
|
|
22
24
|
withDeploySpan,
|
|
23
25
|
withSpan
|
|
24
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-SLARK556.js";
|
|
25
27
|
|
|
26
28
|
// src/deploy.ts
|
|
27
29
|
import { Buffer } from "buffer";
|
|
@@ -824,6 +826,7 @@ async function deploy(content, domainName = null, options = {}) {
|
|
|
824
826
|
console.log("=".repeat(60));
|
|
825
827
|
console.log(` Domain: ${name}.dot`);
|
|
826
828
|
if (typeof content === "string") console.log(` Build dir: ${path.resolve(content)}`);
|
|
829
|
+
if (process.env.CI) console.log(` Runner: ${resolveRunner()} (${resolveRunnerType()})`);
|
|
827
830
|
if (options.password) console.log(` Encrypted: yes`);
|
|
828
831
|
let provider;
|
|
829
832
|
const reconnect = options.mnemonic ? () => getDirectProvider(options.mnemonic) : () => getProvider();
|
|
@@ -6,7 +6,7 @@ import * as path from "path";
|
|
|
6
6
|
// package.json
|
|
7
7
|
var package_default = {
|
|
8
8
|
name: "bulletin-deploy",
|
|
9
|
-
version: "0.6.8
|
|
9
|
+
version: "0.6.8",
|
|
10
10
|
private: false,
|
|
11
11
|
repository: {
|
|
12
12
|
type: "git",
|
|
@@ -116,13 +116,25 @@ function tryGitBranch() {
|
|
|
116
116
|
return "unknown";
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
+
function resolveRunner() {
|
|
120
|
+
if (!process.env.CI) return "local";
|
|
121
|
+
if (process.env.RUNNER_NAME?.startsWith("parity-")) return process.env.RUNNER_NAME;
|
|
122
|
+
return process.env.RUNNER_NAME || "unknown";
|
|
123
|
+
}
|
|
124
|
+
function resolveRunnerType() {
|
|
125
|
+
if (!process.env.CI) return "local";
|
|
126
|
+
if (process.env.RUNNER_NAME?.startsWith("parity-")) return "self-hosted";
|
|
127
|
+
return "github-hosted";
|
|
128
|
+
}
|
|
119
129
|
function getDeployAttributes(domain) {
|
|
120
130
|
return {
|
|
121
131
|
"deploy.repo": resolveRepo(domain),
|
|
122
132
|
"deploy.branch": process.env.GITHUB_HEAD_REF || process.env.GITHUB_REF_NAME || tryGitBranch(),
|
|
123
133
|
"deploy.source": process.env.CI ? "ci" : "local",
|
|
124
134
|
"deploy.pr": process.env.GITHUB_PR_NUMBER || void 0,
|
|
125
|
-
"deploy.tool_version": VERSION
|
|
135
|
+
"deploy.tool_version": VERSION,
|
|
136
|
+
"deploy.runner": resolveRunner(),
|
|
137
|
+
"deploy.runner_type": resolveRunnerType()
|
|
126
138
|
};
|
|
127
139
|
}
|
|
128
140
|
function isExpectedError(msg) {
|
|
@@ -149,7 +161,9 @@ async function withDeploySpan(domain, fn) {
|
|
|
149
161
|
"deploy.repo": attrs["deploy.repo"],
|
|
150
162
|
"deploy.branch": attrs["deploy.branch"],
|
|
151
163
|
"deploy.domain": domain,
|
|
152
|
-
"deploy.source": attrs["deploy.source"]
|
|
164
|
+
"deploy.source": attrs["deploy.source"],
|
|
165
|
+
"deploy.tool_version": VERSION,
|
|
166
|
+
"deploy.runner_type": resolveRunnerType()
|
|
153
167
|
});
|
|
154
168
|
try {
|
|
155
169
|
return await fn();
|
|
@@ -193,6 +207,8 @@ export {
|
|
|
193
207
|
VERSION,
|
|
194
208
|
initTelemetry,
|
|
195
209
|
resolveRepo,
|
|
210
|
+
resolveRunner,
|
|
211
|
+
resolveRunnerType,
|
|
196
212
|
isExpectedError,
|
|
197
213
|
withSpan,
|
|
198
214
|
withDeploySpan,
|
package/dist/deploy.js
CHANGED
|
@@ -21,11 +21,11 @@ import {
|
|
|
21
21
|
storeChunkedContent,
|
|
22
22
|
storeDirectory,
|
|
23
23
|
storeFile
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-LVCOE5CC.js";
|
|
25
|
+
import "./chunk-KHLH5WQY.js";
|
|
26
26
|
import "./chunk-GZ5UUECB.js";
|
|
27
27
|
import "./chunk-LGPTJYA3.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-SLARK556.js";
|
|
29
29
|
import "./chunk-QGM4M3NI.js";
|
|
30
30
|
export {
|
|
31
31
|
DEFAULT_BULLETIN_RPC,
|
package/dist/dotns.js
CHANGED
|
@@ -19,8 +19,8 @@ import {
|
|
|
19
19
|
sanitizeDomainLabel,
|
|
20
20
|
stripTrailingDigits,
|
|
21
21
|
validateDomainLabel
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-KHLH5WQY.js";
|
|
23
|
+
import "./chunk-SLARK556.js";
|
|
24
24
|
import "./chunk-QGM4M3NI.js";
|
|
25
25
|
export {
|
|
26
26
|
CONNECTION_TIMEOUT_MS,
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
deploy
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LVCOE5CC.js";
|
|
4
4
|
import {
|
|
5
5
|
DotNS
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KHLH5WQY.js";
|
|
7
7
|
import {
|
|
8
8
|
merkleizeJS
|
|
9
9
|
} from "./chunk-GZ5UUECB.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
fetchPoolAuthorizations,
|
|
15
15
|
selectAccount
|
|
16
16
|
} from "./chunk-LGPTJYA3.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-SLARK556.js";
|
|
18
18
|
import "./chunk-QGM4M3NI.js";
|
|
19
19
|
export {
|
|
20
20
|
DotNS,
|
package/dist/telemetry.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
declare const VERSION: string;
|
|
2
2
|
declare function initTelemetry(): void;
|
|
3
3
|
declare function resolveRepo(domain: string): string;
|
|
4
|
+
declare function resolveRunner(): string;
|
|
5
|
+
declare function resolveRunnerType(): string;
|
|
4
6
|
declare function isExpectedError(msg: string): boolean;
|
|
5
7
|
declare function withSpan<T>(op: string, description: string, attributes: Record<string, string | number | boolean | undefined>, fn: () => T | Promise<T>): Promise<T>;
|
|
6
8
|
declare function withDeploySpan<T>(domain: string, fn: () => T | Promise<T>): Promise<T>;
|
|
@@ -8,4 +10,4 @@ declare function setDeployAttribute(key: string, value: string | number | boolea
|
|
|
8
10
|
declare function captureWarning(message: string, context?: Record<string, unknown>): void;
|
|
9
11
|
declare function flush(): Promise<void>;
|
|
10
12
|
|
|
11
|
-
export { VERSION, captureWarning, flush, initTelemetry, isExpectedError, resolveRepo, setDeployAttribute, withDeploySpan, withSpan };
|
|
13
|
+
export { VERSION, captureWarning, flush, initTelemetry, isExpectedError, resolveRepo, resolveRunner, resolveRunnerType, setDeployAttribute, withDeploySpan, withSpan };
|
package/dist/telemetry.js
CHANGED
|
@@ -5,10 +5,12 @@ import {
|
|
|
5
5
|
initTelemetry,
|
|
6
6
|
isExpectedError,
|
|
7
7
|
resolveRepo,
|
|
8
|
+
resolveRunner,
|
|
9
|
+
resolveRunnerType,
|
|
8
10
|
setDeployAttribute,
|
|
9
11
|
withDeploySpan,
|
|
10
12
|
withSpan
|
|
11
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-SLARK556.js";
|
|
12
14
|
import "./chunk-QGM4M3NI.js";
|
|
13
15
|
export {
|
|
14
16
|
VERSION,
|
|
@@ -17,6 +19,8 @@ export {
|
|
|
17
19
|
initTelemetry,
|
|
18
20
|
isExpectedError,
|
|
19
21
|
resolveRepo,
|
|
22
|
+
resolveRunner,
|
|
23
|
+
resolveRunnerType,
|
|
20
24
|
setDeployAttribute,
|
|
21
25
|
withDeploySpan,
|
|
22
26
|
withSpan
|
package/dist/version-check.js
CHANGED