New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

lucid-extension-sdk

Package Overview
Dependencies
Maintainers
2
Versions
338
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lucid-extension-sdk - npm Package Compare versions

Comparing version 0.0.199 to 0.0.200

19

core/validators/validators.js

@@ -15,12 +15,13 @@ "use strict";

function stringEnumValidator(enumMap) {
const enumValues = new Set();
for (const key in enumMap) {
const enumValue = enumMap[key];
if ((0, checks_1.isString)(enumValue)) {
enumValues.add(enumValue);
}
}
// this allows using Set:has on unknown type
const unknownEnumValues = enumValues;
return (x) => {
if (!(0, checks_1.isString)(x)) {
return false;
}
for (const key in enumMap) {
if (enumMap[key] === x) {
return true;
}
}
return false;
return unknownEnumValues.has(x);
};

@@ -27,0 +28,0 @@ }

{
"name": "lucid-extension-sdk",
"version": "0.0.199",
"version": "0.0.200",
"description": "Utility classes for writing Lucid Software editor extensions",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc