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

@dollarshaveclub/js-utils

Package Overview
Dependencies
Maintainers
27
Versions
280
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dollarshaveclub/js-utils - npm Package Compare versions

Comparing version 73.11.1 to 73.11.2

2

build/browser/load-zendesk.js

@@ -167,2 +167,2 @@ "use strict";

exports.LoadZendesk = LoadZendesk;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxvYWQtemVuZGVzay5qcyJdLCJuYW1lcyI6WyJvbkVycm9yIiwicmVxdWlyZSIsImNvbmZpZyIsImxvYWRlciIsIkxvYWRaZW5kZXNrIiwibG9hZFplbmRlc2tQcm9taXNlIiwiZGVmZXJMb2FkWmVuZGVzayIsInplbmRlc2tIb3N0IiwiaG9zdCIsImhvc3RuYW1lIiwiRXJyb3IiLCJjdXN0b21lciIsInRoZW4iLCJ3aW5kb3ciLCJ6RSIsImlkZW50aWZ5IiwibmFtZSIsImZpcnN0TmFtZSIsImxhc3ROYW1lIiwiZW1haWwiLCJjYXRjaCIsIlByb21pc2UiLCJyZXNvbHZlIiwicmVqZWN0IiwiY2IiLCJ6RVNldHRpbmdzIiwid2ViV2lkZ2V0IiwiYW5zd2VyQm90IiwiYXZhdGFyIiwidXJsIiwidGl0bGUiLCJsb2FkWmVuZGVzayIsImVyciIsInJlcXVlc3RJZGxlQ2FsbGJhY2siLCJ0aW1lb3V0Iiwic2V0VGltZW91dCIsInpFbWJlZCIsImUiLCJ0IiwibiIsIm8iLCJkIiwiaSIsInMiLCJhIiwiciIsImRvY3VtZW50IiwiY3JlYXRlRWxlbWVudCIsInB1c2giLCJhcmd1bWVudHMiLCJzcmMiLCJyb2xlIiwiZnJhbWVFbGVtZW50Iiwic3R5bGUiLCJjc3NUZXh0IiwiZ2V0RWxlbWVudHNCeVRhZ05hbWUiLCJs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pcy56ZW5kZXNrSG9zdCA9IGNvbmZpZy5ob3N0IHx8IGNvbmZpZy5ob3N0bmFtZSB8fCBjb25maWcuemVuZGVza0hvc3RcbiAgICBpZiAoIXRoaXMuemVuZGVza0hvc3QpIHRocm93IG5ldyBFcnJvcignWmVuZGVzayBob3N0bmFtZSBpcyByZXF1aXJlZCEnKVxuICB9XG5cbiAgaWRlbnRpZnkoY3VzdG9tZXIpIHtcbiAgICByZXR1cm4gdGhpcy5sb2FkWmVuZGVza1Byb21pc2VcbiAgICAgIC50aGVuKCgpID0+IHtcbiAgICAgICAgY29uc3QgeyB6RSB9ID0gd2luZG93XG4gICAgICAgIGlmICghekUgfHwgdHlwZW9mIHpFICE9PSAnZnVuY3Rpb24nKSByZXR1cm5cbiAgICAgICAgekUoKCkgPT4ge1xuICAgICAgICAgIHJldHVybiB3aW5kb3cuekUuaWRlbnRpZnkoe1xuICAgICAgICAgICAgbmFtZTogYCR7Y3VzdG9tZXIuZmlyc3ROYW1lIHx8IG51bGx9ICR7Y3VzdG9tZXIubGFzdE5hbWUgfHwgbnVsbH1gLFxuICAgICAgICAgICAgZW1haWw6IGN1c3RvbWVyLmVtYWlsIHx8IG51bGwsXG4gICAgICAgICAgfSlcbiAgICAgICAgfSlcbiAgICAgIH0pXG4gICAgICAuY2F0Y2gob25FcnJvcilcbiAgfVxuXG4gIGRlZmVyTG9hZFplbmRlc2soKSB7XG4gICAgcmV0dXJuIG5ldyBQcm9taXNlKChyZXNvbHZlLCByZWplY3QpID0+IHtcbiAgICAgIGNvbnN0IGNiID0gKCkgPT4ge1xuICAgICAgICB0cnkge1xuICAgICAgICAgIGlmICghd2luZG93IHx8IHdpbmRvdy56RSkgcmV0dXJuIHJlc29sdmUoKVxuICAgICAgICAgIHdpbmRvdy56RSA9IG51bGxcbiAgICAgICAgICB3aW5kb3cuekVTZXR0aW5ncyA9IHtcbiAgICAgICAgICAgIHdlYldpZGdldDoge1xuICAgICAgICAgICAgICBhbnN3ZXJCb3Q6IHtcbiAgICAgICAgICAgICAgICBhdmF0YXI6IHtcbiAgICAgICAgICAgICAgICAgIHVybDpcbiAgICAgICAgICAgICAgICAgICAgJ2h0dHBzOi8vZmFjZS1hc3NldHMuZG9sbGFyc2hhdmVjbHViLmNvbS9pbWFnZXMvYWRhY2hhdGJvdC1pbWFnZXMvYWdlbnQtbW9ub2dyYW0tY29yYWwuc3ZnJyxcbiAgICAgICAgICAgICAgICAgIG5hbWU6IHtcbiAgICAgICAgICAgICAgICAgICAgJyonOiAnRG9sbGFyIFNoYXZlIENsdWInLFxuICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIHRpdGxlOiB7XG4gICAgICAgICAgICAgICAgICAnZW4tVVMnOiAnRG9sbGFyIFNoYXZlIENsdWInLFxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICB9LFxuICAgICAgICAgIH1cbiAgICAgICAgICB0aGlzLmxvYWRaZW5kZXNrKClcbiAgICAgICAgICByZXNvbHZlKClcbiAgICAgICAgfSBjYXRjaCAoZXJyKSB7XG4gICAgICAgICAgcmVqZWN0KGVycilcbiAgICAgICAgfVxuICAgICAgfVxuXG4gICAgICBpZiAodHlwZW9mIHJlcXVlc3RJZGxlQ2FsbGJhY2sgPT09ICdmdW5jdGlvbicpIHtcbiAgICAgICAgcmVxdWVzdElkbGVDYWxsYmFjayhjYiwge1xuICAgICAgICAgIHRpbWVvdXQ6IDMwMDAsXG4gICAgICAgIH0pXG4gICAgICB9IGVsc2Uge1xuICAgICAgICBzZXRUaW1lb3V0KGNiLCAxMDAwKVxuICAgICAgfVxuICAgIH0pLmNhdGNoKG9uRXJyb3IpXG4gIH1cblxuICBsb2FkWmVuZGVzaygpIHtcbiAgICBjb25zdCB7IHplbmRlc2tIb3N0IH0gPSB0aGlzXG4gICAgLyogZXNsaW50LWRpc2FibGUgKi9cbiAgICB3aW5kb3cuekVtYmVkIHx8XG4gICAgICAoZnVuY3Rpb24gKGUsIHQpIHtcbiAgICAgICAgdmFyIG4sXG4gICAgICAgICAgbyxcbiAgICAgICAgICBkLFxuICAgICAgICAgIGksXG4gICAgICAgICAgcyxcbiAgICAgICAgICBhID0gW10sXG4gICAgICAgICAgciA9IGRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoJ2lmcmFtZScpXG4gICAgICAgIDsod2luZG93LnpFbWJlZCA9IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICBhLnB1c2goYXJndW1lbnRzKVxuICAgICAgICB9KSxcbiAgICAgICAgICAod2luZG93LnpFID0gd2luZG93LnpFIHx8IHdpbmRvdy56RW1iZWQpLFxuICAgICAgICAgIChyLnNyYyA9ICdqYXZhc2NyaXB0OmZhbHNlJyksXG4gICAgICAgICAgKHIudGl0bGUgPSAnJyksXG4gICAgICAgICAgKHIucm9sZSA9ICdwcmVzZW50YXRpb24nKSxcbiAgICAgICAgICAoKHIuZnJhbWVFbGVtZW50IHx8IHIpLnN0eWxlLmNzc1RleHQgPSAnZGlzcGxheTogbm9uZScpLFxuICAgICAgICAgIChkID0gZG9jdW1lbnQuZ2V0RWxlbWVudHNCeVRhZ05hbWUoJ3NjcmlwdCcpKSxcbiAgICAgICAgICAoZCA9IGRbZC5sZW5ndGggLSAxXSksXG4gICAgICAgICAgZC5wYXJlbnROb2RlLmluc2VydEJlZm9yZShyLCBkKSxcbiAgICAgICAgICAoaSA9IHIuY29udGVudFdpbmRvdyksXG4gICAgICAgICAgKHMgPSBpLmRvY3VtZW50KVxuICAgICAgICB0cnkge1xuICAgICAgICAgIG8gPSBzXG4gICAgICAgIH0gY2F0Y2ggKGUpIHtcbiAgICAgICAgICA7KG4gPSBkb2N1bWVudC5kb21haW4pLFxuICAgICAgICAgICAgKHIuc3JjID1cbiAgICAgICAgICAgICAgJ2phdmFzY3JpcHQ6dmFyIGQ9ZG9jdW1lbnQub3BlbigpO2QuZG9tYWluPVwiJyArIG4gKyAnXCI7dm9pZCgwKTsnKSxcbiAgICAgICAgICAgIChvID0gcylcbiAgICAgICAgfVxuICAgICAgICA7KG8ub3BlbigpLl9sID0gZnVuY3Rpb24gKCkge1xuICAgICAgICAgIHZhciBlID0gdGhpcy5jcmVhdGVFbGVtZW50KCdzY3JpcHQnKVxuICAgICAgICAgIG4gJiYgKHRoaXMuZG9tYWluID0gbiksXG4gICAgICAgICAgICAoZS5pZCA9ICdqcy1pZnJhbWUtYXN5bmMnKSxcbiAgICAgICAgICAgIChlLnNyYyA9ICdodHRwczovL2Fzc2V0cy56ZW5kZXNrLmNvbS9lbWJlZGRhYmxlX2ZyYW1ld29yay9tYWluLmpzJyksXG4gICAgICAgICAgICAodGhpcy50ID0gK25ldyBEYXRlKCkpLFxuICAgICAgICAgICAgKHRoaXMuemVuZGVza0hvc3QgPSB6ZW5kZXNrSG9zdCksXG4gICAgICAgICAgICAodGhpcy56RVF1ZXVlID0gYSksXG4gICAgICAgICAgICB0aGlzLmJvZHkuYXBwZW5kQ2hpbGQoZSlcbiAgICAgICAgfSksXG4gICAgICAgICAgby53cml0ZSgnPGJvZHkgb25sb2FkPVwiZG9jdW1lbnQuX2woKTtcIj4nKSxcbiAgICAgICAgICBvLmNsb3NlKClcbiAgICAgIH0pKClcbiAgICAvKiBlc2xpbnQtZW5hYmxlICovXG4gIH1cblxuICBzZXRIZWxwQ2VudGVyU3VnZ2VzdGlvbnMob3B0aW9ucykge1xuICAgIHJldHVybiB0aGlzLmxvYWRaZW5kZXNrUHJvbWlzZVxuICAgICAgLnRoZW4oKCkgPT4ge1xuICAgICAgICBjb25zdCB7IHpFIH0gPSB3aW5kb3dcbiAgICAgICAgaWYgKCF6RSB8fCB0eXBlb2YgekUgIT09ICdmdW5jdGlvbicpIHJldHVyblxuICAgICAgICB6RSgoKSA9PiB3aW5kb3cuekUuc2V0SGVscENlbnRlclN1Z2dlc3Rpb25zKG9wdGlvbnMpKVxuICAgICAgfSlcbiAgICAgIC5jYXRjaChvbkVycm9yKVxuICB9XG5cbiAgbG9hZENvbW1hbmRzKHNldElzWmVuZGVza09wZW4pIHtcbiAgICByZXR1cm4gdGhpcy5sb2FkWmVuZGVza1Byb21pc2VcbiAgICAgIC50aGVuKCgpID0+IHtcbiAgICAgICAgY29uc3QgeyB6RSB9ID0gd2luZG93XG4gICAgICAgIGlmICghekUgfHwgdHlwZW9mIHpFICE9PSAnZnVuY3Rpb24nKSByZXR1cm5cbiAgICAgICAgekUoJ3dlYldpZGdldDpvbicsICdvcGVuJywgKCkgPT4gc2V0SXNaZW5kZXNrT3Blbih0cnVlKSlcbiAgICAgICAgekUoJ3dlYldpZGdldDpvbicsICdjbG9zZScsICgpID0+IHNldElzWmVuZGVza09wZW4oZmFsc2UpKVxuICAgICAgfSlcbiAgICAgIC5jYXRjaChvbkVycm9yKVxuICB9XG5cbiAgcmVtb3ZlWmVuZGVzaygpIHtcbiAgICBjb25zdCB6ZW5kZXNrRnJhbWUgPSBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgnbGF1bmNoZXInKVxuXG4gICAgaWYgKHplbmRlc2tGcmFtZSkge1xuICAgICAgd2luZG93LnpFbWJlZCA9IG51bGxcbiAgICAgIHdpbmRvdy56RSA9IG51bGxcblxuICAgICAgemVuZGVza0ZyYW1lLnJlbW92ZSgpXG4gICAgfVxuICB9XG59XG4iXX0=
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxvYWQtemVuZGVzay5qcyJdLCJuYW1lcyI6WyJvbkVycm9yIiwicmVxdWlyZSIsImNvbmZpZyIsImxvYWRlciIsIkxvYWRaZW5kZXNrIiwibG9hZFplbmRlc2tQcm9taXNlIiwiZGVmZXJMb2FkWmVuZGVzayIsInplbmRlc2tIb3N0IiwiaG9zdCIsImhvc3RuYW1lIiwiRXJyb3IiLCJjdXN0b21lciIsInRoZW4iLCJ3aW5kb3ciLCJ6RSIsImlkZW50aWZ5IiwibmFtZSIsImZpcnN0TmFtZSIs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AgICBlbWFpbDogY3VzdG9tZXIuZW1haWwgfHwgbnVsbCxcbiAgICAgICAgICB9KVxuICAgICAgICB9KVxuICAgICAgfSlcbiAgICAgIC5jYXRjaChvbkVycm9yKVxuICB9XG5cbiAgZGVmZXJMb2FkWmVuZGVzaygpIHtcbiAgICByZXR1cm4gbmV3IFByb21pc2UoKHJlc29sdmUsIHJlamVjdCkgPT4ge1xuICAgICAgY29uc3QgY2IgPSAoKSA9PiB7XG4gICAgICAgIHRyeSB7XG4gICAgICAgICAgaWYgKCF3aW5kb3cgfHwgd2luZG93LnpFKSByZXR1cm4gcmVzb2x2ZSgpXG4gICAgICAgICAgd2luZG93LnpFID0gbnVsbFxuICAgICAgICAgIHdpbmRvdy56RVNldHRpbmdzID0ge1xuICAgICAgICAgICAgd2ViV2lkZ2V0OiB7XG4gICAgICAgICAgICAgIGFuc3dlckJvdDoge1xuICAgICAgICAgICAgICAgIGF2YXRhcjoge1xuICAgICAgICAgICAgICAgICAgdXJsOiAnaHR0cHM6Ly9mYWNlLWFzc2V0cy5kb2xsYXJzaGF2ZWNsdWIuY29tL2ltYWdlcy9hZGFjaGF0Ym90LWltYWdlcy9hZ2VudC1tb25vZ3JhbS1jb3JhbC5zdmcnLFxuICAgICAgICAgICAgICAgICAgbmFtZToge1xuICAgICAgICAgICAgICAgICAgICAnKic6ICdEb2xsYXIgU2hhdmUgQ2x1YicsXG4gICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgdGl0bGU6IHtcbiAgICAgICAgICAgICAgICAgICdlbi1VUyc6ICdEb2xsYXIgU2hhdmUgQ2x1YicsXG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgfVxuICAgICAgICAgIHRoaXMubG9hZFplbmRlc2soKVxuICAgICAgICAgIHJlc29sdmUoKVxuICAgICAgICB9IGNhdGNoIChlcnIpIHtcbiAgICAgICAgICByZWplY3QoZXJyKVxuICAgICAgICB9XG4gICAgICB9XG5cbiAgICAgIGlmICh0eXBlb2YgcmVxdWVzdElkbGVDYWxsYmFjayA9PT0gJ2Z1bmN0aW9uJykge1xuICAgICAgICByZXF1ZXN0SWRsZUNhbGxiYWNrKGNiLCB7XG4gICAgICAgICAgdGltZW91dDogMzAwMCxcbiAgICAgICAgfSlcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHNldFRpbWVvdXQoY2IsIDEwMDApXG4gICAgICB9XG4gICAgfSkuY2F0Y2gob25FcnJvcilcbiAgfVxuXG4gIGxvYWRaZW5kZXNrKCkge1xuICAgIGNvbnN0IHsgemVuZGVza0hvc3QgfSA9IHRoaXNcbiAgICAvKiBlc2xpbnQtZGlzYWJsZSAqL1xuICAgIHdpbmRvdy56RW1iZWQgfHxcbiAgICAgIChmdW5jdGlvbiAoZSwgdCkge1xuICAgICAgICB2YXIgbixcbiAgICAgICAgICBvLFxuICAgICAgICAgIGQsXG4gICAgICAgICAgaSxcbiAgICAgICAgICBzLFxuICAgICAgICAgIGEgPSBbXSxcbiAgICAgICAgICByID0gZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgnaWZyYW1lJylcbiAgICAgICAgOyh3aW5kb3cuekVtYmVkID0gZnVuY3Rpb24gKCkge1xuICAgICAgICAgIGEucHVzaChhcmd1bWVudHMpXG4gICAgICAgIH0pLFxuICAgICAgICAgICh3aW5kb3cuekUgPSB3aW5kb3cuekUgfHwgd2luZG93LnpFbWJlZCksXG4gICAgICAgICAgKHIuc3JjID0gJ2phdmFzY3JpcHQ6ZmFsc2UnKSxcbiAgICAgICAgICAoci50aXRsZSA9ICcnKSxcbiAgICAgICAgICAoci5yb2xlID0gJ3ByZXNlbnRhdGlvbicpLFxuICAgICAgICAgICgoci5mcmFtZUVsZW1lbnQgfHwgcikuc3R5bGUuY3NzVGV4dCA9ICdkaXNwbGF5OiBub25lJyksXG4gICAgICAgICAgKGQgPSBkb2N1bWVudC5nZXRFbGVtZW50c0J5VGFnTmFtZSgnc2NyaXB0JykpLFxuICAgICAgICAgIChkID0gZFtkLmxlbmd0aCAtIDFdKSxcbiAgICAgICAgICBkLnBhcmVudE5vZGUuaW5zZXJ0QmVmb3JlKHIsIGQpLFxuICAgICAgICAgIChpID0gci5jb250ZW50V2luZG93KSxcbiAgICAgICAgICAocyA9IGkuZG9jdW1lbnQpXG4gICAgICAgIHRyeSB7XG4gICAgICAgICAgbyA9IHNcbiAgICAgICAgfSBjYXRjaCAoZSkge1xuICAgICAgICAgIDsobiA9IGRvY3VtZW50LmRvbWFpbiksXG4gICAgICAgICAgICAoci5zcmMgPVxuICAgICAgICAgICAgICAnamF2YXNjcmlwdDp2YXIgZD1kb2N1bWVudC5vcGVuKCk7ZC5kb21haW49XCInICsgbiArICdcIjt2b2lkKDApOycpLFxuICAgICAgICAgICAgKG8gPSBzKVxuICAgICAgICB9XG4gICAgICAgIDsoby5vcGVuKCkuX2wgPSBmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgdmFyIGUgPSB0aGlzLmNyZWF0ZUVsZW1lbnQoJ3NjcmlwdCcpXG4gICAgICAgICAgbiAmJiAodGhpcy5kb21haW4gPSBuKSxcbiAgICAgICAgICAgIChlLmlkID0gJ2pzLWlmcmFtZS1hc3luYycpLFxuICAgICAgICAgICAgKGUuc3JjID0gJ2h0dHBzOi8vYXNzZXRzLnplbmRlc2suY29tL2VtYmVkZGFibGVfZnJhbWV3b3JrL21haW4uanMnKSxcbiAgICAgICAgICAgICh0aGlzLnQgPSArbmV3IERhdGUoKSksXG4gICAgICAgICAgICAodGhpcy56ZW5kZXNrSG9zdCA9IHplbmRlc2tIb3N0KSxcbiAgICAgICAgICAgICh0aGlzLnpFUXVldWUgPSBhKSxcbiAgICAgICAgICAgIHRoaXMuYm9keS5hcHBlbmRDaGlsZChlKVxuICAgICAgICB9KSxcbiAgICAgICAgICBvLndyaXRlKCc8Ym9keSBvbmxvYWQ9XCJkb2N1bWVudC5fbCgpO1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3cuekVtYmVkID0gbnVsbFxuICAgICAgd2luZG93LnpFID0gbnVsbFxuXG4gICAgICB6ZW5kZXNrRnJhbWUucmVtb3ZlKClcbiAgICB9XG4gIH1cbn1cbiJdfQ==

