lucid-package 0.0.41 → 0.0.43
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/package.json +1 -1
- package/src/editorextension.js +16 -0
- package/src/packagemanifest.d.ts +1 -0
- package/src/packagemanifest.js +3 -0
package/package.json
CHANGED
package/src/editorextension.js
CHANGED
|
@@ -133,6 +133,22 @@ async function debugEditorExtension(extensionNames, quiet = false) {
|
|
|
133
133
|
app.get('/editorextensions', async (req, res) => {
|
|
134
134
|
res.send(await Promise.all(extensionNames.map((name) => getRawEditorExtension(name))));
|
|
135
135
|
});
|
|
136
|
+
app.get('/settings', async (req, res) => {
|
|
137
|
+
var _a;
|
|
138
|
+
const manifest = await (0, packagemanifest_1.readManifest)('local');
|
|
139
|
+
const settings = (_a = manifest.settings) !== null && _a !== void 0 ? _a : [];
|
|
140
|
+
res.send(JSON.stringify(settings.map((setting, index) => {
|
|
141
|
+
return {
|
|
142
|
+
'Id': '__local__' + index,
|
|
143
|
+
'PackageVersionId': '__local__',
|
|
144
|
+
'Name': setting.name,
|
|
145
|
+
'Order': index,
|
|
146
|
+
'Label': setting.label,
|
|
147
|
+
'Description': setting.description,
|
|
148
|
+
'DataType': setting.type,
|
|
149
|
+
};
|
|
150
|
+
})));
|
|
151
|
+
});
|
|
136
152
|
app.get('/oauthCredentials/:name', async (req, res) => {
|
|
137
153
|
var _a;
|
|
138
154
|
const name = req.params['name'];
|
package/src/packagemanifest.d.ts
CHANGED
package/src/packagemanifest.js
CHANGED
|
@@ -119,6 +119,9 @@ function validateManifestOrThrow(manifest) {
|
|
|
119
119
|
if (provider['grantType'] === 'clientCredentials' && provider['authorizationUrl']) {
|
|
120
120
|
throw new Error('manifest.json: OAuth provider "authorizationUrl" must not be provided when grantType is "clientCredentials"');
|
|
121
121
|
}
|
|
122
|
+
if (provider['grantType'] === 'clientCredentials' && provider['usePkce']) {
|
|
123
|
+
throw new Error('manifest.json: OAuth provider "usePkce" must not be provided when grantType is "clientCredentials"');
|
|
124
|
+
}
|
|
122
125
|
if (!(0, checks_1.isString)(provider['tokenUrl'])) {
|
|
123
126
|
throw new Error('manifest.json: OAuth provider "tokenUrl" must be a string');
|
|
124
127
|
}
|