lucid-extension-sdk 0.0.162 → 0.0.163

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.
@@ -21,8 +21,7 @@ class SignatureValidator {
21
21
  * @returns true if the request is valid
22
22
  */
23
23
  validate(body, headers, url) {
24
- const parts = url.split('?');
25
- const params = parts.length > 0 ? parts[1] : '';
24
+ const [, params = ''] = url.split('?');
26
25
  const nonce = headers['x-lucid-rsa-nonce'];
27
26
  const signature = this.dependencies.Buffer.from(headers['x-lucid-signature'], 'base64');
28
27
  const data = this.dependencies.Buffer.from(JSON.stringify(body) + nonce + params);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lucid-extension-sdk",
3
- "version": "0.0.162",
3
+ "version": "0.0.163",
4
4
  "description": "Utility classes for writing Lucid Software editor extensions",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",