@@ -238,2 +238,2 @@ "use strict";

exports.NavItemFactory = NavItemFactory;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5hdi1pdGVtLWZhY3RvcnkuanMiXSwibmFtZXMiOlsiTmF2SXRlbUZhY3RvcnkiLCJjb250ZXh0IiwiZmVhdHVyZXMiLCJhYlRlc3RzIiwidXNlckRhdGEiLCJ1cmwiLCJkYXRhSHJlZlRvSWdub3JlIiwiTmF2SXRlbSIsImxhYmVsIiwid2FsbGV0QmFsYW5jZSIsImFjdGl2ZVBsYW5PclN1YnNjcmlwdGlvbiIsInVzZXJTdGF0dXMiLCJmdWxsU2VydmljZU1lbWJlcnNoaXBGdW5uZWxBbmRDaGVja291dCIsInN1YnNjcmlwdGlvblJhem9yIiwidHJpYWxLaXRzIiwiYnVpbGRUcmlhbFNpemUiLCJjaGlsZEl0ZW1zIiwiaXNIZWFkZXIiLCJmaWx0ZXIiLCJCb29sZWFuIiwibGluayIsInNob3VsZE9wZW5Jbk1vZGFsIiwiZ2lmdGluZyIsImJ1aWxkR2lmdFRoZUNsdWIiLCJsaW5rcyIsIm1lbFNldHRpbmdzIiwib3JpZ2luYWxfY29udGVudCIsImJ1aWxkT3JpZ2luYWxDb250ZW50IiwicHVzaCIsImJ1aWxkR2lmdEFHaWZ0U2V0IiwiZ2lmdGluZ0VDYXJkIiwiYnVpbGRCdXlHaWZ0Q2FyZCIsImJ1aWxkR2lmdFJlZGVlbSIsImdpZnRUaGVDbHViIl0sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQUE7Ozs7Ozs7O0FBRUE7QUFDQTtJQUNNQSxjO0FBQ0osNEJBQTBCO0FBQUEsUUFBZEMsT0FBYyx1RUFBSixFQUFJO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pZnRpbmcpIHtcbiAgICAgIHJldHVybiBudWxsXG4gICAgfVxuXG4gICAgY29uc3QgY2hpbGRJdGVtcyA9IFtdXG5cbiAgICBjaGlsZEl0ZW1zLnB1c2godGhpcy5idWlsZEdpZnRBR2lmdFNldCgpKVxuXG4gICAgaWYgKHRoaXMuZmVhdHVyZXMuZ2lmdGluZ0VDYXJkKSB7XG4gICAgICBjaGlsZEl0ZW1zLnB1c2godGhpcy5idWlsZEJ1eUdpZnRDYXJkKCkpXG4gICAgfVxuXG4gICAgY2hpbGRJdGVtcy5wdXNoKHRoaXMuYnVpbGRHaWZ0UmVkZWVtKCkpXG5cbiAgICBjb25zdCBnaWZ0VGhlQ2x1YiA9IHRoaXMuYnVpbGRHaWZ0VGhlQ2x1YigpXG4gICAgZ2lmdFRoZUNsdWIuY2hpbGRJdGVtcyA9IGNoaWxkSXRlbXNcblxuICAgIHJldHVybiBnaWZ0VGhlQ2x1YlxuICB9XG59XG5cbmV4cG9ydCB7IE5hdkl0ZW1GYWN0b3J5IH1cbiJdfQ==

