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

@ebay/ebayui-core

Package Overview
Dependencies
Maintainers
5
Versions
480
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 1.0.5 to 1.0.6-0

24

dist/common/transformer/index.js

@@ -10,24 +10,10 @@ 'use strict'; /**

function transform(el, context) {
var parentTag = el.tagName;
var replacement = context.createNodeForEl(
el.tagName.replace(/^(ebay-[^-]+)-/, '$1:'),
el.getAttributes());
// 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();
}
} });
walker.walk(el);
replacement.body = el.body;
el.replaceWith(replacement);
}
module.exports = transform;

@@ -1,6 +0,3 @@

'use strict';var commonTransformer = require('../../common/transformer');
// Transforms an `icon` attribute into an `<ebay-menu:icon>` tag
'use strict'; // Transforms an `icon` attribute into an `<ebay-menu:icon>` tag
function transform(el, context) {
commonTransformer(el, context);
var builder = context.builder;

@@ -7,0 +4,0 @@ var iconAttribute = el.getAttribute('icon');

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

{"<ebay-breadcrumb>":{"renderer":"./dist/components/ebay-breadcrumb/index.js","transformer":"./dist/common/transformer/index.js","@*":"expression","@html-attributes":"expression","@class":"string","@style":"string","@a11y-heading-text":"string","@a11y-heading-tag":"string","@hijax":"boolean","@items <item>[]":{"@*":"expression","@html-attributes":"expression","@class":"string","@style":"string","@href":"string"}},"<ebay-breadcrumb-item>":{},"<ebay-button>":{"renderer":"./dist/components/ebay-button/index.js","@*":"expression","@html-attributes":"expression","@class":"string","@style":"string","@type":"string","@disabled":"boolean","@partially-disabled":"boolean","@href":"string","@priority":"string","@size":"size","@no-text":"boolean","@fluid":"boolean","@variant":"string"},"<ebay-carousel>":{"renderer":"./dist/components/ebay-carousel/index.js","transformer":"./dist/common/transformer/index.js","@*":"expression","@html-attributes":"expression","@class":"string","@style":"string","@index":"string","@type":"string","@slide":"string","@gap":"string","@autoplay":"boolean","@paused":"boolean","@no-dots":"boolean","@items-per-slide":"string","@a11y-previous-text":"string","@a11y-next-text":"string","@a11y-status-text":"string","@a11y-status-tag":"string","@a11y-current-text":"string","@a11y-other-text":"string","@a11y-play-text":"string","@a11y-pause-text":"string","@items <item>[]":{"@*":"expression","@html-attributes":"expression","@class":"string","@style":"string"}},"<ebay-carousel-item>":{},"<ebay-checkbox>":{"renderer":"./dist/components/ebay-checkbox/index.js","@*":"expression","@html-attributes":"expression","@class":"string","@style":"string","@disabled":"boolean"},"<ebay-combobox>":{"renderer":"./dist/components/ebay-combobox/index.js","transformer":"./dist/common/transformer/index.js","@*":"expression","@html-attributes":"expression","@class":"string","@style":"string","@name":"string","@grow":"boolean","@borderless":"boolean","@disabled":"boolean","@options <option>[]":{"@*":"expression","@html-attributes":"expression","@class":"string","@style":"string","@value":"string","@text":"string","@selected":"boolean"}},"<ebay-combobox-option>":{},"<ebay-dialog>":{"renderer":"./dist/components/ebay-dialog/index.js","@*":"expression","@html-attributes":"expression","@class":"string","@style":"string","@open":"boolean","@type":"string","@focus":"string","@a11y-close-text":"string"},"<ebay-icon>":{"renderer":"./dist/components/ebay-icon/index.js","transformer":"./dist/components/ebay-icon/transformer.js","@*":"expression","@html-attributes":"expression","@class":"string","@style":"string","@type":"string","@name":"string","@a11y-text":"string","@no-skin-classes":"boolean","@_themes":"expression"},"<ebay-menu>":{"renderer":"./dist/components/ebay-menu/index.js","transformer":"./dist/components/ebay-menu/transformer.js","@*":"expression","@html-attributes":"expression","@class":"string","@style":"string","@type":"string","@text":"string","@icon":"string","@a11y-text":"string","@no-toggle-icon":"boolean","@expanded":"boolean","@reverse":"boolean","@fix-width":"boolean","@borderless":"boolean","@size":"string","@priority":"string","@iconTag <icon>":{},"@items <item>[]":{"@*":"expression","@html-attributes":"expression","@class":"string","@style":"string","@href":"string","@type":"string","@checked":"boolean","@current":"boolean"}},"<ebay-menu-item>":{},"<ebay-notice>":{"renderer":"./dist/components/ebay-notice/index.js","@*":"expression","@html-attributes":"expression","@class":"string","@style":"string","@type":"string","@status":"string","@hidden":"boolean","@a11y-heading-text":"string","@a11y-heading-tag":"string","@a11y-close-text":"string","@dismissible":"boolean"},"<ebay-pagination>":{"renderer":"./dist/components/ebay-pagination/index.js","transformer":"./dist/common/transformer/index.js","@*":"expression","@html-attributes":"expression","@class":"string","@style":"string","@a11y-previous-text":"string","@a11y-next-text":"string","@a11y-current-text":"string","@hijax":"boolean","@items <item>[]":{"@*":"expression","@html-attributes":"expression","@class":"string","@style":"string","@current":"boolean","@disabled":"boolean","@href":"string","@type":"string","@role":"string"}},"<ebay-pagination-item>":{},"<ebay-radio>":{"renderer":"./dist/components/ebay-radio/index.js","@*":"expression","@html-attributes":"expression","@class":"string","@style":"string","@disabled":"boolean"},"<ebay-select>":{"renderer":"./dist/components/ebay-select/index.js","transformer":"./dist/common/transformer/index.js","@*":"expression","@html-attributes":"expression","@class":"string","@style":"string","@grow":"boolean","@borderless":"boolean","@disabled":"boolean","@options <option>[]":{"@*":"expression","@html-attributes":"expression","@class":"string","@style":"string","@value":"string","@text":"string","@selected":"boolean"}},"<ebay-select-option>":{},"<ebay-switch>":{"renderer":"./dist/components/ebay-switch/index.js","@*":"expression","@html-attributes":"expression","@class":"string","@style":"string","@disabled":"boolean"},"<ebay-tab>":{"renderer":"./dist/components/ebay-tab/index.js","transformer":"./dist/common/transformer/index.js","@*":"expression","@html-attributes":"expression","@class":"string","@style":"string","@index":"string","@fake":"boolean","@headings <heading>[]":{"@*":"expression","@html-attributes":"expression","@class":"string","@style":"string","@href":"string"},"@panels <panel>[]":{"@*":"expression","@html-attributes":"expression","@class":"string","@style":"string"}},"<ebay-tab-heading>":{},"<ebay-tab-panel>":{},"<ebay-textbox>":{"renderer":"./dist/components/ebay-textbox/index.js","@*":"expression","@html-attributes":"expression","@class":"string","@style":"string","@invalid":"boolean","@fluid":"boolean","@multiline":"boolean"}}
{"<ebay-breadcrumb>":{"renderer":"./dist/components/ebay-breadcrumb/index.js","@*":"expression","@html-attributes":"expression","@class":"string","@style":"string","@a11y-heading-text":"string","@a11y-heading-tag":"string","@hijax":"boolean","@items <item>[]":{"@*":"expression","@html-attributes":"expression","@class":"string","@style":"string","@href":"string"}},"<ebay-breadcrumb-item>":{"transformer":"./dist/common/transformer/index.js"},"<ebay-button>":{"renderer":"./dist/components/ebay-button/index.js","@*":"expression","@html-attributes":"expression","@class":"string","@style":"string","@type":"string","@disabled":"boolean","@partially-disabled":"boolean","@href":"string","@priority":"string","@size":"size","@no-text":"boolean","@fluid":"boolean","@variant":"string"},"<ebay-carousel>":{"renderer":"./dist/components/ebay-carousel/index.js","@*":"expression","@html-attributes":"expression","@class":"string","@style":"string","@index":"string","@type":"string","@slide":"string","@gap":"string","@autoplay":"boolean","@paused":"boolean","@no-dots":"boolean","@items-per-slide":"string","@a11y-previous-text":"string","@a11y-next-text":"string","@a11y-status-text":"string","@a11y-status-tag":"string","@a11y-current-text":"string","@a11y-other-text":"string","@a11y-play-text":"string","@a11y-pause-text":"string","@items <item>[]":{"@*":"expression","@html-attributes":"expression","@class":"string","@style":"string"}},"<ebay-carousel-item>":{"transformer":"./dist/common/transformer/index.js"},"<ebay-checkbox>":{"renderer":"./dist/components/ebay-checkbox/index.js","@*":"expression","@html-attributes":"expression","@class":"string","@style":"string","@disabled":"boolean"},"<ebay-combobox>":{"renderer":"./dist/components/ebay-combobox/index.js","@*":"expression","@html-attributes":"expression","@class":"string","@style":"string","@name":"string","@grow":"boolean","@borderless":"boolean","@disabled":"boolean","@options <option>[]":{"@*":"expression","@html-attributes":"expression","@class":"string","@style":"string","@value":"string","@text":"string","@selected":"boolean"}},"<ebay-combobox-option>":{"transformer":"./dist/common/transformer/index.js"},"<ebay-dialog>":{"renderer":"./dist/components/ebay-dialog/index.js","@*":"expression","@html-attributes":"expression","@class":"string","@style":"string","@open":"boolean","@type":"string","@focus":"string","@a11y-close-text":"string"},"<ebay-icon>":{"renderer":"./dist/components/ebay-icon/index.js","transformer":"./dist/components/ebay-icon/transformer.js","@*":"expression","@html-attributes":"expression","@class":"string","@style":"string","@type":"string","@name":"string","@a11y-text":"string","@no-skin-classes":"boolean","@_themes":"expression"},"<ebay-menu>":{"renderer":"./dist/components/ebay-menu/index.js","transformer":"./dist/components/ebay-menu/transformer.js","@*":"expression","@html-attributes":"expression","@class":"string","@style":"string","@type":"string","@text":"string","@icon":"string","@a11y-text":"string","@no-toggle-icon":"boolean","@expanded":"boolean","@reverse":"boolean","@fix-width":"boolean","@borderless":"boolean","@size":"string","@priority":"string","@iconTag <icon>":{},"@items <item>[]":{"@*":"expression","@html-attributes":"expression","@class":"string","@style":"string","@href":"string","@type":"string","@checked":"boolean","@current":"boolean"}},"<ebay-menu-item>":{"transformer":"./dist/common/transformer/index.js"},"<ebay-notice>":{"renderer":"./dist/components/ebay-notice/index.js","@*":"expression","@html-attributes":"expression","@class":"string","@style":"string","@type":"string","@status":"string","@hidden":"boolean","@a11y-heading-text":"string","@a11y-heading-tag":"string","@a11y-close-text":"string","@dismissible":"boolean"},"<ebay-pagination>":{"renderer":"./dist/components/ebay-pagination/index.js","@*":"expression","@html-attributes":"expression","@class":"string","@style":"string","@a11y-previous-text":"string","@a11y-next-text":"string","@a11y-current-text":"string","@hijax":"boolean","@items <item>[]":{"@*":"expression","@html-attributes":"expression","@class":"string","@style":"string","@current":"boolean","@disabled":"boolean","@href":"string","@type":"string","@role":"string"}},"<ebay-pagination-item>":{"transformer":"./dist/common/transformer/index.js"},"<ebay-radio>":{"renderer":"./dist/components/ebay-radio/index.js","@*":"expression","@html-attributes":"expression","@class":"string","@style":"string","@disabled":"boolean"},"<ebay-select>":{"renderer":"./dist/components/ebay-select/index.js","@*":"expression","@html-attributes":"expression","@class":"string","@style":"string","@grow":"boolean","@borderless":"boolean","@disabled":"boolean","@options <option>[]":{"@*":"expression","@html-attributes":"expression","@class":"string","@style":"string","@value":"string","@text":"string","@selected":"boolean"}},"<ebay-select-option>":{"transformer":"./dist/common/transformer/index.js"},"<ebay-switch>":{"renderer":"./dist/components/ebay-switch/index.js","@*":"expression","@html-attributes":"expression","@class":"string","@style":"string","@disabled":"boolean"},"<ebay-tab>":{"renderer":"./dist/components/ebay-tab/index.js","@*":"expression","@html-attributes":"expression","@class":"string","@style":"string","@index":"string","@fake":"boolean","@headings <heading>[]":{"@*":"expression","@html-attributes":"expression","@class":"string","@style":"string","@href":"string"},"@panels <panel>[]":{"@*":"expression","@html-attributes":"expression","@class":"string","@style":"string"}},"<ebay-tab-heading>":{"transformer":"./dist/common/transformer/index.js"},"<ebay-tab-panel>":{"transformer":"./dist/common/transformer/index.js"},"<ebay-textbox>":{"renderer":"./dist/components/ebay-textbox/index.js","@*":"expression","@html-attributes":"expression","@class":"string","@style":"string","@invalid":"boolean","@fluid":"boolean","@multiline":"boolean"}}
{
"name": "@ebay/ebayui-core",
"version": "1.0.5",
"version": "1.0.6-0",
"description": "Collection of core eBay components; considered to be the building blocks for all composite structures, pages & apps.",

@@ -5,0 +5,0 @@ "scripts": {

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