@zuplo/cli 7.7.2 → 7.7.3
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/LICENSE +417 -0
- package/node_modules/@posthog/core/dist/error-tracking/parsers/index.d.ts.map +1 -1
- package/node_modules/@posthog/core/dist/error-tracking/parsers/index.js +87 -2
- package/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs +87 -2
- package/node_modules/@posthog/core/dist/utils/index.d.ts +2 -0
- package/node_modules/@posthog/core/dist/utils/index.d.ts.map +1 -1
- package/node_modules/@posthog/core/dist/utils/index.js +36 -20
- package/node_modules/@posthog/core/dist/utils/index.mjs +5 -1
- package/node_modules/@posthog/core/package.json +2 -2
- package/node_modules/@posthog/core/src/error-tracking/error-properties-builder.parse.spec.ts +3 -1
- package/node_modules/@posthog/core/src/error-tracking/parsers/index.spec.ts +270 -0
- package/node_modules/@posthog/core/src/error-tracking/parsers/index.ts +197 -2
- package/node_modules/@posthog/core/src/utils/index.ts +6 -0
- package/node_modules/@posthog/types/LICENSE +64 -0
- package/node_modules/@posthog/types/dist/posthog-config.d.ts +6 -0
- package/node_modules/@posthog/types/dist/posthog-config.d.ts.map +1 -1
- package/node_modules/@posthog/types/package.json +1 -1
- package/node_modules/@posthog/types/src/posthog-config.ts +6 -0
- package/node_modules/@zuplo/core/customer.cli.minified.js +185 -185
- package/node_modules/@zuplo/core/index.minified.js +190 -190
- 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 +2 -2
- package/node_modules/@zuplo/otel/package.json +1 -1
- package/node_modules/@zuplo/runtime/package.json +1 -1
- package/node_modules/js-yaml/dist/js-yaml.js +16 -5
- package/node_modules/js-yaml/dist/js-yaml.js.map +1 -1
- package/node_modules/js-yaml/dist/js-yaml.min.js +1 -1
- package/node_modules/js-yaml/dist/js-yaml.min.js.map +1 -1
- package/node_modules/js-yaml/dist/js-yaml.mjs +14 -6
- package/node_modules/js-yaml/dist/js-yaml.mjs.map +1 -1
- package/node_modules/js-yaml/lib/loader.js +16 -3
- package/node_modules/js-yaml/lib/type/omap.js +3 -3
- package/node_modules/js-yaml/package.json +1 -1
- package/package.json +12 -12
|
@@ -371,19 +371,28 @@ function captureSegment (state, start, end, checkJson) {
|
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
373
|
|
|
374
|
+
function chargeMergeWork (state) {
|
|
375
|
+
state.totalMergeKeys++
|
|
376
|
+
|
|
377
|
+
if (state.maxTotalMergeKeys !== -1 && state.totalMergeKeys > state.maxTotalMergeKeys) {
|
|
378
|
+
throwError(state, 'merge keys exceeded maxTotalMergeKeys (' + state.maxTotalMergeKeys + ')')
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
|
|
374
382
|
function mergeMappings (state, destination, source, overridableKeys) {
|
|
375
383
|
if (!common.isObject(source)) {
|
|
376
384
|
throwError(state, 'cannot merge mappings; the provided source object is unacceptable')
|
|
377
385
|
}
|
|
378
386
|
|
|
387
|
+
// Count the source mapping itself to bound sequences of empty mappings.
|
|
388
|
+
chargeMergeWork(state)
|
|
389
|
+
|
|
379
390
|
const sourceKeys = Object.keys(source)
|
|
380
391
|
|
|
381
392
|
for (let index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
|
|
382
393
|
const key = sourceKeys[index]
|
|
383
394
|
|
|
384
|
-
|
|
385
|
-
throwError(state, 'merge keys exceeded maxTotalMergeKeys (' + state.maxTotalMergeKeys + ')')
|
|
386
|
-
}
|
|
395
|
+
chargeMergeWork(state)
|
|
387
396
|
|
|
388
397
|
if (!_hasOwnProperty.call(destination, key)) {
|
|
389
398
|
setProperty(destination, key, source[key])
|
|
@@ -426,6 +435,10 @@ function storeMappingPair (state, _result, overridableKeys, keyTag, keyNode, val
|
|
|
426
435
|
|
|
427
436
|
if (keyTag === 'tag:yaml.org,2002:merge') {
|
|
428
437
|
if (Array.isArray(valueNode)) {
|
|
438
|
+
if (valueNode.length > 100) {
|
|
439
|
+
throwError(state, 'abnormal merge sequence size')
|
|
440
|
+
}
|
|
441
|
+
|
|
429
442
|
for (let index = 0, quantity = valueNode.length; index < quantity; index += 1) {
|
|
430
443
|
mergeMappings(state, _result, valueNode[index], overridableKeys)
|
|
431
444
|
}
|
|
@@ -8,7 +8,7 @@ const _toString = Object.prototype.toString
|
|
|
8
8
|
function resolveYamlOmap (data) {
|
|
9
9
|
if (data === null) return true
|
|
10
10
|
|
|
11
|
-
const objectKeys =
|
|
11
|
+
const objectKeys = {}
|
|
12
12
|
const object = data
|
|
13
13
|
|
|
14
14
|
for (let index = 0, length = object.length; index < length; index += 1) {
|
|
@@ -27,8 +27,8 @@ function resolveYamlOmap (data) {
|
|
|
27
27
|
|
|
28
28
|
if (!pairHasKey) return false
|
|
29
29
|
|
|
30
|
-
if (
|
|
31
|
-
|
|
30
|
+
if (_hasOwnProperty.call(objectKeys, pairKey)) return false
|
|
31
|
+
Object.defineProperty(objectKeys, pairKey, { value: true })
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
return true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zuplo/cli",
|
|
3
|
-
"version": "7.7.
|
|
3
|
+
"version": "7.7.3",
|
|
4
4
|
"repository": "https://github.com/zuplo/zuplo",
|
|
5
5
|
"author": "Zuplo, Inc.",
|
|
6
6
|
"type": "module",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"@opentelemetry/api": "1.9.0",
|
|
29
29
|
"@opentelemetry/api-logs": "0.220.0",
|
|
30
30
|
"@swc/core": "1.10.18",
|
|
31
|
-
"@zuplo/core": "7.7.
|
|
31
|
+
"@zuplo/core": "7.7.3",
|
|
32
32
|
"@zuplo/editor": "1.0.33162667821",
|
|
33
|
-
"@zuplo/openapi-tools": "7.7.
|
|
34
|
-
"@zuplo/runtime": "7.7.
|
|
33
|
+
"@zuplo/openapi-tools": "7.7.3",
|
|
34
|
+
"@zuplo/runtime": "7.7.3",
|
|
35
35
|
"chalk": "5.4.1",
|
|
36
36
|
"chokidar": "3.5.3",
|
|
37
37
|
"cookie": "1.0.2",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"ignore": "5.3.1",
|
|
44
44
|
"javascript-stringify": "2.1.0",
|
|
45
45
|
"jose": "5.9.2",
|
|
46
|
-
"js-yaml": "4.3.
|
|
46
|
+
"js-yaml": "4.3.2",
|
|
47
47
|
"jsonc-parser": "3.2.0",
|
|
48
48
|
"jsonpath-plus": "10.3.0",
|
|
49
49
|
"minimatch": "10.2.5",
|
|
@@ -62,15 +62,15 @@
|
|
|
62
62
|
"workerd": "1.20241230.0",
|
|
63
63
|
"yargs": "17.7.2",
|
|
64
64
|
"zod": "4.4.3",
|
|
65
|
-
"@zuplo/graphql": "7.7.
|
|
66
|
-
"@zuplo/otel": "7.7.
|
|
65
|
+
"@zuplo/graphql": "7.7.3",
|
|
66
|
+
"@zuplo/otel": "7.7.3"
|
|
67
67
|
},
|
|
68
68
|
"optionalDependencies": {
|
|
69
|
-
"@zuplo/lint-darwin-arm64": "7.7.
|
|
70
|
-
"@zuplo/lint-darwin-x64": "7.7.
|
|
71
|
-
"@zuplo/lint-linux-x64": "7.7.
|
|
72
|
-
"@zuplo/lint-linux-arm64": "7.7.
|
|
73
|
-
"@zuplo/lint-win32-x64": "7.7.
|
|
69
|
+
"@zuplo/lint-darwin-arm64": "7.7.3",
|
|
70
|
+
"@zuplo/lint-darwin-x64": "7.7.3",
|
|
71
|
+
"@zuplo/lint-linux-x64": "7.7.3",
|
|
72
|
+
"@zuplo/lint-linux-arm64": "7.7.3",
|
|
73
|
+
"@zuplo/lint-win32-x64": "7.7.3"
|
|
74
74
|
},
|
|
75
75
|
"bundleDependencies": [
|
|
76
76
|
"@inquirer/prompts",
|