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

@teleporthq/teleport-plugin-html-base-component

Package Overview
Dependencies
Maintainers
3
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@teleporthq/teleport-plugin-html-base-component - npm Package Compare versions

Comparing version 0.19.18 to 0.19.19

4

dist/cjs/index.js

@@ -73,3 +73,3 @@ "use strict";

: teleport_plugin_common_1.HASTBuilders.createHTMLNode('div');
return [4 /*yield*/, node_handlers_1.generateHtmlSynatx(uidl.node, templatesLookUp, propDefinitions, stateDefinitions, Object.values(externals).reduce(function (acc, comp) {
return [4 /*yield*/, (0, node_handlers_1.generateHtmlSynatx)(uidl.node, templatesLookUp, propDefinitions, stateDefinitions, Object.values(externals).reduce(function (acc, comp) {
teleport_shared_1.UIDLUtils.setFriendlyOutputOptions(comp);

@@ -104,3 +104,3 @@ comp.name = teleport_shared_1.StringUtils.removeIllegalCharacters(comp.name) || 'AppComponent';

exports.createHTMLBasePlugin = createHTMLBasePlugin;
exports.default = exports.createHTMLBasePlugin();
exports.default = (0, exports.createHTMLBasePlugin)();
//# sourceMappingURL=index.js.map

@@ -69,3 +69,3 @@ "use strict";

default:
throw new teleport_types_1.HTMLComponentGeneratorError("generateHtmlSyntax encountered a node of unsupported type: " + JSON.stringify(node, null, 2) + " ");
throw new teleport_types_1.HTMLComponentGeneratorError("generateHtmlSyntax encountered a node of unsupported type: ".concat(JSON.stringify(node, null, 2), " "));
}

@@ -88,3 +88,3 @@ return [2 /*return*/];

if (!comp_1) {
throw new teleport_types_1.HTMLComponentGeneratorError(elementType + " is not found from the externals. \n\n Received externals " + JSON.stringify(Object.keys(externals), null, 2));
throw new teleport_types_1.HTMLComponentGeneratorError("".concat(elementType, " is not found from the externals. \n\n Received externals ").concat(JSON.stringify(Object.keys(externals), null, 2)));
}

@@ -112,6 +112,6 @@ combinedProps_1 = __assign(__assign({}, propDefinitions), ((comp_1 === null || comp_1 === void 0 ? void 0 : comp_1.propDefinitions) || {}));

lookupTemplate = {};
return [4 /*yield*/, exports.generateHtmlSynatx(comp_1.node, lookupTemplate, propsForInstance, statesForInstance, externals, structure)];
return [4 /*yield*/, (0, exports.generateHtmlSynatx)(comp_1.node, lookupTemplate, propsForInstance, statesForInstance, externals, structure)];
case 1:
compTag = _e.sent();
cssPlugin = teleport_plugin_css_1.createCSSPlugin({
cssPlugin = (0, teleport_plugin_css_1.createCSSPlugin)({
templateChunkName: 'html-template',

@@ -157,3 +157,3 @@ declareDependency: 'import',

child = children_1[_i];
return [4 /*yield*/, exports.generateHtmlSynatx(child, templatesLookUp, propDefinitions, stateDefinitions, externals, structure)];
return [4 /*yield*/, (0, exports.generateHtmlSynatx)(child, templatesLookUp, propDefinitions, stateDefinitions, externals, structure)];
case 5:

@@ -190,3 +190,3 @@ childTag = _e.sent();

mapType: 'component-referenced',
content: teleport_uidl_builders_1.staticNode(getValueFromReference(dynamicVal.id, propDefinitions)),
content: (0, teleport_uidl_builders_1.staticNode)(getValueFromReference(dynamicVal.id, propDefinitions)),
},

@@ -228,3 +228,3 @@ };

}
node.content.style[styleKey] = typeof style === 'string' ? teleport_uidl_builders_1.staticNode(style) : style;
node.content.style[styleKey] = typeof style === 'string' ? (0, teleport_uidl_builders_1.staticNode)(style) : style;
}

@@ -240,3 +240,3 @@ });

String(attrValue.content).length > 1) {
attrValue = teleport_uidl_builders_1.staticNode(attrValue.content + ".html");
attrValue = (0, teleport_uidl_builders_1.staticNode)("".concat(attrValue.content, ".html"));
}

@@ -261,9 +261,9 @@ if (attrValue.type === 'dynamic') {

if (!usedReferenceValue) {
throw new teleport_types_1.HTMLComponentGeneratorError("Definition for " + key + " is missing from " + JSON.stringify(definitions, null, 2));
throw new teleport_types_1.HTMLComponentGeneratorError("Definition for ".concat(key, " is missing from ").concat(JSON.stringify(definitions, null, 2)));
}
if (!usedReferenceValue.hasOwnProperty('defaultValue')) {
throw new teleport_types_1.HTMLComponentGeneratorError("Default value is missing from dynamic reference - " + JSON.stringify(usedReferenceValue, null, 2));
throw new teleport_types_1.HTMLComponentGeneratorError("Default value is missing from dynamic reference - ".concat(JSON.stringify(usedReferenceValue, null, 2)));
}
if (!['string', 'number'].includes(usedReferenceValue === null || usedReferenceValue === void 0 ? void 0 : usedReferenceValue.type)) {
throw new teleport_types_1.HTMLComponentGeneratorError("Attribute is using dynamic value, but received of type " + JSON.stringify(usedReferenceValue, null, 2));
throw new teleport_types_1.HTMLComponentGeneratorError("Attribute is using dynamic value, but received of type ".concat(JSON.stringify(usedReferenceValue, null, 2)));
}

@@ -270,0 +270,0 @@ return String(usedReferenceValue.defaultValue);

@@ -66,3 +66,3 @@ var __assign = (this && this.__assign) || function () {

default:
throw new HTMLComponentGeneratorError("generateHtmlSyntax encountered a node of unsupported type: " + JSON.stringify(node, null, 2) + " ");
throw new HTMLComponentGeneratorError("generateHtmlSyntax encountered a node of unsupported type: ".concat(JSON.stringify(node, null, 2), " "));
}

@@ -84,3 +84,3 @@ return [2 /*return*/];

if (!comp_1) {
throw new HTMLComponentGeneratorError(elementType + " is not found from the externals. \n\n Received externals " + JSON.stringify(Object.keys(externals), null, 2));
throw new HTMLComponentGeneratorError("".concat(elementType, " is not found from the externals. \n\n Received externals ").concat(JSON.stringify(Object.keys(externals), null, 2)));
}

@@ -232,3 +232,3 @@ combinedProps_1 = __assign(__assign({}, propDefinitions), ((comp_1 === null || comp_1 === void 0 ? void 0 : comp_1.propDefinitions) || {}));

String(attrValue.content).length > 1) {
attrValue = staticNode(attrValue.content + ".html");
attrValue = staticNode("".concat(attrValue.content, ".html"));
}

@@ -253,9 +253,9 @@ if (attrValue.type === 'dynamic') {

if (!usedReferenceValue) {
throw new HTMLComponentGeneratorError("Definition for " + key + " is missing from " + JSON.stringify(definitions, null, 2));
throw new HTMLComponentGeneratorError("Definition for ".concat(key, " is missing from ").concat(JSON.stringify(definitions, null, 2)));
}
if (!usedReferenceValue.hasOwnProperty('defaultValue')) {
throw new HTMLComponentGeneratorError("Default value is missing from dynamic reference - " + JSON.stringify(usedReferenceValue, null, 2));
throw new HTMLComponentGeneratorError("Default value is missing from dynamic reference - ".concat(JSON.stringify(usedReferenceValue, null, 2)));
}
if (!['string', 'number'].includes(usedReferenceValue === null || usedReferenceValue === void 0 ? void 0 : usedReferenceValue.type)) {
throw new HTMLComponentGeneratorError("Attribute is using dynamic value, but received of type " + JSON.stringify(usedReferenceValue, null, 2));
throw new HTMLComponentGeneratorError("Attribute is using dynamic value, but received of type ".concat(JSON.stringify(usedReferenceValue, null, 2)));
}

@@ -262,0 +262,0 @@ return String(usedReferenceValue.defaultValue);

{
"name": "@teleporthq/teleport-plugin-html-base-component",
"version": "0.19.18",
"version": "0.19.19",
"description": "A plugin for handling the skeleton/baseline of a base html component",

@@ -27,9 +27,9 @@ "author": "teleportHQ",

"dependencies": {
"@teleporthq/teleport-plugin-common": "^0.19.18",
"@teleporthq/teleport-plugin-css": "^0.19.18",
"@teleporthq/teleport-shared": "^0.19.17",
"@teleporthq/teleport-types": "^0.19.17",
"@teleporthq/teleport-uidl-builders": "^0.19.17"
"@teleporthq/teleport-plugin-common": "^0.19.19",
"@teleporthq/teleport-plugin-css": "^0.19.19",
"@teleporthq/teleport-shared": "^0.19.19",
"@teleporthq/teleport-types": "^0.19.19",
"@teleporthq/teleport-uidl-builders": "^0.19.19"
},
"gitHead": "f286e365fd8a9936f89952ee6f84e33b192c3dc7"
"gitHead": "154a51920ecfcdec93d08b9db2911a2969b61d5c"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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