Socket
Socket
Sign inDemoInstall

@planningcenter/avatar

Package Overview
Dependencies
6
Maintainers
10
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.15 to 0.0.16

2

dist/avatar.js

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

var e,r=(e=require("react"))&&"object"==typeof e&&"default"in e?e.default:e,t=Array.from(new Set([2.5].concat([0,1,2,3,4,5,6,7,8].filter(function(e){return e>=3}),[9]))).sort();exports.SIZES=t,exports.Avatar=function(e){var t=e.as;void 0===t&&(t="span");var a=e.className,c=e.src,n=e.srcSet,s=e.alt,o=e.children,i=function(e,r){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&-1===r.indexOf(a)&&(t[a]=e[a]);return t}(e,["as","className","src","srcSet","alt","children"]),l={src:c,srcSet:n,alt:s},f=r.createElement("img",l);return r.createElement(t,Object.assign({},{className:[a,"Avatar"].join(" ")},i),"function"==typeof o?o(f,l):f)};
var e,r=(e=require("react"))&&"object"==typeof e&&"default"in e?e.default:e;function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function t(e,r){return e(r={exports:{}},r.exports),r.exports}var o=t(function(e,r){Object.defineProperty(r,"__esModule",{value:!0});var n="function"==typeof Symbol&&Symbol.for,t=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,f=n?Symbol.for("react.context"):60110,s=n?Symbol.for("react.async_mode"):60111,l=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,y=n?Symbol.for("react.suspense"):60113,d=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116;function v(e){if("object"==typeof e&&null!==e){var r=e.$$typeof;switch(r){case t:switch(e=e.type){case s:case l:case a:case c:case i:case y:return e;default:switch(e=e&&e.$$typeof){case f:case p:case u:return e;default:return r}}case m:case d:case o:return r}}}function b(e){return v(e)===l}r.typeOf=v,r.AsyncMode=s,r.ConcurrentMode=l,r.ContextConsumer=f,r.ContextProvider=u,r.Element=t,r.ForwardRef=p,r.Fragment=a,r.Lazy=m,r.Memo=d,r.Portal=o,r.Profiler=c,r.StrictMode=i,r.Suspense=y,r.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===l||e===c||e===i||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===d||e.$$typeof===u||e.$$typeof===f||e.$$typeof===p)},r.isAsyncMode=function(e){return b(e)||v(e)===s},r.isConcurrentMode=b,r.isContextConsumer=function(e){return v(e)===f},r.isContextProvider=function(e){return v(e)===u},r.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},r.isForwardRef=function(e){return v(e)===p},r.isFragment=function(e){return v(e)===a},r.isLazy=function(e){return v(e)===m},r.isMemo=function(e){return v(e)===d},r.isPortal=function(e){return v(e)===o},r.isProfiler=function(e){return v(e)===c},r.isStrictMode=function(e){return v(e)===i},r.isSuspense=function(e){return v(e)===y}});n(o);var a=t(function(e,r){"production"!==process.env.NODE_ENV&&function(){Object.defineProperty(r,"__esModule",{value:!0});var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.memo"):60115,d=e?Symbol.for("react.lazy"):60116;function m(e){if("object"==typeof e&&null!==e){var r=e.$$typeof;switch(r){case n:var m=e.type;switch(m){case f:case s:case o:case i:case a:case p:return m;default:var v=m&&m.$$typeof;switch(v){case u:case l:case c:return v;default:return r}}case d:case y:case t:return r}}}var v=f,b=s,g=u,h=c,O=n,w=l,S=o,E=d,j=y,x=t,P=i,T=a,_=p,N=!1;function $(e){return m(e)===s}r.typeOf=m,r.AsyncMode=v,r.ConcurrentMode=b,r.ContextConsumer=g,r.ContextProvider=h,r.Element=O,r.ForwardRef=w,r.Fragment=S,r.Lazy=E,r.Memo=j,r.Portal=x,r.Profiler=P,r.StrictMode=T,r.Suspense=_,r.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===s||e===i||e===a||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===y||e.$$typeof===c||e.$$typeof===u||e.$$typeof===l)},r.isAsyncMode=function(e){return N||(N=!0,function(e,r){if(void 0===r)throw new Error("`lowPriorityWarning(condition, format, ...args)` requires a warning message argument");if(!e){for(var n=arguments.length,t=Array(n>2?n-2:0),o=2;o<n;o++)t[o-2]=arguments[o];(function(e){for(var r=arguments.length,n=Array(r>1?r-1:0),t=1;t<r;t++)n[t-1]=arguments[t];var o=0,a="Warning: "+e.replace(/%s/g,function(){return n[o++]});"undefined"!=typeof console&&console.warn(a);try{throw new Error(a)}catch(e){}}).apply(void 0,[r].concat(t))}}(!1,"The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),$(e)||m(e)===f},r.isConcurrentMode=$,r.isContextConsumer=function(e){return m(e)===u},r.isContextProvider=function(e){return m(e)===c},r.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},r.isForwardRef=function(e){return m(e)===l},r.isFragment=function(e){return m(e)===o},r.isLazy=function(e){return m(e)===d},r.isMemo=function(e){return m(e)===y},r.isPortal=function(e){return m(e)===t},r.isProfiler=function(e){return m(e)===i},r.isStrictMode=function(e){return m(e)===a},r.isSuspense=function(e){return m(e)===p}}()});n(a);var i=t(function(e){e.exports="production"===process.env.NODE_ENV?o:a}),c=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,s=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},n=0;n<10;n++)r["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(r).map(function(e){return r[e]}).join(""))return!1;var t={};return"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},t)).join("")}catch(e){return!1}}()?Object.assign:function(e,r){for(var n,t,o=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),a=1;a<arguments.length;a++){for(var i in n=Object(arguments[a]))u.call(n,i)&&(o[i]=n[i]);if(c){t=c(n);for(var s=0;s<t.length;s++)f.call(n,t[s])&&(o[t[s]]=n[t[s]])}}return o},l="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",p=function(){};if("production"!==process.env.NODE_ENV){var y=l,d={},m=Function.call.bind(Object.prototype.hasOwnProperty);p=function(e){var r="Warning: "+e;"undefined"!=typeof console&&console.error(r);try{throw new Error(r)}catch(e){}}}function v(e,r,n,t,o){if("production"!==process.env.NODE_ENV)for(var a in e)if(m(e,a)){var i;try{if("function"!=typeof e[a]){var c=Error((t||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.");throw c.name="Invariant Violation",c}i=e[a](r,a,t,n,null,y)}catch(e){i=e}if(!i||i instanceof Error||p((t||"React class")+": type specification of "+n+" `"+a+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof i+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),i instanceof Error&&!(i.message in d)){d[i.message]=!0;var u=o?o():"";p("Failed "+n+" type: "+i.message+(null!=u?u:""))}}}v.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(d={})};var b=v,g=Function.call.bind(Object.prototype.hasOwnProperty),h=function(){};function O(){return null}function w(){}function S(){}"production"!==process.env.NODE_ENV&&(h=function(e){var r="Warning: "+e;"undefined"!=typeof console&&console.error(r);try{throw new Error(r)}catch(e){}}),S.resetWarningCache=w;var E=t(function(e){e.exports="production"!==process.env.NODE_ENV?function(e,r){var n="function"==typeof Symbol&&Symbol.iterator,t="@@iterator",o="<<anonymous>>",a={array:f("array"),bool:f("boolean"),func:f("function"),number:f("number"),object:f("object"),string:f("string"),symbol:f("symbol"),any:u(O),arrayOf:function(e){return u(function(r,n,t,o,a){if("function"!=typeof e)return new c("Property `"+a+"` of component `"+t+"` has invalid PropType notation inside arrayOf.");var i=r[n];if(!Array.isArray(i))return new c("Invalid "+o+" `"+a+"` of type `"+y(i)+"` supplied to `"+t+"`, expected an array.");for(var u=0;u<i.length;u++){var f=e(i,u,t,o,a+"["+u+"]",l);if(f instanceof Error)return f}return null})},element:u(function(r,n,t,o,a){var i=r[n];return e(i)?null:new c("Invalid "+o+" `"+a+"` of type `"+y(i)+"` supplied to `"+t+"`, expected a single ReactElement.")}),elementType:u(function(e,r,n,t,o){var a=e[r];return i.isValidElementType(a)?null:new c("Invalid "+t+" `"+o+"` of type `"+y(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")}),instanceOf:function(e){return u(function(r,n,t,a,i){var u;return r[n]instanceof e?null:new c("Invalid "+a+" `"+i+"` of type `"+((u=r[n]).constructor&&u.constructor.name?u.constructor.name:o)+"` supplied to `"+t+"`, expected instance of `"+(e.name||o)+"`.")})},node:u(function(e,r,n,t,o){return p(e[r])?null:new c("Invalid "+t+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")}),objectOf:function(e){return u(function(r,n,t,o,a){if("function"!=typeof e)return new c("Property `"+a+"` of component `"+t+"` has invalid PropType notation inside objectOf.");var i=r[n],u=y(i);if("object"!==u)return new c("Invalid "+o+" `"+a+"` of type `"+u+"` supplied to `"+t+"`, expected an object.");for(var f in i)if(g(i,f)){var s=e(i,f,t,o,a+"."+f,l);if(s instanceof Error)return s}return null})},oneOf:function(e){return Array.isArray(e)?u(function(r,n,t,o,a){for(var i=r[n],u=0;u<e.length;u++)if((f=i)===(s=e[u])?0!==f||1/f==1/s:f!=f&&s!=s)return null;var f,s,l=JSON.stringify(e,function(e,r){return"symbol"===d(r)?String(r):r});return new c("Invalid "+o+" `"+a+"` of value `"+String(i)+"` supplied to `"+t+"`, expected one of "+l+".")}):("production"!==process.env.NODE_ENV&&h(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),O)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&h("Invalid argument supplied to oneOfType, expected an instance of array."),O;for(var r=0;r<e.length;r++){var n=e[r];if("function"!=typeof n)return h("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+m(n)+" at index "+r+"."),O}return u(function(r,n,t,o,a){for(var i=0;i<e.length;i++)if(null==(0,e[i])(r,n,t,o,a,l))return null;return new c("Invalid "+o+" `"+a+"` supplied to `"+t+"`.")})},shape:function(e){return u(function(r,n,t,o,a){var i=r[n],u=y(i);if("object"!==u)return new c("Invalid "+o+" `"+a+"` of type `"+u+"` supplied to `"+t+"`, expected `object`.");for(var f in e){var s=e[f];if(s){var p=s(i,f,t,o,a+"."+f,l);if(p)return p}}return null})},exact:function(e){return u(function(r,n,t,o,a){var i=r[n],u=y(i);if("object"!==u)return new c("Invalid "+o+" `"+a+"` of type `"+u+"` supplied to `"+t+"`, expected `object`.");var f=s({},r[n],e);for(var p in f){var d=e[p];if(!d)return new c("Invalid "+o+" `"+a+"` key `"+p+"` supplied to `"+t+"`.\nBad object: "+JSON.stringify(r[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=d(i,p,t,o,a+"."+p,l);if(m)return m}return null})}};function c(e){this.message=e,this.stack=""}function u(e){if("production"!==process.env.NODE_ENV)var n={},t=0;function a(a,i,u,f,s,p,y){if(f=f||o,p=p||u,y!==l){if(r){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var m=f+":"+u;!n[m]&&t<3&&(h("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+f+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[m]=!0,t++)}}return null==i[u]?a?new c(null===i[u]?"The "+s+" `"+p+"` is marked as required in `"+f+"`, but its value is `null`.":"The "+s+" `"+p+"` is marked as required in `"+f+"`, but its value is `undefined`."):null:e(i,u,f,s,p)}var i=a.bind(null,!1);return i.isRequired=a.bind(null,!0),i}function f(e){return u(function(r,n,t,o,a,i){var u=r[n];return y(u)!==e?new c("Invalid "+o+" `"+a+"` of type `"+d(u)+"` supplied to `"+t+"`, expected `"+e+"`."):null})}function p(r){switch(typeof r){case"number":case"string":case"undefined":return!0;case"boolean":return!r;case"object":if(Array.isArray(r))return r.every(p);if(null===r||e(r))return!0;var o=function(e){var o=r&&(n&&r[n]||r[t]);if("function"==typeof o)return o}();if(!o)return!1;var a,i=o.call(r);if(o!==r.entries){for(;!(a=i.next()).done;)if(!p(a.value))return!1}else for(;!(a=i.next()).done;){var c=a.value;if(c&&!p(c[1]))return!1}return!0;default:return!1}}function y(e){var r=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,r){return"symbol"===e||!!r&&("Symbol"===r["@@toStringTag"]||"function"==typeof Symbol&&r instanceof Symbol)}(r,e)?"symbol":r}function d(e){if(null==e)return""+e;var r=y(e);if("object"===r){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return r}function m(e){var r=d(e);switch(r){case"array":case"object":return"an "+r;case"boolean":case"date":case"regexp":return"a "+r;default:return r}}return c.prototype=Error.prototype,a.checkPropTypes=b,a.resetWarningCache=b.resetWarningCache,a.PropTypes=a,a}(i.isElement,!0):function(){function e(e,r,n,t,o,a){if(a!==l){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function r(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:S,resetWarningCache:w};return n.PropTypes=n,n}()}),j=Array.from(new Set([2.5].concat([0,1,2,3,4,5,6,7,8].filter(function(e){return e>=3}),[9]))).sort();function x(e){var n=e.as;void 0===n&&(n="span");var t=e.className,o=e.src,a=e.srcSet,i=e.alt,c=e.children,u=function(e,r){var n={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&-1===r.indexOf(t)&&(n[t]=e[t]);return n}(e,["as","className","src","srcSet","alt","children"]),f={src:o,srcSet:a,alt:i},s=r.createElement("img",f);return r.createElement(n,Object.assign({},{className:[t,"Avatar"].join(" ")},u),"function"==typeof c?c(s,f):s)}x.propTypes={as:E.element,className:E.string,src:E.string,srcSet:E.string,alt:E.string,chidren:E.oneOfType([E.node,E.func])},exports.SIZES=j,exports.Avatar=x;
//# sourceMappingURL=avatar.js.map
{
"name": "@planningcenter/avatar",
"version": "0.0.15",
"version": "0.0.16",
"description": "A circular image representing one person.",

@@ -34,3 +34,3 @@ "author": "Michael Chan <mijoch@gmail.com>",

},
"gitHead": "f4957da209ebb1ab0a919ea3164772d6c75c548c",
"gitHead": "cee7715dc5b820025cf41329d00cf39935a5360c",
"devDependencies": {

@@ -37,0 +37,0 @@ "microbundle": "^0.11.0",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc