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

@maverick-js/compiler

Package Overview
Dependencies
Maintainers
1
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maverick-js/compiler - npm Package Compare versions

Comparing version 0.36.10 to 0.37.0

18

dist/index.js

@@ -407,4 +407,4 @@ import { createFunctionCall, setGlobalLogLevel, mapLogLevelStringToNumber, log, logTime, Declarations, format, createImportDeclaration, trimQuotes, trimTrailingSemicolon, createStringLiteral, selfInvokingFunction, escapeDoubleQuotes, createObjectLiteral, trimWhitespace } from './chunks/chunk-SEGPSIF6.js';

continue;
let rawName = attr.name.escapedText, rawNameParts = rawName.split(":"), hasValidNamespace = isValidNamespace(rawNameParts[0]), namespace = hasValidNamespace ? rawNameParts[0] : null, name = hasValidNamespace ? rawNameParts[1] : rawName, isStaticExpr = expression && isStaticExpression(expression), isStaticValue = !initializer || !!literal || isStaticExpr;
const value = !initializer ? meta.component || namespace === "$prop" ? "true" : "" : (literal || expression).getText();
let rawName = attr.name.getText() || "", rawNameParts = rawName.split(":"), hasValidNamespace = isValidNamespace(rawNameParts[0]), namespace = hasValidNamespace ? rawNameParts[0] : null, name = hasValidNamespace ? rawNameParts[1] : rawName, isStaticExpr = expression && isStaticExpression(expression), isStaticValue = !initializer || !!literal || isStaticExpr;
const value = !initializer ? meta.component || namespace === "$prop" ? "true" : '""' : (literal || expression).getText();
const dynamic = !isStaticValue || namespace && !STATICABLE_NAMESPACE.has(namespace) || name === "innerHTML";

@@ -1262,3 +1262,3 @@ const { observable, children } = !isStaticValue && expression ? resolveExpressionChildren(expression) : { observable: false, children: void 0 };

}, insertCustomElement = () => {
var _a, _b;
var _a, _b, _c;
const customEl = customElements.at(-1);

@@ -1268,8 +1268,8 @@ if (!customEl)

if (customEl.children.length) {
props.push(`$children: () => [${customEl.children.join(", ")}]`);
(customEl.props ??= []).push(`$children: () => [${customEl.children.join(", ")}]`);
}
const setup = "..." + createFunctionCall(RUNTIME2.customElement, [
`'${customEl.el.tagName}'`,
props.length > 0 ? `{ ${props.join(", ")} }` : ((_a = customEl.spreads) == null ? void 0 : _a.length) ? "undefined" : null,
((_b = customEl.spreads) == null ? void 0 : _b.length) ? `[${customEl.spreads.join(", ")}]` : null
((_a = customEl.props) == null ? void 0 : _a.length) ? `{ ${customEl.props.join(", ")} }` : ((_b = customEl.spreads) == null ? void 0 : _b.length) ? "undefined" : null,
((_c = customEl.spreads) == null ? void 0 : _c.length) ? `[${customEl.spreads.join(", ")}]` : null
]);

@@ -1353,4 +1353,4 @@ const parent = customElements.at(-2);

commitAttrs();
const customEl = customElements.at(-1);
if (customEl) {
if (element == null ? void 0 : element.tagName.includes("-")) {
const customEl = customElements.at(-1);
if (props.length)

@@ -1360,2 +1360,4 @@ customEl.props = props;

customEl.spreads = $spread;
props = [];
spreads = [];
} else if ($spread.length) {

@@ -1362,0 +1364,0 @@ commit(createFunctionCall(RUNTIME2.spread, [`[${$spread.join(", ")}]`]));

@@ -15,5 +15,5 @@ import { type FilterPattern } from '@rollup/pluginutils';

export type Options = Partial<ResolvedOptions>;
export declare const unplugin: import("unplugin").UnpluginInstance<Partial<ResolvedOptions> | undefined, boolean>;
export declare const vite: (options?: Partial<ResolvedOptions> | undefined) => import("vite").Plugin | import("vite").Plugin[];
export declare const rollup: (options?: Partial<ResolvedOptions> | undefined) => import("rollup").Plugin | import("rollup").Plugin[];
export declare const esbuild: (options?: Partial<ResolvedOptions> | undefined) => import("unplugin").EsbuildPlugin;
export declare const unplugin: import("unplugin").UnpluginInstance<Partial<ResolvedOptions>, boolean>;
export declare const vite: (options: Partial<ResolvedOptions>) => import("vite").Plugin | import("vite").Plugin[];
export declare const rollup: (options: Partial<ResolvedOptions>) => import("rollup").Plugin | import("rollup").Plugin[];
export declare const esbuild: (options: Partial<ResolvedOptions>) => import("unplugin").EsbuildPlugin;

@@ -5,3 +5,3 @@ {

"license": "MIT",
"version": "0.36.10",
"version": "0.37.0",
"type": "module",

@@ -66,10 +66,4 @@ "types": "dist/types/index.d.ts",

"exports": {
".": {
"require": "./dist/index.cjs",
"default": "./dist/index.js"
},
"./analyze": {
"require": "./dist/analyze.cjs",
"default": "./dist/analyze.js"
},
".": "./dist/index.js",
"./analyze": "./dist/analyze.js",
"./cli.js": "./cli.js",

@@ -76,0 +70,0 @@ "./package.json": "./package.json"

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