@graphql-hive/gateway 2.0.0-next-e2698677f10276e29194b5559409235a15f2f324 → 2.0.0-next-5e94f24f7f5aafcf174e196eea428f84953e90ae
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 +14 -14
- package/dist/bin.cjs +1 -1
- package/dist/bin.js +1 -1
- package/dist/{cli-CPxULGJb.cjs → cli-CyvilbwX.cjs} +4 -2
- package/dist/{cli-CP9iY6tm.js → cli-DojEy1L-.js} +4 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +15 -15
- package/dist/execAsync-CZu27rRM.cjs +0 -44
- package/dist/execAsync-DmTy47v9.js +0 -21
- package/dist/getMachineId-bsd-B4KI42yf.js +0 -40
- package/dist/getMachineId-bsd-Bm_iwnsS.cjs +0 -42
- package/dist/getMachineId-darwin-BDexu45J.cjs +0 -43
- package/dist/getMachineId-darwin-c7bqIReD.js +0 -41
- package/dist/getMachineId-linux-D2g1lfzo.js +0 -33
- package/dist/getMachineId-linux-sJzq0whF.cjs +0 -35
- package/dist/getMachineId-unsupported-C6mI58qQ.js +0 -23
- package/dist/getMachineId-unsupported-Cmowwltd.cjs +0 -25
- package/dist/getMachineId-win-5mPgREt3.cjs +0 -63
- package/dist/getMachineId-win-CvE0ShWu.js +0 -41
- package/dist/index-61dm03o3.js +0 -279698
- package/dist/index-B44NjpxU.cjs +0 -843
- package/dist/index-DWaHa380.cjs +0 -279743
- package/dist/index-Dw4Doxg2.js +0 -821
package/CHANGELOG.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# @graphql-hive/gateway
|
2
2
|
|
3
|
-
## 2.0.0-next-
|
3
|
+
## 2.0.0-next-5e94f24f7f5aafcf174e196eea428f84953e90ae
|
4
4
|
### Major Changes
|
5
5
|
|
6
6
|
|
@@ -90,19 +90,19 @@
|
|
90
90
|
- Added dependency [`@opentelemetry/sdk-trace-base@^2.0.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-trace-base/v/2.0.1) (to `dependencies`)
|
91
91
|
- Removed dependency [`@graphql-mesh/plugin-mock@^0.105.8` ↗︎](https://www.npmjs.com/package/@graphql-mesh/plugin-mock/v/0.105.8) (from `dependencies`)
|
92
92
|
- Updated dependencies [[`6f3c563`](https://github.com/graphql-hive/gateway/commit/6f3c56315923713ae23014482e542e15de47f0eb), [`725d369`](https://github.com/graphql-hive/gateway/commit/725d3691f1fe77927a702ee5e3cb3822d088fe38), [`9300d32`](https://github.com/graphql-hive/gateway/commit/9300d32b65af8eaf1e250eec8dbc3b7c27f795cb), [`e4552c6`](https://github.com/graphql-hive/gateway/commit/e4552c647da81995c93dff91cc05d1b67b4589a6), [`2eb2b77`](https://github.com/graphql-hive/gateway/commit/2eb2b77c3d985f5e132726b235f4f4241c552d05), [`de31f51`](https://github.com/graphql-hive/gateway/commit/de31f519ebf9f688592674a6ac32c5ba74f096b3), [`cdd4b8c`](https://github.com/graphql-hive/gateway/commit/cdd4b8cb0d4b28279bf559bf9788bfe25b05eb59), [`725d369`](https://github.com/graphql-hive/gateway/commit/725d3691f1fe77927a702ee5e3cb3822d088fe38), [`9b4d15f`](https://github.com/graphql-hive/gateway/commit/9b4d15fed19089fcc01ef8058baa0ac9b106fb4f), [`e4552c6`](https://github.com/graphql-hive/gateway/commit/e4552c647da81995c93dff91cc05d1b67b4589a6), [`7e8a3d8`](https://github.com/graphql-hive/gateway/commit/7e8a3d83e66bb62787f637bb97ea057cdf5f8f1e), [`6f3c563`](https://github.com/graphql-hive/gateway/commit/6f3c56315923713ae23014482e542e15de47f0eb), [`e4552c6`](https://github.com/graphql-hive/gateway/commit/e4552c647da81995c93dff91cc05d1b67b4589a6), [`e02059f`](https://github.com/graphql-hive/gateway/commit/e02059fc50ed05ef18f025d4cb0d354b909716b9), [`6f3c563`](https://github.com/graphql-hive/gateway/commit/6f3c56315923713ae23014482e542e15de47f0eb), [`6500ade`](https://github.com/graphql-hive/gateway/commit/6500adeaf57e20d826b00da2d025e9acacfc9047), [`0c02723`](https://github.com/graphql-hive/gateway/commit/0c0272369bec3a52e3425c4156b1fd624b144f48), [`d7cc9d1`](https://github.com/graphql-hive/gateway/commit/d7cc9d17f5fc28d0f0577ea57f5e2b5ed5a92327), [`5b50531`](https://github.com/graphql-hive/gateway/commit/5b505319d0308461122e6696595fc9dc604f60fe), [`87f8cf2`](https://github.com/graphql-hive/gateway/commit/87f8cf22ec82d1e486d4f7601895e552f4b2282d), [`6500ade`](https://github.com/graphql-hive/gateway/commit/6500adeaf57e20d826b00da2d025e9acacfc9047), [`f3a3bd4`](https://github.com/graphql-hive/gateway/commit/f3a3bd408b75cb0612523a987143aaa74f8c35f8), [`7e8a3d8`](https://github.com/graphql-hive/gateway/commit/7e8a3d83e66bb62787f637bb97ea057cdf5f8f1e), [`6f3c563`](https://github.com/graphql-hive/gateway/commit/6f3c56315923713ae23014482e542e15de47f0eb), [`625c5fd`](https://github.com/graphql-hive/gateway/commit/625c5fd162f730735c408f42403ac514eee0a20e)]:
|
93
|
-
- @graphql-hive/gateway-runtime@2.0.0-next-
|
94
|
-
- @graphql-mesh/plugin-opentelemetry@2.0.0-next-
|
95
|
-
- @graphql-mesh/plugin-prometheus@2.0.0-next-
|
96
|
-
- @graphql-mesh/hmac-upstream-signature@2.0.0-next-
|
97
|
-
- @graphql-hive/plugin-deduplicate-request@2.0.0-next-
|
98
|
-
- @graphql-mesh/transport-http-callback@1.0.0-next-
|
99
|
-
- @graphql-hive/plugin-aws-sigv4@2.0.0-next-
|
100
|
-
- @graphql-mesh/plugin-jwt-auth@2.0.0-next-
|
101
|
-
- @graphql-mesh/transport-http@1.0.0-next-
|
102
|
-
- @graphql-mesh/transport-ws@2.0.0-next-
|
103
|
-
- @graphql-hive/importer@2.0.0-next-
|
104
|
-
- @graphql-hive/pubsub@2.0.0-next-
|
105
|
-
- @graphql-hive/logger@1.0.1-next-
|
93
|
+
- @graphql-hive/gateway-runtime@2.0.0-next-5e94f24f7f5aafcf174e196eea428f84953e90ae
|
94
|
+
- @graphql-mesh/plugin-opentelemetry@2.0.0-next-5e94f24f7f5aafcf174e196eea428f84953e90ae
|
95
|
+
- @graphql-mesh/plugin-prometheus@2.0.0-next-5e94f24f7f5aafcf174e196eea428f84953e90ae
|
96
|
+
- @graphql-mesh/hmac-upstream-signature@2.0.0-next-5e94f24f7f5aafcf174e196eea428f84953e90ae
|
97
|
+
- @graphql-hive/plugin-deduplicate-request@2.0.0-next-5e94f24f7f5aafcf174e196eea428f84953e90ae
|
98
|
+
- @graphql-mesh/transport-http-callback@1.0.0-next-5e94f24f7f5aafcf174e196eea428f84953e90ae
|
99
|
+
- @graphql-hive/plugin-aws-sigv4@2.0.0-next-5e94f24f7f5aafcf174e196eea428f84953e90ae
|
100
|
+
- @graphql-mesh/plugin-jwt-auth@2.0.0-next-5e94f24f7f5aafcf174e196eea428f84953e90ae
|
101
|
+
- @graphql-mesh/transport-http@1.0.0-next-5e94f24f7f5aafcf174e196eea428f84953e90ae
|
102
|
+
- @graphql-mesh/transport-ws@2.0.0-next-5e94f24f7f5aafcf174e196eea428f84953e90ae
|
103
|
+
- @graphql-hive/importer@2.0.0-next-5e94f24f7f5aafcf174e196eea428f84953e90ae
|
104
|
+
- @graphql-hive/pubsub@2.0.0-next-5e94f24f7f5aafcf174e196eea428f84953e90ae
|
105
|
+
- @graphql-hive/logger@1.0.1-next-5e94f24f7f5aafcf174e196eea428f84953e90ae
|
106
106
|
|
107
107
|
## 1.16.4
|
108
108
|
### Patch Changes
|
package/dist/bin.cjs
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
require('dotenv/config');
|
4
4
|
var module$1 = require('node:module');
|
5
5
|
var logger = require('@graphql-hive/logger');
|
6
|
-
var cli = require('./cli-
|
6
|
+
var cli = require('./cli-CyvilbwX.cjs');
|
7
7
|
require('node:cluster');
|
8
8
|
require('node:os');
|
9
9
|
require('node:path');
|
package/dist/bin.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
import 'dotenv/config';
|
3
3
|
import module from 'node:module';
|
4
4
|
import { Logger } from '@graphql-hive/logger';
|
5
|
-
import { e as enableModuleCachingIfPossible, h as handleNodeWarnings, r as run } from './cli-
|
5
|
+
import { e as enableModuleCachingIfPossible, h as handleNodeWarnings, r as run } from './cli-DojEy1L-.js';
|
6
6
|
import 'node:cluster';
|
7
7
|
import 'node:os';
|
8
8
|
import 'node:path';
|
@@ -607,8 +607,10 @@ async function handleOpenTelemetryConfig(ctx, cliOpts) {
|
|
607
607
|
}
|
608
608
|
async function detectResource() {
|
609
609
|
if (isNode()) {
|
610
|
-
const
|
611
|
-
const {
|
610
|
+
const autoInstrumentationsNodeName = "@opentelemetry/auto-instrumentations-node";
|
611
|
+
const { getResourceDetectors } = await import(autoInstrumentationsNodeName);
|
612
|
+
const resourcesName = "@opentelemetry/resources";
|
613
|
+
const { detectResources } = await import(resourcesName);
|
612
614
|
return detectResources({ detectors: getResourceDetectors() });
|
613
615
|
}
|
614
616
|
return void 0;
|
@@ -600,8 +600,10 @@ async function handleOpenTelemetryConfig(ctx, cliOpts) {
|
|
600
600
|
}
|
601
601
|
async function detectResource() {
|
602
602
|
if (isNode()) {
|
603
|
-
const
|
604
|
-
const {
|
603
|
+
const autoInstrumentationsNodeName = "@opentelemetry/auto-instrumentations-node";
|
604
|
+
const { getResourceDetectors } = await import(autoInstrumentationsNodeName);
|
605
|
+
const resourcesName = "@opentelemetry/resources";
|
606
|
+
const { detectResources } = await import(resourcesName);
|
605
607
|
return detectResources({ detectors: getResourceDetectors() });
|
606
608
|
}
|
607
609
|
return void 0;
|
package/dist/index.cjs
CHANGED
package/dist/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export { b as defaultOptions, d as defineConfig, e as enableModuleCachingIfPossible, a as getBuiltinPluginsFromConfig, g as getCacheInstanceFromConfig, h as handleNodeWarnings, r as run } from './cli-
|
1
|
+
export { b as defaultOptions, d as defineConfig, e as enableModuleCachingIfPossible, a as getBuiltinPluginsFromConfig, g as getCacheInstanceFromConfig, h as handleNodeWarnings, r as run } from './cli-DojEy1L-.js';
|
2
2
|
export * from '@graphql-hive/logger';
|
3
3
|
export * from '@graphql-hive/gateway-runtime';
|
4
4
|
export { PubSub } from '@graphql-hive/pubsub';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@graphql-hive/gateway",
|
3
|
-
"version": "2.0.0-next-
|
3
|
+
"version": "2.0.0-next-5e94f24f7f5aafcf174e196eea428f84953e90ae",
|
4
4
|
"type": "module",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -83,28 +83,28 @@
|
|
83
83
|
"@escape.tech/graphql-armor-block-field-suggestions": "^3.0.0",
|
84
84
|
"@escape.tech/graphql-armor-max-depth": "^2.4.0",
|
85
85
|
"@escape.tech/graphql-armor-max-tokens": "^2.5.0",
|
86
|
-
"@graphql-hive/gateway-runtime": "2.0.0-next-
|
87
|
-
"@graphql-hive/importer": "2.0.0-next-
|
88
|
-
"@graphql-hive/logger": "1.0.1-next-
|
89
|
-
"@graphql-hive/plugin-aws-sigv4": "2.0.0-next-
|
90
|
-
"@graphql-hive/plugin-deduplicate-request": "2.0.0-next-
|
91
|
-
"@graphql-hive/pubsub": "2.0.0-next-
|
86
|
+
"@graphql-hive/gateway-runtime": "2.0.0-next-5e94f24f7f5aafcf174e196eea428f84953e90ae",
|
87
|
+
"@graphql-hive/importer": "2.0.0-next-5e94f24f7f5aafcf174e196eea428f84953e90ae",
|
88
|
+
"@graphql-hive/logger": "1.0.1-next-5e94f24f7f5aafcf174e196eea428f84953e90ae",
|
89
|
+
"@graphql-hive/plugin-aws-sigv4": "2.0.0-next-5e94f24f7f5aafcf174e196eea428f84953e90ae",
|
90
|
+
"@graphql-hive/plugin-deduplicate-request": "2.0.0-next-5e94f24f7f5aafcf174e196eea428f84953e90ae",
|
91
|
+
"@graphql-hive/pubsub": "2.0.0-next-5e94f24f7f5aafcf174e196eea428f84953e90ae",
|
92
92
|
"@graphql-mesh/cache-cfw-kv": "^0.105.8",
|
93
93
|
"@graphql-mesh/cache-localforage": "^0.105.9",
|
94
94
|
"@graphql-mesh/cache-redis": "^0.104.8",
|
95
95
|
"@graphql-mesh/cache-upstash-redis": "^0.1.8",
|
96
96
|
"@graphql-mesh/cross-helpers": "^0.4.10",
|
97
|
-
"@graphql-mesh/hmac-upstream-signature": "2.0.0-next-
|
97
|
+
"@graphql-mesh/hmac-upstream-signature": "2.0.0-next-5e94f24f7f5aafcf174e196eea428f84953e90ae",
|
98
98
|
"@graphql-mesh/plugin-http-cache": "^0.105.8",
|
99
99
|
"@graphql-mesh/plugin-jit": "^0.2.7",
|
100
|
-
"@graphql-mesh/plugin-jwt-auth": "2.0.0-next-
|
101
|
-
"@graphql-mesh/plugin-opentelemetry": "2.0.0-next-
|
102
|
-
"@graphql-mesh/plugin-prometheus": "2.0.0-next-
|
100
|
+
"@graphql-mesh/plugin-jwt-auth": "2.0.0-next-5e94f24f7f5aafcf174e196eea428f84953e90ae",
|
101
|
+
"@graphql-mesh/plugin-opentelemetry": "2.0.0-next-5e94f24f7f5aafcf174e196eea428f84953e90ae",
|
102
|
+
"@graphql-mesh/plugin-prometheus": "2.0.0-next-5e94f24f7f5aafcf174e196eea428f84953e90ae",
|
103
103
|
"@graphql-mesh/plugin-rate-limit": "^0.104.7",
|
104
104
|
"@graphql-mesh/plugin-snapshot": "^0.104.7",
|
105
|
-
"@graphql-mesh/transport-http": "1.0.0-next-
|
106
|
-
"@graphql-mesh/transport-http-callback": "1.0.0-next-
|
107
|
-
"@graphql-mesh/transport-ws": "2.0.0-next-
|
105
|
+
"@graphql-mesh/transport-http": "1.0.0-next-5e94f24f7f5aafcf174e196eea428f84953e90ae",
|
106
|
+
"@graphql-mesh/transport-http-callback": "1.0.0-next-5e94f24f7f5aafcf174e196eea428f84953e90ae",
|
107
|
+
"@graphql-mesh/transport-ws": "2.0.0-next-5e94f24f7f5aafcf174e196eea428f84953e90ae",
|
108
108
|
"@graphql-mesh/types": "^0.104.8",
|
109
109
|
"@graphql-mesh/utils": "^0.104.11",
|
110
110
|
"@graphql-tools/code-file-loader": "^8.1.22",
|
@@ -133,7 +133,7 @@
|
|
133
133
|
"ws": "^8.18.3"
|
134
134
|
},
|
135
135
|
"devDependencies": {
|
136
|
-
"@graphql-mesh/transport-common": "1.0.0-next-
|
136
|
+
"@graphql-mesh/transport-common": "1.0.0-next-5e94f24f7f5aafcf174e196eea428f84953e90ae",
|
137
137
|
"@graphql-mesh/transport-soap": "^0.10.8",
|
138
138
|
"@graphql-tools/executor": "^1.4.9",
|
139
139
|
"@rollup/plugin-commonjs": "^28.0.0",
|
@@ -1,44 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
var child_process = require('child_process');
|
4
|
-
var util = require('util');
|
5
|
-
|
6
|
-
function _interopNamespace(e) {
|
7
|
-
if (e && e.__esModule) return e;
|
8
|
-
var n = Object.create(null);
|
9
|
-
if (e) {
|
10
|
-
Object.keys(e).forEach(function (k) {
|
11
|
-
if (k !== 'default') {
|
12
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
13
|
-
Object.defineProperty(n, k, d.get ? d : {
|
14
|
-
enumerable: true,
|
15
|
-
get: function () { return e[k]; }
|
16
|
-
});
|
17
|
-
}
|
18
|
-
});
|
19
|
-
}
|
20
|
-
n.default = e;
|
21
|
-
return Object.freeze(n);
|
22
|
-
}
|
23
|
-
|
24
|
-
var child_process__namespace = /*#__PURE__*/_interopNamespace(child_process);
|
25
|
-
var util__namespace = /*#__PURE__*/_interopNamespace(util);
|
26
|
-
|
27
|
-
/*
|
28
|
-
* Copyright The OpenTelemetry Authors
|
29
|
-
*
|
30
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
31
|
-
* you may not use this file except in compliance with the License.
|
32
|
-
* You may obtain a copy of the License at
|
33
|
-
*
|
34
|
-
* https://www.apache.org/licenses/LICENSE-2.0
|
35
|
-
*
|
36
|
-
* Unless required by applicable law or agreed to in writing, software
|
37
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
38
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
39
|
-
* See the License for the specific language governing permissions and
|
40
|
-
* limitations under the License.
|
41
|
-
*/
|
42
|
-
const execAsync = util__namespace.promisify(child_process__namespace.exec);
|
43
|
-
|
44
|
-
exports.execAsync = execAsync;
|
@@ -1,21 +0,0 @@
|
|
1
|
-
import * as child_process from 'child_process';
|
2
|
-
import * as util from 'util';
|
3
|
-
|
4
|
-
/*
|
5
|
-
* Copyright The OpenTelemetry Authors
|
6
|
-
*
|
7
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
-
* you may not use this file except in compliance with the License.
|
9
|
-
* You may obtain a copy of the License at
|
10
|
-
*
|
11
|
-
* https://www.apache.org/licenses/LICENSE-2.0
|
12
|
-
*
|
13
|
-
* Unless required by applicable law or agreed to in writing, software
|
14
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
-
* See the License for the specific language governing permissions and
|
17
|
-
* limitations under the License.
|
18
|
-
*/
|
19
|
-
const execAsync = util.promisify(child_process.exec);
|
20
|
-
|
21
|
-
export { execAsync as e };
|
@@ -1,40 +0,0 @@
|
|
1
|
-
import { promises } from 'fs';
|
2
|
-
import { e as execAsync } from './execAsync-DmTy47v9.js';
|
3
|
-
import { diag } from '@opentelemetry/api';
|
4
|
-
import 'child_process';
|
5
|
-
import 'util';
|
6
|
-
|
7
|
-
/*
|
8
|
-
* Copyright The OpenTelemetry Authors
|
9
|
-
*
|
10
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
-
* you may not use this file except in compliance with the License.
|
12
|
-
* You may obtain a copy of the License at
|
13
|
-
*
|
14
|
-
* https://www.apache.org/licenses/LICENSE-2.0
|
15
|
-
*
|
16
|
-
* Unless required by applicable law or agreed to in writing, software
|
17
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
-
* See the License for the specific language governing permissions and
|
20
|
-
* limitations under the License.
|
21
|
-
*/
|
22
|
-
async function getMachineId() {
|
23
|
-
try {
|
24
|
-
const result = await promises.readFile('/etc/hostid', { encoding: 'utf8' });
|
25
|
-
return result.trim();
|
26
|
-
}
|
27
|
-
catch (e) {
|
28
|
-
diag.debug(`error reading machine id: ${e}`);
|
29
|
-
}
|
30
|
-
try {
|
31
|
-
const result = await execAsync('kenv -q smbios.system.uuid');
|
32
|
-
return result.stdout.trim();
|
33
|
-
}
|
34
|
-
catch (e) {
|
35
|
-
diag.debug(`error reading machine id: ${e}`);
|
36
|
-
}
|
37
|
-
return undefined;
|
38
|
-
}
|
39
|
-
|
40
|
-
export { getMachineId };
|
@@ -1,42 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
var fs = require('fs');
|
4
|
-
var execAsync = require('./execAsync-CZu27rRM.cjs');
|
5
|
-
var require$$0 = require('@opentelemetry/api');
|
6
|
-
require('child_process');
|
7
|
-
require('util');
|
8
|
-
|
9
|
-
/*
|
10
|
-
* Copyright The OpenTelemetry Authors
|
11
|
-
*
|
12
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
13
|
-
* you may not use this file except in compliance with the License.
|
14
|
-
* You may obtain a copy of the License at
|
15
|
-
*
|
16
|
-
* https://www.apache.org/licenses/LICENSE-2.0
|
17
|
-
*
|
18
|
-
* Unless required by applicable law or agreed to in writing, software
|
19
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
20
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
21
|
-
* See the License for the specific language governing permissions and
|
22
|
-
* limitations under the License.
|
23
|
-
*/
|
24
|
-
async function getMachineId() {
|
25
|
-
try {
|
26
|
-
const result = await fs.promises.readFile('/etc/hostid', { encoding: 'utf8' });
|
27
|
-
return result.trim();
|
28
|
-
}
|
29
|
-
catch (e) {
|
30
|
-
require$$0.diag.debug(`error reading machine id: ${e}`);
|
31
|
-
}
|
32
|
-
try {
|
33
|
-
const result = await execAsync.execAsync('kenv -q smbios.system.uuid');
|
34
|
-
return result.stdout.trim();
|
35
|
-
}
|
36
|
-
catch (e) {
|
37
|
-
require$$0.diag.debug(`error reading machine id: ${e}`);
|
38
|
-
}
|
39
|
-
return undefined;
|
40
|
-
}
|
41
|
-
|
42
|
-
exports.getMachineId = getMachineId;
|
@@ -1,43 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
var execAsync = require('./execAsync-CZu27rRM.cjs');
|
4
|
-
var require$$0 = require('@opentelemetry/api');
|
5
|
-
require('child_process');
|
6
|
-
require('util');
|
7
|
-
|
8
|
-
/*
|
9
|
-
* Copyright The OpenTelemetry Authors
|
10
|
-
*
|
11
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
12
|
-
* you may not use this file except in compliance with the License.
|
13
|
-
* You may obtain a copy of the License at
|
14
|
-
*
|
15
|
-
* https://www.apache.org/licenses/LICENSE-2.0
|
16
|
-
*
|
17
|
-
* Unless required by applicable law or agreed to in writing, software
|
18
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
19
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
20
|
-
* See the License for the specific language governing permissions and
|
21
|
-
* limitations under the License.
|
22
|
-
*/
|
23
|
-
async function getMachineId() {
|
24
|
-
try {
|
25
|
-
const result = await execAsync.execAsync('ioreg -rd1 -c "IOPlatformExpertDevice"');
|
26
|
-
const idLine = result.stdout
|
27
|
-
.split('\n')
|
28
|
-
.find(line => line.includes('IOPlatformUUID'));
|
29
|
-
if (!idLine) {
|
30
|
-
return undefined;
|
31
|
-
}
|
32
|
-
const parts = idLine.split('" = "');
|
33
|
-
if (parts.length === 2) {
|
34
|
-
return parts[1].slice(0, -1);
|
35
|
-
}
|
36
|
-
}
|
37
|
-
catch (e) {
|
38
|
-
require$$0.diag.debug(`error reading machine id: ${e}`);
|
39
|
-
}
|
40
|
-
return undefined;
|
41
|
-
}
|
42
|
-
|
43
|
-
exports.getMachineId = getMachineId;
|
@@ -1,41 +0,0 @@
|
|
1
|
-
import { e as execAsync } from './execAsync-DmTy47v9.js';
|
2
|
-
import { diag } from '@opentelemetry/api';
|
3
|
-
import 'child_process';
|
4
|
-
import 'util';
|
5
|
-
|
6
|
-
/*
|
7
|
-
* Copyright The OpenTelemetry Authors
|
8
|
-
*
|
9
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
10
|
-
* you may not use this file except in compliance with the License.
|
11
|
-
* You may obtain a copy of the License at
|
12
|
-
*
|
13
|
-
* https://www.apache.org/licenses/LICENSE-2.0
|
14
|
-
*
|
15
|
-
* Unless required by applicable law or agreed to in writing, software
|
16
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
17
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
18
|
-
* See the License for the specific language governing permissions and
|
19
|
-
* limitations under the License.
|
20
|
-
*/
|
21
|
-
async function getMachineId() {
|
22
|
-
try {
|
23
|
-
const result = await execAsync('ioreg -rd1 -c "IOPlatformExpertDevice"');
|
24
|
-
const idLine = result.stdout
|
25
|
-
.split('\n')
|
26
|
-
.find(line => line.includes('IOPlatformUUID'));
|
27
|
-
if (!idLine) {
|
28
|
-
return undefined;
|
29
|
-
}
|
30
|
-
const parts = idLine.split('" = "');
|
31
|
-
if (parts.length === 2) {
|
32
|
-
return parts[1].slice(0, -1);
|
33
|
-
}
|
34
|
-
}
|
35
|
-
catch (e) {
|
36
|
-
diag.debug(`error reading machine id: ${e}`);
|
37
|
-
}
|
38
|
-
return undefined;
|
39
|
-
}
|
40
|
-
|
41
|
-
export { getMachineId };
|
@@ -1,33 +0,0 @@
|
|
1
|
-
import { promises } from 'fs';
|
2
|
-
import { diag } from '@opentelemetry/api';
|
3
|
-
|
4
|
-
/*
|
5
|
-
* Copyright The OpenTelemetry Authors
|
6
|
-
*
|
7
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
-
* you may not use this file except in compliance with the License.
|
9
|
-
* You may obtain a copy of the License at
|
10
|
-
*
|
11
|
-
* https://www.apache.org/licenses/LICENSE-2.0
|
12
|
-
*
|
13
|
-
* Unless required by applicable law or agreed to in writing, software
|
14
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
-
* See the License for the specific language governing permissions and
|
17
|
-
* limitations under the License.
|
18
|
-
*/
|
19
|
-
async function getMachineId() {
|
20
|
-
const paths = ['/etc/machine-id', '/var/lib/dbus/machine-id'];
|
21
|
-
for (const path of paths) {
|
22
|
-
try {
|
23
|
-
const result = await promises.readFile(path, { encoding: 'utf8' });
|
24
|
-
return result.trim();
|
25
|
-
}
|
26
|
-
catch (e) {
|
27
|
-
diag.debug(`error reading machine id: ${e}`);
|
28
|
-
}
|
29
|
-
}
|
30
|
-
return undefined;
|
31
|
-
}
|
32
|
-
|
33
|
-
export { getMachineId };
|
@@ -1,35 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
var fs = require('fs');
|
4
|
-
var require$$0 = require('@opentelemetry/api');
|
5
|
-
|
6
|
-
/*
|
7
|
-
* Copyright The OpenTelemetry Authors
|
8
|
-
*
|
9
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
10
|
-
* you may not use this file except in compliance with the License.
|
11
|
-
* You may obtain a copy of the License at
|
12
|
-
*
|
13
|
-
* https://www.apache.org/licenses/LICENSE-2.0
|
14
|
-
*
|
15
|
-
* Unless required by applicable law or agreed to in writing, software
|
16
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
17
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
18
|
-
* See the License for the specific language governing permissions and
|
19
|
-
* limitations under the License.
|
20
|
-
*/
|
21
|
-
async function getMachineId() {
|
22
|
-
const paths = ['/etc/machine-id', '/var/lib/dbus/machine-id'];
|
23
|
-
for (const path of paths) {
|
24
|
-
try {
|
25
|
-
const result = await fs.promises.readFile(path, { encoding: 'utf8' });
|
26
|
-
return result.trim();
|
27
|
-
}
|
28
|
-
catch (e) {
|
29
|
-
require$$0.diag.debug(`error reading machine id: ${e}`);
|
30
|
-
}
|
31
|
-
}
|
32
|
-
return undefined;
|
33
|
-
}
|
34
|
-
|
35
|
-
exports.getMachineId = getMachineId;
|
@@ -1,23 +0,0 @@
|
|
1
|
-
import { diag } from '@opentelemetry/api';
|
2
|
-
|
3
|
-
/*
|
4
|
-
* Copyright The OpenTelemetry Authors
|
5
|
-
*
|
6
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
* you may not use this file except in compliance with the License.
|
8
|
-
* You may obtain a copy of the License at
|
9
|
-
*
|
10
|
-
* https://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
*
|
12
|
-
* Unless required by applicable law or agreed to in writing, software
|
13
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
* See the License for the specific language governing permissions and
|
16
|
-
* limitations under the License.
|
17
|
-
*/
|
18
|
-
async function getMachineId() {
|
19
|
-
diag.debug('could not read machine-id: unsupported platform');
|
20
|
-
return undefined;
|
21
|
-
}
|
22
|
-
|
23
|
-
export { getMachineId };
|
@@ -1,25 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
var require$$0 = require('@opentelemetry/api');
|
4
|
-
|
5
|
-
/*
|
6
|
-
* Copyright The OpenTelemetry Authors
|
7
|
-
*
|
8
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
9
|
-
* you may not use this file except in compliance with the License.
|
10
|
-
* You may obtain a copy of the License at
|
11
|
-
*
|
12
|
-
* https://www.apache.org/licenses/LICENSE-2.0
|
13
|
-
*
|
14
|
-
* Unless required by applicable law or agreed to in writing, software
|
15
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
16
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
17
|
-
* See the License for the specific language governing permissions and
|
18
|
-
* limitations under the License.
|
19
|
-
*/
|
20
|
-
async function getMachineId() {
|
21
|
-
require$$0.diag.debug('could not read machine-id: unsupported platform');
|
22
|
-
return undefined;
|
23
|
-
}
|
24
|
-
|
25
|
-
exports.getMachineId = getMachineId;
|
@@ -1,63 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
var process = require('process');
|
4
|
-
var execAsync = require('./execAsync-CZu27rRM.cjs');
|
5
|
-
var require$$0 = require('@opentelemetry/api');
|
6
|
-
require('child_process');
|
7
|
-
require('util');
|
8
|
-
|
9
|
-
function _interopNamespace(e) {
|
10
|
-
if (e && e.__esModule) return e;
|
11
|
-
var n = Object.create(null);
|
12
|
-
if (e) {
|
13
|
-
Object.keys(e).forEach(function (k) {
|
14
|
-
if (k !== 'default') {
|
15
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
16
|
-
Object.defineProperty(n, k, d.get ? d : {
|
17
|
-
enumerable: true,
|
18
|
-
get: function () { return e[k]; }
|
19
|
-
});
|
20
|
-
}
|
21
|
-
});
|
22
|
-
}
|
23
|
-
n.default = e;
|
24
|
-
return Object.freeze(n);
|
25
|
-
}
|
26
|
-
|
27
|
-
var process__namespace = /*#__PURE__*/_interopNamespace(process);
|
28
|
-
|
29
|
-
/*
|
30
|
-
* Copyright The OpenTelemetry Authors
|
31
|
-
*
|
32
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
33
|
-
* you may not use this file except in compliance with the License.
|
34
|
-
* You may obtain a copy of the License at
|
35
|
-
*
|
36
|
-
* https://www.apache.org/licenses/LICENSE-2.0
|
37
|
-
*
|
38
|
-
* Unless required by applicable law or agreed to in writing, software
|
39
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
40
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
41
|
-
* See the License for the specific language governing permissions and
|
42
|
-
* limitations under the License.
|
43
|
-
*/
|
44
|
-
async function getMachineId() {
|
45
|
-
const args = 'QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid';
|
46
|
-
let command = '%windir%\\System32\\REG.exe';
|
47
|
-
if (process__namespace.arch === 'ia32' && 'PROCESSOR_ARCHITEW6432' in process__namespace.env) {
|
48
|
-
command = '%windir%\\sysnative\\cmd.exe /c ' + command;
|
49
|
-
}
|
50
|
-
try {
|
51
|
-
const result = await execAsync.execAsync(`${command} ${args}`);
|
52
|
-
const parts = result.stdout.split('REG_SZ');
|
53
|
-
if (parts.length === 2) {
|
54
|
-
return parts[1].trim();
|
55
|
-
}
|
56
|
-
}
|
57
|
-
catch (e) {
|
58
|
-
require$$0.diag.debug(`error reading machine id: ${e}`);
|
59
|
-
}
|
60
|
-
return undefined;
|
61
|
-
}
|
62
|
-
|
63
|
-
exports.getMachineId = getMachineId;
|
@@ -1,41 +0,0 @@
|
|
1
|
-
import * as process from 'process';
|
2
|
-
import { e as execAsync } from './execAsync-DmTy47v9.js';
|
3
|
-
import { diag } from '@opentelemetry/api';
|
4
|
-
import 'child_process';
|
5
|
-
import 'util';
|
6
|
-
|
7
|
-
/*
|
8
|
-
* Copyright The OpenTelemetry Authors
|
9
|
-
*
|
10
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
-
* you may not use this file except in compliance with the License.
|
12
|
-
* You may obtain a copy of the License at
|
13
|
-
*
|
14
|
-
* https://www.apache.org/licenses/LICENSE-2.0
|
15
|
-
*
|
16
|
-
* Unless required by applicable law or agreed to in writing, software
|
17
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
-
* See the License for the specific language governing permissions and
|
20
|
-
* limitations under the License.
|
21
|
-
*/
|
22
|
-
async function getMachineId() {
|
23
|
-
const args = 'QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid';
|
24
|
-
let command = '%windir%\\System32\\REG.exe';
|
25
|
-
if (process.arch === 'ia32' && 'PROCESSOR_ARCHITEW6432' in process.env) {
|
26
|
-
command = '%windir%\\sysnative\\cmd.exe /c ' + command;
|
27
|
-
}
|
28
|
-
try {
|
29
|
-
const result = await execAsync(`${command} ${args}`);
|
30
|
-
const parts = result.stdout.split('REG_SZ');
|
31
|
-
if (parts.length === 2) {
|
32
|
-
return parts[1].trim();
|
33
|
-
}
|
34
|
-
}
|
35
|
-
catch (e) {
|
36
|
-
diag.debug(`error reading machine id: ${e}`);
|
37
|
-
}
|
38
|
-
return undefined;
|
39
|
-
}
|
40
|
-
|
41
|
-
export { getMachineId };
|