New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@folklore/services

Package Overview
Dependencies
Maintainers
3
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@folklore/services - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

2

dist/size.js

@@ -14,2 +14,2 @@ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Size=t():e.Size=t()}("undefined"!=typeof self?self:this,function(){return function(e){var t={};function __webpack_require__(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,__webpack_require__),r.l=!0,r.exports}return __webpack_require__.m=e,__webpack_require__.c=t,__webpack_require__.d=function(e,t,n){__webpack_require__.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,"a",t),t},__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.p="/",__webpack_require__(__webpack_require__.s=2)}([function(e,t,n){var r;

* @version v4.2.4+314e4831
*/var r;r=function(){"use strict";function isFunction(e){return"function"==typeof e}var e=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},r=0,i=void 0,o=void 0,s=function(e,t){d[r]=e,d[r+1]=t,2===(r+=2)&&(o?o(flush):_())};var u="undefined"!=typeof window?window:void 0,c=u||{},a=c.MutationObserver||c.WebKitMutationObserver,l="undefined"==typeof self&&void 0!==t&&"[object process]"==={}.toString.call(t),f="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function useSetTimeout(){var e=setTimeout;return function(){return e(flush,1)}}var d=new Array(1e3);function flush(){for(var e=0;e<r;e+=2){(0,d[e])(d[e+1]),d[e]=void 0,d[e+1]=void 0}r=0}var h,p,v,m,_=void 0;function then(e,t){var n=this,r=new this.constructor(noop);void 0===r[y]&&makePromise(r);var i=n._state;if(i){var o=arguments[i-1];s(function(){return invokeCallback(i,r,o,n._result)})}else subscribe(n,r,e,t);return r}function resolve$1(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(noop);return resolve(t,e),t}l?_=function(){return t.nextTick(flush)}:a?(p=0,v=new a(flush),m=document.createTextNode(""),v.observe(m,{characterData:!0}),_=function(){m.data=p=++p%2}):f?((h=new MessageChannel).port1.onmessage=flush,_=function(){return h.port2.postMessage(0)}):_=void 0===u?function(){try{var e=Function("return this")().require("vertx");return void 0!==(i=e.runOnLoop||e.runOnContext)?function(){i(flush)}:useSetTimeout()}catch(e){return useSetTimeout()}}():useSetTimeout();var y=Math.random().toString(36).substring(2);function noop(){}var b=void 0,g=1,w=2,j={error:null};function getThen(e){try{return e.then}catch(e){return j.error=e,j}}function handleMaybeThenable(e,t,n){t.constructor===e.constructor&&n===then&&t.constructor.resolve===resolve$1?function(e,t){t._state===g?fulfill(e,t._result):t._state===w?reject(e,t._result):subscribe(t,void 0,function(t){return resolve(e,t)},function(t){return reject(e,t)})}(e,t):n===j?(reject(e,j.error),j.error=null):void 0===n?fulfill(e,t):isFunction(n)?function(e,t,n){s(function(e){var r=!1,i=function(e,t,n,r){try{e.call(t,n,r)}catch(e){return e}}(n,t,function(n){r||(r=!0,t!==n?resolve(e,n):fulfill(e,n))},function(t){r||(r=!0,reject(e,t))},e._label);!r&&i&&(r=!0,reject(e,i))},e)}(e,t,n):fulfill(e,t)}function resolve(e,t){var n,r;e===t?reject(e,new TypeError("You cannot resolve a promise with itself")):(r=typeof(n=t),null===n||"object"!==r&&"function"!==r?fulfill(e,t):handleMaybeThenable(e,t,getThen(t)))}function publishRejection(e){e._onerror&&e._onerror(e._result),publish(e)}function fulfill(e,t){e._state===b&&(e._result=t,e._state=g,0!==e._subscribers.length&&s(publish,e))}function reject(e,t){e._state===b&&(e._state=w,e._result=t,s(publishRejection,e))}function subscribe(e,t,n,r){var i=e._subscribers,o=i.length;e._onerror=null,i[o]=t,i[o+g]=n,i[o+w]=r,0===o&&e._state&&s(publish,e)}function publish(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,i=void 0,o=e._result,s=0;s<t.length;s+=3)r=t[s],i=t[s+n],r?invokeCallback(n,r,i,o):i(o);e._subscribers.length=0}}function invokeCallback(e,t,n,r){var i=isFunction(n),o=void 0,s=void 0,u=void 0,c=void 0;if(i){if((o=function(e,t){try{return e(t)}catch(e){return j.error=e,j}}(n,r))===j?(c=!0,s=o.error,o.error=null):u=!0,t===o)return void reject(t,new TypeError("A promises callback cannot return that same promise."))}else o=r,u=!0;t._state!==b||(i&&u?resolve(t,o):c?reject(t,s):e===g?fulfill(t,o):e===w&&reject(t,o))}var E=0;function makePromise(e){e[y]=E++,e._state=void 0,e._result=void 0,e._subscribers=[]}var T=function(){function Enumerator(t,n){this._instanceConstructor=t,this.promise=new t(noop),this.promise[y]||makePromise(this.promise),e(n)?(this.length=n.length,this._remaining=n.length,this._result=new Array(this.length),0===this.length?fulfill(this.promise,this._result):(this.length=this.length||0,this._enumerate(n),0===this._remaining&&fulfill(this.promise,this._result))):reject(this.promise,new Error("Array Methods must be provided an Array"))}return Enumerator.prototype._enumerate=function(e){for(var t=0;this._state===b&&t<e.length;t++)this._eachEntry(e[t],t)},Enumerator.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===resolve$1){var i=getThen(e);if(i===then&&e._state!==b)this._settledAt(e._state,t,e._result);else if("function"!=typeof i)this._remaining--,this._result[t]=e;else if(n===k){var o=new n(noop);handleMaybeThenable(o,e,i),this._willSettleAt(o,t)}else this._willSettleAt(new n(function(t){return t(e)}),t)}else this._willSettleAt(r(e),t)},Enumerator.prototype._settledAt=function(e,t,n){var r=this.promise;r._state===b&&(this._remaining--,e===w?reject(r,n):this._result[t]=n),0===this._remaining&&fulfill(r,this._result)},Enumerator.prototype._willSettleAt=function(e,t){var n=this;subscribe(e,void 0,function(e){return n._settledAt(g,t,e)},function(e){return n._settledAt(w,t,e)})},Enumerator}();var k=function(){function Promise(e){this[y]=E++,this._result=this._state=void 0,this._subscribers=[],noop!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof Promise?function(e,t){try{t(function(t){resolve(e,t)},function(t){reject(e,t)})}catch(t){reject(e,t)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return Promise.prototype.catch=function(e){return this.then(null,e)},Promise.prototype.finally=function(e){var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){throw n})})},Promise}();return k.prototype.then=then,k.all=function(e){return new T(this,e).promise},k.race=function(t){var n=this;return e(t)?new n(function(e,r){for(var i=t.length,o=0;o<i;o++)n.resolve(t[o]).then(e,r)}):new n(function(e,t){return t(new TypeError("You must pass an array to race."))})},k.resolve=resolve$1,k.reject=function(e){var t=new this(noop);return reject(t,e),t},k._setScheduler=function(e){o=e},k._setAsap=function(e){s=e},k._asap=s,k.polyfill=function(){var e=void 0;if(void 0!==n)e=n;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===r&&!t.cast)return}e.Promise=k},k.Promise=k,k},e.exports=r()}).call(t,n(3),n(4))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(0),o=n.n(i),s=!1,u=new o.a,c=function(e){return new r.Promise(function(t){if("undefined"==typeof FB)if(s)u.once("loaded",t);else{s=!0;var n=Object.assign({appId:null,locale:"EN_US",autoLogAppEvents:!0,cookie:!0,state:!0,version:"v2.10"},e);window.fbAsyncInit=function(){FB.init(Object.assign({},n)),FB.AppEvents.logPageView(),t(FB),u.emit("loaded",FB)},function(e,t,n,r){var i=e.getElementsByTagName(t)[0];if(!e.getElementById(n)){var o=e.createElement(t);o.id=n,o.src="//connect.facebook.net/"+r+"/sdk.js",i.parentNode.insertBefore(o,i)}}(document,"script","facebook-jssdk",n.locale)}else t(FB)})},a=n(5),l=n.n(a),f=!1,d=new o.a,h=function(e){return new r.Promise(function(t){if("undefined"==typeof google||void 0===google.maps)if(f)d.once("loaded",t);else{f=!0;var n=Object.assign({locale:"en",apiKey:null,libraries:null},e),r="initMap_"+(new Date).getTime();window[r]=function(){t(google),d.emit("loaded",google)};var i=l.a.stringify({key:n.apiKey,callback:r,libraries:null!==n.libraries?n.libraries.join(","):null,language:n.locale}),o=document.createElement("script");o.src="https://maps.googleapis.com/maps/api/js?"+i,document.getElementsByTagName("head")[0].appendChild(o)}else t(google)})},p=!1,v=!1,m=new o.a,_=function(){return new Promise(function(e){if(v||"undefined"!=typeof StripeCheckout)e(StripeCheckout);else if(m.once("loaded",e),!p){p=!0;var t=document.createElement("script");t.onload=function(){v=!0,m.emit("loaded",StripeCheckout)},t.src="https://checkout.stripe.com/checkout.js",document.getElementsByTagName("head")[0].appendChild(t)}})},y=!1,b=!1,g=new o.a,w=function(e){return new Promise(function(t){if(b||"undefined"==typeof RadioCanada||void 0===RadioCanada.player||(b=!0),b)t(RadioCanada.player);else if(g.once("loaded",t),!y){y=!0;var n=Object.assign({clientId:"radiocanadaca_tele",url:"//services.radio-canada.ca/media/player/client/{clientId}"},e),r=document.createElement("script");r.onload=function(){b=!0,g.emit("loaded",RadioCanada.player)},r.src=n.url.replace(/\{\s*clientId\s*\}/gi,n.clientId),document.getElementsByTagName("head")[0].appendChild(r)}})};new o.a;n.d(t,"loadFacebook",function(){return c}),n.d(t,"loadGoogleMaps",function(){return h}),n.d(t,"loadStripeCheckout",function(){return _}),n.d(t,"loadSrcPlayer",function(){return w})},function(e,t){var n,r,i=e.exports={};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(e){if(n===setTimeout)return setTimeout(e,0);if((n===defaultSetTimout||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){n=defaultSetTimout}try{r="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){r=defaultClearTimeout}}();var o,s=[],u=!1,c=-1;function cleanUpNextTick(){u&&o&&(u=!1,o.length?s=o.concat(s):c=-1,s.length&&drainQueue())}function drainQueue(){if(!u){var e=runTimeout(cleanUpNextTick);u=!0;for(var t=s.length;t;){for(o=s,s=[];++c<t;)o&&o[c].run();c=-1,t=s.length}o=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===defaultClearTimeout||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function Item(e,t){this.fun=e,this.array=t}function noop(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new Item(e,t)),1!==s.length||u||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=noop,i.addListener=noop,i.once=noop,i.off=noop,i.removeListener=noop,i.removeAllListeners=noop,i.emit=noop,i.prependListener=noop,i.prependOnceListener=noop,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r=n(6),i=n(7),o=n(8);function encode(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function extract(e){var t=e.indexOf("?");return-1===t?"":e.slice(t+1)}function parse(e,t){var n=function(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t=i({arrayFormat:"none"},t)),r=Object.create(null);return"string"!=typeof e?r:(e=e.trim().replace(/^[?#&]/,""))?(e.split("&").forEach(function(e){var t=e.replace(/\+/g," ").split("="),i=t.shift(),s=t.length>0?t.join("="):void 0;s=void 0===s?null:o(s),n(o(i),s,r)}),Object.keys(r).sort().reduce(function(e,t){var n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=function keysSorter(e){return Array.isArray(e)?e.sort():"object"==typeof e?keysSorter(Object.keys(e)).sort(function(e,t){return Number(e)-Number(t)}).map(function(t){return e[t]}):e}(n):e[t]=n,e},Object.create(null))):r}t.extract=extract,t.parse=parse,t.stringify=function(e,t){!1===(t=i({encode:!0,strict:!0,arrayFormat:"none"},t)).sort&&(t.sort=function(){});var n=function(e){switch(e.arrayFormat){case"index":return function(t,n,r){return null===n?[encode(t,e),"[",r,"]"].join(""):[encode(t,e),"[",encode(r,e),"]=",encode(n,e)].join("")};case"bracket":return function(t,n){return null===n?encode(t,e):[encode(t,e),"[]=",encode(n,e)].join("")};default:return function(t,n){return null===n?encode(t,e):[encode(t,e),"=",encode(n,e)].join("")}}}(t);return e?Object.keys(e).sort(t.sort).map(function(r){var i=e[r];if(void 0===i)return"";if(null===i)return encode(r,t);if(Array.isArray(i)){var o=[];return i.slice().forEach(function(e){void 0!==e&&o.push(n(r,e,o.length))}),o.join("&")}return encode(r,t)+"="+encode(i,t)}).filter(function(e){return e.length>0}).join("&"):""},t.parseUrl=function(e,t){return{url:e.split("?")[0]||"",query:parse(extract(e),t)}}},function(e,t){e.exports=require("strict-uri-encode")},function(e,t){e.exports=require("object-assign")},function(e,t){e.exports=require("decode-uri-component")}])});
*/var r;r=function(){"use strict";function isFunction(e){return"function"==typeof e}var e=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},r=0,i=void 0,o=void 0,s=function(e,t){d[r]=e,d[r+1]=t,2===(r+=2)&&(o?o(flush):_())};var u="undefined"!=typeof window?window:void 0,c=u||{},a=c.MutationObserver||c.WebKitMutationObserver,l="undefined"==typeof self&&void 0!==t&&"[object process]"==={}.toString.call(t),f="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function useSetTimeout(){var e=setTimeout;return function(){return e(flush,1)}}var d=new Array(1e3);function flush(){for(var e=0;e<r;e+=2){(0,d[e])(d[e+1]),d[e]=void 0,d[e+1]=void 0}r=0}var p,h,v,m,_=void 0;function then(e,t){var n=this,r=new this.constructor(noop);void 0===r[y]&&makePromise(r);var i=n._state;if(i){var o=arguments[i-1];s(function(){return invokeCallback(i,r,o,n._result)})}else subscribe(n,r,e,t);return r}function resolve$1(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(noop);return resolve(t,e),t}l?_=function(){return t.nextTick(flush)}:a?(h=0,v=new a(flush),m=document.createTextNode(""),v.observe(m,{characterData:!0}),_=function(){m.data=h=++h%2}):f?((p=new MessageChannel).port1.onmessage=flush,_=function(){return p.port2.postMessage(0)}):_=void 0===u?function(){try{var e=Function("return this")().require("vertx");return void 0!==(i=e.runOnLoop||e.runOnContext)?function(){i(flush)}:useSetTimeout()}catch(e){return useSetTimeout()}}():useSetTimeout();var y=Math.random().toString(36).substring(2);function noop(){}var b=void 0,g=1,w=2,j={error:null};function getThen(e){try{return e.then}catch(e){return j.error=e,j}}function handleMaybeThenable(e,t,n){t.constructor===e.constructor&&n===then&&t.constructor.resolve===resolve$1?function(e,t){t._state===g?fulfill(e,t._result):t._state===w?reject(e,t._result):subscribe(t,void 0,function(t){return resolve(e,t)},function(t){return reject(e,t)})}(e,t):n===j?(reject(e,j.error),j.error=null):void 0===n?fulfill(e,t):isFunction(n)?function(e,t,n){s(function(e){var r=!1,i=function(e,t,n,r){try{e.call(t,n,r)}catch(e){return e}}(n,t,function(n){r||(r=!0,t!==n?resolve(e,n):fulfill(e,n))},function(t){r||(r=!0,reject(e,t))},e._label);!r&&i&&(r=!0,reject(e,i))},e)}(e,t,n):fulfill(e,t)}function resolve(e,t){var n,r;e===t?reject(e,new TypeError("You cannot resolve a promise with itself")):(r=typeof(n=t),null===n||"object"!==r&&"function"!==r?fulfill(e,t):handleMaybeThenable(e,t,getThen(t)))}function publishRejection(e){e._onerror&&e._onerror(e._result),publish(e)}function fulfill(e,t){e._state===b&&(e._result=t,e._state=g,0!==e._subscribers.length&&s(publish,e))}function reject(e,t){e._state===b&&(e._state=w,e._result=t,s(publishRejection,e))}function subscribe(e,t,n,r){var i=e._subscribers,o=i.length;e._onerror=null,i[o]=t,i[o+g]=n,i[o+w]=r,0===o&&e._state&&s(publish,e)}function publish(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,i=void 0,o=e._result,s=0;s<t.length;s+=3)r=t[s],i=t[s+n],r?invokeCallback(n,r,i,o):i(o);e._subscribers.length=0}}function invokeCallback(e,t,n,r){var i=isFunction(n),o=void 0,s=void 0,u=void 0,c=void 0;if(i){if((o=function(e,t){try{return e(t)}catch(e){return j.error=e,j}}(n,r))===j?(c=!0,s=o.error,o.error=null):u=!0,t===o)return void reject(t,new TypeError("A promises callback cannot return that same promise."))}else o=r,u=!0;t._state!==b||(i&&u?resolve(t,o):c?reject(t,s):e===g?fulfill(t,o):e===w&&reject(t,o))}var E=0;function makePromise(e){e[y]=E++,e._state=void 0,e._result=void 0,e._subscribers=[]}var T=function(){function Enumerator(t,n){this._instanceConstructor=t,this.promise=new t(noop),this.promise[y]||makePromise(this.promise),e(n)?(this.length=n.length,this._remaining=n.length,this._result=new Array(this.length),0===this.length?fulfill(this.promise,this._result):(this.length=this.length||0,this._enumerate(n),0===this._remaining&&fulfill(this.promise,this._result))):reject(this.promise,new Error("Array Methods must be provided an Array"))}return Enumerator.prototype._enumerate=function(e){for(var t=0;this._state===b&&t<e.length;t++)this._eachEntry(e[t],t)},Enumerator.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===resolve$1){var i=getThen(e);if(i===then&&e._state!==b)this._settledAt(e._state,t,e._result);else if("function"!=typeof i)this._remaining--,this._result[t]=e;else if(n===k){var o=new n(noop);handleMaybeThenable(o,e,i),this._willSettleAt(o,t)}else this._willSettleAt(new n(function(t){return t(e)}),t)}else this._willSettleAt(r(e),t)},Enumerator.prototype._settledAt=function(e,t,n){var r=this.promise;r._state===b&&(this._remaining--,e===w?reject(r,n):this._result[t]=n),0===this._remaining&&fulfill(r,this._result)},Enumerator.prototype._willSettleAt=function(e,t){var n=this;subscribe(e,void 0,function(e){return n._settledAt(g,t,e)},function(e){return n._settledAt(w,t,e)})},Enumerator}();var k=function(){function Promise(e){this[y]=E++,this._result=this._state=void 0,this._subscribers=[],noop!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof Promise?function(e,t){try{t(function(t){resolve(e,t)},function(t){reject(e,t)})}catch(t){reject(e,t)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return Promise.prototype.catch=function(e){return this.then(null,e)},Promise.prototype.finally=function(e){var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){throw n})})},Promise}();return k.prototype.then=then,k.all=function(e){return new T(this,e).promise},k.race=function(t){var n=this;return e(t)?new n(function(e,r){for(var i=t.length,o=0;o<i;o++)n.resolve(t[o]).then(e,r)}):new n(function(e,t){return t(new TypeError("You must pass an array to race."))})},k.resolve=resolve$1,k.reject=function(e){var t=new this(noop);return reject(t,e),t},k._setScheduler=function(e){o=e},k._setAsap=function(e){s=e},k._asap=s,k.polyfill=function(){var e=void 0;if(void 0!==n)e=n;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===r&&!t.cast)return}e.Promise=k},k.Promise=k,k},e.exports=r()}).call(t,n(3),n(4))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(0),o=n.n(i),s=!1,u=new o.a,c=function(e){return new r.Promise(function(t){if("undefined"==typeof FB)if(s)u.once("loaded",t);else{s=!0;var n=Object.assign({appId:null,locale:"EN_US",autoLogAppEvents:!0,cookie:!0,state:!0,version:"v2.10"},e);window.fbAsyncInit=function(){FB.init(Object.assign({},n)),FB.AppEvents.logPageView(),t(FB),u.emit("loaded",FB)},function(e,t,n,r){var i=e.getElementsByTagName(t)[0];if(!e.getElementById(n)){var o=e.createElement(t);o.id=n,o.src="//connect.facebook.net/"+r+"/sdk.js",i.parentNode.insertBefore(o,i)}}(document,"script","facebook-jssdk",n.locale)}else t(FB)})},a=n(5),l=n.n(a),f=!1,d=new o.a,p=function(e){return new r.Promise(function(t){if("undefined"==typeof google||void 0===google.maps)if(f)d.once("loaded",t);else{f=!0;var n=Object.assign({locale:"en",apiKey:null,libraries:null},e),r="initMap_"+(new Date).getTime();window[r]=function(){t(google),d.emit("loaded",google)};var i=l.a.stringify({key:n.apiKey,callback:r,libraries:null!==n.libraries?n.libraries.join(","):null,language:n.locale}),o=document.createElement("script");o.src="https://maps.googleapis.com/maps/api/js?"+i,document.getElementsByTagName("head")[0].appendChild(o)}else t(google)})},h=!1,v=!1,m=new o.a,_=function(){return new Promise(function(e){if(v||"undefined"!=typeof StripeCheckout)e(StripeCheckout);else if(m.once("loaded",e),!h){h=!0;var t=document.createElement("script");t.onload=function(){v=!0,m.emit("loaded",StripeCheckout)},t.src="https://checkout.stripe.com/checkout.js",document.getElementsByTagName("head")[0].appendChild(t)}})},y=!1,b=!1,g=new o.a,w=function(e){return new Promise(function(t){if(b||"undefined"==typeof RadioCanada||void 0===RadioCanada.player||(b=!0),b)t(RadioCanada.player);else if(g.once("loaded",t),!y){y=!0;var n=Object.assign({clientId:"radiocanadaca_tele",url:"//services.radio-canada.ca/media/player/client/{clientId}"},e),r=document.createElement("script");r.onload=function(){b=!0,g.emit("loaded",RadioCanada.player)},r.src=n.url.replace(/\{\s*clientId\s*\}/gi,n.clientId),document.getElementsByTagName("head")[0].appendChild(r)}})},j=!1,E=new o.a,T=function(e){return new r.Promise(function(t){if("undefined"==typeof YT)if(j)E.once("loaded",t);else{j=!0,Object.assign({},e),window.onYouTubeIframeAPIReady=function(){t(YT),E.emit("loaded",YT)};var n=document.createElement("script");n.src="https://www.youtube.com/iframe_api",document.getElementsByTagName("head")[0].appendChild(n)}else t(YT)})};n.d(t,"loadFacebook",function(){return c}),n.d(t,"loadGoogleMaps",function(){return p}),n.d(t,"loadStripeCheckout",function(){return _}),n.d(t,"loadSrcPlayer",function(){return w}),n.d(t,"loadYouTube",function(){return T})},function(e,t){var n,r,i=e.exports={};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(e){if(n===setTimeout)return setTimeout(e,0);if((n===defaultSetTimout||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){n=defaultSetTimout}try{r="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){r=defaultClearTimeout}}();var o,s=[],u=!1,c=-1;function cleanUpNextTick(){u&&o&&(u=!1,o.length?s=o.concat(s):c=-1,s.length&&drainQueue())}function drainQueue(){if(!u){var e=runTimeout(cleanUpNextTick);u=!0;for(var t=s.length;t;){for(o=s,s=[];++c<t;)o&&o[c].run();c=-1,t=s.length}o=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===defaultClearTimeout||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function Item(e,t){this.fun=e,this.array=t}function noop(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new Item(e,t)),1!==s.length||u||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=noop,i.addListener=noop,i.once=noop,i.off=noop,i.removeListener=noop,i.removeAllListeners=noop,i.emit=noop,i.prependListener=noop,i.prependOnceListener=noop,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r=n(6),i=n(7),o=n(8);function encode(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function extract(e){var t=e.indexOf("?");return-1===t?"":e.slice(t+1)}function parse(e,t){var n=function(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t=i({arrayFormat:"none"},t)),r=Object.create(null);return"string"!=typeof e?r:(e=e.trim().replace(/^[?#&]/,""))?(e.split("&").forEach(function(e){var t=e.replace(/\+/g," ").split("="),i=t.shift(),s=t.length>0?t.join("="):void 0;s=void 0===s?null:o(s),n(o(i),s,r)}),Object.keys(r).sort().reduce(function(e,t){var n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=function keysSorter(e){return Array.isArray(e)?e.sort():"object"==typeof e?keysSorter(Object.keys(e)).sort(function(e,t){return Number(e)-Number(t)}).map(function(t){return e[t]}):e}(n):e[t]=n,e},Object.create(null))):r}t.extract=extract,t.parse=parse,t.stringify=function(e,t){!1===(t=i({encode:!0,strict:!0,arrayFormat:"none"},t)).sort&&(t.sort=function(){});var n=function(e){switch(e.arrayFormat){case"index":return function(t,n,r){return null===n?[encode(t,e),"[",r,"]"].join(""):[encode(t,e),"[",encode(r,e),"]=",encode(n,e)].join("")};case"bracket":return function(t,n){return null===n?encode(t,e):[encode(t,e),"[]=",encode(n,e)].join("")};default:return function(t,n){return null===n?encode(t,e):[encode(t,e),"=",encode(n,e)].join("")}}}(t);return e?Object.keys(e).sort(t.sort).map(function(r){var i=e[r];if(void 0===i)return"";if(null===i)return encode(r,t);if(Array.isArray(i)){var o=[];return i.slice().forEach(function(e){void 0!==e&&o.push(n(r,e,o.length))}),o.join("&")}return encode(r,t)+"="+encode(i,t)}).filter(function(e){return e.length>0}).join("&"):""},t.parseUrl=function(e,t){return{url:e.split("?")[0]||"",query:parse(extract(e),t)}}},function(e,t){e.exports=require("strict-uri-encode")},function(e,t){e.exports=require("object-assign")},function(e,t){e.exports=require("decode-uri-component")}])});

@@ -7,2 +7,2 @@ import loadFacebook from './loadFacebook';

export { loadFacebook, loadGoogleMaps, loadStripeCheckout, loadSrcPlayer };
export { loadFacebook, loadGoogleMaps, loadStripeCheckout, loadSrcPlayer, loadYouTube };

@@ -6,3 +6,3 @@ 'use strict';

});
exports.loadSrcPlayer = exports.loadStripeCheckout = exports.loadGoogleMaps = exports.loadFacebook = undefined;
exports.loadYouTube = exports.loadSrcPlayer = exports.loadStripeCheckout = exports.loadGoogleMaps = exports.loadFacebook = undefined;

@@ -34,2 +34,3 @@ var _loadFacebook = require('./loadFacebook');

exports.loadStripeCheckout = _loadStripeCheckout2.default;
exports.loadSrcPlayer = _loadSrcPlayer2.default;
exports.loadSrcPlayer = _loadSrcPlayer2.default;
exports.loadYouTube = _loadYouTube2.default;
{
"name": "@folklore/services",
"version": "0.1.6",
"version": "0.1.7",
"description": "External services utilities",

@@ -5,0 +5,0 @@ "keywords": [

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