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

@clutch-creator/react-extension

Package Overview
Dependencies
Maintainers
6
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clutch-creator/react-extension - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

2

package.json
{
"name": "@clutch-creator/react-extension",
"version": "0.0.7",
"version": "0.0.8",
"description": "Clutch extension for react components",

@@ -5,0 +5,0 @@ "main": "index.js",

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

module.exports=function(n){var r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}return o.m=n,o.c=r,o.d=function(e,t,n){if(!o.o(e,t))Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){if("undefined"!=typeof Symbol&&Symbol.toStringTag)Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e)t=o(t);if(8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=22)}({14:function(e,t){e.exports=require("@babel/runtime/helpers/asyncToGenerator")},18:function(e,t){e.exports=require("react-dom/server")},19:function(e,t){e.exports=require("@babel/runtime/helpers/typeof")},22:function(e,t,n){"use strict";n.r(t);function c(n){var e="";if(n)if(Array.isArray(n))e=n.map(function(e){var t="";if("string"==typeof e)t=e;else t="".concat(e.name,'="').concat(e.value,'"');return t}).join(" ");else if("object"===f()(n))e=Object.keys(n).map(function(e){var t=n[e];return"".concat(e,'="').concat(t,'"')}).join(" ");return e}function u(e){var t="";if(e&&e.length)t=e.map(function(e){var t="";if("string"==typeof e)t=e;else if(t="<".concat(e.tag," ").concat(c(e.attributes),">"),"meta"!==e.tag&&"link"!==e.tag)t+="".concat(e.content||"","</").concat(e.tag,">");return t}).join("\n");return t}var r=n(5),k=n.n(r),o=n(9),O=n.n(o),a=n(14),i=n.n(a),s=n(18),S=n.n(s),l=n(19),f=n.n(l),P=function(e){var t=e.htmlAttributes,n=e.headElements,r=e.footerElements,o=e.bodyAttributes,a=e.bodyContent;return"<!DOCTYPE html>\n<html ".concat(c(t),'>\n <head>\n <meta charset="UTF-8">\n ').concat(u(n),"\n </head>\n <body ").concat(c(o),">\n <div id='root'>\n ").concat(a,"\n </div>\n ").concat(u(r),"\n </body>\n</html>\n")};function b(){return p.apply(this,arguments)}function p(){return(p=i()(k.a.mark(function e(){var t,n,r,o,a,c,u,i,s,l,f,b,p,d,m,y,h,g,v,x,j,A,E=arguments;return k.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=(t=0<E.length&&void 0!==E[0]?E[0]:{}).element,r=t.pathname,o=t.hooks,a=t.headElements,c=t.footerElements,u=t.bodyAttributes,i=t.htmlAttributes,s=O()(a||[]),l=O()(c||[]),f=Object.assign({},u),b=Object.assign({},i),e.prev=6,p=n||null,d={element:n,pathname:r||"/",headElements:s,footerElements:l,bodyAttributes:f,htmlAttributes:b,addHeadElements:function(e){return s.push.apply(s,O()(e))},addFooterElements:function(e){return l.push.apply(l,O()(e))},addBodyAttributes:function(e){Object.assign(f,e)},addHtmlAttributes:function(e){Object.assign(b,e)}},m=0;case 10:if(!(m<o.length)){e.next=19;break}if((y=o[m]||{}).preRender)return e.next=15,y.preRender(p,d);e.next=16;break;case 15:p=e.sent;case 16:m+=1,e.next=10;break;case 19:h=S.a.renderToString(p),g=0;case 21:if(!(g<o.length)){e.next=30;break}if((v=o[g]||{}).postRender)return e.next=26,v.postRender(d);e.next=27;break;case 26:p=e.sent;case 27:g+=1,e.next=21;break;case 30:return x=P({htmlAttributes:b,headElements:s,footerElements:l,bodyAttributes:f,bodyContent:h}),e.abrupt("return",x);case 34:return e.prev=34,e.t0=e.catch(6),j=e.t0&&e.t0.message&&e.t0.message.replace(/(\r\n|\n|\r)/gm,""),A=e.t0&&e.t0.stack&&e.t0.stack.replace(/(\r\n|\n|\r)/gm,""),e.abrupt("return",P({htmlAttributes:[],headElements:s,footerElements:[].concat(O()(l),[{tag:"script",attributes:{type:"text/javascript"},content:'\n console.warn("Error on SSR: '.concat(j,'");\n console.warn("ssr error stack trace: ').concat(A,'");\n ')}]),bodyAttributes:[],bodyContent:""}));case 39:case"end":return e.stop()}},e,null,[[6,34]])}))).apply(this,arguments)}n.d(t,"default",function(){return b})},5:function(e,t){e.exports=require("@babel/runtime/regenerator")},9:function(e,t){e.exports=require("@babel/runtime/helpers/toConsumableArray")}});
module.exports=function(n){var r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}return o.m=n,o.c=r,o.d=function(e,t,n){if(!o.o(e,t))Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){if("undefined"!=typeof Symbol&&Symbol.toStringTag)Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e)t=o(t);if(8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=22)}({14:function(e,t){e.exports=require("@babel/runtime/helpers/asyncToGenerator")},18:function(e,t){e.exports=require("react-dom/server")},19:function(e,t){e.exports=require("@babel/runtime/helpers/typeof")},22:function(e,t,n){"use strict";n.r(t);function c(n){var e="";if(n)if(Array.isArray(n))e=n.map(function(e){var t="";if("string"==typeof e)t=e;else t="".concat(e.name,'="').concat(e.value,'"');return t}).join(" ");else if("object"===f()(n))e=Object.keys(n).map(function(e){var t=n[e];return"".concat(e,'="').concat(t,'"')}).join(" ");return e}function u(e){var t="";if(e&&e.length)t=e.map(function(e){var t="";if("string"==typeof e)t=e;else if(t="<".concat(e.tag," ").concat(c(e.attributes),">"),"meta"!==e.tag&&"link"!==e.tag)t+="".concat(e.content||"","</").concat(e.tag,">");return t}).join("\n");return t}var r=n(5),E=n.n(r),o=n(9),k=n.n(o),a=n(14),i=n.n(a),s=n(18),O=n.n(s),l=n(19),f=n.n(l),S=function(e){var t=e.htmlAttributes,n=e.headElements,r=e.footerElements,o=e.bodyAttributes,a=e.bodyContent;return"<!DOCTYPE html>\n<html ".concat(c(t),'>\n <head>\n <meta charset="UTF-8">\n ').concat(u(n),"\n </head>\n <body ").concat(c(o),">\n <div id='root'>\n ").concat(a,"\n </div>\n ").concat(u(r),"\n </body>\n</html>\n")};function b(){return p.apply(this,arguments)}function p(){return(p=i()(E.a.mark(function e(){var t,n,r,o,a,c,u,i,s,l,f,b,p,d,m,y,h,g,v,x,j,A=arguments;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=(t=0<A.length&&void 0!==A[0]?A[0]:{}).element,r=t.pathname,o=t.hooks,a=t.headElements,c=t.footerElements,u=t.bodyAttributes,i=t.htmlAttributes,s=k()(a||[]),l=k()(c||[]),f=Object.assign({},u),b=Object.assign({},i),e.prev=6,p={element:n||null,pathname:r||"/",headElements:s,footerElements:l,bodyAttributes:f,htmlAttributes:b,addHeadElements:function(e){return s.push.apply(s,k()(e))},addFooterElements:function(e){return l.push.apply(l,k()(e))},addBodyAttributes:function(e){Object.assign(f,e)},addHtmlAttributes:function(e){Object.assign(b,e)}},d=0;case 9:if(!(d<o.length)){e.next=18;break}if((m=o[d]||{}).preRender)return e.next=14,m.preRender(p);e.next=15;break;case 14:p.element=e.sent;case 15:d+=1,e.next=9;break;case 18:y=O.a.renderToString(p.element),h=0;case 20:if(!(h<o.length)){e.next=28;break}if((g=o[h]||{}).postRender)return e.next=25,g.postRender(p);e.next=25;break;case 25:h+=1,e.next=20;break;case 28:return v=S({htmlAttributes:b,headElements:s,footerElements:l,bodyAttributes:f,bodyContent:y}),e.abrupt("return",v);case 32:return e.prev=32,e.t0=e.catch(6),x=e.t0&&e.t0.message&&e.t0.message.replace(/(\r\n|\n|\r)/gm,""),j=e.t0&&e.t0.stack&&e.t0.stack.replace(/(\r\n|\n|\r)/gm,""),e.abrupt("return",S({htmlAttributes:[],headElements:s,footerElements:[].concat(k()(l),[{tag:"script",attributes:{type:"text/javascript"},content:'\n console.warn("Error on SSR: '.concat(x,'");\n console.warn("ssr error stack trace: ').concat(j,'");\n ')}]),bodyAttributes:[],bodyContent:""}));case 37:case"end":return e.stop()}},e,null,[[6,32]])}))).apply(this,arguments)}n.d(t,"default",function(){return b})},5:function(e,t){e.exports=require("@babel/runtime/regenerator")},9:function(e,t){e.exports=require("@babel/runtime/helpers/toConsumableArray")}});
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