add back param parsing function

Signed-off-by: Meredith Lancaster <malancas@github.com>
This commit is contained in:
Meredith Lancaster
2025-12-08 15:39:26 -08:00
parent d1f9584cda
commit 6ec87f46b7
+10
View File
@@ -70,3 +70,13 @@ export async function createStorageRecord(options: StorageRecordOptions): Promis
throw new Error(`Failed to persist storage record: ${message}`)
}
}
const buildRequestParams = (options: StorageRecordOptions) => {
const { registryUrl, artifactUrl, ...rest } = options.packageRegistryOptions
return {
...options.artifactOptions,
registry_url: registryUrl,
artifact_url: artifactUrl,
...rest,
}
}