@@ -6,2 +6,10 @@ # Change Log

## [73.11.2](https://github.com/dollarshaveclub/frontend/compare/@dollarshaveclub/js-utils@73.11.1...@dollarshaveclub/js-utils@73.11.2) (2021-12-07)
**Note:** Version bump only for package @dollarshaveclub/js-utils
## [73.11.1](https://github.com/dollarshaveclub/frontend/compare/@dollarshaveclub/js-utils@73.11.0...@dollarshaveclub/js-utils@73.11.1) (2021-11-11)

@@ -8,0 +16,0 @@

{
"name": "@dollarshaveclub/js-utils",
"description": "",
"version": "73.11.1",
"version": "73.11.2",
"author": "",

@@ -37,3 +37,3 @@ "dependencies": {

},
"gitHead": "d8606b0f397d6417a1f38b8aba68b80fea7cb4f1"
"gitHead": "98350eaf965b1e41ed1735d468be7c9a0ee9d7b8"
}

@@ -40,4 +40,3 @@ const onError = require('./on-error')

avatar: {
url:
'https://face-assets.dollarshaveclub.com/images/adachatbot-images/agent-monogram-coral.svg',
url: 'https://face-assets.dollarshaveclub.com/images/adachatbot-images/agent-monogram-coral.svg',
name: {

@@ -44,0 +43,0 @@ '*': 'Dollar Shave Club',

@@ -148,4 +148,3 @@ import { NavItem } from './nav-item'

label: 'Buy Gift Card',
url:
'https://shop.giftcard.dollarshaveclub.com/store/recipient?locale=en-us',
url: 'https://shop.giftcard.dollarshaveclub.com/store/recipient?locale=en-us',
})

@@ -152,0 +151,0 @@ }

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