autotel-devtools 27.2.0 → 27.2.2
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/NOTICE +9 -0
- package/README.md +7 -0
- package/dist/cli.cjs +2 -2
- package/dist/cli.js +2 -2
- package/dist/fullpage.global.js +2 -2
- package/dist/{grpc-CejDNrpg.js → grpc-BhGs5AGf.js} +1 -1
- package/dist/{grpc-D-PgIW-i.cjs → grpc-DB8OLUPR.cjs} +1 -1
- package/dist/{http-KCnGSZXe.js → http-CHt5okyc.js} +2 -2
- package/dist/{http-C6eqJu9T.cjs → http-DD3SVQJp.cjs} +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{parse-BRlosZft.cjs → parse-BDF92kdK.cjs} +5 -0
- package/dist/{parse-D_RmPPQs.js → parse-CCZIhG-D.js} +5 -0
- package/dist/query/index.cjs +1 -1
- package/dist/query/index.js +1 -1
- package/dist/server/index.cjs +2 -2
- package/dist/server/index.js +2 -2
- package/dist/widget.global.js +1 -1
- package/package.json +6 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as decodeOtlpTraceRequest, o as decodeOtlpLogsRequest, s as decodeOtlpMetricsRequest } from "./http-
|
|
1
|
+
import { c as decodeOtlpTraceRequest, o as decodeOtlpLogsRequest, s as decodeOtlpMetricsRequest } from "./http-CHt5okyc.js";
|
|
2
2
|
import { Server, ServerCredentials, status } from "@grpc/grpc-js";
|
|
3
3
|
|
|
4
4
|
//#region src/server/grpc.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as encodeTraces } from "./wire-2Rmfg6IT.js";
|
|
2
2
|
import { i as asString, n as asBoolean, o as stringAttr, r as asNumber, t as asObject } from "./json-fields-CPjKZ2WH.js";
|
|
3
3
|
import { t as pickRoot } from "./trace-root-EHnvuA7f.js";
|
|
4
|
-
import { a as compileWhere, t as parse } from "./parse-
|
|
4
|
+
import { a as compileWhere, t as parse } from "./parse-CCZIhG-D.js";
|
|
5
5
|
import { t as getResourceName } from "./resource-utils-B4UVvfnH.js";
|
|
6
6
|
import { createServer } from "node:http";
|
|
7
7
|
import { WebSocket, WebSocketServer } from "ws";
|
|
@@ -3642,7 +3642,7 @@ function attachDevtoolsRoutes(httpServer, devtools, options = {}) {
|
|
|
3642
3642
|
if (req.headers.upgrade?.toLowerCase() === "websocket") return;
|
|
3643
3643
|
res.setHeader("Access-Control-Allow-Origin", "*");
|
|
3644
3644
|
res.setHeader("Access-Control-Allow-Methods", "GET, POST, DELETE, OPTIONS");
|
|
3645
|
-
res.setHeader("Access-Control-Allow-Headers", "Content-Type");
|
|
3645
|
+
res.setHeader("Access-Control-Allow-Headers", req.headers["access-control-request-headers"] ?? "Content-Type");
|
|
3646
3646
|
res.setHeader("x-autotel-devtools", getVersion());
|
|
3647
3647
|
res.setHeader("Access-Control-Expose-Headers", "x-autotel-devtools");
|
|
3648
3648
|
if (req.method === "OPTIONS") {
|
|
@@ -28,7 +28,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
28
|
const require_wire = require('./wire-CHU1PkMo.cjs');
|
|
29
29
|
const require_json_fields = require('./json-fields-DZFlNqT2.cjs');
|
|
30
30
|
const require_trace_root = require('./trace-root-BMa667jK.cjs');
|
|
31
|
-
const require_parse = require('./parse-
|
|
31
|
+
const require_parse = require('./parse-BDF92kdK.cjs');
|
|
32
32
|
const require_resource_utils = require('./resource-utils-DjHJB6uc.cjs');
|
|
33
33
|
let node_http = require("node:http");
|
|
34
34
|
let ws = require("ws");
|
|
@@ -3671,7 +3671,7 @@ function attachDevtoolsRoutes(httpServer, devtools, options = {}) {
|
|
|
3671
3671
|
if (req.headers.upgrade?.toLowerCase() === "websocket") return;
|
|
3672
3672
|
res.setHeader("Access-Control-Allow-Origin", "*");
|
|
3673
3673
|
res.setHeader("Access-Control-Allow-Methods", "GET, POST, DELETE, OPTIONS");
|
|
3674
|
-
res.setHeader("Access-Control-Allow-Headers", "Content-Type");
|
|
3674
|
+
res.setHeader("Access-Control-Allow-Headers", req.headers["access-control-request-headers"] ?? "Content-Type");
|
|
3675
3675
|
res.setHeader("x-autotel-devtools", getVersion());
|
|
3676
3676
|
res.setHeader("Access-Control-Expose-Headers", "x-autotel-devtools");
|
|
3677
3677
|
if (req.method === "OPTIONS") {
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_http = require('./http-
|
|
2
|
+
const require_http = require('./http-DD3SVQJp.cjs');
|
|
3
3
|
const require_listen = require('./listen-l09RRHht.cjs');
|
|
4
4
|
const require_server_exporter = require('./server/exporter.cjs');
|
|
5
5
|
const require_server_log_exporter = require('./server/log-exporter.cjs');
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ErrorAggregator, g as hostHeaderIsLoopback, l as DevtoolsServer, r as resolveSourceRoot, t as attachDevtoolsRoutes } from "./http-
|
|
1
|
+
import { C as ErrorAggregator, g as hostHeaderIsLoopback, l as DevtoolsServer, r as resolveSourceRoot, t as attachDevtoolsRoutes } from "./http-CHt5okyc.js";
|
|
2
2
|
import { t as listenLoopbackDualStack } from "./listen-D-lLgfro.js";
|
|
3
3
|
import { DevtoolsSpanExporter } from "./server/exporter.js";
|
|
4
4
|
import { DevtoolsLogExporter } from "./server/log-exporter.js";
|
|
@@ -24,6 +24,11 @@ function emit(node, schema, params) {
|
|
|
24
24
|
params.push(pattern);
|
|
25
25
|
return `${targetSql(field, schema, params, { pathAlreadyPushed: false })} LIKE ? ESCAPE '${LIKE_ESCAPE}'`;
|
|
26
26
|
});
|
|
27
|
+
const index = schema.attributeIndex;
|
|
28
|
+
if (index) {
|
|
29
|
+
params.push(index.signal, pattern, pattern);
|
|
30
|
+
clauses.push(`${index.entitySql} IN (SELECT entity_id FROM ${quoteIdent(index.table)} WHERE signal = ? AND (value_json LIKE ? ESCAPE '${LIKE_ESCAPE}' OR (json_valid(value_json) AND EXISTS (SELECT 1 FROM json_tree(value_json) jt WHERE jt.value LIKE ? ESCAPE '${LIKE_ESCAPE}'))))`);
|
|
31
|
+
}
|
|
27
32
|
if (clauses.length === 0) return "1";
|
|
28
33
|
if (clauses.length === 1) return clauses[0];
|
|
29
34
|
return `(${clauses.join(" OR ")})`;
|
|
@@ -23,6 +23,11 @@ function emit(node, schema, params) {
|
|
|
23
23
|
params.push(pattern);
|
|
24
24
|
return `${targetSql(field, schema, params, { pathAlreadyPushed: false })} LIKE ? ESCAPE '${LIKE_ESCAPE}'`;
|
|
25
25
|
});
|
|
26
|
+
const index = schema.attributeIndex;
|
|
27
|
+
if (index) {
|
|
28
|
+
params.push(index.signal, pattern, pattern);
|
|
29
|
+
clauses.push(`${index.entitySql} IN (SELECT entity_id FROM ${quoteIdent(index.table)} WHERE signal = ? AND (value_json LIKE ? ESCAPE '${LIKE_ESCAPE}' OR (json_valid(value_json) AND EXISTS (SELECT 1 FROM json_tree(value_json) jt WHERE jt.value LIKE ? ESCAPE '${LIKE_ESCAPE}'))))`);
|
|
30
|
+
}
|
|
26
31
|
if (clauses.length === 0) return "1";
|
|
27
32
|
if (clauses.length === 1) return clauses[0];
|
|
28
33
|
return `(${clauses.join(" OR ")})`;
|
package/dist/query/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_parse = require('../parse-
|
|
2
|
+
const require_parse = require('../parse-BDF92kdK.cjs');
|
|
3
3
|
|
|
4
4
|
exports.OPERATORS = require_parse.OPERATORS;
|
|
5
5
|
exports.SIGIL_ALIASES = require_parse.SIGIL_ALIASES;
|
package/dist/query/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as compileWhere, i as SIGIL_ALIASES, n as tokenize, r as OPERATORS, t as parse } from "../parse-
|
|
1
|
+
import { a as compileWhere, i as SIGIL_ALIASES, n as tokenize, r as OPERATORS, t as parse } from "../parse-CCZIhG-D.js";
|
|
2
2
|
|
|
3
3
|
export { OPERATORS, SIGIL_ALIASES, compileWhere, parse, tokenize };
|
package/dist/server/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_http = require('../http-
|
|
2
|
+
const require_http = require('../http-DD3SVQJp.cjs');
|
|
3
3
|
const require_server_exporter = require('./exporter.cjs');
|
|
4
4
|
const require_server_log_exporter = require('./log-exporter.cjs');
|
|
5
5
|
const require_server_remote_exporter = require('./remote-exporter.cjs');
|
|
6
|
-
const require_grpc = require('../grpc-
|
|
6
|
+
const require_grpc = require('../grpc-DB8OLUPR.cjs');
|
|
7
7
|
|
|
8
8
|
exports.DEVTOOLS_IDENTITY = require_http.DEVTOOLS_IDENTITY;
|
|
9
9
|
exports.DevtoolsLogExporter = require_server_log_exporter.DevtoolsLogExporter;
|
package/dist/server/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as ErrorAggregator, S as resolveTelemetryLimits, _ as isLoopbackHostname, a as probePortHolder, b as appendWithLimit, c as decodeOtlpTraceRequest, d as parseOtlpLogs, f as parseOtlpTraces, g as hostHeaderIsLoopback, h as allowSensitiveRequest, i as DEVTOOLS_IDENTITY, l as DevtoolsServer, m as SPAN_SCHEMA, n as createDevtoolsHttpServer, o as decodeOtlpLogsRequest, p as DevtoolsStore, s as decodeOtlpMetricsRequest, t as attachDevtoolsRoutes, u as isProtobufContentType, v as originIsLoopback, x as applyTelemetryLimits, y as appendManyWithLimit } from "../http-
|
|
1
|
+
import { C as ErrorAggregator, S as resolveTelemetryLimits, _ as isLoopbackHostname, a as probePortHolder, b as appendWithLimit, c as decodeOtlpTraceRequest, d as parseOtlpLogs, f as parseOtlpTraces, g as hostHeaderIsLoopback, h as allowSensitiveRequest, i as DEVTOOLS_IDENTITY, l as DevtoolsServer, m as SPAN_SCHEMA, n as createDevtoolsHttpServer, o as decodeOtlpLogsRequest, p as DevtoolsStore, s as decodeOtlpMetricsRequest, t as attachDevtoolsRoutes, u as isProtobufContentType, v as originIsLoopback, x as applyTelemetryLimits, y as appendManyWithLimit } from "../http-CHt5okyc.js";
|
|
2
2
|
import { DevtoolsSpanExporter } from "./exporter.js";
|
|
3
3
|
import { DevtoolsLogExporter } from "./log-exporter.js";
|
|
4
4
|
import { DevtoolsRemoteExporter } from "./remote-exporter.js";
|
|
5
|
-
import { t as startOtlpGrpcReceiver } from "../grpc-
|
|
5
|
+
import { t as startOtlpGrpcReceiver } from "../grpc-BhGs5AGf.js";
|
|
6
6
|
|
|
7
7
|
export { DEVTOOLS_IDENTITY, DevtoolsLogExporter, DevtoolsRemoteExporter, DevtoolsServer, DevtoolsSpanExporter, DevtoolsStore, ErrorAggregator, SPAN_SCHEMA, allowSensitiveRequest, appendManyWithLimit, appendWithLimit, applyTelemetryLimits, attachDevtoolsRoutes, createDevtoolsHttpServer, decodeOtlpLogsRequest, decodeOtlpMetricsRequest, decodeOtlpTraceRequest, hostHeaderIsLoopback, isLoopbackHostname, isProtobufContentType, originIsLoopback, parseOtlpLogs, parseOtlpTraces, probePortHolder, resolveTelemetryLimits, startOtlpGrpcReceiver };
|