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

@designbycosmic/cosmic-unwidower

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@designbycosmic/cosmic-unwidower - npm Package Compare versions

Comparing version 0.2.4 to 0.2.5

15

dist/UnWidowerReactChildren.js

@@ -86,6 +86,6 @@ "use strict";

if (Array.isArray(nodes)) {
return nodes.map(function (node) {
return nodes.reduce(function (node) {
return iterate(node);
});
} // iterate over array/object
} // iterate over object

@@ -105,9 +105,8 @@

if (typeof props[prop] !== "undefined" && prop === "children") {
// console.log(childNodes);
if (Array.isArray(props[prop])) {
newNodes.props[prop] = iterate(props[prop]);
if (Array.isArray(props.children)) {
newNodes.props.children = iterate(props.children);
}
if (_typeof(props[prop]) === "object") {
newNodes.props[prop] = iterate(props[prop]);
if (_typeof(props.children) === "object") {
newNodes.props.children = iterate(props.children);
}

@@ -146,2 +145,2 @@ } else {

exports["default"] = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9VbldpZG93ZXJSZWFjdENoaWxkcmVuLmpzIl0sIm5hbWVzIjpbIlVuV2lkb3dlclJlYWN0Q2hpbGRyZW4iLCJSZWFjdCIsIm1lbW8iLCJjaGlsZHJlbiIsImNvbmZpZyIsImRlZmF1bHRDb25maWciLCJtaW5Xb3JkcyIsIm1heExhc3RXb3JkTGVuZ3RoIiwibWF4UGVudWx0V29yZExlbmd0aCIsIm1heEFudGVwZW51bHRXb3JkTGVuZ3RoIiwibWF4TGFzdFdvcmRMZW5ndGhUd28iLCJtYXhQZW51bHRXb3JkTGVuZ3RoVHdvIiwibWVyZ2VkQ29uZmlnIiwidW5XaWRvd1N0cmluZyIsInN0cmluZyIsIml0ZXJhdGUiLCJub2RlcyIsIkFycmF5IiwiaXNBcnJheSIsIm1hcCIsI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VyYXRlIGFycmF5IGl0ZW1zIGlmIGFycmF5XG4gICAgICBpZiAoQXJyYXkuaXNBcnJheShub2RlcykpIHtcbiAgICAgICAgcmV0dXJuIG5vZGVzLm1hcChub2RlID0+IHtcbiAgICAgICAgICByZXR1cm4gaXRlcmF0ZShub2RlKTtcbiAgICAgICAgfSk7XG4gICAgICB9XG4gICAgICAvLyBpdGVyYXRlIG92ZXIgYXJyYXkvb2JqZWN0XG4gICAgICBpZiAodHlwZW9mIG5vZGVzID09PSBcIm9iamVjdFwiKSB7XG4gICAgICAgIC8vIGNyZWF0ZSBuZXcgb2JqZWN0IGZvciBpdGVyYXRlZCBpdGVtc1xuICAgICAgICBjb25zdCBuZXdOb2RlcyA9IHt9O1xuICAgICAgICAvLyBsb29wIHRocm91Z2ggb2JqZWN0IHRvIGJ1aWxkIG5ldyBpdGVtXG4gICAgICAgIE9iamVjdC5rZXlzKG5vZGVzKS5tYXAoa2V5ID0+IHtcbiAgICAgICAgICBpZiAoa2V5ID09PSBcInByb3BzXCIpIHtcbiAgICAgICAgICAgIG5ld05vZGVzLnByb3BzID0ge307XG4gICAgICAgICAgICBjb25zdCBwcm9wcyA9IG5vZGVzW2tleV07XG4gICAgICAgICAgICBpZiAodHlwZW9mIHByb3BzICE9PSBcInVuZGVmaW5lZFwiKSB7XG4gICAgICAgICAgICAgIHJldHVybiBPYmplY3Qua2V5cyhwcm9wcykubWFwKHByb3AgPT4ge1xuICAgICAgICAgICAgICAgIGlmICh0eXBlb2YgcHJvcHNbcHJvcF0gIT09IFwidW5kZWZpbmVkXCIgJiYgcHJvcCA9PT0gXCJjaGlsZHJlblwiKSB7XG4gICAgICAgICAgICAgICAgICAvLyBjb25zb2xlLmxvZyhjaGlsZE5vZGVzKTtcbiAgICAgICAgICAgICAgICAgIGlmIChBcnJheS5pc0FycmF5KHByb3BzW3Byb3BdKSkge1xuICAgICAgICAgICAgICAgICAgICBuZXdOb2Rlcy5wcm9wc1twcm9wXSA9IGl0ZXJhdGUocHJvcHNbcHJvcF0pO1xuICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgaWYgKHR5cGVvZiBwcm9wc1twcm9wXSA9PT0gXCJvYmplY3RcIikge1xuICAgICAgICAgICAgICAgICAgICBuZXdOb2Rlcy5wcm9wc1twcm9wXSA9IGl0ZXJhdGUocHJvcHNbcHJvcF0pO1xuICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICBuZXdOb2Rlcy5wcm9wc1twcm9wXSA9IHByb3BzW3Byb3BdO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIG5ld05vZGVzW2tleV0gPSBub2Rlc1trZXldO1xuICAgICAgICAgIH1cbiAgICAgICAgfSk7XG4gICAgICAgIHJldHVybiBuZXdOb2RlcztcbiAgICAgIH1cbiAgICB9XG4gICAgcmV0dXJuIG5vZGVzO1xuICB9O1xuICAvLyByZXR1cm4gY29tcG9uZW50XG4gIHJldHVybiBSZWFjdC5DaGlsZHJlbi5tYXAoY2hpbGRyZW4sIGNoaWxkID0+IHtcbiAgICBjb25zdCB1bldpZG93ZWRDaGlsZCA9IGl0ZXJhdGUoY2hpbGQpO1xuICAgIHJldHVybiB1bldpZG93ZWRDaGlsZDtcbiAgfSk7XG59KTtcblxuVW5XaWRvd2VyUmVhY3RDaGlsZHJlbi5kZWZhdWx0UHJvcHMgPSB7XG4gIGNvbmZpZzogbnVsbCxcbn07XG5cblVuV2lkb3dlclJlYWN0Q2hpbGRyZW4ucHJvcFR5cGVzID0ge1xuICBjaGlsZHJlbjogcHJvcFR5cGVzLm5vZGUuaXNSZXF1aXJlZCxcbiAgY29uZmlnOiBwcm9wVHlwZXMub2JqZWN0T2YocHJvcFR5cGVzLm51bWJlciksXG59O1xuXG5leHBvcnQgZGVmYXVsdCBVbldpZG93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ICAgICAgIG5ld05vZGVzLnByb3BzID0ge307XG4gICAgICAgICAgICBjb25zdCBwcm9wcyA9IG5vZGVzW2tleV07XG4gICAgICAgICAgICBpZiAodHlwZW9mIHByb3BzICE9PSBcInVuZGVmaW5lZFwiKSB7XG4gICAgICAgICAgICAgIHJldHVybiBPYmplY3Qua2V5cyhwcm9wcykubWFwKHByb3AgPT4ge1xuICAgICAgICAgICAgICAgIGlmICh0eXBlb2YgcHJvcHNbcHJvcF0gIT09IFwidW5kZWZpbmVkXCIgJiYgcHJvcCA9PT0gXCJjaGlsZHJlblwiKSB7XG4gICAgICAgICAgICAgICAgICBpZiAoQXJyYXkuaXNBcnJheShwcm9wcy5jaGlsZHJlbikpIHtcbiAgICAgICAgICAgICAgICAgICAgbmV3Tm9kZXMucHJvcHMuY2hpbGRyZW4gPSBpdGVyYXRlKHByb3BzLmNoaWxkcmVuKTtcbiAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgIGlmICh0eXBlb2YgcHJvcHMuY2hpbGRyZW4gPT09IFwib2JqZWN0XCIpIHtcbiAgICAgICAgICAgICAgICAgICAgbmV3Tm9kZXMucHJvcHMuY2hpbGRyZW4gPSBpdGVyYXRlKHByb3BzLmNoaWxkcmVuKTtcbiAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgbmV3Tm9kZXMucHJvcHNbcHJvcF0gPSBwcm9wc1twcm9wXTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBuZXdOb2Rlc1trZXldID0gbm9kZXNba2V5XTtcbiAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgICAgICByZXR1cm4gbmV3Tm9kZXM7XG4gICAgICB9XG4gICAgfVxuICAgIHJldHVybiBub2RlcztcbiAgfTtcbiAgLy8gcmV0dXJuIGNvbXBvbmVudFxuICByZXR1cm4gUmVhY3QuQ2hpbGRyZW4ubWFwKGNoaWxkcmVuLCBjaGlsZCA9PiB7XG4gICAgY29uc3QgdW5XaWRvd2VkQ2hpbGQgPSBpdGVyYXRlKGNoaWxkKTtcbiAgICByZXR1cm4gdW5XaWRvd2VkQ2hpbGQ7XG4gIH0pO1xufSk7XG5cblVuV2lkb3dlclJlYWN0Q2hpbGRyZW4uZGVmYXVsdFByb3BzID0ge1xuICBjb25maWc6IG51bGwsXG59O1xuXG5VbldpZG93ZXJSZWFjdENoaWxkcmVuLnByb3BUeXBlcyA9IHtcbiAgY2hpbGRyZW46IHByb3BUeXBlcy5ub2RlLmlzUmVxdWlyZWQsXG4gIGNvbmZpZzogcHJvcFR5cGVzLm9iamVjdE9mKHByb3BUeXBlcy5udW1iZXIpLFxufTtcblxuZXhwb3J0IGRlZmF1bHQgVW5XaWRvd2VyUmVhY3RDaGlsZHJlbjtcbiJdfQ==
{
"name": "@designbycosmic/cosmic-unwidower",
"version": "0.2.4",
"version": "0.2.5",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "source": "src/index.js",

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