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

@cocreate/utils

Package Overview
Dependencies
Maintainers
1
Versions
266
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cocreate/utils - npm Package Compare versions

Comparing version 1.1.24 to 1.1.25

7

CHANGELOG.md

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

## [1.1.25](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.1.24...v1.1.25) (2021-10-04)
### Bug Fixes
* relocated matchConfig to @cocreate/element-config ([0ff7505](https://github.com/CoCreate-app/CoCreate-utils/commit/0ff7505e6c38727179d3d39221551c294926e6e4))
## [1.1.24](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.1.23...v1.1.24) (2021-10-02)

@@ -2,0 +9,0 @@

4

package.json
{
"name": "@cocreate/utils",
"version": "1.1.24",
"version": "1.1.25",
"description": "A simple utils component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API.",

@@ -64,4 +64,4 @@ "keywords": [

"dependencies": {
"@cocreate/docs": "^1.2.25"
"@cocreate/docs": "^1.2.26"
}
}

@@ -9,12 +9,2 @@ /*globals DOMParser*/

export function* configMatch(elementConfig, element) {
for (let config of elementConfig) {
// if (!Array.isArray(config.selector))
// config.selector = [config.selector];
if (config.selector && element.matches(config.selector)) yield config;
}
return;
}
export function parseTextToHtml(text) {

@@ -54,3 +44,2 @@ let doc = new DOMParser().parseFromString(text, "text/html");

// export function computeStyles(el, properties) {

@@ -65,2 +54,14 @@ // let computed = window.getComputedStyle(el);

// function checkParent(element, selectors){
// let parentElement;
// do {
// parentElement = element.parentElement.closest(selectors);
// if(parentElement) {
// element = parentElement;
// } else {
// return element;
// }
// } while (parentElement);
// }
export default {

@@ -67,0 +68,0 @@ parseTextToHtml,

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