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

@teleporthq/teleport-uidl-resolver

Package Overview
Dependencies
Maintainers
5
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@teleporthq/teleport-uidl-resolver - npm Package Compare versions

Comparing version 0.12.0 to 0.12.1

9

dist/cjs/resolvers/abilities/utils.js

@@ -17,5 +17,5 @@ "use strict";

if (linkInParent === void 0) { linkInParent = false; }
var _a, _b, _c, _d, _e, _f, _g, _h;
var _a, _b, _c, _d, _e, _f;
// TODO_NOW
var _j = node.content, abilities = _j.abilities, children = _j.children, elementType = _j.elementType, semanticType = _j.semanticType;
var _g = node.content, abilities = _g.abilities, children = _g.children, elementType = _g.elementType, semanticType = _g.semanticType;
var linkInNode = linkInParent || !!((_a = abilities) === null || _a === void 0 ? void 0 : _a.link);

@@ -54,5 +54,4 @@ // TODO: think of a way to reuse the traversal that modifies the tree

linkNode.content.children.push(node);
if (((_e = (_d = node.content.style) === null || _d === void 0 ? void 0 : _d.display) === null || _e === void 0 ? void 0 : _e.content) === 'inline' &&
((_h = (_g = (_f = parentNode) === null || _f === void 0 ? void 0 : _f.content.style) === null || _g === void 0 ? void 0 : _g.display) === null || _h === void 0 ? void 0 : _h.content) === 'flex') {
linkNode.content.style = __assign(__assign({}, linkNode.content.style), { display: { type: 'static', content: 'inline-flex' } });
if (((_f = (_e = (_d = parentNode) === null || _d === void 0 ? void 0 : _d.content.style) === null || _e === void 0 ? void 0 : _e.display) === null || _f === void 0 ? void 0 : _f.content) === 'flex') {
linkNode.content.style = __assign(__assign({}, linkNode.content.style), { display: { type: 'static', content: 'contents' } });
}

@@ -59,0 +58,0 @@ return linkNode;

import { StringUtils } from '@teleporthq/teleport-shared';
export const insertLinks = (node, options, linkInParent = false, parentNode) => {
var _a, _b, _c, _d, _e, _f, _g, _h;
var _a, _b, _c, _d, _e, _f;
// TODO_NOW

@@ -39,7 +39,6 @@ const { abilities, children, elementType, semanticType } = node.content;

linkNode.content.children.push(node);
if (((_e = (_d = node.content.style) === null || _d === void 0 ? void 0 : _d.display) === null || _e === void 0 ? void 0 : _e.content) === 'inline' &&
((_h = (_g = (_f = parentNode) === null || _f === void 0 ? void 0 : _f.content.style) === null || _g === void 0 ? void 0 : _g.display) === null || _h === void 0 ? void 0 : _h.content) === 'flex') {
if (((_f = (_e = (_d = parentNode) === null || _d === void 0 ? void 0 : _d.content.style) === null || _e === void 0 ? void 0 : _e.display) === null || _f === void 0 ? void 0 : _f.content) === 'flex') {
linkNode.content.style = {
...linkNode.content.style,
display: { type: 'static', content: 'inline-flex' },
display: { type: 'static', content: 'contents' },
};

@@ -46,0 +45,0 @@ }

{
"name": "@teleporthq/teleport-uidl-resolver",
"version": "0.12.0",
"version": "0.12.1",
"description": "A small package that handles the transition from UIDL to HTML elements and has support for custom mappings.",

@@ -29,8 +29,8 @@ "author": "teleportHQ",

"dependencies": {
"@teleporthq/teleport-shared": "^0.12.0",
"@teleporthq/teleport-types": "^0.12.0",
"@teleporthq/teleport-uidl-builders": "^0.12.0",
"@teleporthq/teleport-shared": "^0.12.1",
"@teleporthq/teleport-types": "^0.12.1",
"@teleporthq/teleport-uidl-builders": "^0.12.1",
"deepmerge": "^4.0.0"
},
"gitHead": "f5ef80f8d15eb5da2bce57dee16ded1513d051b9"
"gitHead": "b915601e01fc0144bffc12c858198c93b29a2a47"
}

@@ -59,9 +59,6 @@ import { StringUtils } from '@teleporthq/teleport-shared'

if (
node.content.style?.display?.content === 'inline' &&
parentNode?.content.style?.display?.content === 'flex'
) {
if (parentNode?.content.style?.display?.content === 'flex') {
linkNode.content.style = {
...linkNode.content.style,
display: { type: 'static', content: 'inline-flex' },
display: { type: 'static', content: 'contents' },
}

@@ -68,0 +65,0 @@ }

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