@datadog/datadog-ci 3.4.0 → 3.5.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/dist/cli.js.map +1 -1
- package/dist/commands/cloud-run/flare.js +14 -14
- package/dist/commands/cloud-run/flare.js.map +1 -1
- package/dist/commands/coverage/renderer.js +2 -2
- package/dist/commands/coverage/renderer.js.map +1 -1
- package/dist/commands/coverage/upload.js +10 -11
- package/dist/commands/coverage/upload.js.map +1 -1
- package/dist/commands/coverage/utils.js +2 -2
- package/dist/commands/coverage/utils.js.map +1 -1
- package/dist/commands/dsyms/renderer.js +3 -3
- package/dist/commands/dsyms/renderer.js.map +1 -1
- package/dist/commands/dsyms/upload.js +9 -9
- package/dist/commands/dsyms/upload.js.map +1 -1
- package/dist/commands/dsyms/utils.js +4 -4
- package/dist/commands/dsyms/utils.js.map +1 -1
- package/dist/commands/elf-symbols/upload.js +4 -4
- package/dist/commands/elf-symbols/upload.js.map +1 -1
- package/dist/commands/flutter-symbols/helpers.js +5 -25
- package/dist/commands/flutter-symbols/helpers.js.map +1 -1
- package/dist/commands/flutter-symbols/upload.js +2 -2
- package/dist/commands/flutter-symbols/upload.js.map +1 -1
- package/dist/commands/git-metadata/gitdb.js +4 -4
- package/dist/commands/git-metadata/gitdb.js.map +1 -1
- package/dist/commands/junit/api.js +2 -2
- package/dist/commands/junit/api.js.map +1 -1
- package/dist/commands/junit/renderer.js +2 -2
- package/dist/commands/junit/renderer.js.map +1 -1
- package/dist/commands/junit/upload.js +7 -7
- package/dist/commands/junit/upload.js.map +1 -1
- package/dist/commands/lambda/flare.js +18 -18
- package/dist/commands/lambda/flare.js.map +1 -1
- package/dist/commands/pe-symbols/upload.js +2 -3
- package/dist/commands/pe-symbols/upload.js.map +1 -1
- package/dist/commands/react-native/xcode.js +1 -2
- package/dist/commands/react-native/xcode.js.map +1 -1
- package/dist/commands/sarif/renderer.js +3 -3
- package/dist/commands/sarif/renderer.js.map +1 -1
- package/dist/commands/sarif/upload.js +5 -6
- package/dist/commands/sarif/upload.js.map +1 -1
- package/dist/commands/sourcemaps/upload.js +4 -5
- package/dist/commands/sourcemaps/upload.js.map +1 -1
- package/dist/commands/sourcemaps/utils.js +2 -2
- package/dist/commands/sourcemaps/utils.js.map +1 -1
- package/dist/commands/synthetics/api.d.ts +1 -1
- package/dist/commands/synthetics/api.js +40 -12
- package/dist/commands/synthetics/api.js.map +1 -1
- package/dist/commands/synthetics/batch.js +12 -11
- package/dist/commands/synthetics/batch.js.map +1 -1
- package/dist/commands/synthetics/build-and-test.d.ts +1 -1
- package/dist/commands/synthetics/build-and-test.js +11 -31
- package/dist/commands/synthetics/build-and-test.js.map +1 -1
- package/dist/commands/synthetics/interfaces.d.ts +71 -35
- package/dist/commands/synthetics/interfaces.js.map +1 -1
- package/dist/commands/synthetics/multilocator.js +2 -2
- package/dist/commands/synthetics/multilocator.js.map +1 -1
- package/dist/commands/synthetics/reporters/default.js +10 -9
- package/dist/commands/synthetics/reporters/default.js.map +1 -1
- package/dist/commands/synthetics/reporters/junit.js +74 -63
- package/dist/commands/synthetics/reporters/junit.js.map +1 -1
- package/dist/commands/synthetics/test.d.ts +2 -2
- package/dist/commands/synthetics/utils/internal.d.ts +3 -3
- package/dist/commands/synthetics/utils/internal.js +1 -2
- package/dist/commands/synthetics/utils/internal.js.map +1 -1
- package/dist/commands/synthetics/utils/public.d.ts +4 -4
- package/dist/commands/synthetics/utils/public.js +22 -11
- package/dist/commands/synthetics/utils/public.js.map +1 -1
- package/dist/commands/trace/test-utils.d.ts +4 -1
- package/dist/commands/trace/test-utils.js.map +1 -1
- package/dist/commands/unity-symbols/upload.js +7 -7
- package/dist/commands/unity-symbols/upload.js.map +1 -1
- package/dist/helpers/file-finder.js +3 -3
- package/dist/helpers/file-finder.js.map +1 -1
- package/dist/helpers/flare.js +4 -4
- package/dist/helpers/flare.js.map +1 -1
- package/dist/helpers/fs.js +3 -3
- package/dist/helpers/fs.js.map +1 -1
- package/dist/helpers/glob.d.ts +12 -0
- package/dist/helpers/glob.js +70 -0
- package/dist/helpers/glob.js.map +1 -0
- package/dist/helpers/interfaces.d.ts +5 -6
- package/dist/helpers/renderer.js +3 -3
- package/dist/helpers/renderer.js.map +1 -1
- package/dist/helpers/tags.js +3 -3
- package/dist/helpers/tags.js.map +1 -1
- package/dist/helpers/utils.d.ts +0 -1
- package/dist/helpers/utils.js +1 -12
- package/dist/helpers/utils.js.map +1 -1
- package/package.json +6 -5
- package/dist/__tests__/cli.test.d.ts +0 -1
- package/dist/__tests__/cli.test.js +0 -93
- package/dist/__tests__/cli.test.js.map +0 -1
- package/dist/commands/cloud-run/__tests__/fixtures.d.ts +0 -2
- package/dist/commands/cloud-run/__tests__/fixtures.js +0 -12
- package/dist/commands/cloud-run/__tests__/fixtures.js.map +0 -1
- package/dist/commands/cloud-run/__tests__/flare.test.d.ts +0 -1
- package/dist/commands/cloud-run/__tests__/flare.test.js +0 -557
- package/dist/commands/cloud-run/__tests__/flare.test.js.map +0 -1
- package/dist/commands/coverage/__tests__/upload.test.d.ts +0 -1
- package/dist/commands/coverage/__tests__/upload.test.js +0 -291
- package/dist/commands/coverage/__tests__/upload.test.js.map +0 -1
- package/dist/commands/coverage/__tests__/utils.test.d.ts +0 -1
- package/dist/commands/coverage/__tests__/utils.test.js +0 -47
- package/dist/commands/coverage/__tests__/utils.test.js.map +0 -1
- package/dist/commands/deployment/__tests__/correlate.test.d.ts +0 -1
- package/dist/commands/deployment/__tests__/correlate.test.js +0 -106
- package/dist/commands/deployment/__tests__/correlate.test.js.map +0 -1
- package/dist/commands/deployment/__tests__/mark.test.d.ts +0 -1
- package/dist/commands/deployment/__tests__/mark.test.js +0 -97
- package/dist/commands/deployment/__tests__/mark.test.js.map +0 -1
- package/dist/commands/dora/__tests__/deployment.test.d.ts +0 -1
- package/dist/commands/dora/__tests__/deployment.test.js +0 -203
- package/dist/commands/dora/__tests__/deployment.test.js.map +0 -1
- package/dist/commands/dsyms/__tests__/upload.test.d.ts +0 -1
- package/dist/commands/dsyms/__tests__/upload.test.js +0 -346
- package/dist/commands/dsyms/__tests__/upload.test.js.map +0 -1
- package/dist/commands/dsyms/__tests__/utils.test.d.ts +0 -1
- package/dist/commands/dsyms/__tests__/utils.test.js +0 -100
- package/dist/commands/dsyms/__tests__/utils.test.js.map +0 -1
- package/dist/commands/elf-symbols/__tests__/elf.test.d.ts +0 -1
- package/dist/commands/elf-symbols/__tests__/elf.test.js +0 -822
- package/dist/commands/elf-symbols/__tests__/elf.test.js.map +0 -1
- package/dist/commands/elf-symbols/__tests__/upload.test.d.ts +0 -1
- package/dist/commands/elf-symbols/__tests__/upload.test.js +0 -228
- package/dist/commands/elf-symbols/__tests__/upload.test.js.map +0 -1
- package/dist/commands/flutter-symbols/__tests__/upload.test.d.ts +0 -1
- package/dist/commands/flutter-symbols/__tests__/upload.test.js +0 -617
- package/dist/commands/flutter-symbols/__tests__/upload.test.js.map +0 -1
- package/dist/commands/gate/__tests__/evaluate.test.d.ts +0 -1
- package/dist/commands/gate/__tests__/evaluate.test.js +0 -398
- package/dist/commands/gate/__tests__/evaluate.test.js.map +0 -1
- package/dist/commands/gate/__tests__/scope.test.d.ts +0 -1
- package/dist/commands/gate/__tests__/scope.test.js +0 -29
- package/dist/commands/gate/__tests__/scope.test.js.map +0 -1
- package/dist/commands/git-metadata/__tests__/git.test.d.ts +0 -1
- package/dist/commands/git-metadata/__tests__/git.test.js +0 -132
- package/dist/commands/git-metadata/__tests__/git.test.js.map +0 -1
- package/dist/commands/git-metadata/__tests__/gitdb.test.d.ts +0 -1
- package/dist/commands/git-metadata/__tests__/gitdb.test.js +0 -1386
- package/dist/commands/git-metadata/__tests__/gitdb.test.js.map +0 -1
- package/dist/commands/git-metadata/__tests__/library.test.d.ts +0 -1
- package/dist/commands/git-metadata/__tests__/library.test.js +0 -118
- package/dist/commands/git-metadata/__tests__/library.test.js.map +0 -1
- package/dist/commands/git-metadata/__tests__/upload.test.d.ts +0 -1
- package/dist/commands/git-metadata/__tests__/upload.test.js +0 -52
- package/dist/commands/git-metadata/__tests__/upload.test.js.map +0 -1
- package/dist/commands/junit/__tests__/upload.test.d.ts +0 -1
- package/dist/commands/junit/__tests__/upload.test.js +0 -495
- package/dist/commands/junit/__tests__/upload.test.js.map +0 -1
- package/dist/commands/lambda/__tests__/fixtures.d.ts +0 -51
- package/dist/commands/lambda/__tests__/fixtures.js +0 -146
- package/dist/commands/lambda/__tests__/fixtures.js.map +0 -1
- package/dist/commands/lambda/__tests__/flare.test.d.ts +0 -1
- package/dist/commands/lambda/__tests__/flare.test.js +0 -730
- package/dist/commands/lambda/__tests__/flare.test.js.map +0 -1
- package/dist/commands/lambda/__tests__/functions/commons.test.d.ts +0 -1
- package/dist/commands/lambda/__tests__/functions/commons.test.js +0 -791
- package/dist/commands/lambda/__tests__/functions/commons.test.js.map +0 -1
- package/dist/commands/lambda/__tests__/functions/instrument.part1.test.d.ts +0 -1
- package/dist/commands/lambda/__tests__/functions/instrument.part1.test.js +0 -388
- package/dist/commands/lambda/__tests__/functions/instrument.part1.test.js.map +0 -1
- package/dist/commands/lambda/__tests__/functions/instrument.part2.test.d.ts +0 -1
- package/dist/commands/lambda/__tests__/functions/instrument.part2.test.js +0 -732
- package/dist/commands/lambda/__tests__/functions/instrument.part2.test.js.map +0 -1
- package/dist/commands/lambda/__tests__/functions/uninstrument.test.d.ts +0 -1
- package/dist/commands/lambda/__tests__/functions/uninstrument.test.js +0 -516
- package/dist/commands/lambda/__tests__/functions/uninstrument.test.js.map +0 -1
- package/dist/commands/lambda/__tests__/functions/versionChecker.test.d.ts +0 -1
- package/dist/commands/lambda/__tests__/functions/versionChecker.test.js +0 -33
- package/dist/commands/lambda/__tests__/functions/versionChecker.test.js.map +0 -1
- package/dist/commands/lambda/__tests__/instrument.test.d.ts +0 -1
- package/dist/commands/lambda/__tests__/instrument.test.js +0 -1606
- package/dist/commands/lambda/__tests__/instrument.test.js.map +0 -1
- package/dist/commands/lambda/__tests__/loggroup.test.d.ts +0 -1
- package/dist/commands/lambda/__tests__/loggroup.test.js +0 -340
- package/dist/commands/lambda/__tests__/loggroup.test.js.map +0 -1
- package/dist/commands/lambda/__tests__/prompt.test.d.ts +0 -1
- package/dist/commands/lambda/__tests__/prompt.test.js +0 -206
- package/dist/commands/lambda/__tests__/prompt.test.js.map +0 -1
- package/dist/commands/lambda/__tests__/tags.test.d.ts +0 -1
- package/dist/commands/lambda/__tests__/tags.test.js +0 -305
- package/dist/commands/lambda/__tests__/tags.test.js.map +0 -1
- package/dist/commands/lambda/__tests__/uninstrument.test.d.ts +0 -1
- package/dist/commands/lambda/__tests__/uninstrument.test.js +0 -725
- package/dist/commands/lambda/__tests__/uninstrument.test.js.map +0 -1
- package/dist/commands/measure/__tests__/measure.test.d.ts +0 -1
- package/dist/commands/measure/__tests__/measure.test.js +0 -102
- package/dist/commands/measure/__tests__/measure.test.js.map +0 -1
- package/dist/commands/pe-symbols/__tests__/pe.test.d.ts +0 -1
- package/dist/commands/pe-symbols/__tests__/pe.test.js +0 -81
- package/dist/commands/pe-symbols/__tests__/pe.test.js.map +0 -1
- package/dist/commands/react-native/__tests__/codepush.test.d.ts +0 -1
- package/dist/commands/react-native/__tests__/codepush.test.js +0 -196
- package/dist/commands/react-native/__tests__/codepush.test.js.map +0 -1
- package/dist/commands/react-native/__tests__/interfaces.test.d.ts +0 -1
- package/dist/commands/react-native/__tests__/interfaces.test.js +0 -33
- package/dist/commands/react-native/__tests__/interfaces.test.js.map +0 -1
- package/dist/commands/react-native/__tests__/upload.test.d.ts +0 -1
- package/dist/commands/react-native/__tests__/upload.test.js +0 -238
- package/dist/commands/react-native/__tests__/upload.test.js.map +0 -1
- package/dist/commands/react-native/__tests__/utils.test.d.ts +0 -1
- package/dist/commands/react-native/__tests__/utils.test.js +0 -69
- package/dist/commands/react-native/__tests__/utils.test.js.map +0 -1
- package/dist/commands/react-native/__tests__/xcode.test.d.ts +0 -1
- package/dist/commands/react-native/__tests__/xcode.test.js +0 -465
- package/dist/commands/react-native/__tests__/xcode.test.js.map +0 -1
- package/dist/commands/sarif/__tests__/upload.test.d.ts +0 -1
- package/dist/commands/sarif/__tests__/upload.test.js +0 -291
- package/dist/commands/sarif/__tests__/upload.test.js.map +0 -1
- package/dist/commands/sarif/__tests__/utils.test.d.ts +0 -1
- package/dist/commands/sarif/__tests__/utils.test.js +0 -26
- package/dist/commands/sarif/__tests__/utils.test.js.map +0 -1
- package/dist/commands/sarif/__tests__/validation.test.d.ts +0 -1
- package/dist/commands/sarif/__tests__/validation.test.js +0 -19
- package/dist/commands/sarif/__tests__/validation.test.js.map +0 -1
- package/dist/commands/sbom/__tests__/payload.test.d.ts +0 -1
- package/dist/commands/sbom/__tests__/payload.test.js +0 -467
- package/dist/commands/sbom/__tests__/payload.test.js.map +0 -1
- package/dist/commands/sbom/__tests__/validation.test.d.ts +0 -1
- package/dist/commands/sbom/__tests__/validation.test.js +0 -145
- package/dist/commands/sbom/__tests__/validation.test.js.map +0 -1
- package/dist/commands/sourcemaps/__tests__/upload.test.d.ts +0 -1
- package/dist/commands/sourcemaps/__tests__/upload.test.js +0 -270
- package/dist/commands/sourcemaps/__tests__/upload.test.js.map +0 -1
- package/dist/commands/sourcemaps/__tests__/utils.test.d.ts +0 -1
- package/dist/commands/sourcemaps/__tests__/utils.test.js +0 -31
- package/dist/commands/sourcemaps/__tests__/utils.test.js.map +0 -1
- package/dist/commands/span/__tests__/span.test.d.ts +0 -1
- package/dist/commands/span/__tests__/span.test.js +0 -108
- package/dist/commands/span/__tests__/span.test.js.map +0 -1
- package/dist/commands/stepfunctions/__tests__/awsCommands.test.d.ts +0 -1
- package/dist/commands/stepfunctions/__tests__/awsCommands.test.js +0 -210
- package/dist/commands/stepfunctions/__tests__/awsCommands.test.js.map +0 -1
- package/dist/commands/stepfunctions/__tests__/fixtures/aws-resources.d.ts +0 -6
- package/dist/commands/stepfunctions/__tests__/fixtures/aws-resources.js +0 -45
- package/dist/commands/stepfunctions/__tests__/fixtures/aws-resources.js.map +0 -1
- package/dist/commands/stepfunctions/__tests__/fixtures/cli.d.ts +0 -5
- package/dist/commands/stepfunctions/__tests__/fixtures/cli.js +0 -19
- package/dist/commands/stepfunctions/__tests__/fixtures/cli.js.map +0 -1
- package/dist/commands/stepfunctions/__tests__/helpers.test.d.ts +0 -1
- package/dist/commands/stepfunctions/__tests__/helpers.test.js +0 -501
- package/dist/commands/stepfunctions/__tests__/helpers.test.js.map +0 -1
- package/dist/commands/stepfunctions/__tests__/instrument.test.d.ts +0 -1
- package/dist/commands/stepfunctions/__tests__/instrument.test.js +0 -431
- package/dist/commands/stepfunctions/__tests__/instrument.test.js.map +0 -1
- package/dist/commands/stepfunctions/__tests__/uninstrument.test.d.ts +0 -1
- package/dist/commands/stepfunctions/__tests__/uninstrument.test.js +0 -166
- package/dist/commands/stepfunctions/__tests__/uninstrument.test.js.map +0 -1
- package/dist/commands/synthetics/__tests__/api.test.d.ts +0 -1
- package/dist/commands/synthetics/__tests__/api.test.js +0 -416
- package/dist/commands/synthetics/__tests__/api.test.js.map +0 -1
- package/dist/commands/synthetics/__tests__/batch.test.d.ts +0 -1
- package/dist/commands/synthetics/__tests__/batch.test.js +0 -907
- package/dist/commands/synthetics/__tests__/batch.test.js.map +0 -1
- package/dist/commands/synthetics/__tests__/build-and-test.test.d.ts +0 -1
- package/dist/commands/synthetics/__tests__/build-and-test.test.js +0 -91
- package/dist/commands/synthetics/__tests__/build-and-test.test.js.map +0 -1
- package/dist/commands/synthetics/__tests__/cli.test.d.ts +0 -1
- package/dist/commands/synthetics/__tests__/cli.test.js +0 -1407
- package/dist/commands/synthetics/__tests__/cli.test.js.map +0 -1
- package/dist/commands/synthetics/__tests__/deploy-tests-lib.test.d.ts +0 -1
- package/dist/commands/synthetics/__tests__/deploy-tests-lib.test.js +0 -112
- package/dist/commands/synthetics/__tests__/deploy-tests-lib.test.js.map +0 -1
- package/dist/commands/synthetics/__tests__/fixtures.d.ts +0 -123
- package/dist/commands/synthetics/__tests__/fixtures.js +0 -493
- package/dist/commands/synthetics/__tests__/fixtures.js.map +0 -1
- package/dist/commands/synthetics/__tests__/import-tests-lib.test.d.ts +0 -1
- package/dist/commands/synthetics/__tests__/import-tests-lib.test.js +0 -186
- package/dist/commands/synthetics/__tests__/import-tests-lib.test.js.map +0 -1
- package/dist/commands/synthetics/__tests__/mobile.test.d.ts +0 -1
- package/dist/commands/synthetics/__tests__/mobile.test.js +0 -376
- package/dist/commands/synthetics/__tests__/mobile.test.js.map +0 -1
- package/dist/commands/synthetics/__tests__/multilocator.test.d.ts +0 -1
- package/dist/commands/synthetics/__tests__/multilocator.test.js +0 -142
- package/dist/commands/synthetics/__tests__/multilocator.test.js.map +0 -1
- package/dist/commands/synthetics/__tests__/reporters/default.test.d.ts +0 -1
- package/dist/commands/synthetics/__tests__/reporters/default.test.js +0 -410
- package/dist/commands/synthetics/__tests__/reporters/default.test.js.map +0 -1
- package/dist/commands/synthetics/__tests__/reporters/junit.test.d.ts +0 -1
- package/dist/commands/synthetics/__tests__/reporters/junit.test.js +0 -354
- package/dist/commands/synthetics/__tests__/reporters/junit.test.js.map +0 -1
- package/dist/commands/synthetics/__tests__/reporters/mobile/app-upload.test.d.ts +0 -1
- package/dist/commands/synthetics/__tests__/reporters/mobile/app-upload.test.js +0 -232
- package/dist/commands/synthetics/__tests__/reporters/mobile/app-upload.test.js.map +0 -1
- package/dist/commands/synthetics/__tests__/run-tests-lib.test.d.ts +0 -1
- package/dist/commands/synthetics/__tests__/run-tests-lib.test.js +0 -698
- package/dist/commands/synthetics/__tests__/run-tests-lib.test.js.map +0 -1
- package/dist/commands/synthetics/__tests__/test.test.d.ts +0 -1
- package/dist/commands/synthetics/__tests__/test.test.js +0 -268
- package/dist/commands/synthetics/__tests__/test.test.js.map +0 -1
- package/dist/commands/synthetics/__tests__/tunnel/crypto.test.d.ts +0 -1
- package/dist/commands/synthetics/__tests__/tunnel/crypto.test.js +0 -21
- package/dist/commands/synthetics/__tests__/tunnel/crypto.test.js.map +0 -1
- package/dist/commands/synthetics/__tests__/tunnel/tunnel.test.d.ts +0 -1
- package/dist/commands/synthetics/__tests__/tunnel/tunnel.test.js +0 -80
- package/dist/commands/synthetics/__tests__/tunnel/tunnel.test.js.map +0 -1
- package/dist/commands/synthetics/__tests__/tunnel/websocket.test.d.ts +0 -1
- package/dist/commands/synthetics/__tests__/tunnel/websocket.test.js +0 -109
- package/dist/commands/synthetics/__tests__/tunnel/websocket.test.js.map +0 -1
- package/dist/commands/synthetics/__tests__/utils/internal.test.d.ts +0 -1
- package/dist/commands/synthetics/__tests__/utils/internal.test.js +0 -161
- package/dist/commands/synthetics/__tests__/utils/internal.test.js.map +0 -1
- package/dist/commands/synthetics/__tests__/utils/public.test.d.ts +0 -1
- package/dist/commands/synthetics/__tests__/utils/public.test.js +0 -576
- package/dist/commands/synthetics/__tests__/utils/public.test.js.map +0 -1
- package/dist/commands/tag/__tests__/tag.test.d.ts +0 -1
- package/dist/commands/tag/__tests__/tag.test.js +0 -85
- package/dist/commands/tag/__tests__/tag.test.js.map +0 -1
- package/dist/commands/trace/__tests__/trace.test.d.ts +0 -1
- package/dist/commands/trace/__tests__/trace.test.js +0 -48
- package/dist/commands/trace/__tests__/trace.test.js.map +0 -1
- package/dist/commands/unity-symbols/__tests__/upload.test.d.ts +0 -1
- package/dist/commands/unity-symbols/__tests__/upload.test.js +0 -369
- package/dist/commands/unity-symbols/__tests__/upload.test.js.map +0 -1
- package/dist/helpers/__tests__/app.test.d.ts +0 -1
- package/dist/helpers/__tests__/app.test.js +0 -31
- package/dist/helpers/__tests__/app.test.js.map +0 -1
- package/dist/helpers/__tests__/ci.test.d.ts +0 -1
- package/dist/helpers/__tests__/ci.test.js +0 -344
- package/dist/helpers/__tests__/ci.test.js.map +0 -1
- package/dist/helpers/__tests__/env.test.d.ts +0 -1
- package/dist/helpers/__tests__/env.test.js +0 -74
- package/dist/helpers/__tests__/env.test.js.map +0 -1
- package/dist/helpers/__tests__/fips.test.d.ts +0 -1
- package/dist/helpers/__tests__/fips.test.js +0 -30
- package/dist/helpers/__tests__/fips.test.js.map +0 -1
- package/dist/helpers/__tests__/fixtures.d.ts +0 -41
- package/dist/helpers/__tests__/fixtures.js +0 -80
- package/dist/helpers/__tests__/fixtures.js.map +0 -1
- package/dist/helpers/__tests__/flare.test.d.ts +0 -1
- package/dist/helpers/__tests__/flare.test.js +0 -227
- package/dist/helpers/__tests__/flare.test.js.map +0 -1
- package/dist/helpers/__tests__/fs.test.d.ts +0 -1
- package/dist/helpers/__tests__/fs.test.js +0 -189
- package/dist/helpers/__tests__/fs.test.js.map +0 -1
- package/dist/helpers/__tests__/id.test.d.ts +0 -1
- package/dist/helpers/__tests__/id.test.js +0 -24
- package/dist/helpers/__tests__/id.test.js.map +0 -1
- package/dist/helpers/__tests__/plist.test.d.ts +0 -1
- package/dist/helpers/__tests__/plist.test.js +0 -43
- package/dist/helpers/__tests__/plist.test.js.map +0 -1
- package/dist/helpers/__tests__/prompt.test.d.ts +0 -1
- package/dist/helpers/__tests__/prompt.test.js +0 -71
- package/dist/helpers/__tests__/prompt.test.js.map +0 -1
- package/dist/helpers/__tests__/retry.test.d.ts +0 -1
- package/dist/helpers/__tests__/retry.test.js +0 -99
- package/dist/helpers/__tests__/retry.test.js.map +0 -1
- package/dist/helpers/__tests__/tags.test.d.ts +0 -1
- package/dist/helpers/__tests__/tags.test.js +0 -362
- package/dist/helpers/__tests__/tags.test.js.map +0 -1
- package/dist/helpers/__tests__/upload.test.d.ts +0 -1
- package/dist/helpers/__tests__/upload.test.js +0 -231
- package/dist/helpers/__tests__/upload.test.js.map +0 -1
- package/dist/helpers/__tests__/user-provided-git.test.d.ts +0 -1
- package/dist/helpers/__tests__/user-provided-git.test.js +0 -119
- package/dist/helpers/__tests__/user-provided-git.test.js.map +0 -1
- package/dist/helpers/__tests__/utils.test.d.ts +0 -1
- package/dist/helpers/__tests__/utils.test.js +0 -429
- package/dist/helpers/__tests__/utils.test.js.map +0 -1
- package/dist/helpers/__tests__/validation.test.d.ts +0 -1
- package/dist/helpers/__tests__/validation.test.js +0 -25
- package/dist/helpers/__tests__/validation.test.js.map +0 -1
- package/dist/helpers/git/__tests__/format-git-sourcemaps-data.test.d.ts +0 -1
- package/dist/helpers/git/__tests__/format-git-sourcemaps-data.test.js +0 -103
- package/dist/helpers/git/__tests__/format-git-sourcemaps-data.test.js.map +0 -1
- package/dist/helpers/git/__tests__/format-git-span-data.test.d.ts +0 -1
- package/dist/helpers/git/__tests__/format-git-span-data.test.js +0 -121
- package/dist/helpers/git/__tests__/format-git-span-data.test.js.map +0 -1
- package/dist/helpers/git/__tests__/get-git-data.test.d.ts +0 -1
- package/dist/helpers/git/__tests__/get-git-data.test.js +0 -72
- package/dist/helpers/git/__tests__/get-git-data.test.js.map +0 -1
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
const simple_git_1 = __importDefault(require("simple-git"));
|
|
16
|
-
const tags_1 = require("../../tags");
|
|
17
|
-
const format_git_span_data_1 = require("../format-git-span-data");
|
|
18
|
-
jest.mock('simple-git');
|
|
19
|
-
describe('getGitMetadata', () => {
|
|
20
|
-
it('reads git metadata successfully', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
21
|
-
;
|
|
22
|
-
simple_git_1.default.mockImplementation(() => ({
|
|
23
|
-
branch: () => ({ current: 'main' }),
|
|
24
|
-
listRemote: (git) => __awaiter(void 0, void 0, void 0, function* () { return 'repository_url'; }),
|
|
25
|
-
revparse: () => 'commitSHA',
|
|
26
|
-
show: (input) => {
|
|
27
|
-
if (input[1] === '--format=%s') {
|
|
28
|
-
return 'commit message';
|
|
29
|
-
}
|
|
30
|
-
return 'authorName,authorEmail,authorDate,committerName,committerEmail,committerDate';
|
|
31
|
-
},
|
|
32
|
-
}));
|
|
33
|
-
const result = yield (0, format_git_span_data_1.getGitMetadata)();
|
|
34
|
-
expect(result).toEqual({
|
|
35
|
-
[tags_1.GIT_REPOSITORY_URL]: 'repository_url',
|
|
36
|
-
[tags_1.GIT_BRANCH]: 'main',
|
|
37
|
-
[tags_1.GIT_SHA]: 'commitSHA',
|
|
38
|
-
[tags_1.GIT_COMMIT_MESSAGE]: 'commit message',
|
|
39
|
-
[tags_1.GIT_COMMIT_COMMITTER_DATE]: 'committerDate',
|
|
40
|
-
[tags_1.GIT_COMMIT_COMMITTER_EMAIL]: 'committerEmail',
|
|
41
|
-
[tags_1.GIT_COMMIT_COMMITTER_NAME]: 'committerName',
|
|
42
|
-
[tags_1.GIT_COMMIT_AUTHOR_DATE]: 'authorDate',
|
|
43
|
-
[tags_1.GIT_COMMIT_AUTHOR_EMAIL]: 'authorEmail',
|
|
44
|
-
[tags_1.GIT_COMMIT_AUTHOR_NAME]: 'authorName',
|
|
45
|
-
});
|
|
46
|
-
}));
|
|
47
|
-
it('does not crash when git is not available', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
48
|
-
;
|
|
49
|
-
simple_git_1.default.mockImplementation(() => ({
|
|
50
|
-
branch: () => {
|
|
51
|
-
throw new Error();
|
|
52
|
-
},
|
|
53
|
-
listRemote: () => {
|
|
54
|
-
throw new Error();
|
|
55
|
-
},
|
|
56
|
-
revparse: () => {
|
|
57
|
-
throw new Error();
|
|
58
|
-
},
|
|
59
|
-
show: () => {
|
|
60
|
-
throw new Error();
|
|
61
|
-
},
|
|
62
|
-
}));
|
|
63
|
-
const result = yield (0, format_git_span_data_1.getGitMetadata)();
|
|
64
|
-
expect(result).toEqual({});
|
|
65
|
-
}));
|
|
66
|
-
it('scrubs credentials from https repository url', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
67
|
-
;
|
|
68
|
-
simple_git_1.default.mockImplementation(() => ({
|
|
69
|
-
branch: () => ({ current: 'main' }),
|
|
70
|
-
listRemote: (git) => __awaiter(void 0, void 0, void 0, function* () { return 'https://x-oauth-basic:ghp_safe_characters@github.com/datadog/safe-repository.git'; }),
|
|
71
|
-
revparse: () => 'commitSHA',
|
|
72
|
-
show: (input) => {
|
|
73
|
-
if (input[1] === '--format=%s') {
|
|
74
|
-
return 'commit message';
|
|
75
|
-
}
|
|
76
|
-
return 'authorName,authorEmail,authorDate,committerName,committerEmail,committerDate';
|
|
77
|
-
},
|
|
78
|
-
}));
|
|
79
|
-
const result = yield (0, format_git_span_data_1.getGitMetadata)();
|
|
80
|
-
expect(result).toEqual({
|
|
81
|
-
[tags_1.GIT_REPOSITORY_URL]: 'https://github.com/datadog/safe-repository.git',
|
|
82
|
-
[tags_1.GIT_BRANCH]: 'main',
|
|
83
|
-
[tags_1.GIT_SHA]: 'commitSHA',
|
|
84
|
-
[tags_1.GIT_COMMIT_MESSAGE]: 'commit message',
|
|
85
|
-
[tags_1.GIT_COMMIT_COMMITTER_DATE]: 'committerDate',
|
|
86
|
-
[tags_1.GIT_COMMIT_COMMITTER_EMAIL]: 'committerEmail',
|
|
87
|
-
[tags_1.GIT_COMMIT_COMMITTER_NAME]: 'committerName',
|
|
88
|
-
[tags_1.GIT_COMMIT_AUTHOR_DATE]: 'authorDate',
|
|
89
|
-
[tags_1.GIT_COMMIT_AUTHOR_EMAIL]: 'authorEmail',
|
|
90
|
-
[tags_1.GIT_COMMIT_AUTHOR_NAME]: 'authorName',
|
|
91
|
-
});
|
|
92
|
-
}));
|
|
93
|
-
it('scrubs credentials from ssh repository url', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
94
|
-
;
|
|
95
|
-
simple_git_1.default.mockImplementation(() => ({
|
|
96
|
-
branch: () => ({ current: 'main' }),
|
|
97
|
-
listRemote: (git) => __awaiter(void 0, void 0, void 0, function* () { return 'ssh://username@host.xz:port/path/to/repo.git/'; }),
|
|
98
|
-
revparse: () => 'commitSHA',
|
|
99
|
-
show: (input) => {
|
|
100
|
-
if (input[1] === '--format=%s') {
|
|
101
|
-
return 'commit message';
|
|
102
|
-
}
|
|
103
|
-
return 'authorName,authorEmail,authorDate,committerName,committerEmail,committerDate';
|
|
104
|
-
},
|
|
105
|
-
}));
|
|
106
|
-
const result = yield (0, format_git_span_data_1.getGitMetadata)();
|
|
107
|
-
expect(result).toEqual({
|
|
108
|
-
[tags_1.GIT_REPOSITORY_URL]: 'ssh://host.xz:port/path/to/repo.git/',
|
|
109
|
-
[tags_1.GIT_BRANCH]: 'main',
|
|
110
|
-
[tags_1.GIT_SHA]: 'commitSHA',
|
|
111
|
-
[tags_1.GIT_COMMIT_MESSAGE]: 'commit message',
|
|
112
|
-
[tags_1.GIT_COMMIT_COMMITTER_DATE]: 'committerDate',
|
|
113
|
-
[tags_1.GIT_COMMIT_COMMITTER_EMAIL]: 'committerEmail',
|
|
114
|
-
[tags_1.GIT_COMMIT_COMMITTER_NAME]: 'committerName',
|
|
115
|
-
[tags_1.GIT_COMMIT_AUTHOR_DATE]: 'authorDate',
|
|
116
|
-
[tags_1.GIT_COMMIT_AUTHOR_EMAIL]: 'authorEmail',
|
|
117
|
-
[tags_1.GIT_COMMIT_AUTHOR_NAME]: 'authorName',
|
|
118
|
-
});
|
|
119
|
-
}));
|
|
120
|
-
});
|
|
121
|
-
//# sourceMappingURL=format-git-span-data.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"format-git-span-data.test.js","sourceRoot":"","sources":["../../../../src/helpers/git/__tests__/format-git-span-data.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,4DAAkC;AAElC,qCAWmB;AAEnB,kEAAsD;AAEtD,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAA;AAEvB,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC9B,EAAE,CAAC,iCAAiC,EAAE,GAAS,EAAE;QAC/C,CAAC;QAAC,oBAAuB,CAAC,kBAAkB,CAAC,GAAG,EAAE,CAAC,CAAC;YAClD,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,EAAC,OAAO,EAAE,MAAM,EAAC,CAAC;YACjC,UAAU,EAAE,CAAO,GAAQ,EAAmB,EAAE,kDAAC,OAAA,gBAAgB,CAAA,GAAA;YACjE,QAAQ,EAAE,GAAG,EAAE,CAAC,WAAW;YAC3B,IAAI,EAAE,CAAC,KAAe,EAAE,EAAE;gBACxB,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,aAAa,EAAE;oBAC9B,OAAO,gBAAgB,CAAA;iBACxB;gBAED,OAAO,8EAA8E,CAAA;YACvF,CAAC;SACF,CAAC,CAAC,CAAA;QACH,MAAM,MAAM,GAAG,MAAM,IAAA,qCAAc,GAAE,CAAA;QACrC,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC;YACrB,CAAC,yBAAkB,CAAC,EAAE,gBAAgB;YACtC,CAAC,iBAAU,CAAC,EAAE,MAAM;YACpB,CAAC,cAAO,CAAC,EAAE,WAAW;YACtB,CAAC,yBAAkB,CAAC,EAAE,gBAAgB;YACtC,CAAC,gCAAyB,CAAC,EAAE,eAAe;YAC5C,CAAC,iCAA0B,CAAC,EAAE,gBAAgB;YAC9C,CAAC,gCAAyB,CAAC,EAAE,eAAe;YAC5C,CAAC,6BAAsB,CAAC,EAAE,YAAY;YACtC,CAAC,8BAAuB,C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AAO,CAAC,EAAE,WAAW;YACtB,CAAC,yBAAkB,CAAC,EAAE,gBAAgB;YACtC,CAAC,gCAAyB,CAAC,EAAE,eAAe;YAC5C,CAAC,iCAA0B,CAAC,EAAE,gBAAgB;YAC9C,CAAC,gCAAyB,CAAC,EAAE,eAAe;YAC5C,CAAC,6BAAsB,CAAC,EAAE,YAAY;YACtC,CAAC,8BAAuB,CAAC,EAAE,aAAa;YACxC,CAAC,6BAAsB,CAAC,EAAE,YAAY;SACvC,CAAC,CAAA;IACJ,CAAC,CAAA,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const get_git_data_1 = require("../get-git-data");
|
|
13
|
-
describe('git', () => {
|
|
14
|
-
describe('gitRemote', () => {
|
|
15
|
-
const createMockSimpleGit = (remotes, defaultOrigin) => ({
|
|
16
|
-
getRemotes: (arg) => remotes,
|
|
17
|
-
getConfig: (arg) => ({
|
|
18
|
-
// eslint-disable-next-line no-null/no-null
|
|
19
|
-
value: defaultOrigin !== null && defaultOrigin !== void 0 ? defaultOrigin : null,
|
|
20
|
-
}),
|
|
21
|
-
});
|
|
22
|
-
test('should choose the remote named origin if no default is specified', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
23
|
-
const mock = createMockSimpleGit([
|
|
24
|
-
{ name: 'first', refs: { push: 'remote1' } },
|
|
25
|
-
{ name: 'origin', refs: { push: 'remote2' } },
|
|
26
|
-
], undefined);
|
|
27
|
-
const remote = yield (0, get_git_data_1.gitRemote)(mock);
|
|
28
|
-
expect(remote).toBe('remote2');
|
|
29
|
-
}));
|
|
30
|
-
test('should choose the remote named first if that is the default origin', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
31
|
-
const mock = createMockSimpleGit([
|
|
32
|
-
{ name: 'first', refs: { push: 'remote1' } },
|
|
33
|
-
{ name: 'origin', refs: { push: 'remote2' } },
|
|
34
|
-
], 'first');
|
|
35
|
-
const remote = yield (0, get_git_data_1.gitRemote)(mock);
|
|
36
|
-
expect(remote).toBe('remote1');
|
|
37
|
-
}));
|
|
38
|
-
test('should choose the first remote', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
39
|
-
const mock = createMockSimpleGit([
|
|
40
|
-
{ name: 'first', refs: { push: 'remote1' } },
|
|
41
|
-
{ name: 'second', refs: { push: 'remote2' } },
|
|
42
|
-
], undefined);
|
|
43
|
-
const remote = yield (0, get_git_data_1.gitRemote)(mock);
|
|
44
|
-
expect(remote).toBe('remote1');
|
|
45
|
-
}));
|
|
46
|
-
});
|
|
47
|
-
describe('stripCredentials: git protocol', () => {
|
|
48
|
-
test('should return the same value', () => {
|
|
49
|
-
const input = 'git@github.com:user/project.git';
|
|
50
|
-
expect((0, get_git_data_1.stripCredentials)(input)).toBe(input);
|
|
51
|
-
});
|
|
52
|
-
});
|
|
53
|
-
describe('stripCredentials: nothing to remove', () => {
|
|
54
|
-
test('should return the same value', () => {
|
|
55
|
-
const input = 'https://gitlab.com/user/project.git';
|
|
56
|
-
expect((0, get_git_data_1.stripCredentials)(input)).toBe(input);
|
|
57
|
-
});
|
|
58
|
-
});
|
|
59
|
-
describe('stripCredentials: user:pwd', () => {
|
|
60
|
-
test('should return without credentials', () => {
|
|
61
|
-
const input = 'https://token:[MASKED]@gitlab.com/user/project.git';
|
|
62
|
-
expect((0, get_git_data_1.stripCredentials)(input)).toBe('https://gitlab.com/user/project.git');
|
|
63
|
-
});
|
|
64
|
-
});
|
|
65
|
-
describe('stripCredentials: token', () => {
|
|
66
|
-
test('should return without credentials', () => {
|
|
67
|
-
const input = 'https://token@gitlab.com/user/project.git';
|
|
68
|
-
expect((0, get_git_data_1.stripCredentials)(input)).toBe('https://gitlab.com/user/project.git');
|
|
69
|
-
});
|
|
70
|
-
});
|
|
71
|
-
});
|
|
72
|
-
//# sourceMappingURL=get-git-data.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-git-data.test.js","sourceRoot":"","sources":["../../../../src/helpers/git/__tests__/get-git-data.test.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,kDAA2D;AAE3D,QAAQ,CAAC,KAAK,EAAE,GAAG,EAAE;IACnB,QAAQ,CAAC,WAAW,EAAE,GAAG,EAAE;QACzB,MAAM,mBAAmB,GAAG,CAAC,OAAc,EAAE,aAAiC,EAAE,EAAE,CAAC,CAAC;YAClF,UAAU,EAAE,CAAC,GAAY,EAAE,EAAE,CAAC,OAAO;YACrC,SAAS,EAAE,CAAC,GAAW,EAAE,EAAE,CAAC,CAAC;gBAC3B,2CAA2C;gBAC3C,KAAK,EAAE,aAAa,aAAb,aAAa,cAAb,aAAa,GAAI,IAAI;aAC7B,CAAC;SACH,CAAC,CAAA;QAEF,IAAI,CAAC,kEAAkE,EAAE,GAAS,EAAE;YAClF,MAAM,IAAI,GAAG,mBAAmB,CAC9B;gBACE,EAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,EAAC,IAAI,EAAE,SAAS,EAAC,EAAC;gBACxC,EAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAC,IAAI,EAAE,SAAS,EAAC,EAAC;aAC1C,EACD,SAAS,CAC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