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

cem-plugin-better-lit-types

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cem-plugin-better-lit-types - npm Package Compare versions

Comparing version 0.1.10 to 0.1.11

dist/index.d.ts

27

dist/extractor/converter.d.ts

@@ -9,2 +9,5 @@ import { FIELD } from "./types";

};
name: any;
description: any;
default: any;
control: {

@@ -14,5 +17,19 @@ type: string;

options?: undefined;
type: string;
required: boolean;
} | {
table: {
category: FIELD;
defaultValue: {
summary: any;
};
};
control: {
type: string;
};
name: any;
description: any;
default?: undefined;
options?: undefined;
type: string;
name: any;
required: boolean;

@@ -30,5 +47,6 @@ } | {

};
name: any;
description: any;
default?: undefined;
type: string;
name: any;
required: boolean;

@@ -43,7 +61,8 @@ } | {

type: any;
name: any;
description: any;
default?: undefined;
control?: undefined;
options?: undefined;
description: any;
name: any;
required: boolean;
};

@@ -6,2 +6,11 @@ import { FIELD } from "./types";

return undefined;
if (field === FIELD.css)
return {
name: item.name,
description: item.description || undefined,
default: item.default,
control: {
type: 'text',
},
};
if (field === FIELD.slots)

@@ -113,3 +122,3 @@ return {

return true;
if (field === FIELD.slots)
if (field === FIELD.slots || field === FIELD.css)
return false;

@@ -116,0 +125,0 @@ if (privacy !== 'public' && (kind === 'method' || field !== 'attributes'))

2

dist/extractor/index.js

@@ -35,3 +35,3 @@ import { convertToArgs } from './converter';

return;
return Object.assign(Object.assign(Object.assign({}, reduceTypes(declaration.attributes, FIELD.attributes, mapArgs)), reduceTypes(declaration.members, FIELD.properties, mapArgs)), reduceTypes(declaration.slots, FIELD.slots, mapArgs));
return Object.assign(Object.assign(Object.assign(Object.assign({}, reduceTypes(declaration.attributes, FIELD.attributes, mapArgs)), reduceTypes(declaration.members, FIELD.properties, mapArgs)), reduceTypes(declaration.slots, FIELD.slots, mapArgs)), reduceTypes(declaration.cssProperties, FIELD.css, mapArgs));
};

@@ -5,3 +5,4 @@ export declare enum FIELD {

'properties' = "properties",
'methods' = "methods"
'methods' = "methods",
'css' = "css variables"
}

@@ -7,2 +7,3 @@ export var FIELD;

FIELD["methods"] = "methods";
FIELD["css"] = "css variables";
})(FIELD || (FIELD = {}));
{
"name": "cem-plugin-better-lit-types",
"version": "0.1.10",
"version": "0.1.11",
"description": "Updates CEM definitions with Typescript Schema",

@@ -11,2 +11,3 @@ "main": "dist/plugin.js",

},
"types": "./dist/index.d.ts",
"files": [

@@ -13,0 +14,0 @@ "dist"

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