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
2
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.1 to 0.1.2

15

dist/size.js

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

!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports.Size=r():e.Size=r()}(this,function(){return function(e){function __webpack_require__(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,__webpack_require__),n.l=!0,n.exports}var r={};return __webpack_require__.m=e,__webpack_require__.c=r,__webpack_require__.d=function(e,r,t){__webpack_require__.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:t})},__webpack_require__.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(r,"a",r),r},__webpack_require__.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},__webpack_require__.p="/",__webpack_require__(__webpack_require__.s=2)}([function(e,r){e.exports=require("es6-promise")},function(e,r){e.exports=require("wolfy87-eventemitter")},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t(0),o=t(1),i=t.n(o),_=!1,u=new i.a,c=function(e,r,t,n){var o=e.getElementsByTagName(r)[0];if(!e.getElementById(t)){var i=e.createElement(r);i.id=t,i.src="//connect.facebook.net/"+n+"/sdk.js",o.parentNode.insertBefore(i,o)}},a=function(e){return new n.Promise(function(r){if("undefined"!=typeof FB)return void r(FB);if(_)return void u.once("loaded",r);_=!0;var t=Object.assign({appId:null,locale:"EN_US",autoLogAppEvents:!0,cookie:!0,state:!0,version:"v2.10"},e);window.fbAsyncInit=function(){FB.init(Object.assign({},t)),FB.AppEvents.logPageView(),r(FB),u.emit("loaded",FB)},c(document,"script","facebook-jssdk",t.locale)})},p=a;t(3),new i.a;t.d(r,"loadFacebook",function(){return p})},function(e,r){e.exports=require("query-string")}])});
//# sourceMappingURL=size.js.map
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Size=e():t.Size=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=2)}([function(t,e,n){(function(e,r){/*!
* @overview es6-promise - a tiny implementation of Promises/A+.
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
* @license Licensed under MIT license
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
* @version v4.2.2+97478eb6
*/
!function(e,n){t.exports=n()}(0,function(){"use strict";function t(t){var e=typeof t;return null!==t&&("object"===e||"function"===e)}function o(t){return"function"==typeof t}function i(t){q=t}function u(t){z=t}function s(){return void 0!==Y?function(){Y(a)}:c()}function c(){var t=setTimeout;return function(){return t(a,1)}}function a(){for(var t=0;t<$;t+=2){(0,J[t])(J[t+1]),J[t]=void 0,J[t+1]=void 0}$=0}function f(t,e){var n=this,r=new this.constructor(h);void 0===r[X]&&F(r);var o=n._state;if(o){var i=arguments[o-1];z(function(){return T(o,r,i,n._result)})}else O(n,r,t,e);return r}function l(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(h);return w(n,t),n}function h(){}function p(){return new TypeError("You cannot resolve a promise with itself")}function v(){return new TypeError("A promises callback cannot return that same promise.")}function d(t){try{return t.then}catch(t){return nt.error=t,nt}}function y(t,e,n,r){try{t.call(e,n,r)}catch(t){return t}}function m(t,e,n){z(function(t){var r=!1,o=y(n,e,function(n){r||(r=!0,e!==n?w(t,n):j(t,n))},function(e){r||(r=!0,E(t,e))},"Settle: "+(t._label||" unknown promise"));!r&&o&&(r=!0,E(t,o))},t)}function g(t,e){e._state===tt?j(t,e._result):e._state===et?E(t,e._result):O(e,void 0,function(e){return w(t,e)},function(e){return E(t,e)})}function b(t,e,n){e.constructor===t.constructor&&n===f&&e.constructor.resolve===l?g(t,e):n===nt?(E(t,nt.error),nt.error=null):void 0===n?j(t,e):o(n)?m(t,e,n):j(t,e)}function w(e,n){e===n?E(e,p()):t(n)?b(e,n,d(n)):j(e,n)}function _(t){t._onerror&&t._onerror(t._result),A(t)}function j(t,e){t._state===Z&&(t._result=e,t._state=tt,0!==t._subscribers.length&&z(A,t))}function E(t,e){t._state===Z&&(t._state=et,t._result=e,z(_,t))}function O(t,e,n,r){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=e,o[i+tt]=n,o[i+et]=r,0===i&&t._state&&z(A,t)}function A(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r=void 0,o=void 0,i=t._result,u=0;u<e.length;u+=3)r=e[u],o=e[u+n],r?T(n,r,o,i):o(i);t._subscribers.length=0}}function x(){this.error=null}function L(t,e){try{return t(e)}catch(t){return rt.error=t,rt}}function T(t,e,n,r){var i=o(n),u=void 0,s=void 0,c=void 0,a=void 0;if(i){if(u=L(n,r),u===rt?(a=!0,s=u.error,u.error=null):c=!0,e===u)return void E(e,v())}else u=r,c=!0;e._state!==Z||(i&&c?w(e,u):a?E(e,s):t===tt?j(e,u):t===et&&E(e,u))}function P(t,e){try{e(function(e){w(t,e)},function(e){E(t,e)})}catch(e){E(t,e)}}function k(){return ot++}function F(t){t[X]=ot++,t._state=void 0,t._result=void 0,t._subscribers=[]}function R(){return new Error("Array Methods must be provided an Array")}function R(){return new Error("Array Methods must be provided an Array")}function C(t){return new it(this,t).promise}function S(t){var e=this;return new e(V(t)?function(n,r){for(var o=t.length,i=0;i<o;i++)e.resolve(t[i]).then(n,r)}:function(t,e){return e(new TypeError("You must pass an array to race."))})}function I(t){var e=this,n=new e(h);return E(n,t),n}function B(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function M(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function U(){var t=void 0;if(void 0!==r)t=r;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;if(e){var n=null;try{n=Object.prototype.toString.call(e.resolve())}catch(t){}if("[object Promise]"===n&&!e.cast)return}t.Promise=ut}var N=void 0;N=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var V=N,$=0,Y=void 0,q=void 0,z=function(t,e){J[$]=t,J[$+1]=e,2===($+=2)&&(q?q(a):Q())},D="undefined"!=typeof window?window:void 0,K=D||{},W=K.MutationObserver||K.WebKitMutationObserver,G="undefined"==typeof self&&void 0!==e&&"[object process]"==={}.toString.call(e),H="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,J=new Array(1e3),Q=void 0;Q=G?function(){return function(){return e.nextTick(a)}}():W?function(){var t=0,e=new W(a),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}():H?function(){var t=new MessageChannel;return t.port1.onmessage=a,function(){return t.port2.postMessage(0)}}():void 0===D?function(){try{var t=n(5);return Y=t.runOnLoop||t.runOnContext,s()}catch(t){return c()}}():c();var X=Math.random().toString(36).substring(16),Z=void 0,tt=1,et=2,nt=new x,rt=new x,ot=0,it=function(){function t(t,e){this._instanceConstructor=t,this.promise=new t(h),this.promise[X]||F(this.promise),V(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?j(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&j(this.promise,this._result))):E(this.promise,R())}return t.prototype._enumerate=function(t){for(var e=0;this._state===Z&&e<t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,r=n.resolve;if(r===l){var o=d(t);if(o===f&&t._state!==Z)this._settledAt(t._state,e,t._result);else if("function"!=typeof o)this._remaining--,this._result[e]=t;else if(n===ut){var i=new n(h);b(i,t,o),this._willSettleAt(i,e)}else this._willSettleAt(new n(function(e){return e(t)}),e)}else this._willSettleAt(r(t),e)},t.prototype._settledAt=function(t,e,n){var r=this.promise;r._state===Z&&(this._remaining--,t===et?E(r,n):this._result[e]=n),0===this._remaining&&j(r,this._result)},t.prototype._willSettleAt=function(t,e){var n=this;O(t,void 0,function(t){return n._settledAt(tt,e,t)},function(t){return n._settledAt(et,e,t)})},t}(),ut=function(){function t(e){this[X]=k(),this._result=this._state=void 0,this._subscribers=[],h!==e&&("function"!=typeof e&&B(),this instanceof t?P(this,e):M())}return t.prototype.catch=function(t){return this.then(null,t)},t.prototype.finally=function(t){var e=this,n=e.constructor;return e.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){throw e})})},t}();return ut.prototype.then=f,ut.all=C,ut.race=S,ut.resolve=l,ut.reject=I,ut._setScheduler=i,ut._setAsap=u,ut._asap=z,ut.polyfill=U,ut.Promise=ut,ut})}).call(e,n(3),n(4))},function(t,e,n){var r;!function(e){"use strict";function o(){}function i(t,e){for(var n=t.length;n--;)if(t[n].listener===e)return n;return-1}function u(t){return function(){return this[t].apply(this,arguments)}}function s(t){return"function"==typeof t||t instanceof RegExp||!(!t||"object"!=typeof t)&&s(t.listener)}var c=o.prototype,a=e.EventEmitter;c.getListeners=function(t){var e,n,r=this._getEvents();if(t instanceof RegExp){e={};for(n in r)r.hasOwnProperty(n)&&t.test(n)&&(e[n]=r[n])}else e=r[t]||(r[t]=[]);return e},c.flattenListeners=function(t){var e,n=[];for(e=0;e<t.length;e+=1)n.push(t[e].listener);return n},c.getListenersAsObject=function(t){var e,n=this.getListeners(t);return n instanceof Array&&(e={},e[t]=n),e||n},c.addListener=function(t,e){if(!s(e))throw new TypeError("listener must be a function");var n,r=this.getListenersAsObject(t),o="object"==typeof e;for(n in r)r.hasOwnProperty(n)&&-1===i(r[n],e)&&r[n].push(o?e:{listener:e,once:!1});return this},c.on=u("addListener"),c.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},c.once=u("addOnceListener"),c.defineEvent=function(t){return this.getListeners(t),this},c.defineEvents=function(t){for(var e=0;e<t.length;e+=1)this.defineEvent(t[e]);return this},c.removeListener=function(t,e){var n,r,o=this.getListenersAsObject(t);for(r in o)o.hasOwnProperty(r)&&-1!==(n=i(o[r],e))&&o[r].splice(n,1);return this},c.off=u("removeListener"),c.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},c.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},c.manipulateListeners=function(t,e,n){var r,o,i=t?this.removeListener:this.addListener,u=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(r=n.length;r--;)i.call(this,e,n[r]);else for(r in e)e.hasOwnProperty(r)&&(o=e[r])&&("function"==typeof o?i.call(this,r,o):u.call(this,r,o));return this},c.removeEvent=function(t){var e,n=typeof t,r=this._getEvents();if("string"===n)delete r[t];else if(t instanceof RegExp)for(e in r)r.hasOwnProperty(e)&&t.test(e)&&delete r[e];else delete this._events;return this},c.removeAllListeners=u("removeEvent"),c.emitEvent=function(t,e){var n,r,o,i,u=this.getListenersAsObject(t);for(i in u)if(u.hasOwnProperty(i))for(n=u[i].slice(0),o=0;o<n.length;o++)r=n[o],!0===r.once&&this.removeListener(t,r.listener),r.listener.apply(this,e||[])===this._getOnceReturnValue()&&this.removeListener(t,r.listener);return this},c.trigger=u("emitEvent"),c.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},c.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},c._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},c._getEvents=function(){return this._events||(this._events={})},o.noConflict=function(){return e.EventEmitter=a,o},void 0!==(r=function(){return o}.call(e,n,e,t))&&(t.exports=r)}(this||{})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n.n(o),u=!1,s=new i.a,c=function(t,e,n,r){var o=t.getElementsByTagName(e)[0];if(!t.getElementById(n)){var i=t.createElement(e);i.id=n,i.src="//connect.facebook.net/"+r+"/sdk.js",o.parentNode.insertBefore(i,o)}},a=function(t){return new r.Promise(function(e){if("undefined"!=typeof FB)return void e(FB);if(u)return void s.once("loaded",e);u=!0;var n=Object.assign({appId:null,locale:"EN_US",autoLogAppEvents:!0,cookie:!0,state:!0,version:"v2.10"},t);window.fbAsyncInit=function(){FB.init(Object.assign({},n)),FB.AppEvents.logPageView(),e(FB),s.emit("loaded",FB)},c(document,"script","facebook-jssdk",n.locale)})},f=a;n(6),new i.a;n.d(e,"loadFacebook",function(){return f})},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(f===setTimeout)return setTimeout(t,0);if((f===n||!f)&&setTimeout)return f=setTimeout,setTimeout(t,0);try{return f(t,0)}catch(e){try{return f.call(null,t,0)}catch(e){return f.call(this,t,0)}}}function i(t){if(l===clearTimeout)return clearTimeout(t);if((l===r||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(t);try{return l(t)}catch(e){try{return l.call(null,t)}catch(e){return l.call(this,t)}}}function u(){d&&p&&(d=!1,p.length?v=p.concat(v):y=-1,v.length&&s())}function s(){if(!d){var t=o(u);d=!0;for(var e=v.length;e;){for(p=v,v=[];++y<e;)p&&p[y].run();y=-1,e=v.length}p=null,d=!1,i(t)}}function c(t,e){this.fun=t,this.array=e}function a(){}var f,l,h=t.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:n}catch(t){f=n}try{l="function"==typeof clearTimeout?clearTimeout:r}catch(t){l=r}}();var p,v=[],d=!1,y=-1;h.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];v.push(new c(t,e)),1!==v.length||d||o(s)},c.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=a,h.addListener=a,h.once=a,h.off=a,h.removeListener=a,h.removeAllListeners=a,h.emit=a,h.prependListener=a,h.prependOnceListener=a,h.listeners=function(t){return[]},h.binding=function(t){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(t){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){},function(t,e,n){"use strict";function r(t){switch(t.arrayFormat){case"index":return function(e,n,r){return null===n?[i(e,t),"[",r,"]"].join(""):[i(e,t),"[",i(r,t),"]=",i(n,t)].join("")};case"bracket":return function(e,n){return null===n?i(e,t):[i(e,t),"[]=",i(n,t)].join("")};default:return function(e,n){return null===n?i(e,t):[i(e,t),"=",i(n,t)].join("")}}}function o(t){var e;switch(t.arrayFormat){case"index":return function(t,n,r){if(e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),!e)return void(r[t]=n);void 0===r[t]&&(r[t]={}),r[t][e[1]]=n};case"bracket":return function(t,n,r){return e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),e?void 0===r[t]?void(r[t]=[n]):void(r[t]=[].concat(r[t],n)):void(r[t]=n)};default:return function(t,e,n){if(void 0===n[t])return void(n[t]=e);n[t]=[].concat(n[t],e)}}}function i(t,e){return e.encode?e.strict?s(t):encodeURIComponent(t):t}function u(t){return Array.isArray(t)?t.sort():"object"==typeof t?u(Object.keys(t)).sort(function(t,e){return Number(t)-Number(e)}).map(function(e){return t[e]}):t}var s=n(7),c=n(8),a=n(9);e.extract=function(t){var e=t.indexOf("?");return-1===e?"":t.slice(e+1)},e.parse=function(t,e){e=c({arrayFormat:"none"},e);var n=o(e),r=Object.create(null);return"string"!=typeof t?r:(t=t.trim().replace(/^[?#&]/,""))?(t.split("&").forEach(function(t){var e=t.replace(/\+/g," ").split("="),o=e.shift(),i=e.length>0?e.join("="):void 0;i=void 0===i?null:a(i),n(a(o),i,r)}),Object.keys(r).sort().reduce(function(t,e){var n=r[e];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?t[e]=u(n):t[e]=n,t},Object.create(null))):r},e.stringify=function(t,e){e=c({encode:!0,strict:!0,arrayFormat:"none"},e);var n=r(e);return t?Object.keys(t).sort().map(function(r){var o=t[r];if(void 0===o)return"";if(null===o)return i(r,e);if(Array.isArray(o)){var u=[];return o.slice().forEach(function(t){void 0!==t&&u.push(n(r,t,u.length))}),u.join("&")}return i(r,e)+"="+i(o,e)}).filter(function(t){return t.length>0}).join("&"):""}},function(t,e,n){"use strict";t.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}},function(t,e,n){"use strict";function r(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,s,c=r(t),a=1;a<arguments.length;a++){n=Object(arguments[a]);for(var f in n)i.call(n,f)&&(c[f]=n[f]);if(o){s=o(n);for(var l=0;l<s.length;l++)u.call(n,s[l])&&(c[s[l]]=n[s[l]])}}return c}},function(t,e,n){"use strict";function r(t,e){try{return decodeURIComponent(t.join(""))}catch(t){}if(1===t.length)return t;e=e||1;var n=t.slice(0,e),o=t.slice(e);return Array.prototype.concat.call([],r(n),r(o))}function o(t){try{return decodeURIComponent(t)}catch(o){for(var e=t.match(u),n=1;n<e.length;n++)t=r(e,n).join(""),e=t.match(u);return t}}function i(t){for(var e={"%FE%FF":"��","%FF%FE":"��"},n=s.exec(t);n;){try{e[n[0]]=decodeURIComponent(n[0])}catch(t){var r=o(n[0]);r!==n[0]&&(e[n[0]]=r)}n=s.exec(t)}e["%C2"]="�";for(var i=Object.keys(e),u=0;u<i.length;u++){var c=i[u];t=t.replace(new RegExp(c,"g"),e[c])}return t}var u=new RegExp("%[a-f0-9]{2}","gi"),s=new RegExp("(%[a-f0-9]{2})+","gi");t.exports=function(t){if("string"!=typeof t)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return t=t.replace(/\+/g," "),decodeURIComponent(t)}catch(e){return i(t)}}}])});

4

package.json
{
"name": "@folklore/services",
"version": "0.1.1",
"version": "0.1.2",
"description": "External services utilities",

@@ -53,3 +53,3 @@ "keywords": [

"babel-runtime": "^6.26.0",
"es6-promise": "^4.1.1",
"es6-promise": "^4.2.2",
"lodash": "^4.17.4",

@@ -56,0 +56,0 @@ "query-string": "^5.0.1",

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