Skip to content

Commit 23852ca

Browse files
Rename indexUrls to index_urls
Co-Authored-By: Nicholas Bollweg <[email protected]>
1 parent c04d84f commit 23852ca

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/pyodide-kernel-extension/schema/kernel.v0.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"description": "Default options to pass to piplite.install",
3131
"default": {},
3232
"properties": {
33-
"indexUrls": {
33+
"index_urls": {
3434
"type": "array",
3535
"items": {
3636
"type": "string",

packages/pyodide-kernel-extension/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const kernel: JupyterLiteServerPlugin<void> = {
6161
const pipliteInstallDefaultOptions = config.pipliteInstallDefaultOptions || {};
6262

6363
// Parse any configured index URLs
64-
const indexUrls = pipliteInstallDefaultOptions.indexUrls || [];
64+
const index_urls = pipliteInstallDefaultOptions.index_urls || [];
6565

6666
for (const [key, value] of Object.entries(loadPyodideOptions)) {
6767
if (key.endsWith('URL') && typeof value === 'string') {
@@ -104,7 +104,7 @@ const kernel: JupyterLiteServerPlugin<void> = {
104104
loadPyodideOptions,
105105
contentsManager,
106106
pipliteInstallDefaultOptions: {
107-
indexUrls,
107+
index_urls,
108108
...pipliteInstallDefaultOptions,
109109
},
110110
});

packages/pyodide-kernel/src/tokens.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export namespace IPyodideWorkerKernel {
5858
/**
5959
* Base URLs of extra indices to use
6060
*/
61-
indexUrls?: string[];
61+
index_urls?: string[];
6262

6363
/**
6464
* Any additional piplite install options

0 commit comments

Comments
 (0)