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

@semantic-ui/component

Package Overview
Dependencies
Maintainers
1
Versions
50
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.23 to 0.0.24

10

package.json

@@ -15,8 +15,8 @@ {

"dependencies": {
"@semantic-ui/query": "^0.0.23",
"@semantic-ui/reactivity": "^0.0.23",
"@semantic-ui/templating": "^0.0.23",
"@semantic-ui/utils": "^0.0.23"
"@semantic-ui/query": "^0.0.24",
"@semantic-ui/reactivity": "^0.0.24",
"@semantic-ui/templating": "^0.0.24",
"@semantic-ui/utils": "^0.0.24"
},
"version": "0.0.23"
"version": "0.0.24"
}

@@ -15,2 +15,6 @@ import { html } from 'lit';

static STRING_REGEXP = /^\'(.*)\'$/;
static OUTER_PARENS_REGEXP = /^\((.+)\)$/;
static EXPRESSION_REGEXP = /('[^']*'|[^\s]+)/g;
constructor({ ast, data, subTemplates, helpers }) {

@@ -183,3 +187,3 @@ this.ast = ast || '';

// if the whole expression is a string we want to return that
const stringRegExp = /^\'(.*)\'$/;
const stringRegExp = LitRenderer.STRING_REGEXP;
const stringMatches = expressionString.match(stringRegExp);

@@ -190,6 +194,14 @@ if (stringMatches && stringMatches.length > 0) {

// converts "foo baz 'wiz bang'" => ["foo", "baz", "'wiz bang'"]
const splitExpressionString = (str) => {
const regex = LitRenderer.EXPRESSION_REGEXP;
const matches = str.match(regex);
return matches || [];
};
// we can safely remove outer parens
expressionString = expressionString.replace(/^\((.+)\)$/, '$1');
expressionString = expressionString.replace(LitRenderer.OUTER_PARENS_REGEXP, '$1');
const expressions = expressionString.split(' ').reverse();
const expressions = splitExpressionString(expressionString).reverse();
let funcArguments = [];

@@ -196,0 +208,0 @@ let result;

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