lucid-package 0.0.40 → 0.0.42
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
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
|
}
|
package/src/shapelibrary.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.debugShapeLibraries = exports.buildShapeLibrary = exports.getShapeListJson = exports.createEmptyShapeLibrary = void 0;
|
|
4
|
+
const express = require("express");
|
|
4
5
|
const fs = require("fs/promises");
|
|
5
|
-
const
|
|
6
|
-
const package_1 = require("./package");
|
|
6
|
+
const http = require("http");
|
|
7
7
|
const JSZip = require("jszip");
|
|
8
8
|
const path = require("path");
|
|
9
|
-
const
|
|
9
|
+
const filesystemutil_1 = require("./filesystemutil");
|
|
10
|
+
const package_1 = require("./package");
|
|
10
11
|
const packagemanifest_1 = require("./packagemanifest");
|
|
11
|
-
const http = require("http");
|
|
12
12
|
const hjson = require('hjson');
|
|
13
13
|
const ws = require('ws');
|
|
14
14
|
const chokidar = require('chokidar');
|
|
@@ -175,6 +175,7 @@ async function debugShapeLibraries(packagePath = '.') {
|
|
|
175
175
|
'created': new Date().toISOString(),
|
|
176
176
|
'name': libraryDefinition['name'],
|
|
177
177
|
'size': 0,
|
|
178
|
+
'accountId': 0,
|
|
178
179
|
'shapes': 'http://localhost:9901/shapeLibraries/' +
|
|
179
180
|
encodeURIComponent(libraryManifest['name']) +
|
|
180
181
|
'/shapes',
|