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

@clutch-creator/bridge

Package Overview
Dependencies
Maintainers
6
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clutch-creator/bridge - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

2

index.js

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

module.exports=function(t){var r={};function o(e){if(r[e])return r[e].exports;var n=r[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=t,o.c=r,o.d=function(e,n,t){if(!o.o(e,n))Object.defineProperty(e,n,{enumerable:!0,get:t})},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(n,e){if(1&e)n=o(n);if(8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var t=Object.create(null);if(o.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var r in n)o.d(t,r,function(e){return n[e]}.bind(null,r));return t},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="",o(o.s=6)}([function(e,n){e.exports=require("lodash/get")},function(e,n){e.exports=require("@babel/runtime/helpers/toConsumableArray")},function(e,n){e.exports=require("@babel/runtime/helpers/defineProperty")},function(e,n){e.exports=require("@babel/runtime/helpers/typeof")},function(e,n){e.exports=require("@babel/runtime/helpers/slicedToArray")},function(e,n){e.exports=require("classnames")},function(e,n,t){"use strict";t.r(n);var r=t(2),a=t.n(r),o=t(4),l=t.n(o),i=t(1),p=t.n(i),c=t(0),d=t.n(c);function y(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);if(e)r=r.filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable});t.push.apply(t,r)}return t}function u(e,n){var t;if("undefined"!=typeof window&&window.CLUTCH_CLASSES_MAP){var r=function(e){var n=e||{},t=n.keys,r=n.rootInstances,o="".concat(n.id);if(t&&t.length)o+=".".concat(t.map(function(e){return e.key}).join("."));if(r&&r.length)o+=".".concat(r.join("."));return o}(e);if(void 0===window.CLUTCH_CLASSES_MAP["".concat(r).concat(n)])t="-clutch-identifier".concat(Object.keys(window.CLUTCH_CLASSES_MAP).length),window.CLUTCH_CLASSES_MAP["".concat(r).concat(n)]=t;else t=window.CLUTCH_CLASSES_MAP["".concat(r).concat(n)]}return t}function f(t){var e=t;if(void 0!==e)e=Object.keys(t).reduce(function(e,n){if(t[n])return[].concat(p()(e),[n]);else return e},[]);return e}function s(e,n){return e&&Array.isArray(e)&&e.includes(n)?!0:void 0}function b(e,n){var t;try{if(void 0!==(t=d()(this,e))&&n)t+=n}catch(e){}return t}function v(e,n,t,r,o,i){var c=d()(n,["selection"],{});if(!o)console.log("Missing parentSelection, this might happen when you dont use useClutch to get properties");var u=o&&o.keys||[];if(void 0!==r&&o)u=[].concat(p()(u),[{componentId:o.id,key:r}]);var f=c.rootInstances||[];if(!c.rootInstances)f=[];else f=[].concat(p()(f),[c.id]);var s=d()(n,["overrides"]);if(i){s=Object.assign({},s);var a=f&&f.length;Object.keys(i).forEach(function(e){var n=e;if(a)n="".concat(f.join("."),".").concat(e);s[n]=[].concat(p()(s[n]||[]),[i[e]])})}return{selection:{id:e,rootInstances:f,keys:u},flowProps:t,overrides:s}}function h(e){var n=e.id,i=e.masterProps,c=e.flowProps,t=e.key,r=e.parentSelection,o=e.props,u=e.overrides,f=function(e){var n,t=d()(e,["clutchProps","selection"]),r=d()(e,["clutchProps","overrides"]);if(t&&r){var o=t.rootInstances||[];n=r["".concat(o.join("."),".").concat(t.id)]}return n}(v(n,d()(i,["clutchProps"],{}),c,t,r,u)),s={};return[].concat(p()(f||[]),[o]).forEach(function(e){s=e(s)}),s=Object.entries(s).reduce(function(e,n){var t=l()(n,2),r=t[0],o=t[1];if(!("function"!=typeof o||o.prototype&&o.prototype.isReactComponent))return function(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};if(e%2)y(Object(t),!0).forEach(function(e){a()(n,e,t[e])});else if(Object.getOwnPropertyDescriptors)Object.defineProperties(n,Object.getOwnPropertyDescriptors(t));else y(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})}return n}({},e,a()({},r,o.bind({masterProps:i,flowProps:c})));else return e},s)}var g=t(5),w=t.n(g).a;function O(e){for(var n=e,t=arguments.length,r=new Array(1<t?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];return r.forEach(function(e){if(void 0!==e)n=e}),n}function m(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return Object.assign.apply(Object,[{}].concat(n))}function j(e,n,t,r,o){var i=t,c=n||{};if(r)c=Object.assign({},c,r);if("function"==typeof t)i=t(c,o,e);else if(void 0===t)i=null;return i}function P(e,n,t){return j.bind(this,n,t,e)}function S(e,n,t){return j.bind(this,n,t,e)()}var C=t(3),A=t.n(C),_=function(){var t=new WeakSet;return function(e,n){if("object"===A()(n)&&null!==n){if(t.has(n))return;t.add(n)}if("function"==typeof n)return n.toString();if("object"===A()(n)&&null!=n&&n.constructor&&n.constructor.name.includes("HTML"))return"<".concat(n.constructor.name,">");else return n}};function M(e,n,t){!function(e){if("development"===process.env.NODE_ENV&&"undefined"!=typeof window){var n=JSON.stringify(e,_());if(window.opener)window.opener.postMessage(n,"*");else window.parent.postMessage(n,"*")}}({type:"changeComponentProp",selection:e,propName:n,value:t})}t.d(n,"getUniqueClassName",function(){return u}),t.d(n,"getVariants",function(){return f}),t.d(n,"hasVariant",function(){return s}),t.d(n,"propertyBind",function(){return b}),t.d(n,"getClutchProps",function(){return v}),t.d(n,"getInstanceProps",function(){return h}),t.d(n,"mClassnames",function(){return w}),t.d(n,"mReplace",function(){return O}),t.d(n,"mAssign",function(){return m}),t.d(n,"renderChildren",function(){return j}),t.d(n,"childrenFn",function(){return P}),t.d(n,"childrenVal",function(){return S}),t.d(n,"changeComponentProp",function(){return M})}]);
module.exports=function(t){var r={};function o(e){if(r[e])return r[e].exports;var n=r[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=t,o.c=r,o.d=function(e,n,t){if(!o.o(e,n))Object.defineProperty(e,n,{enumerable:!0,get:t})},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(n,e){if(1&e)n=o(n);if(8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var t=Object.create(null);if(o.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var r in n)o.d(t,r,function(e){return n[e]}.bind(null,r));return t},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="",o(o.s=6)}([function(e,n){e.exports=require("lodash/get")},function(e,n){e.exports=require("@babel/runtime/helpers/toConsumableArray")},function(e,n){e.exports=require("@babel/runtime/helpers/defineProperty")},function(e,n){e.exports=require("@babel/runtime/helpers/typeof")},function(e,n){e.exports=require("@babel/runtime/helpers/slicedToArray")},function(e,n){e.exports=require("classnames")},function(e,n,t){"use strict";t.r(n);var r=t(2),l=t.n(r),o=t(4),p=t.n(o),i=t(1),d=t.n(i),c=t(0),y=t.n(c);function b(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);if(e)r=r.filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable});t.push.apply(t,r)}return t}function u(e,n){var t;if("undefined"!=typeof window&&window.CLUTCH_CLASSES_MAP){var r=function(e){var n=e||{},t=n.keys,r=n.rootInstances,o="".concat(n.id);if(t&&t.length)o+=".".concat(t.map(function(e){return e.key}).join("."));if(r&&r.length)o+=".".concat(r.join("."));return o}(e);if(void 0===window.CLUTCH_CLASSES_MAP["".concat(r).concat(n)])t="-clutch-identifier".concat(Object.keys(window.CLUTCH_CLASSES_MAP).length),window.CLUTCH_CLASSES_MAP["".concat(r).concat(n)]=t;else t=window.CLUTCH_CLASSES_MAP["".concat(r).concat(n)]}return t}function f(t){var e=t;if(void 0!==e)e=Object.keys(t).reduce(function(e,n){if(t[n])return[].concat(d()(e),[n]);else return e},[]);return e}function s(e,n){return e&&Array.isArray(e)&&e.includes(n)?!0:void 0}function a(e,n){var t;try{if(void 0!==(t=y()(this,e))&&n)t+=n}catch(e){}return t}function v(e,n,t,r,o,i){var c=y()(n,["selection"],{});if(!o)console.log("Missing parentSelection, this might happen when you dont use useClutch to get properties");var u=o&&o.keys||[];if(void 0!==r&&o)u=[].concat(d()(u),[{componentId:o.id,key:r}]);var f=c.rootInstances||[];if(!c.rootInstances)f=[];else f=[].concat(d()(f),[c.id]);var s=y()(n,["overrides"]);if(i){s=Object.assign({},s);var a=f&&f.length;Object.keys(i).forEach(function(e){var n=e;if(a)n="".concat(f.join("."),".").concat(e);s[n]=[].concat(d()(s[n]||[]),[i[e]])})}return{selection:{id:e,rootInstances:f,keys:u},flowProps:t,overrides:s}}function h(e){var n=e.id,i=e.masterProps,c=e.flowProps,t=e.key,r=e.parentSelection,o=e.props,u=e.overrides,f=v(n,y()(i,["clutchProps"],{}),c,t,r,u),s=function(e){var n,t=y()(e,["clutchProps","selection"]),r=y()(e,["clutchProps","overrides"]);if(t&&r){var o=t.rootInstances||[];n=r["".concat(o.join("."),".").concat(t.id)]}return n}(f),a={};return[].concat(d()(s||[]),[o]).forEach(function(e){a=e(a,f.selection)}),a=Object.entries(a).reduce(function(e,n){var t=p()(n,2),r=t[0],o=t[1];if(!("function"!=typeof o||o.prototype&&o.prototype.isReactComponent))return function(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};if(e%2)b(Object(t),!0).forEach(function(e){l()(n,e,t[e])});else if(Object.getOwnPropertyDescriptors)Object.defineProperties(n,Object.getOwnPropertyDescriptors(t));else b(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})}return n}({},e,l()({},r,o.bind({masterProps:i,flowProps:c})));else return e},a)}var g=t(5),w=t.n(g).a;function O(e){for(var n=e,t=arguments.length,r=new Array(1<t?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];return r.forEach(function(e){if(void 0!==e)n=e}),n}function m(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return Object.assign.apply(Object,[{}].concat(n))}function j(e,n,t,r,o){var i=t,c=n||{};if(r)c=Object.assign({},c,r);if("function"==typeof t)i=t(c,o,e);else if(void 0===t)i=null;return i}function P(e,n,t){return j.bind(this,n,t,e)}function S(e,n,t){return j.bind(this,n,t,e)()}var C=t(3),A=t.n(C),_=function(){var t=new WeakSet;return function(e,n){if("object"===A()(n)&&null!==n){if(t.has(n))return;t.add(n)}if("function"==typeof n)return n.toString();if("object"===A()(n)&&null!=n&&n.constructor&&n.constructor.name.includes("HTML"))return"<".concat(n.constructor.name,">");else return n}};function M(e,n,t){!function(e){if("development"===process.env.NODE_ENV&&"undefined"!=typeof window){var n=JSON.stringify(e,_());if(window.opener)window.opener.postMessage(n,"*");else window.parent.postMessage(n,"*")}}({type:"changeComponentProp",selection:e,propName:n,value:t})}t.d(n,"getUniqueClassName",function(){return u}),t.d(n,"getVariants",function(){return f}),t.d(n,"hasVariant",function(){return s}),t.d(n,"propertyBind",function(){return a}),t.d(n,"getClutchProps",function(){return v}),t.d(n,"getInstanceProps",function(){return h}),t.d(n,"mClassnames",function(){return w}),t.d(n,"mReplace",function(){return O}),t.d(n,"mAssign",function(){return m}),t.d(n,"renderChildren",function(){return j}),t.d(n,"childrenFn",function(){return P}),t.d(n,"childrenVal",function(){return S}),t.d(n,"changeComponentProp",function(){return M})}]);
{
"name": "@clutch-creator/bridge",
"version": "2.0.1",
"version": "2.0.2",
"description": "Clutch Bridge",

@@ -5,0 +5,0 @@ "main": "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