bulletin-deploy 0.6.12 → 0.6.13
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-VL2Q4CNZ.js → chunk-BCFGXQRW.js} +6 -1
- package/dist/{chunk-M6WNBKCT.js → chunk-I6TQVB4Q.js} +1 -1
- package/dist/{chunk-RECT3AEW.js → chunk-KAZ2RBCU.js} +7 -3
- package/dist/{chunk-ELKNME32.js → chunk-KV2NA7JZ.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 +2 -1
- package/dist/telemetry.js +3 -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-KV2NA7JZ.js";
|
|
6
6
|
import {
|
|
7
7
|
VERSION
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BCFGXQRW.js";
|
|
9
9
|
import "./chunk-QGM4M3NI.js";
|
|
10
10
|
|
|
11
11
|
// src/bug-report.ts
|
|
@@ -7,7 +7,7 @@ import * as path from "path";
|
|
|
7
7
|
// package.json
|
|
8
8
|
var package_default = {
|
|
9
9
|
name: "bulletin-deploy",
|
|
10
|
-
version: "0.6.
|
|
10
|
+
version: "0.6.13",
|
|
11
11
|
private: false,
|
|
12
12
|
repository: {
|
|
13
13
|
type: "git",
|
|
@@ -281,6 +281,10 @@ function setDeployAttribute(key, value) {
|
|
|
281
281
|
const span = Sentry.getActiveSpan();
|
|
282
282
|
if (span) span.setAttribute(key, value);
|
|
283
283
|
}
|
|
284
|
+
function setDeploySentryTag(key, value) {
|
|
285
|
+
if (!Sentry) return;
|
|
286
|
+
Sentry.setTag(key, value);
|
|
287
|
+
}
|
|
284
288
|
function captureWarning(message, context) {
|
|
285
289
|
if (!Sentry) return;
|
|
286
290
|
try {
|
|
@@ -313,6 +317,7 @@ export {
|
|
|
313
317
|
withSpan,
|
|
314
318
|
withDeploySpan,
|
|
315
319
|
setDeployAttribute,
|
|
320
|
+
setDeploySentryTag,
|
|
316
321
|
captureWarning,
|
|
317
322
|
flush
|
|
318
323
|
};
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
fetchNonce,
|
|
6
6
|
popStatusName,
|
|
7
7
|
validateDomainLabel
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-I6TQVB4Q.js";
|
|
9
9
|
import {
|
|
10
10
|
merkleizeJS
|
|
11
11
|
} from "./chunk-GZ5UUECB.js";
|
|
@@ -24,10 +24,11 @@ import {
|
|
|
24
24
|
resolveRunner,
|
|
25
25
|
resolveRunnerType,
|
|
26
26
|
setDeployAttribute,
|
|
27
|
+
setDeploySentryTag,
|
|
27
28
|
truncateAddress,
|
|
28
29
|
withDeploySpan,
|
|
29
30
|
withSpan
|
|
30
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-BCFGXQRW.js";
|
|
31
32
|
|
|
32
33
|
// src/deploy.ts
|
|
33
34
|
import { Buffer } from "buffer";
|
|
@@ -885,7 +886,10 @@ async function deploy(content, domainName = null, options = {}) {
|
|
|
885
886
|
const name = validateDomainLabel(rawName);
|
|
886
887
|
return withDeploySpan(name, async () => {
|
|
887
888
|
const deployTag = options.tag ?? process.env.DEPLOY_TAG;
|
|
888
|
-
if (deployTag)
|
|
889
|
+
if (deployTag) {
|
|
890
|
+
setDeployAttribute("deploy.tag", deployTag);
|
|
891
|
+
setDeploySentryTag("deploy.tag", deployTag);
|
|
892
|
+
}
|
|
889
893
|
let cid;
|
|
890
894
|
let ipfsCid;
|
|
891
895
|
console.log("\n" + "=".repeat(60));
|
package/dist/deploy.js
CHANGED
|
@@ -23,11 +23,11 @@ import {
|
|
|
23
23
|
storeChunkedContent,
|
|
24
24
|
storeDirectory,
|
|
25
25
|
storeFile
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-KAZ2RBCU.js";
|
|
27
|
+
import "./chunk-I6TQVB4Q.js";
|
|
28
28
|
import "./chunk-GZ5UUECB.js";
|
|
29
29
|
import "./chunk-JHNW2EKY.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-BCFGXQRW.js";
|
|
31
31
|
import "./chunk-QGM4M3NI.js";
|
|
32
32
|
export {
|
|
33
33
|
DEFAULT_BULLETIN_RPC,
|
package/dist/dotns.js
CHANGED
|
@@ -29,9 +29,9 @@ import {
|
|
|
29
29
|
simulateUserStatus,
|
|
30
30
|
stripTrailingDigits,
|
|
31
31
|
validateDomainLabel
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-I6TQVB4Q.js";
|
|
33
33
|
import "./chunk-JHNW2EKY.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-BCFGXQRW.js";
|
|
35
35
|
import "./chunk-QGM4M3NI.js";
|
|
36
36
|
export {
|
|
37
37
|
CONNECTION_TIMEOUT_MS,
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
deploy
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KAZ2RBCU.js";
|
|
4
4
|
import {
|
|
5
5
|
DotNS
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-I6TQVB4Q.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-JHNW2EKY.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-BCFGXQRW.js";
|
|
18
18
|
import "./chunk-QGM4M3NI.js";
|
|
19
19
|
export {
|
|
20
20
|
DotNS,
|
package/dist/telemetry.d.ts
CHANGED
|
@@ -19,7 +19,8 @@ declare function isExpectedError(msg: string): boolean;
|
|
|
19
19
|
declare function withSpan<T>(op: string, description: string, attributes: Record<string, string | number | boolean | undefined>, fn: () => T | Promise<T>): Promise<T>;
|
|
20
20
|
declare function withDeploySpan<T>(domain: string, fn: () => T | Promise<T>): Promise<T>;
|
|
21
21
|
declare function setDeployAttribute(key: string, value: string | number | boolean): void;
|
|
22
|
+
declare function setDeploySentryTag(key: string, value: string): void;
|
|
22
23
|
declare function captureWarning(message: string, context?: Record<string, unknown>): void;
|
|
23
24
|
declare function flush(): Promise<void>;
|
|
24
25
|
|
|
25
|
-
export { type InternalContextSignals, VERSION, captureWarning, flush, getDeployAttributes, initTelemetry, isExpectedError, isInternalContext, isInternalContextFromSignals, resolveRepo, resolveRunner, resolveRunnerType, sanitizeBranch, sanitizeRepo, scrubPaths, setDeployAttribute, truncateAddress, withDeploySpan, withSpan };
|
|
26
|
+
export { type InternalContextSignals, VERSION, captureWarning, flush, getDeployAttributes, initTelemetry, isExpectedError, isInternalContext, isInternalContextFromSignals, resolveRepo, resolveRunner, resolveRunnerType, sanitizeBranch, sanitizeRepo, scrubPaths, setDeployAttribute, setDeploySentryTag, truncateAddress, withDeploySpan, withSpan };
|
package/dist/telemetry.js
CHANGED
|
@@ -14,10 +14,11 @@ import {
|
|
|
14
14
|
sanitizeRepo,
|
|
15
15
|
scrubPaths,
|
|
16
16
|
setDeployAttribute,
|
|
17
|
+
setDeploySentryTag,
|
|
17
18
|
truncateAddress,
|
|
18
19
|
withDeploySpan,
|
|
19
20
|
withSpan
|
|
20
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-BCFGXQRW.js";
|
|
21
22
|
import "./chunk-QGM4M3NI.js";
|
|
22
23
|
export {
|
|
23
24
|
VERSION,
|
|
@@ -35,6 +36,7 @@ export {
|
|
|
35
36
|
sanitizeRepo,
|
|
36
37
|
scrubPaths,
|
|
37
38
|
setDeployAttribute,
|
|
39
|
+
setDeploySentryTag,
|
|
38
40
|
truncateAddress,
|
|
39
41
|
withDeploySpan,
|
|
40
42
|
withSpan
|
package/dist/version-check.js
CHANGED
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
isPreReleaseVersion,
|
|
9
9
|
preReleaseWarning,
|
|
10
10
|
promptYesNo
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-KV2NA7JZ.js";
|
|
12
|
+
import "./chunk-BCFGXQRW.js";
|
|
13
13
|
import "./chunk-QGM4M3NI.js";
|
|
14
14
|
export {
|
|
15
15
|
assessVersion,
|