@zuplo/cli 7.3.0 → 7.3.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/node_modules/@posthog/core/dist/error-tracking/parsers/base.d.ts.map +1 -1
- package/node_modules/@posthog/core/dist/error-tracking/parsers/base.js +2 -1
- package/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs +2 -1
- package/node_modules/@posthog/core/package.json +2 -2
- package/node_modules/@posthog/core/src/error-tracking/parsers/base.spec.ts +33 -0
- package/node_modules/@posthog/core/src/error-tracking/parsers/base.ts +9 -1
- package/node_modules/@zuplo/core/customer.cli.minified.js +20 -20
- package/node_modules/@zuplo/core/index.minified.js +27 -27
- package/node_modules/@zuplo/core/package.json +1 -1
- package/node_modules/@zuplo/graphql/package.json +1 -1
- package/node_modules/@zuplo/openapi-tools/package.json +1 -1
- package/node_modules/@zuplo/otel/out/esm/chunk-DFCQVD4U.js +26 -0
- package/node_modules/@zuplo/otel/out/esm/chunk-DFCQVD4U.js.map +1 -0
- package/node_modules/@zuplo/otel/out/esm/index.js +1 -1
- package/node_modules/@zuplo/otel/out/types/index.d.ts +51 -8
- package/node_modules/@zuplo/otel/package.json +1 -1
- package/node_modules/@zuplo/runtime/out/esm/chunk-IZE65N7D.js +26 -0
- package/node_modules/@zuplo/runtime/out/esm/chunk-IZE65N7D.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/chunk-YOMMW6SX.js +409 -0
- package/node_modules/@zuplo/runtime/out/esm/chunk-YOMMW6SX.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/esm/internal/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/types/index.d.ts +23 -7
- package/node_modules/@zuplo/runtime/out/types/internal/index.d.ts +6 -0
- package/node_modules/@zuplo/runtime/package.json +1 -1
- package/package.json +6 -6
- package/node_modules/@zuplo/otel/out/esm/chunk-AHNBOCFU.js +0 -26
- package/node_modules/@zuplo/otel/out/esm/chunk-AHNBOCFU.js.map +0 -1
- package/node_modules/@zuplo/runtime/out/esm/chunk-B3D32RUX.js +0 -26
- package/node_modules/@zuplo/runtime/out/esm/chunk-B3D32RUX.js.map +0 -1
- package/node_modules/@zuplo/runtime/out/esm/chunk-WH7LSEQF.js +0 -409
- package/node_modules/@zuplo/runtime/out/esm/chunk-WH7LSEQF.js.map +0 -1
- /package/node_modules/@zuplo/runtime/out/esm/{chunk-WH7LSEQF.js.LEGAL.txt → chunk-YOMMW6SX.js.LEGAL.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/error-tracking/parsers/base.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAErC,eAAO,MAAM,gBAAgB,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/error-tracking/parsers/base.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAErC,eAAO,MAAM,gBAAgB,MAAM,CAAA;AASnC,wBAAgB,WAAW,CACzB,QAAQ,EAAE,UAAU,CAAC,UAAU,CAAC,EAChC,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,MAAM,CAAC,EAAE,MAAM,EACf,KAAK,CAAC,EAAE,MAAM,GACb,UAAU,CAmBZ"}
|
|
@@ -29,12 +29,13 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29
29
|
});
|
|
30
30
|
const index_js_namespaceObject = require("../../utils/index.js");
|
|
31
31
|
const UNKNOWN_FUNCTION = '?';
|
|
32
|
+
const MASKED_URL_PREFIX = 'webkit-masked-url://';
|
|
32
33
|
function createFrame(platform, filename, func, lineno, colno) {
|
|
33
34
|
const frame = {
|
|
34
35
|
platform,
|
|
35
36
|
filename,
|
|
36
37
|
function: '<anonymous>' === func ? UNKNOWN_FUNCTION : func,
|
|
37
|
-
in_app:
|
|
38
|
+
in_app: !filename?.startsWith(MASKED_URL_PREFIX)
|
|
38
39
|
};
|
|
39
40
|
if (!(0, index_js_namespaceObject.isUndefined)(lineno)) frame.lineno = lineno;
|
|
40
41
|
if (!(0, index_js_namespaceObject.isUndefined)(colno)) frame.colno = colno;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { isUndefined } from "../../utils/index.mjs";
|
|
2
2
|
const UNKNOWN_FUNCTION = '?';
|
|
3
|
+
const MASKED_URL_PREFIX = 'webkit-masked-url://';
|
|
3
4
|
function createFrame(platform, filename, func, lineno, colno) {
|
|
4
5
|
const frame = {
|
|
5
6
|
platform,
|
|
6
7
|
filename,
|
|
7
8
|
function: '<anonymous>' === func ? UNKNOWN_FUNCTION : func,
|
|
8
|
-
in_app:
|
|
9
|
+
in_app: !filename?.startsWith(MASKED_URL_PREFIX)
|
|
9
10
|
};
|
|
10
11
|
if (!isUndefined(lineno)) frame.lineno = lineno;
|
|
11
12
|
if (!isUndefined(colno)) frame.colno = colno;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@posthog/core",
|
|
3
|
-
"version": "1.48.
|
|
3
|
+
"version": "1.48.3",
|
|
4
4
|
"bugs": {
|
|
5
5
|
"url": "https://github.com/PostHog/posthog-js/issues"
|
|
6
6
|
},
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@posthog/types": "^1.
|
|
73
|
+
"@posthog/types": "^1.405.0"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@rslib/core": "0.10.6",
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { createFrame } from './base'
|
|
2
|
+
|
|
3
|
+
describe('createFrame', () => {
|
|
4
|
+
const platform = 'web:javascript'
|
|
5
|
+
|
|
6
|
+
it('marks ordinary browser frames as in_app', () => {
|
|
7
|
+
const frame = createFrame(platform, 'https://example.com/app.js', 'doThing', 1, 2)
|
|
8
|
+
expect(frame.in_app).toBe(true)
|
|
9
|
+
})
|
|
10
|
+
|
|
11
|
+
it('does not mark frames Safari has masked as in_app', () => {
|
|
12
|
+
// Safari hides the origin of extension content scripts, and of blob:/eval'd code, behind
|
|
13
|
+
// this placeholder. None of it is the page's own code.
|
|
14
|
+
const frame = createFrame(platform, 'webkit-masked-url://hidden/', '_classCallCheck', 1, 2)
|
|
15
|
+
expect(frame.in_app).toBe(false)
|
|
16
|
+
})
|
|
17
|
+
|
|
18
|
+
it('keeps the masked frame rather than discarding it', () => {
|
|
19
|
+
const frame = createFrame(platform, 'webkit-masked-url://hidden/', 'someFn', 3, 4)
|
|
20
|
+
expect(frame).toMatchObject({
|
|
21
|
+
filename: 'webkit-masked-url://hidden/',
|
|
22
|
+
function: 'someFn',
|
|
23
|
+
lineno: 3,
|
|
24
|
+
colno: 4,
|
|
25
|
+
})
|
|
26
|
+
})
|
|
27
|
+
|
|
28
|
+
it('falls back to in_app when the parser could not determine a filename', () => {
|
|
29
|
+
// Regex capture groups that do not participate arrive here as undefined despite the type
|
|
30
|
+
const frame = createFrame(platform, undefined as unknown as string, 'doThing')
|
|
31
|
+
expect(frame.in_app).toBe(true)
|
|
32
|
+
})
|
|
33
|
+
})
|
|
@@ -7,6 +7,13 @@ import { StackFrame } from '../types'
|
|
|
7
7
|
|
|
8
8
|
export const UNKNOWN_FUNCTION = '?'
|
|
9
9
|
|
|
10
|
+
// Safari replaces the URL of scripts it will not attribute to the page with this placeholder.
|
|
11
|
+
// Web extension content scripts are the common source, but blob:, eval'd and injected code can
|
|
12
|
+
// be masked the same way, so the filename alone cannot tell us which one we are looking at.
|
|
13
|
+
// Either way it is not the page's own code, so keep the frame -- it is still useful context --
|
|
14
|
+
// but do not let it count as in_app and pull the issue into the site's own stack.
|
|
15
|
+
const MASKED_URL_PREFIX = 'webkit-masked-url://'
|
|
16
|
+
|
|
10
17
|
export function createFrame(
|
|
11
18
|
platform: StackFrame['platform'],
|
|
12
19
|
filename: string,
|
|
@@ -19,7 +26,8 @@ export function createFrame(
|
|
|
19
26
|
platform,
|
|
20
27
|
filename,
|
|
21
28
|
function: func === '<anonymous>' ? UNKNOWN_FUNCTION : func,
|
|
22
|
-
|
|
29
|
+
// Browser frames are considered in_app unless the runtime has masked their origin
|
|
30
|
+
in_app: !filename?.startsWith(MASKED_URL_PREFIX),
|
|
23
31
|
}
|
|
24
32
|
|
|
25
33
|
if (!isUndefined(lineno)) {
|