@systemfsoftware/stryker-js-cli 8.0.0 → 9.0.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 +42 -0
- package/README.md +22 -22
- package/dist/compiler-Bq9Nelu8.mjs +48406 -0
- package/dist/{dist-Bn6hT7sW.mjs → dist-B3nT7z4G.mjs} +115 -16
- package/dist/execAsync-CfPZgJSD.mjs +10 -0
- package/dist/execAsync-DdCu5QLN.mjs +10 -0
- package/dist/getMachineId-bsd-C6bLIaiv.mjs +27 -0
- package/dist/getMachineId-bsd-CXSiHDga.mjs +27 -0
- package/dist/getMachineId-darwin-D3cIKeqx.mjs +24 -0
- package/dist/getMachineId-darwin-DPZ0kdKD.mjs +24 -0
- package/dist/getMachineId-linux-CQwLSlZk.mjs +20 -0
- package/dist/getMachineId-linux-Ci8OVJU0.mjs +20 -0
- package/dist/getMachineId-unsupported-PX0hnW6X.mjs +15 -0
- package/dist/getMachineId-unsupported-_ExL3Avl.mjs +15 -0
- package/dist/getMachineId-win-BCsS9pC_.mjs +26 -0
- package/dist/getMachineId-win-D9Tb0p7w.mjs +26 -0
- package/dist/main.mjs +95953 -1371
- package/dist/{wasm-CmiFEbUB.mjs → wasm-Dr7kZatW.mjs} +40 -18
- package/package.json +30 -35
- package/dist/Reporter-Bx0LTTkQ.mjs +0 -31690
- package/dist/compiler-CyKSVP2x.mjs +0 -27429
- package/dist/esm-shims-z34yX56b.mjs +0 -12
- package/dist/node-7-yHBdZ2.mjs +0 -27485
- package/dist/reporters/html.mjs +0 -77
- package/dist/worker-runtime-CU41J_c_.mjs +0 -697
- package/dist/workers/checker-worker.mjs +0 -42
- package/dist/workers/child-process-test-runner-worker.mjs +0 -65
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region
|
|
1
|
+
//#region ../../node_modules/.pnpm/angular-html-parser@10.4.0/node_modules/angular-html-parser/dist/compiler/src/ml_parser/tags.mjs
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
@@ -32,7 +32,7 @@ function mergeNsAndName(prefix, localName) {
|
|
|
32
32
|
return prefix ? `:${prefix}:${localName}` : localName;
|
|
33
33
|
}
|
|
34
34
|
//#endregion
|
|
35
|
-
//#region
|
|
35
|
+
//#region ../../node_modules/.pnpm/angular-html-parser@10.4.0/node_modules/angular-html-parser/dist/compiler/src/core.mjs
|
|
36
36
|
const CUSTOM_ELEMENTS_SCHEMA = { name: "custom-elements" };
|
|
37
37
|
const NO_ERRORS_SCHEMA = { name: "no-errors-schema" };
|
|
38
38
|
let SecurityContext = /* @__PURE__ */ function(SecurityContext) {
|
|
@@ -46,7 +46,7 @@ let SecurityContext = /* @__PURE__ */ function(SecurityContext) {
|
|
|
46
46
|
return SecurityContext;
|
|
47
47
|
}({});
|
|
48
48
|
//#endregion
|
|
49
|
-
//#region
|
|
49
|
+
//#region ../../node_modules/.pnpm/angular-html-parser@10.4.0/node_modules/angular-html-parser/dist/compiler/src/util.mjs
|
|
50
50
|
/**
|
|
51
51
|
* @license
|
|
52
52
|
* Copyright Google LLC All Rights Reserved.
|
|
@@ -59,7 +59,7 @@ function dashCaseToCamelCase(input) {
|
|
|
59
59
|
return input.replace(DASH_CASE_REGEXP, (...m) => m[1].toUpperCase());
|
|
60
60
|
}
|
|
61
61
|
//#endregion
|
|
62
|
-
//#region
|
|
62
|
+
//#region ../../node_modules/.pnpm/angular-html-parser@10.4.0/node_modules/angular-html-parser/dist/compiler/src/schema/dom_security_schema.mjs
|
|
63
63
|
/**
|
|
64
64
|
* @license
|
|
65
65
|
* Copyright Google LLC All Rights Reserved.
|
|
@@ -191,10 +191,10 @@ function registerContext(ctx, specs) {
|
|
|
191
191
|
for (const spec of specs) _SECURITY_SCHEMA[spec.toLowerCase()] = ctx;
|
|
192
192
|
}
|
|
193
193
|
//#endregion
|
|
194
|
-
//#region
|
|
194
|
+
//#region ../../node_modules/.pnpm/angular-html-parser@10.4.0/node_modules/angular-html-parser/dist/compiler/src/schema/element_schema_registry.mjs
|
|
195
195
|
var ElementSchemaRegistry = class {};
|
|
196
196
|
//#endregion
|
|
197
|
-
//#region
|
|
197
|
+
//#region ../../node_modules/.pnpm/angular-html-parser@10.4.0/node_modules/angular-html-parser/dist/compiler/src/schema/dom_element_schema_registry.mjs
|
|
198
198
|
/**
|
|
199
199
|
* @license
|
|
200
200
|
* Copyright Google LLC All Rights Reserved.
|
|
@@ -650,7 +650,7 @@ function _isPixelDimensionStyle(prop) {
|
|
|
650
650
|
}
|
|
651
651
|
}
|
|
652
652
|
//#endregion
|
|
653
|
-
//#region
|
|
653
|
+
//#region ../../node_modules/.pnpm/angular-html-parser@10.4.0/node_modules/angular-html-parser/dist/compiler/src/ml_parser/html_tags.mjs
|
|
654
654
|
/**
|
|
655
655
|
* @license
|
|
656
656
|
* Copyright Google LLC All Rights Reserved.
|
|
@@ -868,7 +868,7 @@ function isQuote(code) {
|
|
|
868
868
|
return code === 39 || code === 34 || code === $BT;
|
|
869
869
|
}
|
|
870
870
|
//#endregion
|
|
871
|
-
//#region
|
|
871
|
+
//#region ../../node_modules/.pnpm/angular-html-parser@10.4.0/node_modules/angular-html-parser/dist/compiler/src/parse_util.mjs
|
|
872
872
|
/**
|
|
873
873
|
* @license
|
|
874
874
|
* Copyright Google LLC All Rights Reserved.
|
|
@@ -1008,7 +1008,7 @@ var ParseError = class extends Error {
|
|
|
1008
1008
|
}
|
|
1009
1009
|
};
|
|
1010
1010
|
//#endregion
|
|
1011
|
-
//#region
|
|
1011
|
+
//#region ../../node_modules/.pnpm/angular-html-parser@10.4.0/node_modules/angular-html-parser/dist/compiler/src/ml_parser/ast.mjs
|
|
1012
1012
|
var NodeWithI18n = class {
|
|
1013
1013
|
constructor(sourceSpan, i18n) {
|
|
1014
1014
|
this.sourceSpan = sourceSpan;
|
|
@@ -1200,8 +1200,57 @@ function visitAll(visitor, nodes, context = null) {
|
|
|
1200
1200
|
});
|
|
1201
1201
|
return result;
|
|
1202
1202
|
}
|
|
1203
|
+
var RecursiveVisitor = class {
|
|
1204
|
+
constructor() {}
|
|
1205
|
+
visitElement(ast, context) {
|
|
1206
|
+
this.visitChildren(context, (visit) => {
|
|
1207
|
+
visit(ast.attrs);
|
|
1208
|
+
visit(ast.directives);
|
|
1209
|
+
visit(ast.children);
|
|
1210
|
+
});
|
|
1211
|
+
}
|
|
1212
|
+
visitAttribute(ast, context) {}
|
|
1213
|
+
visitText(ast, context) {}
|
|
1214
|
+
visitCdata(ast, context) {}
|
|
1215
|
+
visitComment(ast, context) {}
|
|
1216
|
+
visitDocType(ast, context) {}
|
|
1217
|
+
visitExpansion(ast, context) {
|
|
1218
|
+
return this.visitChildren(context, (visit) => {
|
|
1219
|
+
visit(ast.cases);
|
|
1220
|
+
});
|
|
1221
|
+
}
|
|
1222
|
+
visitExpansionCase(ast, context) {}
|
|
1223
|
+
visitBlock(block, context) {
|
|
1224
|
+
this.visitChildren(context, (visit) => {
|
|
1225
|
+
visit(block.parameters);
|
|
1226
|
+
visit(block.children);
|
|
1227
|
+
});
|
|
1228
|
+
}
|
|
1229
|
+
visitBlockParameter(ast, context) {}
|
|
1230
|
+
visitLetDeclaration(decl, context) {}
|
|
1231
|
+
visitComponent(component, context) {
|
|
1232
|
+
this.visitChildren(context, (visit) => {
|
|
1233
|
+
visit(component.attrs);
|
|
1234
|
+
visit(component.children);
|
|
1235
|
+
});
|
|
1236
|
+
}
|
|
1237
|
+
visitDirective(directive, context) {
|
|
1238
|
+
this.visitChildren(context, (visit) => {
|
|
1239
|
+
visit(directive.attrs);
|
|
1240
|
+
});
|
|
1241
|
+
}
|
|
1242
|
+
visitChildren(context, cb) {
|
|
1243
|
+
let results = [];
|
|
1244
|
+
let t = this;
|
|
1245
|
+
function visit(children) {
|
|
1246
|
+
if (children) results.push(visitAll(t, children, context));
|
|
1247
|
+
}
|
|
1248
|
+
cb(visit);
|
|
1249
|
+
return Array.prototype.concat.apply([], results);
|
|
1250
|
+
}
|
|
1251
|
+
};
|
|
1203
1252
|
//#endregion
|
|
1204
|
-
//#region
|
|
1253
|
+
//#region ../../node_modules/.pnpm/angular-html-parser@10.4.0/node_modules/angular-html-parser/dist/compiler/src/ml_parser/entities.mjs
|
|
1205
1254
|
/**
|
|
1206
1255
|
* @license
|
|
1207
1256
|
* Copyright Google LLC All Rights Reserved.
|
|
@@ -3338,7 +3387,7 @@ const NAMED_ENTITIES = {
|
|
|
3338
3387
|
};
|
|
3339
3388
|
NAMED_ENTITIES["ngsp"] = "";
|
|
3340
3389
|
//#endregion
|
|
3341
|
-
//#region
|
|
3390
|
+
//#region ../../node_modules/.pnpm/angular-html-parser@10.4.0/node_modules/angular-html-parser/dist/compiler/src/ml_parser/tokens.mjs
|
|
3342
3391
|
let TokenType = /* @__PURE__ */ function(TokenType) {
|
|
3343
3392
|
TokenType[TokenType["TAG_OPEN_START"] = 0] = "TAG_OPEN_START";
|
|
3344
3393
|
TokenType[TokenType["TAG_OPEN_END"] = 1] = "TAG_OPEN_END";
|
|
@@ -3386,7 +3435,7 @@ let TokenType = /* @__PURE__ */ function(TokenType) {
|
|
|
3386
3435
|
return TokenType;
|
|
3387
3436
|
}({});
|
|
3388
3437
|
//#endregion
|
|
3389
|
-
//#region
|
|
3438
|
+
//#region ../../node_modules/.pnpm/angular-html-parser@10.4.0/node_modules/angular-html-parser/dist/compiler/src/ml_parser/lexer.mjs
|
|
3390
3439
|
/**
|
|
3391
3440
|
* @license
|
|
3392
3441
|
* Copyright Google LLC All Rights Reserved.
|
|
@@ -4506,7 +4555,7 @@ var CursorError = class extends Error {
|
|
|
4506
4555
|
}
|
|
4507
4556
|
};
|
|
4508
4557
|
//#endregion
|
|
4509
|
-
//#region
|
|
4558
|
+
//#region ../../node_modules/.pnpm/angular-html-parser@10.4.0/node_modules/angular-html-parser/dist/compiler/src/ml_parser/parser.mjs
|
|
4510
4559
|
/**
|
|
4511
4560
|
* @license
|
|
4512
4561
|
* Copyright Google LLC All Rights Reserved.
|
|
@@ -5021,7 +5070,7 @@ function decodeEntity(match, entity) {
|
|
|
5021
5070
|
return match;
|
|
5022
5071
|
}
|
|
5023
5072
|
//#endregion
|
|
5024
|
-
//#region
|
|
5073
|
+
//#region ../../node_modules/.pnpm/angular-html-parser@10.4.0/node_modules/angular-html-parser/dist/compiler/src/ml_parser/html_parser.mjs
|
|
5025
5074
|
/**
|
|
5026
5075
|
* @license
|
|
5027
5076
|
* Copyright Google LLC All Rights Reserved.
|
|
@@ -5038,7 +5087,52 @@ var HtmlParser = class extends Parser {
|
|
|
5038
5087
|
}
|
|
5039
5088
|
};
|
|
5040
5089
|
//#endregion
|
|
5041
|
-
//#region
|
|
5090
|
+
//#region ../../node_modules/.pnpm/angular-html-parser@10.4.0/node_modules/angular-html-parser/dist/compiler/src/ml_parser/xml_tags.mjs
|
|
5091
|
+
/**
|
|
5092
|
+
* @license
|
|
5093
|
+
* Copyright Google LLC All Rights Reserved.
|
|
5094
|
+
*
|
|
5095
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
5096
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
5097
|
+
*/
|
|
5098
|
+
var XmlTagDefinition = class {
|
|
5099
|
+
closedByParent = false;
|
|
5100
|
+
implicitNamespacePrefix = null;
|
|
5101
|
+
isVoid = false;
|
|
5102
|
+
ignoreFirstLf = false;
|
|
5103
|
+
canSelfClose = true;
|
|
5104
|
+
preventNamespaceInheritance = false;
|
|
5105
|
+
requireExtraParent(currentParent) {
|
|
5106
|
+
return false;
|
|
5107
|
+
}
|
|
5108
|
+
isClosedByChild(name) {
|
|
5109
|
+
return false;
|
|
5110
|
+
}
|
|
5111
|
+
getContentType() {
|
|
5112
|
+
return TagContentType.PARSABLE_DATA;
|
|
5113
|
+
}
|
|
5114
|
+
};
|
|
5115
|
+
const _TAG_DEFINITION = new XmlTagDefinition();
|
|
5116
|
+
function getXmlTagDefinition(tagName) {
|
|
5117
|
+
return _TAG_DEFINITION;
|
|
5118
|
+
}
|
|
5119
|
+
//#endregion
|
|
5120
|
+
//#region ../../node_modules/.pnpm/angular-html-parser@10.4.0/node_modules/angular-html-parser/dist/compiler/src/ml_parser/xml_parser.mjs
|
|
5121
|
+
var XmlParser = class extends Parser {
|
|
5122
|
+
constructor() {
|
|
5123
|
+
super(getXmlTagDefinition);
|
|
5124
|
+
}
|
|
5125
|
+
parse(source, url, options = {}) {
|
|
5126
|
+
return super.parse(source, url, {
|
|
5127
|
+
...options,
|
|
5128
|
+
tokenizeBlocks: false,
|
|
5129
|
+
tokenizeLet: false,
|
|
5130
|
+
selectorlessEnabled: false
|
|
5131
|
+
});
|
|
5132
|
+
}
|
|
5133
|
+
};
|
|
5134
|
+
//#endregion
|
|
5135
|
+
//#region ../../node_modules/.pnpm/angular-html-parser@10.4.0/node_modules/angular-html-parser/dist/index.mjs
|
|
5042
5136
|
let htmlParser;
|
|
5043
5137
|
function parseHtml(input, options = {}) {
|
|
5044
5138
|
const { canSelfClose = false, allowHtmComponentClosingTags = false, isTagNameCaseSensitive = false, getTagContentType, tokenizeAngularBlocks = false, tokenizeAngularLetDeclaration = false, enableAngularSelectorlessSyntax = false } = options;
|
|
@@ -5052,5 +5146,10 @@ function parseHtml(input, options = {}) {
|
|
|
5052
5146
|
selectorlessEnabled: enableAngularSelectorlessSyntax
|
|
5053
5147
|
}, isTagNameCaseSensitive, getTagContentType);
|
|
5054
5148
|
}
|
|
5149
|
+
let xmlParser;
|
|
5150
|
+
function parseXml(input) {
|
|
5151
|
+
xmlParser ?? (xmlParser = new XmlParser());
|
|
5152
|
+
return xmlParser.parse(input, "angular-xml-parser");
|
|
5153
|
+
}
|
|
5055
5154
|
//#endregion
|
|
5056
|
-
export { parseHtml as parse, parseHtml, visitAll };
|
|
5155
|
+
export { ParseLocation, ParseSourceFile, ParseSourceSpan, RecursiveVisitor, TagContentType, getHtmlTagDefinition, parseHtml as parse, parseHtml, parseXml, visitAll };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { a as __require, t as __commonJSMin } from "./rolldown-runtime-Dr7-SnC6.mjs";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+resources@2.2.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/execAsync.js
|
|
3
|
+
var require_execAsync = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.execAsync = void 0;
|
|
6
|
+
const child_process = __require("child_process");
|
|
7
|
+
exports.execAsync = __require("util").promisify(child_process.exec);
|
|
8
|
+
}));
|
|
9
|
+
//#endregion
|
|
10
|
+
export { require_execAsync as t };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { a as __require, t as __commonJSMin } from "./rolldown-runtime-Dr7-SnC6.mjs";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+resources@2.11.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/execAsync.js
|
|
3
|
+
var require_execAsync = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.execAsync = void 0;
|
|
6
|
+
const child_process = __require("child_process");
|
|
7
|
+
exports.execAsync = __require("util").promisify(child_process.exec);
|
|
8
|
+
}));
|
|
9
|
+
//#endregion
|
|
10
|
+
export { require_execAsync as t };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { a as __require, o as __toCommonJS, t as __commonJSMin } from "./rolldown-runtime-Dr7-SnC6.mjs";
|
|
2
|
+
import { i as init_esm, r as esm_exports } from "./main.mjs";
|
|
3
|
+
import { t as require_execAsync } from "./execAsync-DdCu5QLN.mjs";
|
|
4
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+resources@2.11.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-bsd.js
|
|
5
|
+
var require_getMachineId_bsd = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.getMachineId = void 0;
|
|
8
|
+
const fs_1 = __require("fs");
|
|
9
|
+
const execAsync_1 = require_execAsync();
|
|
10
|
+
const api_1 = (init_esm(), __toCommonJS(esm_exports));
|
|
11
|
+
async function getMachineId() {
|
|
12
|
+
try {
|
|
13
|
+
return (await fs_1.promises.readFile("/etc/hostid", { encoding: "utf8" })).trim();
|
|
14
|
+
} catch (e) {
|
|
15
|
+
api_1.diag.debug(`error reading machine id: ${e}`);
|
|
16
|
+
}
|
|
17
|
+
try {
|
|
18
|
+
return (await (0, execAsync_1.execAsync)("kenv -q smbios.system.uuid")).stdout.trim();
|
|
19
|
+
} catch (e) {
|
|
20
|
+
api_1.diag.debug(`error reading machine id: ${e}`);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.getMachineId = getMachineId;
|
|
24
|
+
}));
|
|
25
|
+
//#endregion
|
|
26
|
+
export default require_getMachineId_bsd();
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { a as __require, o as __toCommonJS, t as __commonJSMin } from "./rolldown-runtime-Dr7-SnC6.mjs";
|
|
2
|
+
import { i as init_esm, r as esm_exports } from "./main.mjs";
|
|
3
|
+
import { t as require_execAsync } from "./execAsync-CfPZgJSD.mjs";
|
|
4
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+resources@2.2.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-bsd.js
|
|
5
|
+
var require_getMachineId_bsd = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.getMachineId = void 0;
|
|
8
|
+
const fs_1 = __require("fs");
|
|
9
|
+
const execAsync_1 = require_execAsync();
|
|
10
|
+
const api_1 = (init_esm(), __toCommonJS(esm_exports));
|
|
11
|
+
async function getMachineId() {
|
|
12
|
+
try {
|
|
13
|
+
return (await fs_1.promises.readFile("/etc/hostid", { encoding: "utf8" })).trim();
|
|
14
|
+
} catch (e) {
|
|
15
|
+
api_1.diag.debug(`error reading machine id: ${e}`);
|
|
16
|
+
}
|
|
17
|
+
try {
|
|
18
|
+
return (await (0, execAsync_1.execAsync)("kenv -q smbios.system.uuid")).stdout.trim();
|
|
19
|
+
} catch (e) {
|
|
20
|
+
api_1.diag.debug(`error reading machine id: ${e}`);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.getMachineId = getMachineId;
|
|
24
|
+
}));
|
|
25
|
+
//#endregion
|
|
26
|
+
export default require_getMachineId_bsd();
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { o as __toCommonJS, t as __commonJSMin } from "./rolldown-runtime-Dr7-SnC6.mjs";
|
|
2
|
+
import { i as init_esm, r as esm_exports } from "./main.mjs";
|
|
3
|
+
import { t as require_execAsync } from "./execAsync-DdCu5QLN.mjs";
|
|
4
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+resources@2.11.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-darwin.js
|
|
5
|
+
var require_getMachineId_darwin = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.getMachineId = void 0;
|
|
8
|
+
const execAsync_1 = require_execAsync();
|
|
9
|
+
const api_1 = (init_esm(), __toCommonJS(esm_exports));
|
|
10
|
+
async function getMachineId() {
|
|
11
|
+
try {
|
|
12
|
+
const idLine = (await (0, execAsync_1.execAsync)("ioreg -rd1 -c \"IOPlatformExpertDevice\"")).stdout.split("\n").find((line) => line.includes("IOPlatformUUID"));
|
|
13
|
+
if (!idLine) return;
|
|
14
|
+
const parts = idLine.split("\" = \"");
|
|
15
|
+
if (parts.length === 2) return parts[1].slice(0, -1);
|
|
16
|
+
} catch (e) {
|
|
17
|
+
api_1.diag.debug(`error reading machine id: ${e}`);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.getMachineId = getMachineId;
|
|
21
|
+
}));
|
|
22
|
+
//#endregion
|
|
23
|
+
export default require_getMachineId_darwin();
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { o as __toCommonJS, t as __commonJSMin } from "./rolldown-runtime-Dr7-SnC6.mjs";
|
|
2
|
+
import { i as init_esm, r as esm_exports } from "./main.mjs";
|
|
3
|
+
import { t as require_execAsync } from "./execAsync-CfPZgJSD.mjs";
|
|
4
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+resources@2.2.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-darwin.js
|
|
5
|
+
var require_getMachineId_darwin = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.getMachineId = void 0;
|
|
8
|
+
const execAsync_1 = require_execAsync();
|
|
9
|
+
const api_1 = (init_esm(), __toCommonJS(esm_exports));
|
|
10
|
+
async function getMachineId() {
|
|
11
|
+
try {
|
|
12
|
+
const idLine = (await (0, execAsync_1.execAsync)("ioreg -rd1 -c \"IOPlatformExpertDevice\"")).stdout.split("\n").find((line) => line.includes("IOPlatformUUID"));
|
|
13
|
+
if (!idLine) return;
|
|
14
|
+
const parts = idLine.split("\" = \"");
|
|
15
|
+
if (parts.length === 2) return parts[1].slice(0, -1);
|
|
16
|
+
} catch (e) {
|
|
17
|
+
api_1.diag.debug(`error reading machine id: ${e}`);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.getMachineId = getMachineId;
|
|
21
|
+
}));
|
|
22
|
+
//#endregion
|
|
23
|
+
export default require_getMachineId_darwin();
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { a as __require, o as __toCommonJS, t as __commonJSMin } from "./rolldown-runtime-Dr7-SnC6.mjs";
|
|
2
|
+
import { i as init_esm, r as esm_exports } from "./main.mjs";
|
|
3
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+resources@2.2.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-linux.js
|
|
4
|
+
var require_getMachineId_linux = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.getMachineId = void 0;
|
|
7
|
+
const fs_1 = __require("fs");
|
|
8
|
+
const api_1 = (init_esm(), __toCommonJS(esm_exports));
|
|
9
|
+
async function getMachineId() {
|
|
10
|
+
for (const path of ["/etc/machine-id", "/var/lib/dbus/machine-id"]) try {
|
|
11
|
+
return (await fs_1.promises.readFile(path, { encoding: "utf8" })).trim();
|
|
12
|
+
} catch (e) {
|
|
13
|
+
api_1.diag.debug(`error reading machine id: ${e}`);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.getMachineId = getMachineId;
|
|
17
|
+
}));
|
|
18
|
+
//#endregion
|
|
19
|
+
export default require_getMachineId_linux();
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { a as __require, o as __toCommonJS, t as __commonJSMin } from "./rolldown-runtime-Dr7-SnC6.mjs";
|
|
2
|
+
import { i as init_esm, r as esm_exports } from "./main.mjs";
|
|
3
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+resources@2.11.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-linux.js
|
|
4
|
+
var require_getMachineId_linux = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.getMachineId = void 0;
|
|
7
|
+
const fs_1 = __require("fs");
|
|
8
|
+
const api_1 = (init_esm(), __toCommonJS(esm_exports));
|
|
9
|
+
async function getMachineId() {
|
|
10
|
+
for (const path of ["/etc/machine-id", "/var/lib/dbus/machine-id"]) try {
|
|
11
|
+
return (await fs_1.promises.readFile(path, { encoding: "utf8" })).trim();
|
|
12
|
+
} catch (e) {
|
|
13
|
+
api_1.diag.debug(`error reading machine id: ${e}`);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.getMachineId = getMachineId;
|
|
17
|
+
}));
|
|
18
|
+
//#endregion
|
|
19
|
+
export default require_getMachineId_linux();
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { o as __toCommonJS, t as __commonJSMin } from "./rolldown-runtime-Dr7-SnC6.mjs";
|
|
2
|
+
import { i as init_esm, r as esm_exports } from "./main.mjs";
|
|
3
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+resources@2.2.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-unsupported.js
|
|
4
|
+
var require_getMachineId_unsupported = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.getMachineId = void 0;
|
|
7
|
+
const api_1 = (init_esm(), __toCommonJS(esm_exports));
|
|
8
|
+
async function getMachineId() {
|
|
9
|
+
api_1.diag.debug("could not read machine-id: unsupported platform");
|
|
10
|
+
}
|
|
11
|
+
exports.getMachineId = getMachineId;
|
|
12
|
+
}));
|
|
13
|
+
//#endregion
|
|
14
|
+
export default require_getMachineId_unsupported();
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { o as __toCommonJS, t as __commonJSMin } from "./rolldown-runtime-Dr7-SnC6.mjs";
|
|
2
|
+
import { i as init_esm, r as esm_exports } from "./main.mjs";
|
|
3
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+resources@2.11.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-unsupported.js
|
|
4
|
+
var require_getMachineId_unsupported = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.getMachineId = void 0;
|
|
7
|
+
const api_1 = (init_esm(), __toCommonJS(esm_exports));
|
|
8
|
+
async function getMachineId() {
|
|
9
|
+
api_1.diag.debug("could not read machine-id: unsupported platform");
|
|
10
|
+
}
|
|
11
|
+
exports.getMachineId = getMachineId;
|
|
12
|
+
}));
|
|
13
|
+
//#endregion
|
|
14
|
+
export default require_getMachineId_unsupported();
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { a as __require, o as __toCommonJS, t as __commonJSMin } from "./rolldown-runtime-Dr7-SnC6.mjs";
|
|
2
|
+
import { i as init_esm, r as esm_exports } from "./main.mjs";
|
|
3
|
+
import { t as require_execAsync } from "./execAsync-DdCu5QLN.mjs";
|
|
4
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+resources@2.11.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-win.js
|
|
5
|
+
var require_getMachineId_win = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.getMachineId = void 0;
|
|
8
|
+
const process = __require("process");
|
|
9
|
+
const execAsync_1 = require_execAsync();
|
|
10
|
+
const api_1 = (init_esm(), __toCommonJS(esm_exports));
|
|
11
|
+
async function getMachineId() {
|
|
12
|
+
const args = "QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid";
|
|
13
|
+
let command = "%windir%\\System32\\REG.exe";
|
|
14
|
+
if (process.arch === "ia32" && "PROCESSOR_ARCHITEW6432" in process.env) command = "%windir%\\sysnative\\cmd.exe /c " + command;
|
|
15
|
+
try {
|
|
16
|
+
const parts = (await (0, execAsync_1.execAsync)(`${command} ${args}`)).stdout.split("REG_SZ");
|
|
17
|
+
if (parts.length === 2) return parts[1].trim();
|
|
18
|
+
} catch (e) {
|
|
19
|
+
api_1.diag.debug(`error reading machine id: ${e}`);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.getMachineId = getMachineId;
|
|
23
|
+
}));
|
|
24
|
+
//#endregion
|
|
25
|
+
export default require_getMachineId_win();
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { a as __require, o as __toCommonJS, t as __commonJSMin } from "./rolldown-runtime-Dr7-SnC6.mjs";
|
|
2
|
+
import { i as init_esm, r as esm_exports } from "./main.mjs";
|
|
3
|
+
import { t as require_execAsync } from "./execAsync-CfPZgJSD.mjs";
|
|
4
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+resources@2.2.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-win.js
|
|
5
|
+
var require_getMachineId_win = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.getMachineId = void 0;
|
|
8
|
+
const process = __require("process");
|
|
9
|
+
const execAsync_1 = require_execAsync();
|
|
10
|
+
const api_1 = (init_esm(), __toCommonJS(esm_exports));
|
|
11
|
+
async function getMachineId() {
|
|
12
|
+
const args = "QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid";
|
|
13
|
+
let command = "%windir%\\System32\\REG.exe";
|
|
14
|
+
if (process.arch === "ia32" && "PROCESSOR_ARCHITEW6432" in process.env) command = "%windir%\\sysnative\\cmd.exe /c " + command;
|
|
15
|
+
try {
|
|
16
|
+
const parts = (await (0, execAsync_1.execAsync)(`${command} ${args}`)).stdout.split("REG_SZ");
|
|
17
|
+
if (parts.length === 2) return parts[1].trim();
|
|
18
|
+
} catch (e) {
|
|
19
|
+
api_1.diag.debug(`error reading machine id: ${e}`);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.getMachineId = getMachineId;
|
|
23
|
+
}));
|
|
24
|
+
//#endregion
|
|
25
|
+
export default require_getMachineId_win();
|
|
26
|
+
export {};
|