add back param parsing function
Signed-off-by: Meredith Lancaster <malancas@github.com>
This commit is contained in:
1 parent
3292a4a180
commit
30b6f098fb
1 file changed
+10
@@ -70,3 +70,13 @@ export async function createStorageRecord(options: StorageRecordOptions): Promis
|
|||||||
throw new Error(`Failed to persist storage record: ${message}`)
|
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,
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in new issue
Block a user