ld-react-components
Advanced tools
Comparing version 1.0.53 to 1.0.54
@@ -1,1 +0,1 @@ | ||
module.exports = ['@storybook/addon-docs/react/preset']; | ||
export default '@storybook/addon-docs/react/preset'; |
@@ -1,2 +0,3 @@ | ||
var LDApi = require('../dist/LaunchDarklyClient/index.js'); | ||
module.exports = new LDApi(); | ||
const LDApi = require('../dist'); | ||
export default new LDApi(); |
@@ -0,1 +1,14 @@ | ||
# v1.0.54 (Mon Oct 28 2019) | ||
#### 🐛 Bug Fix | ||
- feat(build): use webpack to compile build [#57](https://github.com/intuit/LD-React-Components/pull/57) ([@Hreherch](https://github.com/Hreherch) [@poorpaddy](https://github.com/poorpaddy)) | ||
#### Authors: 2 | ||
- Bennett Hreherchuk ([@Hreherch](https://github.com/Hreherch)) | ||
- Dave Bergschneider ([@poorpaddy](https://github.com/poorpaddy)) | ||
--- | ||
# v1.0.53 (Mon Oct 28 2019) | ||
@@ -2,0 +15,0 @@ |
@@ -1,27 +0,1 @@ | ||
"use strict"; | ||
var _FeatureDefault = _interopRequireDefault(require("./FeatureDefault")); | ||
var _FeatureTrue = _interopRequireDefault(require("./FeatureTrue")); | ||
var _FeatureSwitch = _interopRequireDefault(require("./FeatureSwitch")); | ||
var _FeatureCase = _interopRequireDefault(require("./FeatureCase")); | ||
var _FeatureFalse = _interopRequireDefault(require("./FeatureFalse")); | ||
var _FeatureFlag = _interopRequireDefault(require("./FeatureFlag")); | ||
var _LaunchDarklyClient = _interopRequireDefault(require("./LaunchDarklyClient")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
module.exports = { | ||
FeatureDefault: _FeatureDefault["default"], | ||
FeatureTrue: _FeatureTrue["default"], | ||
FeatureSwitch: _FeatureSwitch["default"], | ||
FeatureFalse: _FeatureFalse["default"], | ||
FeatureFlag: _FeatureFlag["default"], | ||
FeatureCase: _FeatureCase["default"], | ||
launchDarklyClient: _LaunchDarklyClient["default"] | ||
}; | ||
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"));else if("function"==typeof define&&define.amd)define(["react"],t);else{var n="object"==typeof exports?t(require("react")):t(e.react);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(this,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=25)}([function(t,n){t.exports=e},function(e,t,n){"use strict";var r=n(2),i=n(17);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function u(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function s(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var u=e.charCodeAt(i);u<128?n[r++]=u:u<2048?(n[r++]=u>>6|192,n[r++]=63&u|128):o(e,i)?(u=65536+((1023&u)<<10)+(1023&e.charCodeAt(++i)),n[r++]=u>>18|240,n[r++]=u>>12&63|128,n[r++]=u>>6&63|128,n[r++]=63&u|128):(n[r++]=u>>12|224,n[r++]=u>>6&63|128,n[r++]=63&u|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=a(e[n].toString(16));return t},t.htonl=u,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=u(i)),n+=s(i.toString(16))}return n},t.zero2=a,t.zero8=s,t.join32=function(e,t,n,i){var o=n-t;r(o%4==0);for(var u=new Array(o/4),a=0,s=t;a<u.length;a++,s+=4){var c;c="big"===i?e[s]<<24|e[s+1]<<16|e[s+2]<<8|e[s+3]:e[s+3]<<24|e[s+2]<<16|e[s+1]<<8|e[s],u[a]=c>>>0}return u},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var o=e[r];"big"===t?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,u=(o<r?1:0)+n+i;e[t]=u>>>0,e[t+1]=o},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,i,o,u,a){var s=0,c=t;return s+=(c=c+r>>>0)<t?1:0,s+=(c=c+o>>>0)<o?1:0,e+n+i+u+(s+=(c=c+a>>>0)<a?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,o,u,a){return t+r+o+a>>>0},t.sum64_5_hi=function(e,t,n,r,i,o,u,a,s,c){var l=0,f=t;return l+=(f=f+r>>>0)<t?1:0,l+=(f=f+o>>>0)<o?1:0,l+=(f=f+a>>>0)<a?1:0,e+n+i+u+s+(l+=(f=f+c>>>0)<c?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,o,u,a,s,c){return t+r+o+a+c>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},function(e,t,n){"use strict";var r=n(1),i=n(2);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(0));t.default=function(e){var t=e.children;return i.default.Children.map(t,(function(e){return e}))}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(0));t.default=function(e){var t=e.children;return i.default.Children.map(t,(function(e){return e}))}},function(e,t,n){e.exports=n(14)()},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(0));t.default=function(e){var t=e.children;return i.default.Children.map(t,(function(e){return e}))}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(0)),o=r(n(5)),u=r(n(4));t.default=function(e){var t=e.children,n=e.flagKey,r=e.appFlags,a=[],s=!1;return i.default.Children.forEach(t,(function(e){if(i.default.isValidElement(e)&&e.type===o.default&&!s){var t=e.props,c=t.condition,l=t.allowBreak;(r[n]&&r[n].value)===c&&(a.push(e),s=l)}i.default.isValidElement(e)&&e.type===u.default&&!s&&a.push(e)})),i.default.createElement(i.default.Fragment,null,a)}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(0));t.default=function(e){var t=e.children;return i.default.Children.map(t,(function(e){return e}))}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(16)),u=i(n(24)),a=function(){function e(e){this.env=e}return e.prototype.init=function(e){var t=e.clientParams,n=t.user,r=t.envClientKey,i=t.options,o=(e.timeout,e.logUpdates),u=void 0!==o&&o;return this.ldClient=this.createClient({user:n,envClientKey:r,options:i}),i?(this.handleEvents(i.baseTimeout,this.ldClient,u),this):console.log("Endpoint Options is not provided")},e.prototype.initWithPromise=function(e){var t=this,n=e.clientParams,r=n.user,i=n.envClientKey,o=n.options,u=e.timeout,a=e.logUpdates,s=void 0!==a&&a;return this.ldClient=this.createClient({user:r,envClientKey:i,options:o}),new Promise((function(e,n){return t.handleEvents(u,t.ldClient,s,e,n)}))},e.prototype.createClient=function(e){var t=e.user,n=e.envClientKey,r=e.options;if(void 0===t.authId)throw new Error("AuthId was not passed to launchDarkly client");if(!n)throw new Error("There was no environment key provided.");var i={key:o.default.sha256().update(t.authId).digest("hex"),custom:{}};for(var a in t){var s=a;a.indexOf("_")>-1&&(s=a.replace("_","")),"authId"===a&&(t[a]=o.default.sha256().update(t[a]).digest("hex")),i.custom[s]=t[a]}return"test"===this.env?u.default.initialize(n,i,r):u.initialize(n,i,r)},e.prototype.handleEvents=function(e,t,n,r,i){var o=this;if(void 0===n&&(n=!1),void 0===t){var u=new Error("ERROR: ldClient is undefined");if(void 0!==i)return i(u);throw u}var a=setTimeout((function(){clearTimeout(a);var e=new Error("ERROR: Creation of Launch Darkly client has timed out");if(void 0!==i)return i(e);throw e}),e);t.on("error",(function(e){if(void 0!==i)return i(e);throw e})),t.on("ready",(function(){if(clearTimeout(a),void 0!==r)return r(o)}))},e.prototype.getFeatureFlag=function(e,t){if(void 0===t)throw new Error("Default value must be passed to getPromiseFeatureFlag");if(!this.ldClient)return t;if(console.log("featureId ",e),!e)throw new Error("ERROR: featureId is undefined");return this.ldClient.variation(e,t)},e.prototype.getPromiseFeatureFlag=function(e,t){var n=this;return new Promise((function(r){r(n.getFeatureFlag(e,t))}))},e.prototype.getAllFlags=function(){return this.ldClient?this.ldClient.allFlags():{}},e}();t.default=a},function(e,t,n){"use strict";var r=n(1).rotr32;function i(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}function u(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?u(t,n,r):2===e?o(t,n,r):void 0},t.ch32=i,t.maj32=o,t.p32=u,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},function(e,t,n){"use strict";var r=n(1),i=n(3),o=n(11),u=n(2),a=r.sum32,s=r.sum32_4,c=r.sum32_5,l=o.ch32,f=o.maj32,h=o.s0_256,d=o.s1_256,v=o.g0_256,p=o.g1_256,g=i.BlockHash,m=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function y(){if(!(this instanceof y))return new y;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=m,this.W=new Array(64)}r.inherits(y,g),e.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=s(p(n[r-2]),n[r-7],v(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],g=this.h[2],m=this.h[3],y=this.h[4],w=this.h[5],b=this.h[6],k=this.h[7];for(u(this.k.length===n.length),r=0;r<n.length;r++){var E=c(k,d(y),l(y,w,b),this.k[r],n[r]),S=a(h(i),f(i,o,g));k=b,b=w,w=y,y=a(m,E),m=g,g=o,o=i,i=a(E,S)}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],o),this.h[2]=a(this.h[2],g),this.h[3]=a(this.h[3],m),this.h[4]=a(this.h[4],y),this.h[5]=a(this.h[5],w),this.h[6]=a(this.h[6],b),this.h[7]=a(this.h[7],k)},y.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){"use strict";var r=n(1),i=n(3),o=n(2),u=r.rotr64_hi,a=r.rotr64_lo,s=r.shr64_hi,c=r.shr64_lo,l=r.sum64,f=r.sum64_hi,h=r.sum64_lo,d=r.sum64_4_hi,v=r.sum64_4_lo,p=r.sum64_5_hi,g=r.sum64_5_lo,m=i.BlockHash,y=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function w(){if(!(this instanceof w))return new w;m.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=y,this.W=new Array(160)}function b(e,t,n,r,i){var o=e&n^~e&i;return o<0&&(o+=4294967296),o}function k(e,t,n,r,i,o){var u=t&r^~t&o;return u<0&&(u+=4294967296),u}function E(e,t,n,r,i){var o=e&n^e&i^n&i;return o<0&&(o+=4294967296),o}function S(e,t,n,r,i,o){var u=t&r^t&o^r&o;return u<0&&(u+=4294967296),u}function _(e,t){var n=u(e,t,28)^u(t,e,2)^u(t,e,7);return n<0&&(n+=4294967296),n}function P(e,t){var n=a(e,t,28)^a(t,e,2)^a(t,e,7);return n<0&&(n+=4294967296),n}function O(e,t){var n=u(e,t,14)^u(e,t,18)^u(t,e,9);return n<0&&(n+=4294967296),n}function D(e,t){var n=a(e,t,14)^a(e,t,18)^a(t,e,9);return n<0&&(n+=4294967296),n}function F(e,t){var n=u(e,t,1)^u(e,t,8)^s(e,t,7);return n<0&&(n+=4294967296),n}function x(e,t){var n=a(e,t,1)^a(e,t,8)^c(e,t,7);return n<0&&(n+=4294967296),n}function R(e,t){var n=u(e,t,19)^u(t,e,29)^s(e,t,6);return n<0&&(n+=4294967296),n}function T(e,t){var n=a(e,t,19)^a(t,e,29)^c(e,t,6);return n<0&&(n+=4294967296),n}r.inherits(w,m),e.exports=w,w.blockSize=1024,w.outSize=512,w.hmacStrength=192,w.padLength=128,w.prototype._prepareBlock=function(e,t){for(var n=this.W,r=0;r<32;r++)n[r]=e[t+r];for(;r<n.length;r+=2){var i=R(n[r-4],n[r-3]),o=T(n[r-4],n[r-3]),u=n[r-14],a=n[r-13],s=F(n[r-30],n[r-29]),c=x(n[r-30],n[r-29]),l=n[r-32],f=n[r-31];n[r]=d(i,o,u,a,s,c,l,f),n[r+1]=v(i,o,u,a,s,c,l,f)}},w.prototype._update=function(e,t){this._prepareBlock(e,t);var n=this.W,r=this.h[0],i=this.h[1],u=this.h[2],a=this.h[3],s=this.h[4],c=this.h[5],d=this.h[6],v=this.h[7],m=this.h[8],y=this.h[9],w=this.h[10],F=this.h[11],x=this.h[12],R=this.h[13],T=this.h[14],U=this.h[15];o(this.k.length===n.length);for(var C=0;C<n.length;C+=2){var j=T,I=U,L=O(m,y),N=D(m,y),A=b(m,y,w,F,x),z=k(m,y,w,F,x,R),q=this.k[C],H=this.k[C+1],M=n[C],V=n[C+1],K=p(j,I,L,N,A,z,q,H,M,V),J=g(j,I,L,N,A,z,q,H,M,V);j=_(r,i),I=P(r,i),L=E(r,i,u,a,s),N=S(r,i,u,a,s,c);var W=f(j,I,L,N),$=h(j,I,L,N);T=x,U=R,x=w,R=F,w=m,F=y,m=f(d,v,K,J),y=h(v,v,K,J),d=s,v=c,s=u,c=a,u=r,a=i,r=f(K,J,W,$),i=h(K,J,W,$)}l(this.h,0,r,i),l(this.h,2,u,a),l(this.h,4,s,c),l(this.h,6,d,v),l(this.h,8,m,y),l(this.h,10,w,F),l(this.h,12,x,R),l(this.h,14,T,U)},w.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){"use strict";var r=n(15);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,u){if(u!==r){var a=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 a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){var r=t;r.utils=n(1),r.common=n(3),r.sha=n(18),r.ripemd=n(22),r.hmac=n(23),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){"use strict";t.sha1=n(19),t.sha224=n(20),t.sha256=n(12),t.sha384=n(21),t.sha512=n(13)},function(e,t,n){"use strict";var r=n(1),i=n(3),o=n(11),u=r.rotl32,a=r.sum32,s=r.sum32_5,c=o.ft_1,l=i.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function h(){if(!(this instanceof h))return new h;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(h,l),e.exports=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=u(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],o=this.h[1],l=this.h[2],h=this.h[3],d=this.h[4];for(r=0;r<n.length;r++){var v=~~(r/20),p=s(u(i,5),c(v,o,l,h),d,n[r],f[v]);d=h,h=l,l=u(o,30),o=i,i=p}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],o),this.h[2]=a(this.h[2],l),this.h[3]=a(this.h[3],h),this.h[4]=a(this.h[4],d)},h.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){"use strict";var r=n(1),i=n(12);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(o,i),e.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}},function(e,t,n){"use strict";var r=n(1),i=n(13);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(o,i),e.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}},function(e,t,n){"use strict";var r=n(1),i=n(3),o=r.rotl32,u=r.sum32,a=r.sum32_3,s=r.sum32_4,c=i.BlockHash;function l(){if(!(this instanceof l))return new l;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function f(e,t,n,r){return e<=15?t^n^r:e<=31?t&n|~t&r:e<=47?(t|~n)^r:e<=63?t&r|n&~r:t^(n|~r)}function h(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function d(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}r.inherits(l,c),t.ripemd160=l,l.blockSize=512,l.outSize=160,l.hmacStrength=192,l.padLength=64,l.prototype._update=function(e,t){for(var n=this.h[0],r=this.h[1],i=this.h[2],c=this.h[3],l=this.h[4],y=n,w=r,b=i,k=c,E=l,S=0;S<80;S++){var _=u(o(s(n,f(S,r,i,c),e[v[S]+t],h(S)),g[S]),l);n=l,l=c,c=o(i,10),i=r,r=_,_=u(o(s(y,f(79-S,w,b,k),e[p[S]+t],d(S)),m[S]),E),y=E,E=k,k=o(b,10),b=w,w=_}_=a(this.h[1],i,k),this.h[1]=a(this.h[2],c,E),this.h[2]=a(this.h[3],l,y),this.h[3]=a(this.h[4],n,w),this.h[4]=a(this.h[0],r,b),this.h[0]=_},l.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"little"):r.split32(this.h,"little")};var v=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],p=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],g=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],m=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},function(e,t,n){"use strict";var r=n(1),i=n(2);function o(e,t,n){if(!(this instanceof o))return new o(e,t,n);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(t,n))}e.exports=o,o.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},o.prototype.update=function(e,t){return this.inner.update(e,t),this},o.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},function(e,t,n){"use strict";n.r(t),n.d(t,"initialize",(function(){return $e})),n.d(t,"createConsoleLogger",(function(){return Be})),n.d(t,"version",(function(){return Ge}));var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function i(e){function t(e,t){Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.message=e,this.code=t}return t.prototype=new Error,t.prototype.name=e,t.prototype.constructor=t,t}var o=i("LaunchDarklyUnexpectedResponseError"),u=i("LaunchDarklyInvalidEnvironmentIdError"),a=i("LaunchDarklyInvalidUserError"),s=i("LaunchDarklyInvalidEventKeyError"),c=i("LaunchDarklyInvalidArgumentError"),l=i("LaunchDarklyFlagFetchError");function f(e){return!(e>=400&&e<500)||400===e||408===e||429===e}for(var h=Object.freeze({LDUnexpectedResponseError:o,LDInvalidEnvironmentIdError:u,LDInvalidUserError:a,LDInvalidEventKeyError:s,LDInvalidArgumentError:c,LDFlagFetchError:l,isHttpErrorRecoverable:f}),d=function(e){for(var t,n=e.length,r=n%3,i=[],o=0,u=n-r;o<u;o+=16383)i.push(b(e,o,o+16383>u?u:o+16383));return 1===r?(t=e[n-1],i.push(v[t>>2]+v[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],i.push(v[t>>10]+v[t>>4&63]+v[t<<2&63]+"=")),i.join("")},v=[],p=[],g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=0,y=g.length;m<y;++m)v[m]=g[m],p[g.charCodeAt(m)]=m;function w(e){return v[e>>18&63]+v[e>>12&63]+v[e>>6&63]+v[63&e]}function b(e,t,n){for(var r,i=[],o=t;o<n;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(w(r));return i.join("")}p["-".charCodeAt(0)]=62,p["_".charCodeAt(0)]=63;var k="function"==typeof Symbol&&"symbol"==r(Symbol.iterator)?function(e){return void 0===e?"undefined":r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":r(e)},E=Array.isArray,S=Object.keys,_=Object.prototype.hasOwnProperty,P=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==(void 0===t?"undefined":k(t))&&"object"==(void 0===n?"undefined":k(n))){var r,i,o,u=E(t),a=E(n);if(u&&a){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(u!=a)return!1;var s=t instanceof Date,c=n instanceof Date;if(s!=c)return!1;if(s&&c)return t.getTime()==n.getTime();var l=t instanceof RegExp,f=n instanceof RegExp;if(l!=f)return!1;if(l&&f)return t.toString()==n.toString();var h=S(t);if((i=h.length)!==S(n).length)return!1;for(r=i;0!=r--;)if(!_.call(n,h[r]))return!1;for(r=i;0!=r--;)if(!e(t[o=h[r]],n[o]))return!1;return!0}return t!=t&&n!=n},O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D=["key","secondary","ip","country","email","firstName","lastName","avatar","name"];function F(e){var t=unescape(encodeURIComponent(e));return d(function(e){for(var t=[],n=0;n<e.length;n++)t.push(e.charCodeAt(n));return t}(t))}function x(e){return F(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function R(e){return JSON.parse(JSON.stringify(e))}function T(e,t){return P(e,t)}function U(e){setTimeout(e,0)}function C(e,t){var n=e.then((function(e){return t&&setTimeout((function(){t(null,e)}),0),e}),(function(e){if(!t)return Promise.reject(e);setTimeout((function(){t(e,null)}),0)}));return t?void 0:n}function j(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]={value:e[n],version:0});return t}function I(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n].value);return t}function L(e,t){for(var n=t.slice(0),r=[],i=e,o=void 0;n.length>0;){for(o=[];i>0;){var u=n.shift();if(!u)break;(i-=x(JSON.stringify(u)).length)<0&&o.length>0?n.unshift(u):o.push(u)}i=e,r.push(o)}return r}function N(e){var t=e.version||"2.10.2";return e.userAgent+"/"+t}function A(e){return{"X-LaunchDarkly-User-Agent":N(e)}}function z(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return O({},e,t)}),{})}function q(e){if(!e)return e;var t=void 0;for(var n in D){var r=D[n],i=e[r];void 0!==i&&"string"!=typeof i&&((t=t||Object.assign({},e))[r]=String(i))}return t||e}Object.freeze({btoa:F,base64URLEncode:x,clone:R,deepEquals:T,onNextTick:U,wrapPromiseCallback:C,transformValuesToVersionedValues:j,transformVersionedValuesToValues:I,chunkUserEventsForUrl:L,getLDUserAgentString:N,getLDHeaders:A,extend:z,sanitizeUser:q});var H=2e3;var M=function(){return"LaunchDarkly client initialized"},V=" Please see https://docs.launchdarkly.com/docs/js-sdk-reference#section-initializing-the-client for instructions on SDK initialization.",K=function(){return"Be sure to call `identify` in the LaunchDarkly client: http://docs.launchdarkly.com/docs/running-an-ab-test#include-the-client-side-snippet"},J=function(){return"localStorage is unavailable"},W=function(){return"localStorage is unavailable, so anonymous user ID cannot be cached"},$=function(e){return"network error"+(e?" ("+e+")":"")},B=function(e){return'Custom event "'+e+'" does not exist'},G=function(){return"environment not found."+V},X=function(){return"No environment specified."+V},Y=function(e){return"Error fetching flag settings: "+(e.message||e)},Q=function(){return"No user specified."+V},Z=function(){return"Invalid user specified."+V},ee=function(){return"LaunchDarkly client was initialized with bootstrap data that did not include flag metadata. Events may not be sent correctly."+V},te=function(){return"LaunchDarkly bootstrap data is not available because the back end could not read the flags."},ne=function(e,t){return'[LaunchDarkly] "'+e+'" is deprecated, please use "'+t+'"'},re=function(e,t,n){return"Received error "+e+(401===e?" (invalid SDK key)":"")+" for "+t+" - "+(f(e)?n:"giving up permanently")},ie=function(){return"Cannot make HTTP requests in this environment."+V},oe=function(){return"identify() has no effect here; it must be called on the main client instance"},ue=function(e){return"polling for feature flags at "+e},ae=function(){return"received ping message from stream"},se=function(){return"received streaming update for all flags"},ce=function(e){return'received streaming update for flag "'+e+'"'},le=function(e){return'received streaming update for flag "'+e+'" but ignored due to version check'},fe=function(e){return'received streaming deletion for flag "'+e+'"'},he=function(e){return'received streaming deletion for flag "'+e+'" but ignored due to version check'},de=function(e){return'enqueueing "'+e+'" event'},ve=function(e){return"sending "+e+" events"},pe=Object.freeze({clientInitialized:M,clientNotReady:function(){return"LaunchDarkly client is not ready"},eventWithoutUser:K,invalidKey:function(){return"Event key must be a string"},localStorageUnavailable:J,localStorageUnavailableForUserId:W,networkError:$,unknownCustomEventKey:B,environmentNotFound:G,environmentNotSpecified:X,errorFetchingFlags:Y,userNotSpecified:Q,invalidUser:Z,bootstrapOldFormat:ee,bootstrapInvalid:te,deprecated:ne,httpErrorMessage:re,httpUnavailable:ie,identifyDisabled:oe,debugPolling:ue,debugStreamPing:ae,debugStreamPut:se,debugStreamPatch:ce,debugStreamPatchIgnored:le,debugStreamDelete:fe,debugStreamDeleteIgnored:he,debugEnqueueingEvent:de,debugPostingEvents:ve});function ge(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,a={},s=u||function(e,t,n,r){var i=t+"/events/bulk/"+n,o=t+"/a/"+n+".gif",u={};function a(e){(new window.Image).src=e}function s(t,n){var u=r||a,s=JSON.stringify(t);return n?function t(n){var r=z({"Content-Type":"application/json","X-LaunchDarkly-Event-Schema":"3"},A(e));return e.httpRequest("POST",i,r,s).promise.then((function(e){if(e)return e.status>=400&&f(e.status)&&n?t(!1):function(e){var t={status:e.status},n=e.header("date");if(n){var r=Date.parse(n);r&&(t.serverTime=r)}return t}(e)})).catch((function(){return n?t(!1):Promise.reject()}))}(!0).catch((function(){})):(u(o+"?d="+x(s)),Promise.resolve())}return u.sendEvents=function(n){if(!e.httpRequest)return Promise.resolve();var r,i=e.httpAllowsPost();r=i?[n]:L(H-t.length,n);for(var o=[],u=0;u<r.length;u++)o.push(s(r[u],i));return Promise.all(o)},u}(e,t.eventsUrl,n),c=function(){var e={},t=0,n=0,r={};return e.summarizeEvent=function(e){if("feature"===e.kind){var i=e.key+":"+(null!==e.variation&&void 0!==e.variation?e.variation:"")+":"+(null!==e.version&&void 0!==e.version?e.version:""),o=r[i];o?o.count=o.count+1:r[i]={count:1,key:e.key,variation:e.variation,version:e.version,value:e.value,default:e.default},(0===t||e.creationDate<t)&&(t=e.creationDate),e.creationDate>n&&(n=e.creationDate)}},e.getSummary=function(){var e={},i=!0;for(var o in r){var u=r[o],a=e[u.key];a||(a={default:u.default,counters:[]},e[u.key]=a);var s={value:u.value,count:u.count};void 0!==u.variation&&null!==u.variation&&(s.variation=u.variation),u.version?s.version=u.version:s.unknown=!0,a.counters.push(s),i=!1}return i?null:{startDate:t,endDate:n,features:e}},e.clearSummary=function(){t=0,n=0,r={}},e}(),l=function(e){var t={},n=e.allAttributesPrivate,r=e.privateAttributeNames||[],i={key:!0,custom:!0,anonymous:!0},o={key:!0,secondary:!0,ip:!0,country:!0,email:!0,firstName:!0,lastName:!0,avatar:!0,name:!0,anonymous:!0,custom:!0};return t.filterUser=function(e){if(!e)return null;var t=e.privateAttributeNames||[],u=function(e,o){return Object.keys(e).reduce((function(u,a){var s=u;return o(a)&&(function(e){return!i[e]&&(n||-1!==t.indexOf(e)||-1!==r.indexOf(e))}(a)?s[1][a]=!0:s[0][a]=e[a]),s}),[{},{}])},a=u(e,(function(e){return o[e]})),s=a[0],c=a[1];if(e.custom){var l=u(e.custom,(function(){return!0}));s.custom=l[0],c=z({},c,l[1])}var f=Object.keys(c);return f.length&&(f.sort(),s.privateAttrs=f),s},t}(t),h=t.inlineUsersInEvents,d=t.samplingInterval,v=t.flushInterval,p=[],g=0,m=!1,y=void 0;function w(){return 0===d||0===Math.floor(Math.random()*d)}return a.enqueue=function(e){if(!m){var t,n=!1,r=!1;if(c.summarizeEvent(e),"feature"===e.kind?w()&&(n=!!e.trackEvents,r=!!(t=e).debugEventsUntilDate&&t.debugEventsUntilDate>g&&t.debugEventsUntilDate>(new Date).getTime()):n=w(),n&&p.push(function(e){var t=z({},e);return h||"identify"===e.kind?t.user=l.filterUser(e.user):(t.userKey=e.user.key,delete t.user),"feature"===e.kind&&(delete t.trackEvents,delete t.debugEventsUntilDate),t}(e)),r){var i=z({},e,{kind:"debug"});delete i.trackEvents,delete i.debugEventsUntilDate,delete i.variation,p.push(i)}}},a.flush=function(){if(m)return Promise.resolve();var e=p,t=c.getSummary();return c.clearSummary(),t&&(t.kind="summary",e.push(t)),0===e.length?Promise.resolve():(p=[],r.debug(ve(e.length)),s.sendEvents(e).then((function(e){e&&(e.serverTime&&(g=e.serverTime),f(e.status)||(m=!0),e.status>=400&&U((function(){i.maybeReportError(new o(re(e.status,"event posting","some events were dropped")))})))})))},a.start=function(){y=setTimeout((function e(){a.flush(),y=setTimeout(e,v)}),v)},a.stop=function(){clearTimeout(y)},a}function me(e,t,n,r,i){var o={};function u(){var e="",i=r.getUser();return i&&(e=n||F(JSON.stringify(i))),"ld:"+t+":"+e}return o.loadFlags=function(){return e.get(u()).then((function(e){if(null==e)return null;try{var t=JSON.parse(e);if(t){var n=t.$schema;void 0===n||n<1?t=j(t):delete t.$schema}return t}catch(e){return o.clearFlags().then((function(){return Promise.reject(e)}))}})).catch((function(e){return i.warn(J()),Promise.reject(e)}))},o.saveFlags=function(t){var n=z({},t,{$schema:1});return e.set(u(),JSON.stringify(n)).catch((function(e){return i.warn(J()),Promise.reject(e)}))},o.clearFlags=function(){return e.clear(u()).catch((function(e){return i.warn(J()),Promise.reject(e)}))},o}var ye="application/json";function we(e,t,n,r){var i=t.baseUrl,o=t.useReport,a=t.evaluationReasons,s=t.sendLDHeaders,c={},f={};function h(t,n){if(!e.httpRequest)return new Promise((function(e,t){t(new l(ie()))}));var r=n?"REPORT":"GET",i=s?A(e):{};n&&(i["Content-Type"]="application/json");var o=f[t];o||(o=function(e){var t=void 0,n=void 0,r=void 0,i=void 0,o={addPromise:function(o,u){t=o,n&&n(),n=u,o.then((function(n){t===o&&(r(n),e&&e())}),(function(n){t===o&&(i(n),e&&e())}))}};return o.resultPromise=new Promise((function(e,t){r=e,i=t})),o}((function(){delete f[t]})),f[t]=o);var a=e.httpRequest(r,t,i,n),c=a.promise.then((function(e){return 200===e.status&&e.header("content-type")&&0===e.header("content-type").lastIndexOf(ye)?JSON.parse(e.body):Promise.reject(function(e){return 404===e.status?new u(G()):new l(Y(e.statusText||String(e.status)))}(e))}),(function(e){return Promise.reject(new l($(e)))}));return o.addPromise(c,(function(){a.cancel&&a.cancel()})),o.resultPromise}return c.fetchFlagSettings=function(e,t){var u=void 0,s=void 0,c="",l=void 0;return o?(s=[i,"/sdk/evalx/",n,"/user"].join(""),l=JSON.stringify(e)):(u=x(JSON.stringify(e)),s=[i,"/sdk/evalx/",n,"/users/",u].join("")),t&&(c="h="+t),a&&(c=c+(c?"&":"")+"withReasons=true"),s=s+(c?"?":"")+c,r.debug(ue(s)),h(s,l)},c.fetchGoals=function(){return h([i,"/sdk/goals/",n].join(""),null)},c}for(var be=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var r=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}})),ke=[],Ee=0;Ee<256;++Ee)ke[Ee]=(Ee+256).toString(16).substr(1);var Se,_e,Pe=function(e,t){var n=t||0,r=ke;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")},Oe=0,De=0;var Fe=function(e,t,n){var r=t&&n||0,i=t||[],o=(e=e||{}).node||Se,u=void 0!==e.clockseq?e.clockseq:_e;if(null==o||null==u){var a=be();null==o&&(o=Se=[1|a[0],a[1],a[2],a[3],a[4],a[5]]),null==u&&(u=_e=16383&(a[6]<<8|a[7]))}var s=void 0!==e.msecs?e.msecs:(new Date).getTime(),c=void 0!==e.nsecs?e.nsecs:De+1,l=s-Oe+(c-De)/1e4;if(l<0&&void 0===e.clockseq&&(u=u+1&16383),(l<0||s>Oe)&&void 0===e.nsecs&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Oe=s,De=c,_e=u;var f=(1e4*(268435455&(s+=122192928e5))+c)%4294967296;i[r++]=f>>>24&255,i[r++]=f>>>16&255,i[r++]=f>>>8&255,i[r++]=255&f;var h=s/4294967296*1e4&268435455;i[r++]=h>>>8&255,i[r++]=255&h,i[r++]=h>>>24&15|16,i[r++]=h>>>16&255,i[r++]=u>>>8|128,i[r++]=255&u;for(var d=0;d<6;++d)i[r+d]=o[d];return t||Pe(i)},xe="ld:$anonUserId";function Re(e){var t=0;e&&(t="none"===e?100:["debug","info","warn","error"].indexOf(e));var n={};function r(e,n,r){e>=t&&n(r)}return n.debug=function(e){return r(0,console.log,e)},n.info=function(e){return r(1,console.info,e)},n.warn=function(e){return r(2,console.warn,e)},n.error=function(e){return r(3,console.error,e)},n}var Te="function"==typeof Symbol&&"symbol"==r(Symbol.iterator)?function(e){return void 0===e?"undefined":r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":r(e)},Ue="ready",Ce="initialized",je="failed",Ie="change",Le="internal-change";function Ne(e,t,n,r,i){var o=n&&n.logger?n.logger:i&&i.logger||Re("warn"),f=function(e){var t={},n={};return t.on=function(e,t,r){n[e]=n[e]||[],n[e]=n[e].concat({handler:t,context:r})},t.off=function(e,t,r){if(n[e])for(var i=0;i<n[e].length;i++)n[e][i].handler===t&&n[e][i].context===r&&(n[e]=n[e].slice(0,i).concat(n[e].slice(i+1)))},t.emit=function(e){if(n[e])for(var t=0;t<n[e].length;t++)n[e][t].handler.apply(n[e][t].context,Array.prototype.slice.call(arguments,1))},t.getEvents=function(){return Object.keys(n)},t.getEventListenerCount=function(e){return n[e]?n[e].length:0},t.maybeReportError=function(t){t&&(n.error?this.emit("error",t):(e||console).error(t.message))},t}(o),h=function(e,t,n,r){var i=z({},{baseUrl:"https://app.launchdarkly.com",streamUrl:"https://clientstream.launchdarkly.com",eventsUrl:"https://events.launchdarkly.com",sendEvents:!0,sendLDHeaders:!0,inlineUsersInEvents:!1,allowFrequentDuplicateEvents:!1,sendEventsOnlyForVariation:!1,useReport:!1,evaluationReasons:!1,flushInterval:2e3,samplingInterval:0,streamReconnectDelay:1e3,allAttributesPrivate:!1,privateAttributeNames:[]},n),o={all_attributes_private:"allAttributesPrivate",private_attribute_names:"privateAttributeNames"};function u(e){U((function(){t&&t.maybeReportError(new c(e))}))}var a=z({},e||{});return function(e){var t=a;Object.keys(o).forEach((function(e){if(void 0!==t[e]){var n=o[e];r.warn(ne(e,n)),void 0===t[n]&&(t[n]=t[e]),delete t[e]}}))}(),a=function(e,t){var n=z({},a);return Object.keys(t).forEach((function(e){void 0!==n[e]&&null!==n[e]||(n[e]=t[e])})),n}(0,i),(isNaN(a.flushInterval)||a.flushInterval<2e3)&&(a.flushInterval=2e3,u("Invalid flush interval configured. Must be an integer >= 2000 (milliseconds).")),(isNaN(a.samplingInterval)||a.samplingInterval<0)&&(a.samplingInterval=0,u("Invalid sampling interval configured. Sampling interval must be an integer >= 0.")),a}(n,f,i,o),d=h.hash,v=h.sendEvents,p=e,g=function(e,t,n,r){var i=t.streamUrl,o={},u=i+"/eval/"+n,a=t.useReport,s=t.evaluationReasons,c=t.streamReconnectDelay,l=null,f=null,h=null,d=null;function v(){m(),p(c)}function p(e){f||(e?f=setTimeout(g,e):g())}function g(){var t=void 0,o="",c={};if(e.eventSourceFactory){for(var f in null!=r&&(o="h="+r),a?e.eventSourceAllowsReport?(t=u,c.method="REPORT",c.headers={"Content-Type":"application/json"},c.body=JSON.stringify(h)):(t=i+"/ping/"+n,o=""):t=u+"/"+x(JSON.stringify(h)),s&&(o=o+(o?"&":"")+"withReasons=true"),t=t+(o?"?":"")+o,m(),l=e.eventSourceFactory(t,c),d)d.hasOwnProperty(f)&&l.addEventListener(f,d[f]);l.onerror=v}}function m(){l&&(l.close(),l=null)}return o.connect=function(e,t){h=e,d=t,p()},o.disconnect=function(){clearTimeout(f),f=null,m()},o.isConnected=function(){return l&&e.eventSourceIsActive&&e.eventSourceIsActive(l)},o}(r,h,p,d),m=h.eventProcessor||ge(r,h,p,o,f),y=we(r,h,p,o),w={},b={},k=void 0,E=void 0,S=h.streaming,_=void 0,P=!1,O=!1,D=!0,F=h.stateProvider,j=function(e,t){var n={},r=void 0;return n.setUser=function(e){(r=q(e))&&t&&t(R(r))},n.getUser=function(){return r?R(r):null},e&&n.setUser(e),n}(null,(function(e){F||e&&A({kind:"identify",key:e.key,user:e,creationDate:(new Date).getTime()})})),L=function(e,t){return{validateUser:function(n){if(!n)return Promise.reject(new a(Q()));var r=R(n);return null!==r.key&&void 0!==r.key?(r.key=r.key.toString(),Promise.resolve(r)):r.anonymous?(e?e.get(xe).catch((function(){return null})):Promise.resolve(null)).then((function(n){if(n)return r.key=n,r;var i=Fe();return r.key=i,function(n){return e?e.set(xe,n).catch((function(){t.warn(W())})):Promise.resolve()}(i).then((function(){return r}))})):Promise.reject(new a(Z()))}}}(r.localStorage,o),N=void 0;function A(e){p&&(F&&F.enqueueEvent&&F.enqueueEvent(e)||(e.user?(D=!1,!v||O||r.isDoNotTrack()||(o.debug(de(e.kind)),m.enqueue(e))):D&&(o.warn(K()),D=!1)))}function H(e,t,n){var r=j.getUser(),i=new Date,o=t?t.value:null;if(!h.allowFrequentDuplicateEvents){var u=JSON.stringify(o)+(r&&r.key?r.key:"")+e,a=w[u];if(a&&i-a<3e5)return;w[u]=i}var s={kind:"feature",key:e,user:r,value:o,variation:t?t.variationIndex:null,default:n,creationDate:i.getTime(),reason:t?t.reason:null},c=b[e];c&&(s.version=c.flagVersion?c.flagVersion:c.version,s.trackEvents=c.trackEvents,s.debugEventsUntilDate=c.debugEventsUntilDate),A(s)}function V(e,t,n){var r=void 0;if(b&&b.hasOwnProperty(e)&&b[e]&&!b[e].deleted){var i=b[e];r=$(i),null!==i.value&&void 0!==i.value||(r.value=t)}else r={value:t,variationIndex:null,reason:{kind:"ERROR",errorKind:"FLAG_NOT_FOUND"}};return n&&H(e,r,t),r}function $(e){return{value:e.value,variationIndex:void 0===e.variation?null:e.variation,reason:e.reason||null}}function G(){E=!0,j.getUser()&&g.connect(j.getUser(),{ping:function(){o.debug(ae()),y.fetchFlagSettings(j.getUser(),d,(function(e,t){e&&f.maybeReportError(new l(Y(e))),ie(t)}))},put:function(e){var t=JSON.parse(e.data);o.debug(se()),ie(t)},patch:function(e){var t=JSON.parse(e.data),n=b[t.key];if(!n||!n.version||!t.version||n.version<t.version){o.debug(ce(t.key));var r={},i=z({},t);delete i.key,b[t.key]=i;var u=$(i);r[t.key]=n?{previous:n.value,current:u}:{current:u},ue(r)}else o.debug(le(t.key))},delete:function(e){var t=JSON.parse(e.data);if(!b[t.key]||b[t.key].version<t.version){o.debug(fe(t.key));var n={};b[t.key]&&!b[t.key].deleted&&(n[t.key]={previous:b[t.key].value}),b[t.key]={version:t.version,deleted:!0},ue(n)}else o.debug(he(t.key))}})}function re(){E&&(g.disconnect(),E=!1)}function ie(e){var t={};if(!e)return Promise.resolve();for(var n in b)b.hasOwnProperty(n)&&b[n]&&(e[n]&&!T(e[n].value,b[n].value)?t[n]={previous:b[n].value,current:$(e[n])}:e[n]&&!e[n].deleted||(t[n]={previous:b[n].value}));for(var r in e)e.hasOwnProperty(r)&&e[r]&&(!b[r]||b[r].deleted)&&(t[r]={current:$(e[r])});return b=e,ue(t).catch((function(){}))}function ue(e){var t=Object.keys(e);if(t.length>0){var n={};t.forEach((function(t){var r=e[t].current,i=r?r.value:void 0,o=e[t].previous;f.emit(Ie+":"+t,i,o),n[t]=r?{current:i,previous:o}:{previous:o}})),f.emit(Ie,n),f.emit(Le,b),h.sendEventsOnlyForVariation||F||t.forEach((function(t){H(t,e[t].current)}))}return k&&N?N.saveFlags(b).catch((function(){return null})):Promise.resolve()}function ve(){var e=S||_&&void 0===S;e&&!E?G():!e&&E&&re()}function pe(e){return e===Ie||e.substr(0,Ie.length+1)===Ie+":"}r.localStorage&&(N=new me(r.localStorage,p,d,j,o));var ye=new Promise((function(e){var t=f.on(Ue,(function(){f.off(Ue,t),e()}))})),be=new Promise((function(e,t){var n=f.on(Ce,(function(){f.off(Ce,n),e()})),r=f.on(je,(function(e){f.off(je,r),t(e)}))}));if("string"==typeof h.bootstrap&&"LOCALSTORAGE"===h.bootstrap.toUpperCase()&&(N?k=!0:o.warn(J())),F){var ke=F.getInitialState();ke?Ee(ke):F.on("init",Ee),F.on("update",(function(e){e.user&&j.setUser(e.user),e.flags&&ie(e.flags)}))}else(e?L.validateUser(t).then((function(e){return j.setUser(e),"object"===Te(h.bootstrap)?(b=function(e){var t=Object.keys(e),n=e.$flagsState;!n&&t.length&&o.warn(ee()),!1===e.$valid&&o.warn(te());var r={};return t.forEach((function(t){if("$flagsState"!==t&&"$valid"!==t){var i={value:e[t]};n&&n[t]?i=z(i,n[t]):i.version=0,r[t]=i}})),r}(h.bootstrap),Se()):k?N.loadFlags().catch((function(){return null})).then((function(e){return null==e?(b={},y.fetchFlagSettings(j.getUser(),d).then((function(e){return ie(e||{})})).then(Se).catch((function(e){_e(new l(Y(e)))}))):(b=e,U(Se),y.fetchFlagSettings(j.getUser(),d).then((function(e){return ie(e)})).catch((function(e){return f.maybeReportError(e)})))})):y.fetchFlagSettings(j.getUser(),d).then((function(e){b=e||{},Se()})).catch((function(e){b={},_e(e)}))})):Promise.reject(new u(X()))).catch((function(e){return f.maybeReportError(e)}));function Ee(e){p=e.environment,j.setUser(e.user),b=e.flags,U(Se)}function Se(){o.info(M()),P=!0,ve(),f.emit(Ue),f.emit(Ce)}function _e(e){f.maybeReportError(e),f.emit(je,e),f.emit(Ue)}return{client:{waitForInitialization:function(){return be},waitUntilReady:function(){return ye},identify:function(e,t,n){return O?C(Promise.resolve({}),n):F?(o.warn(oe()),C(Promise.resolve(I(b)),n)):C((k&&N?N.clearFlags():Promise.resolve()).then((function(){return L.validateUser(e)})).then((function(e){return j.setUser(e)})).then((function(){return y.fetchFlagSettings(j.getUser(),t)})).then((function(e){var t=I(e);return e?ie(e).then((function(){return t})):t})).then((function(e){return E&&G(),e})).catch((function(e){return f.maybeReportError(e),Promise.reject(e)})),n)},getUser:function(){return j.getUser()},variation:function(e,t){return V(e,t,!0).value},variationDetail:function(e,t){return V(e,t,!0)},track:function(e,t){"string"==typeof e?(r.customEventFilter&&!r.customEventFilter(e)&&o.warn(B(e)),A({kind:"custom",key:e,data:t,user:j.getUser(),url:r.getCurrentUrl(),creationDate:(new Date).getTime()})):f.maybeReportError(new s(B(e)))},on:function(e,t,n){pe(e)?(_=!0,P&&ve(),f.on(e,t,n)):f.on.apply(f,arguments)},off:function(e){if(f.off.apply(f,arguments),pe(e)){var t=!1;f.getEvents().forEach((function(e){pe(e)&&f.getEventListenerCount(e)>0&&(t=!0)})),t||(_=!1,E&&void 0===S&&re())}},setStreaming:function(e){var t=null===e?void 0:e;t!==S&&(S=t,ve())},flush:function(e){return C(v?m.flush():Promise.resolve(),e)},allFlags:function(){var e={};if(!b)return e;for(var t in b)b.hasOwnProperty(t)&&(e[t]=V(t,null,!h.sendEventsOnlyForVariation).value);return e},close:function(e){if(O)return C(Promise.resolve(),e);var t=function(){O=!0,b={}};return C(Promise.resolve().then((function(){if(re(),v)return m.stop(),m.flush()})).then(t).catch(t),e)}},options:h,emitter:f,ident:j,logger:o,requestor:y,start:function(){v&&m.start()},enqueueEvent:A,getFlagsInternal:function(){return b},internalChangeEventName:Le}}var Ae={promise:Promise.resolve({status:200,header:function(){return null},body:null})};function ze(e,t,n,r,i){if(i&&!function(){var e=window.navigator&&window.navigator.userAgent;if(e){var t=e.match(/Chrom(e|ium)\/([0-9]+)\./);if(t)return parseInt(t[2],10)<73}return!0}())return Ae;var o=new window.XMLHttpRequest;for(var u in o.open(e,t,!i),n||{})n.hasOwnProperty(u)&&o.setRequestHeader(u,n[u]);if(i)return o.send(r),Ae;var a=void 0;return{promise:new Promise((function(e,t){o.addEventListener("load",(function(){a||e({status:o.status,header:function(e){return o.getResponseHeader(e)},body:o.responseText})})),o.addEventListener("error",(function(){a||t(new Error)})),o.send(r)})),cancel:function(){a=!0,o.abort()}}}var qe=/[|\\{}()[\]^$+*?.]/g,He=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(qe,"\\$&")};function Me(e,t,n,r){var i=t.replace(n,"").replace(r,""),o=void 0,u=void 0;switch(e.kind){case"exact":u=t,o=new RegExp("^"+He(e.url)+"/?$");break;case"canonical":u=i,o=new RegExp("^"+He(e.url)+"/?$");break;case"substring":u=i,o=new RegExp(".*"+He(e.substring)+".*$");break;case"regex":u=i,o=new RegExp(e.pattern);break;default:return!1}return o.test(u)}function Ve(e,t){for(var n={},r=null,i=[],o=0;o<e.length;o++)for(var u=e[o],a=u.urls||[],s=0;s<a.length;s++)if(Me(a[s],window.location.href,window.location.search,window.location.hash)){"pageview"===u.kind?t("pageview",u):(i.push(u),t("click_pageview",u));break}return i.length>0&&(r=function(e){for(var n=function(e,t){for(var n=[],r=0;r<t.length;r++)for(var i=e.target,o=t[r],u=o.selector,a=document.querySelectorAll(u);i&&a.length>0;){for(var s=0;s<a.length;s++)i===a[s]&&n.push(o);i=i.parentNode}return n}(e,i),r=0;r<n.length;r++)t("click",n[r])},document.addEventListener("click",r)),n.dispose=function(){document.removeEventListener("click",r)},n}var Ke=300;var Je="goalsReady",We={fetchGoals:!0};function $e(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=function(){var e={pageIsClosing:!1};window.XMLHttpRequest&&(e.httpRequest=function(t,n,r,i){return ze(t,n,r,i,e.pageIsClosing)});var t=void 0;e.httpAllowsPost=function(){return void 0===t&&(t=!!window.XMLHttpRequest&&"withCredentials"in new window.XMLHttpRequest),t},e.getCurrentUrl=function(){return window.location.href},e.isDoNotTrack=function(){var e;return 1===(e=window.navigator&&void 0!==window.navigator.doNotTrack?window.navigator.doNotTrack:window.navigator&&void 0!==window.navigator.msDoNotTrack?window.navigator.msDoNotTrack:window.doNotTrack)||!0===e||"1"===e||"yes"===e};try{window.localStorage&&(e.localStorage={get:function(e){return new Promise((function(t){t(window.localStorage.getItem(e))}))},set:function(e,t){return new Promise((function(n){window.localStorage.setItem(e,t),n()}))},clear:function(e){return new Promise((function(t){window.localStorage.removeItem(e),t()}))}})}catch(t){e.localStorage=null}return window.EventSource&&(e.eventSourceFactory=function(e){return new window.EventSource(e,{heartbeatTimeout:3e5,silentTimeout:3e5})},e.eventSourceIsActive=function(e){return e.readyState===window.EventSource.OPEN||e.readyState===window.EventSource.CONNECTING}),e.eventSourceAllowsReport=!1,e.userAgent="JSClient",e}(),i=Ne(e,t,n,r,We),o=i.client,u=i.options,a=i.emitter,s=new Promise((function(e){var t=a.on(Je,(function(){a.off(Je,t),e()}))}));if(o.waitUntilGoalsReady=function(){return s},u.fetchGoals){var c=function(e,t){var n=void 0,r=void 0,i={};function o(){r&&r.dispose(),n&&n.length&&(r=Ve(n,u))}function u(t,n){var r={kind:t,key:n.key,data:null,url:window.location.href,user:e.ident.getUser(),creationDate:(new Date).getTime()};return"click"===t&&(r.selector=n.selector),e.enqueueEvent(r)}return i.goalKeyExists=function(e){if(!n)return!0;for(var t=0;t<n.length;t++)if("custom"===n[t].kind&&n[t].key===e)return!0;return!1},e.requestor.fetchGoals().then((function(e){e&&e.length>0&&(r=Ve(n=e,u),function(e,t){var n=window.location.href,r=void 0;function i(){(r=window.location.href)!==n&&(n=r,t())}!function e(t,n){t(),setTimeout((function(){e(t,n)}),n)}(i,e),window.history&&window.history.pushState?window.addEventListener("popstate",i):window.addEventListener("hashchange",i)}(Ke,o)),t()})).catch((function(n){e.emitter.maybeReportError(new h.LDUnexpectedResponseError((n&&n.message,n.message))),t()})),i}(i,(function(){return a.emit(Je)}));r.customEventFilter=c.goalKeyExists}else a.emit(Je);return"complete"!==document.readyState?window.addEventListener("load",i.start):i.start(),window.addEventListener("beforeunload",(function(){r.pageIsClosing=!0,o.close()})),o}var Be=Re,Ge="2.10.2";var Xe={initialize:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return console&&console.warn&&console.warn(pe.deprecated("default export","named LDClient export")),$e(e,t,n)},version:"2.10.2"};t.default=Xe},function(e,t,n){"use strict";n.r(t);var r=n(4),i=n.n(r),o=n(7),u=n.n(o),a=n(8),s=n.n(a),c=n(5),l=n.n(c),f=n(9),h=n.n(f),d=n(0),v=n.n(d),p=n(6),g=n.n(p);function m(e){var t=e.children,n=e.flagKey,r=e.appFlags,i=!1,o=!1,u=[];return v.a.Children.forEach(t,(function(e){if(v.a.isValidElement(e)&&("FeatureTrue"===e.type.displayName||"FeatureTrue"===e.type.name)){if(o)return void console.warn("Dont Use <FeatureTrue /> among other elements/components under <FeatureFlag /> only use it with <FeatureFalse />, No mix allowed");r[n]&&r[n].value&&u.push(e),i=!0}if(v.a.isValidElement(e)&&("FeatureFalse"===e.type.displayName||"FeatureFalse"===e.type.name)){if(o)return void console.warn("Dont Use <FeatureFalse /> among other elements/components under <FeatureFlag /> only use it with <FeatureTrue />, No mix allowed");(!r[n]||r[n]&&!r[n].value)&&u.push(e),i=!0}if(v.a.isValidElement(e)&&("FeatureSwitch"===e.type.displayName||"FeatureSwitch"===e.type.name)){if(o)return void console.warn("Dont Use <FeatureSwitch /> unless its the immediate children of <FeatureFlag />, No mix allowed");u.push(v.a.cloneElement(e,{flagKey:n,appFlags:r})),i=!0}i||(o=!0,r[n]&&r[n].value&&u.push(e))})),v.a.Children.map(u,(function(e){return e}))}m.propTypes={flagKey:g.a.string.isRequired,appFlags:g.a.object.isRequired};var y=m,w=n(10),b=n.n(w);n.d(t,"FeatureDefault",(function(){return i.a})),n.d(t,"FeatureTrue",(function(){return u.a})),n.d(t,"FeatureSwitch",(function(){return s.a})),n.d(t,"FeatureFalse",(function(){return h.a})),n.d(t,"FeatureFlag",(function(){return y})),n.d(t,"FeatureCase",(function(){return l.a})),n.d(t,"launchDarklyClient",(function(){return b.a}))}])})); |
{ | ||
"name": "ld-react-components", | ||
"version": "1.0.53", | ||
"version": "1.0.54", | ||
"description": "Semantic component helpers to support LaunchDarkly in your react app.", | ||
@@ -21,5 +21,5 @@ "main": "dist/index.js", | ||
"clean": "rimraf ./dist ./coverage ./docs", | ||
"test": "jest --coverage", | ||
"test": "yarn build && jest --coverage", | ||
"lint": "eslint src/", | ||
"build": "babel src/lib -d dist --copy-files", | ||
"build": "webpack -p --progress", | ||
"build:watch": "babel src/lib -w -d lib --copy-files", | ||
@@ -26,0 +26,0 @@ "docs:build": "build-storybook -o docs", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6142927
36
51475
2