socket 1.1.74 → 1.1.75
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 +6 -6
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +3 -3
- package/dist/constants.js.map +1 -1
- package/dist/tsconfig.dts.tsbuildinfo +1 -1
- package/dist/types/commands/scan/create-scan-from-github.d.mts.map +1 -1
- package/dist/types/utils/api.d.mts +9 -0
- package/dist/types/utils/api.d.mts.map +1 -1
- package/dist/types/utils/dlx-binary.d.mts.map +1 -1
- package/dist/types/utils/meow-with-subcommands.d.mts.map +1 -1
- package/dist/types/utils/sdk.d.mts +6 -0
- package/dist/types/utils/sdk.d.mts.map +1 -1
- package/dist/utils.js +184 -8
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -12300,7 +12300,7 @@ async function downloadManifestFile({
|
|
|
12300
12300
|
utils.debugApiRequest('GET', fileUrl);
|
|
12301
12301
|
let downloadUrlResponse;
|
|
12302
12302
|
try {
|
|
12303
|
-
downloadUrlResponse = await
|
|
12303
|
+
downloadUrlResponse = await utils.apiFetch(fileUrl, {
|
|
12304
12304
|
method: 'GET',
|
|
12305
12305
|
headers: {
|
|
12306
12306
|
Authorization: `Bearer ${githubToken}`
|
|
@@ -12348,7 +12348,7 @@ async function streamDownloadWithFetch(localPath, downloadUrl) {
|
|
|
12348
12348
|
|
|
12349
12349
|
try {
|
|
12350
12350
|
utils.debugApiRequest('GET', downloadUrl);
|
|
12351
|
-
response = await
|
|
12351
|
+
response = await utils.apiFetch(downloadUrl);
|
|
12352
12352
|
utils.debugApiResponse('GET', downloadUrl, response.status);
|
|
12353
12353
|
if (!response.ok) {
|
|
12354
12354
|
const errorMsg = `Download failed due to bad server response: ${response.status} ${response.statusText} for ${downloadUrl}`;
|
|
@@ -12435,7 +12435,7 @@ async function getLastCommitDetails({
|
|
|
12435
12435
|
utils.debugApiRequest('GET', commitApiUrl);
|
|
12436
12436
|
let commitResponse;
|
|
12437
12437
|
try {
|
|
12438
|
-
commitResponse = await
|
|
12438
|
+
commitResponse = await utils.apiFetch(commitApiUrl, {
|
|
12439
12439
|
headers: {
|
|
12440
12440
|
Authorization: `Bearer ${githubToken}`
|
|
12441
12441
|
}
|
|
@@ -12539,7 +12539,7 @@ async function getRepoDetails({
|
|
|
12539
12539
|
let repoDetailsResponse;
|
|
12540
12540
|
try {
|
|
12541
12541
|
utils.debugApiRequest('GET', repoApiUrl);
|
|
12542
|
-
repoDetailsResponse = await
|
|
12542
|
+
repoDetailsResponse = await utils.apiFetch(repoApiUrl, {
|
|
12543
12543
|
method: 'GET',
|
|
12544
12544
|
headers: {
|
|
12545
12545
|
Authorization: `Bearer ${githubToken}`
|
|
@@ -12595,7 +12595,7 @@ async function getRepoBranchTree({
|
|
|
12595
12595
|
let treeResponse;
|
|
12596
12596
|
try {
|
|
12597
12597
|
utils.debugApiRequest('GET', treeApiUrl);
|
|
12598
|
-
treeResponse = await
|
|
12598
|
+
treeResponse = await utils.apiFetch(treeApiUrl, {
|
|
12599
12599
|
method: 'GET',
|
|
12600
12600
|
headers: {
|
|
12601
12601
|
Authorization: `Bearer ${githubToken}`
|
|
@@ -15507,5 +15507,5 @@ process.on('unhandledRejection', async (reason, promise) => {
|
|
|
15507
15507
|
// eslint-disable-next-line n/no-process-exit
|
|
15508
15508
|
process.exit(1);
|
|
15509
15509
|
});
|
|
15510
|
-
//# debugId=
|
|
15510
|
+
//# debugId=19d5ebed-3e81-4f49-9ae1-2f169c3b6c3d
|
|
15511
15511
|
//# sourceMappingURL=cli.js.map
|