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

@semantic-ui/component

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@semantic-ui/component - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

18

package.json
{
"name": "@semantic-ui/component",
"version": "0.0.4",
"version": "0.0.5",
"type": "module",

@@ -15,16 +15,8 @@ "main": "src/index.js",

},
"scripts": {
"publish": "wireit"
},
"wireit": {
"publish": {
"command": "npm publish"
}
},
"dependencies": {
"@semantic-ui/query": "latest",
"@semantic-ui/reactivity": "latest",
"@semantic-ui/templating": "latest",
"@semantic-ui/utils": "latest"
"@semantic-ui/query": "^0.0.1",
"@semantic-ui/reactivity": "^0.0.1",
"@semantic-ui/templating": "^0.0.1",
"@semantic-ui/utils": "^0.0.1"
}
}

@@ -7,3 +7,3 @@ import { nothing, noChange } from 'lit';

import { Reaction } from '@semantic-ui/reactivity';
import { hashCode, clone, isEqual, each, isObject, isString } from '@semantic-ui/utils';
import { hashCode, clone, isEqual, each, isPlainObject, isString } from '@semantic-ui/utils';

@@ -63,4 +63,4 @@ const generateMap = (list, start, end) => {

let items = this.eachCondition.over() || [];
items = items.map((item) => {
if (isObject(item)) {
items = items.map((item, index) => {
if (isPlainObject(item) && !this.getItemID(item, index)) {
item._hash = hashCode(item);

@@ -90,3 +90,3 @@ }

getItemID(item, index) {
if (isObject(item)) {
if (isPlainObject(item)) {
return item._id || item.id || item.key || item.hash || item._hash || index;

@@ -93,0 +93,0 @@ }

export { getText } from '@semantic-ui/utils';
export { adoptStylesheet } from './helpers/adopt-stylesheet.js';
export { scopeStyles } from './helpers/scope-styles.js';
export { extractComponentSpec } from './helpers/extract-component-spec.js';
export { extractCSS } from './helpers/extract-css.js';
export { createComponent } from './create-component.js';

@@ -6,0 +8,0 @@ export { WebComponentBase } from './web-component.js';

@@ -390,7 +390,7 @@ import { LitElement } from 'lit';

// Rendered DOM (either shadow or regular)
$(selector, root = this?.renderRoot || this.shadowRoot) {
$(selector, { root = this?.renderRoot || this.shadowRoot} = {}) {
if (!root) {
console.error('Cannot query DOM until element has rendered.');
}
return $(selector, root);
return $(selector, { root });
}

@@ -400,3 +400,3 @@

$$(selector) {
return $(selector, this.originalDOM.content);
return $(selector, { root: this.originalDOM.content });
}

@@ -403,0 +403,0 @@

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