Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ebay/ebayui-core

Package Overview
Dependencies
Maintainers
10
Versions
471
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ebay/ebayui-core - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

dist/components/ebay-select/examples/3-nested-options/template.marko

30

dist/common/transformer/index.js

@@ -1,2 +0,2 @@

"use strict";
'use strict';

@@ -13,17 +13,23 @@ /**

var parentTag = el.tagName;
el.body.forEach(function (child) {
var childTag = child.tagName;
// find the matching tag based on the child tag name of
// the children matching the given tagName
if (childTag && childTag.indexOf(parentTag + "-") === 0) {
var outputTag = parentTag + ":" + childTag.slice(parentTag.length + 1);
var nestedTag = context.createNodeForEl(outputTag, child.getAttributes());
nestedTag.body = child.body;
child.replaceWith(nestedTag);
// walk the tree
var walker = context.createWalker({
enter: function enter(node) {
var childTag = node.tagName;
// find the matching tag based on the child tag name of
// the children matching the given tagName
if (node.type === 'HtmlElement' && node.tagName.indexOf(parentTag + '-') === 0) {
var outputTag = parentTag + ':' + childTag.slice(parentTag.length + 1);
var nestedTag = context.createNodeForEl(outputTag, node.getAttributes());
nestedTag.body = node.body;
node.replaceWith(nestedTag);
walker.skip();
}
}
});
return child;
});
walker.walk(el);
}
module.exports = transform;

2

package.json
{
"name": "@ebay/ebayui-core",
"version": "0.1.1",
"version": "0.1.2",
"scripts": {

@@ -5,0 +5,0 @@ "installMarkoV3": "yarn add marko@^3 marko-widgets@^6 -D",

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