lucid-package 0.0.42 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lucid-package",
3
- "version": "0.0.42",
3
+ "version": "0.0.43",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -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'];