steam-game-update-watcher
Advanced tools
Comparing version 1.0.0 to 1.1.0
/*! | ||
*** steam-game-update-watcher 1.0.0 | ||
*** steam-game-update-watcher 1.1.0 | ||
*** Copyright © 2019, Jaid <jaid.jsx@gmail.com> (https://github.com/Jaid) | ||
@@ -7,2 +7,2 @@ *** @license MIT | ||
!*/ | ||
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var r=e();for(var n in r)("object"==typeof exports?exports:t)[n]=r[n]}}(global,function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=29)}([function(t,e,r){var n=r(14),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},function(t,e,r){var n=r(44),o=r(49);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},function(t,e,r){var n=r(34),o=r(35),i=r(36),c=r(37),u=r(38);function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=o,a.prototype.get=i,a.prototype.has=c,a.prototype.set=u,t.exports=a},function(t,e,r){var n=r(12);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},function(t,e,r){var n=r(9),o=r(45),i=r(46),c=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":c&&c in Object(t)?o(t):i(t)}},function(t,e,r){var n=r(1)(Object,"create");t.exports=n},function(t,e,r){var n=r(58);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,r){var n=r(1)(r(0),"Map");t.exports=n},function(t,e,r){var n=r(0).Symbol;t.exports=n},function(t,e){var r=Array.isArray;t.exports=r},function(t,e){t.exports=require("match-array")},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,r){var n=r(4),o=r(15);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e){var r="object"==typeof global&&global&&global.Object===Object&&global;t.exports=r},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e){var r=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,r){var n=r(50),o=r(57),i=r(59),c=r(60),u=r(61);function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=o,a.prototype.get=i,a.prototype.has=c,a.prototype.set=u,t.exports=a},function(t,e,r){var n=r(62),o=r(65),i=r(66);t.exports=function(t,e,r,c,u,a){var s=1&r,f=t.length,p=e.length;if(!(f==p||s&&p>f))return!1;var l=a.get(t);if(l&&a.get(e))return l==e;var v=-1,b=!0,y=2&r?new n:void 0;for(a.set(t,e),a.set(e,t);++v<f;){var d=t[v],h=e[v];if(c)var _=s?c(h,d,v,e,t,a):c(d,h,v,t,e,a);if(void 0!==_){if(_)continue;b=!1;break}if(y){if(!o(e,function(t,e){if(!i(y,e)&&(d===t||u(d,t,r,c,a)))return y.push(e)})){b=!1;break}}else if(d!==h&&!u(d,h,r,c,a)){b=!1;break}}return a.delete(t),a.delete(e),b}},function(t,e,r){(function(t){var n=r(0),o=r(83),i=e&&!e.nodeType&&e,c=i&&"object"==typeof t&&t&&!t.nodeType&&t,u=c&&c.exports===i?n.Buffer:void 0,a=(u?u.isBuffer:void 0)||o;t.exports=a}).call(this,r(20)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){var n=r(85),o=r(86),i=r(87),c=i&&i.isTypedArray,u=c?o(c):n;t.exports=u},function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&9007199254740991>=t}},function(t,e,r){var n=r(30);t.exports=function(t){for(var e=1;e<arguments.length;e++)if(e%2){var r=null!=arguments[e]?arguments[e]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),o.forEach(function(e){n(t,e,r[e])})}else Object.defineProperties(t,Object.getOwnPropertyDescriptors(arguments[e]));return t}},function(t,e,r){var n=r(31);t.exports=function(t,e,r){var o=(r="function"==typeof r?r:void 0)?r(t,e):void 0;return void 0===o?n(t,e,void 0,r):!!o}},function(t,e){t.exports=require("polling-emitter")},function(t,e){t.exports=require("got")},function(t,e){t.exports=require("key-counter")},function(t,e){t.exports=require("alias-fields")},function(t,e,r){r.r(e);var n=r(23),o=r.n(n),i=r(24),c=r.n(i),u=r(25),a=r.n(u),s=r(26),f=r.n(s),p=r(11),l=r.n(p),v=r(27),b=r.n(v),y=r(28),d=r.n(y);e.default=class extends a.a{constructor(t){super(o()({pollInterval:12e4,invalidateInitialEntries:!0,autostart:!1},t)),this.got=f.a.extend({baseUrl:"https://steamdb.info"}),this.on("newEntry",t=>{const e=new b.a(t.changes),r=d()(e.toObject(),{fileAdded:"diff-added",fileRemoved:"diff-removed",fileChanged:"diff-modified",manifestChanged:"git-commit"}),n=c()(Object.keys(r),["manifestChanged"]);this.emit(n?"manifestChanged":"contentChanged",{changes:r})})}async fetchEntries(){const t=await this.got("api/GetDepotHistory",{json:!0,query:{depotid:this.options.depotId}});if(!t.body.success)throw new Error("Did not work: result.body.success is ".concat(t.body.success));const e=l()(/data-changeid="(?<id>\w+?)"(?<changes>.+?)(<\/ul|$)/gs,t.body.data.Rendered);for(const t of e)t.changes=l()(/class="octicon octicon-(?<icon>.+?)"/gs,t.changes).map(t=>{let{icon:e}=t;return e});return e}}},function(t,e){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},function(t,e,r){var n=r(32),o=r(7);t.exports=function t(e,r,i,c,u){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,c,t,u))}},function(t,e,r){var n=r(33),o=r(18),i=r(67),c=r(71),u=r(93),a=r(10),s=r(19),f=r(21),p="[object Object]",l=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,v,b,y){var d=a(t),h=a(e),_=d?"[object Array]":u(t),x=h?"[object Array]":u(e),j=(_="[object Arguments]"==_?p:_)==p,g=(x="[object Arguments]"==x?p:x)==p,O=_==x;if(O&&s(t)){if(!s(e))return!1;d=!0,j=!1}if(O&&!j)return y||(y=new n),d||f(t)?o(t,e,r,v,b,y):i(t,e,_,r,v,b,y);if(!(1&r)){var m=j&&l.call(t,"__wrapped__"),w=g&&l.call(e,"__wrapped__");if(m||w){var P=m?t.value():t,A=w?e.value():e;return y||(y=new n),b(P,A,r,v,y)}}return!!O&&(y||(y=new n),c(t,e,r,v,b,y))}},function(t,e,r){var n=r(2),o=r(39),i=r(40),c=r(41),u=r(42),a=r(43);function s(t){var e=this.__data__=new n(t);this.size=e.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=c,s.prototype.has=u,s.prototype.set=a,t.exports=s},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,r){var n=r(3),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return r>=0&&(r==e.length-1?e.pop():o.call(e,r,1),--this.size,!0)}},function(t,e,r){var n=r(3);t.exports=function(t){var e=this.__data__,r=n(e,t);return 0>r?void 0:e[r][1]}},function(t,e,r){var n=r(3);t.exports=function(t){return n(this.__data__,t)>-1}},function(t,e,r){var n=r(3);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return 0>o?(++this.size,r.push([t,e])):r[o][1]=e,this}},function(t,e,r){var n=r(2);t.exports=function(){this.__data__=new n,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,r){var n=r(2),o=r(8),i=r(17);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var c=r.__data__;if(!o||199>c.length)return c.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(c)}return r.set(t,e),this.size=r.size,this}},function(t,e,r){var n=r(13),o=r(47),i=r(15),c=r(16),u=Function.prototype,a=Object.prototype,s=u.toString,f=a.hasOwnProperty,p=RegExp("^"+s.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?p:/^\[object .+?Constructor\]$/).test(c(t))}},function(t,e,r){var n=r(9),o=Object.prototype,i=o.hasOwnProperty,c=o.toString,u=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,u),r=t[u];try{t[u]=void 0;var n=!0}catch(t){}var o=c.call(t);return n&&(e?t[u]=r:delete t[u]),o}},function(t,e){var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},function(t,e,r){var n,o=r(48),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},function(t,e,r){var n=r(0)["__core-js_shared__"];t.exports=n},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,r){var n=r(51),o=r(2),i=r(8);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},function(t,e,r){var n=r(52),o=r(53),i=r(54),c=r(55),u=r(56);function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=o,a.prototype.get=i,a.prototype.has=c,a.prototype.set=u,t.exports=a},function(t,e,r){var n=r(5);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,r){var n=r(5),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},function(t,e,r){var n=r(5),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},function(t,e,r){var n=r(5);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},function(t,e,r){var n=r(6);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,r){var n=r(6);t.exports=function(t){return n(this,t).get(t)}},function(t,e,r){var n=r(6);t.exports=function(t){return n(this,t).has(t)}},function(t,e,r){var n=r(6);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},function(t,e,r){var n=r(17),o=r(63),i=r(64);function c(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}c.prototype.add=c.prototype.push=o,c.prototype.has=i,t.exports=c},function(t,e){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,r){var n=r(9),o=r(68),i=r(12),c=r(18),u=r(69),a=r(70),s=n?n.prototype:void 0,f=s?s.valueOf:void 0;t.exports=function(t,e,r,n,s,p,l){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!p(new o(t),new o(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var v=u;case"[object Set]":var b=1&n;if(v||(v=a),t.size!=e.size&&!b)return!1;var y=l.get(t);if(y)return y==e;n|=2,l.set(t,e);var d=c(v(t),v(e),n,s,p,l);return l.delete(t),d;case"[object Symbol]":if(f)return f.call(t)==f.call(e)}return!1}},function(t,e,r){var n=r(0).Uint8Array;t.exports=n},function(t,e){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}},function(t,e){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}},function(t,e,r){var n=r(72),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,c,u){var a=1&r,s=n(t),f=s.length;if(f!=n(e).length&&!a)return!1;for(var p=f;p--;){var l=s[p];if(!(a?l in e:o.call(e,l)))return!1}var v=u.get(t);if(v&&u.get(e))return v==e;var b=!0;u.set(t,e),u.set(e,t);for(var y=a;++p<f;){var d=t[l=s[p]],h=e[l];if(i)var _=a?i(h,d,l,e,t,u):i(d,h,l,t,e,u);if(!(void 0===_?d===h||c(d,h,r,i,u):_)){b=!1;break}y||(y="constructor"==l)}if(b&&!y){var x=t.constructor,j=e.constructor;x!=j&&"constructor"in t&&"constructor"in e&&!("function"==typeof x&&x instanceof x&&"function"==typeof j&&j instanceof j)&&(b=!1)}return u.delete(t),u.delete(e),b}},function(t,e,r){var n=r(73),o=r(75),i=r(78);t.exports=function(t){return n(t,i,o)}},function(t,e,r){var n=r(74),o=r(10);t.exports=function(t,e,r){var i=e(t);return o(t)?i:n(i,r(t))}},function(t,e){t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},function(t,e,r){var n=r(76),o=r(77),i=Object.prototype.propertyIsEnumerable,c=Object.getOwnPropertySymbols,u=c?function(t){return null==t?[]:(t=Object(t),n(c(t),function(e){return i.call(t,e)}))}:o;t.exports=u},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var c=t[r];e(c,r,t)&&(i[o++]=c)}return i}},function(t,e){t.exports=function(){return[]}},function(t,e,r){var n=r(79),o=r(88),i=r(92);t.exports=function(t){return i(t)?n(t):o(t)}},function(t,e,r){var n=r(80),o=r(81),i=r(10),c=r(19),u=r(84),a=r(21),s=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),f=!r&&o(t),p=!r&&!f&&c(t),l=!r&&!f&&!p&&a(t),v=r||f||p||l,b=v?n(t.length,String):[],y=b.length;for(var d in t)!e&&!s.call(t,d)||v&&("length"==d||p&&("offset"==d||"parent"==d)||l&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||u(d,y))||b.push(d);return b}},function(t,e){t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},function(t,e,r){var n=r(82),o=r(7),i=Object.prototype,c=i.hasOwnProperty,u=i.propertyIsEnumerable,a=n(function(){return arguments}())?n:function(t){return o(t)&&c.call(t,"callee")&&!u.call(t,"callee")};t.exports=a},function(t,e,r){var n=r(4),o=r(7);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},function(t,e){t.exports=function(){return!1}},function(t,e){var r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&r.test(t))&&t>-1&&t%1==0&&e>t}},function(t,e,r){var n=r(4),o=r(22),i=r(7),c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c["[object Arguments]"]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c["[object Function]"]=c["[object Map]"]=c["[object Number]"]=c["[object Object]"]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!c[n(t)]}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,r){(function(t){var n=r(14),o=e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,c=i&&i.exports===o&&n.process,u=function(){try{return i&&i.require&&i.require("util").types||c&&c.binding&&c.binding("util")}catch(t){}}();t.exports=u}).call(this,r(20)(t))},function(t,e,r){var n=r(89),o=r(90),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},function(t,e){var r=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},function(t,e,r){var n=r(91)(Object.keys,Object);t.exports=n},function(t,e){t.exports=function(t,e){return function(r){return t(e(r))}}},function(t,e,r){var n=r(13),o=r(22);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},function(t,e,r){var n=r(94),o=r(8),i=r(95),c=r(96),u=r(97),a=r(4),s=r(16),f=s(n),p=s(o),l=s(i),v=s(c),b=s(u),y=a;(n&&"[object DataView]"!=y(new n(new ArrayBuffer(1)))||o&&"[object Map]"!=y(new o)||i&&"[object Promise]"!=y(i.resolve())||c&&"[object Set]"!=y(new c)||u&&"[object WeakMap]"!=y(new u))&&(y=function(t){var e=a(t),r="[object Object]"==e?t.constructor:void 0,n=r?s(r):"";if(n)switch(n){case f:return"[object DataView]";case p:return"[object Map]";case l:return"[object Promise]";case v:return"[object Set]";case b:return"[object WeakMap]"}return e}),t.exports=y},function(t,e,r){var n=r(1)(r(0),"DataView");t.exports=n},function(t,e,r){var n=r(1)(r(0),"Promise");t.exports=n},function(t,e,r){var n=r(1)(r(0),"Set");t.exports=n},function(t,e,r){var n=r(1)(r(0),"WeakMap");t.exports=n}])}); | ||
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var r=e();for(var n in r)("object"==typeof exports?exports:t)[n]=r[n]}}(global,function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=29)}([function(t,e,r){var n=r(14),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},function(t,e,r){var n=r(44),o=r(49);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},function(t,e,r){var n=r(34),o=r(35),i=r(36),c=r(37),u=r(38);function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=o,a.prototype.get=i,a.prototype.has=c,a.prototype.set=u,t.exports=a},function(t,e,r){var n=r(12);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},function(t,e,r){var n=r(9),o=r(45),i=r(46),c=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":c&&c in Object(t)?o(t):i(t)}},function(t,e,r){var n=r(1)(Object,"create");t.exports=n},function(t,e,r){var n=r(58);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,r){var n=r(1)(r(0),"Map");t.exports=n},function(t,e,r){var n=r(0).Symbol;t.exports=n},function(t,e){var r=Array.isArray;t.exports=r},function(t,e){t.exports=require("match-array")},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,r){var n=r(4),o=r(15);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e){var r="object"==typeof global&&global&&global.Object===Object&&global;t.exports=r},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e){var r=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,r){var n=r(50),o=r(57),i=r(59),c=r(60),u=r(61);function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=o,a.prototype.get=i,a.prototype.has=c,a.prototype.set=u,t.exports=a},function(t,e,r){var n=r(62),o=r(65),i=r(66);t.exports=function(t,e,r,c,u,a){var s=1&r,f=t.length,p=e.length;if(!(f==p||s&&p>f))return!1;var l=a.get(t);if(l&&a.get(e))return l==e;var v=-1,b=!0,d=2&r?new n:void 0;for(a.set(t,e),a.set(e,t);++v<f;){var h=t[v],y=e[v];if(c)var _=s?c(y,h,v,e,t,a):c(h,y,v,t,e,a);if(void 0!==_){if(_)continue;b=!1;break}if(d){if(!o(e,function(t,e){if(!i(d,e)&&(h===t||u(h,t,r,c,a)))return d.push(e)})){b=!1;break}}else if(h!==y&&!u(h,y,r,c,a)){b=!1;break}}return a.delete(t),a.delete(e),b}},function(t,e,r){(function(t){var n=r(0),o=r(83),i=e&&!e.nodeType&&e,c=i&&"object"==typeof t&&t&&!t.nodeType&&t,u=c&&c.exports===i?n.Buffer:void 0,a=(u?u.isBuffer:void 0)||o;t.exports=a}).call(this,r(20)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){var n=r(85),o=r(86),i=r(87),c=i&&i.isTypedArray,u=c?o(c):n;t.exports=u},function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&9007199254740991>=t}},function(t,e,r){var n=r(30);t.exports=function(t){for(var e=1;e<arguments.length;e++)if(e%2){var r=null!=arguments[e]?arguments[e]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),o.forEach(function(e){n(t,e,r[e])})}else Object.defineProperties(t,Object.getOwnPropertyDescriptors(arguments[e]));return t}},function(t,e,r){var n=r(31);t.exports=function(t,e,r){var o=(r="function"==typeof r?r:void 0)?r(t,e):void 0;return void 0===o?n(t,e,void 0,r):!!o}},function(t,e){t.exports=require("polling-emitter")},function(t,e){t.exports=require("got")},function(t,e){t.exports=require("key-counter")},function(t,e){t.exports=require("alias-fields")},function(t,e,r){r.r(e);var n=r(23),o=r.n(n),i=r(24),c=r.n(i),u=r(25),a=r.n(u),s=r(26),f=r.n(s),p=r(11),l=r.n(p),v=r(27),b=r.n(v),d=r(28),h=r.n(d);e.default=class extends a.a{constructor(t){super(o()({pollInterval:12e4,invalidateInitialEntries:!0,autostart:!1},t)),this.got=f.a.extend({baseUrl:"https://steamdb.info",headers:{"User-Agent":"".concat("steam-game-update-watcher"," v").concat("1.1.0")}}),this.on("newEntry",t=>{const e=new b.a(t.changes),r=h()(e.toObject(),{fileAdded:"diff-added",fileRemoved:"diff-removed",fileChanged:"diff-modified",manifestChanged:"git-commit"}),n=c()(Object.keys(r),["manifestChanged"]);this.emit(n?"manifestChanged":"contentChanged",{changes:r})})}async fetchEntries(){const t=await this.got("api/GetDepotHistory",{json:!0,query:{depotid:this.options.depotId}});if(!t.body.success)throw new Error("Did not work: result.body.success is ".concat(t.body.success));const e=l()(/data-changeid="(?<id>\w+?)"(?<changes>.+?)(<\/ul|$)/gs,t.body.data.Rendered);for(const t of e)t.changes=l()(/class="octicon octicon-(?<icon>.+?)"/gs,t.changes).map(t=>{let{icon:e}=t;return e});return e}}},function(t,e){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},function(t,e,r){var n=r(32),o=r(7);t.exports=function t(e,r,i,c,u){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,c,t,u))}},function(t,e,r){var n=r(33),o=r(18),i=r(67),c=r(71),u=r(93),a=r(10),s=r(19),f=r(21),p="[object Object]",l=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,v,b,d){var h=a(t),y=a(e),_=h?"[object Array]":u(t),x=y?"[object Array]":u(e),j=(_="[object Arguments]"==_?p:_)==p,g=(x="[object Arguments]"==x?p:x)==p,O=_==x;if(O&&s(t)){if(!s(e))return!1;h=!0,j=!1}if(O&&!j)return d||(d=new n),h||f(t)?o(t,e,r,v,b,d):i(t,e,_,r,v,b,d);if(!(1&r)){var m=j&&l.call(t,"__wrapped__"),w=g&&l.call(e,"__wrapped__");if(m||w){var P=m?t.value():t,A=w?e.value():e;return d||(d=new n),b(P,A,r,v,d)}}return!!O&&(d||(d=new n),c(t,e,r,v,b,d))}},function(t,e,r){var n=r(2),o=r(39),i=r(40),c=r(41),u=r(42),a=r(43);function s(t){var e=this.__data__=new n(t);this.size=e.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=c,s.prototype.has=u,s.prototype.set=a,t.exports=s},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,r){var n=r(3),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return r>=0&&(r==e.length-1?e.pop():o.call(e,r,1),--this.size,!0)}},function(t,e,r){var n=r(3);t.exports=function(t){var e=this.__data__,r=n(e,t);return 0>r?void 0:e[r][1]}},function(t,e,r){var n=r(3);t.exports=function(t){return n(this.__data__,t)>-1}},function(t,e,r){var n=r(3);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return 0>o?(++this.size,r.push([t,e])):r[o][1]=e,this}},function(t,e,r){var n=r(2);t.exports=function(){this.__data__=new n,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,r){var n=r(2),o=r(8),i=r(17);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var c=r.__data__;if(!o||199>c.length)return c.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(c)}return r.set(t,e),this.size=r.size,this}},function(t,e,r){var n=r(13),o=r(47),i=r(15),c=r(16),u=Function.prototype,a=Object.prototype,s=u.toString,f=a.hasOwnProperty,p=RegExp("^"+s.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?p:/^\[object .+?Constructor\]$/).test(c(t))}},function(t,e,r){var n=r(9),o=Object.prototype,i=o.hasOwnProperty,c=o.toString,u=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,u),r=t[u];try{t[u]=void 0;var n=!0}catch(t){}var o=c.call(t);return n&&(e?t[u]=r:delete t[u]),o}},function(t,e){var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},function(t,e,r){var n,o=r(48),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},function(t,e,r){var n=r(0)["__core-js_shared__"];t.exports=n},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,r){var n=r(51),o=r(2),i=r(8);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},function(t,e,r){var n=r(52),o=r(53),i=r(54),c=r(55),u=r(56);function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=o,a.prototype.get=i,a.prototype.has=c,a.prototype.set=u,t.exports=a},function(t,e,r){var n=r(5);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,r){var n=r(5),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},function(t,e,r){var n=r(5),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},function(t,e,r){var n=r(5);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},function(t,e,r){var n=r(6);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,r){var n=r(6);t.exports=function(t){return n(this,t).get(t)}},function(t,e,r){var n=r(6);t.exports=function(t){return n(this,t).has(t)}},function(t,e,r){var n=r(6);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},function(t,e,r){var n=r(17),o=r(63),i=r(64);function c(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}c.prototype.add=c.prototype.push=o,c.prototype.has=i,t.exports=c},function(t,e){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,r){var n=r(9),o=r(68),i=r(12),c=r(18),u=r(69),a=r(70),s=n?n.prototype:void 0,f=s?s.valueOf:void 0;t.exports=function(t,e,r,n,s,p,l){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!p(new o(t),new o(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var v=u;case"[object Set]":var b=1&n;if(v||(v=a),t.size!=e.size&&!b)return!1;var d=l.get(t);if(d)return d==e;n|=2,l.set(t,e);var h=c(v(t),v(e),n,s,p,l);return l.delete(t),h;case"[object Symbol]":if(f)return f.call(t)==f.call(e)}return!1}},function(t,e,r){var n=r(0).Uint8Array;t.exports=n},function(t,e){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}},function(t,e){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}},function(t,e,r){var n=r(72),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,c,u){var a=1&r,s=n(t),f=s.length;if(f!=n(e).length&&!a)return!1;for(var p=f;p--;){var l=s[p];if(!(a?l in e:o.call(e,l)))return!1}var v=u.get(t);if(v&&u.get(e))return v==e;var b=!0;u.set(t,e),u.set(e,t);for(var d=a;++p<f;){var h=t[l=s[p]],y=e[l];if(i)var _=a?i(y,h,l,e,t,u):i(h,y,l,t,e,u);if(!(void 0===_?h===y||c(h,y,r,i,u):_)){b=!1;break}d||(d="constructor"==l)}if(b&&!d){var x=t.constructor,j=e.constructor;x!=j&&"constructor"in t&&"constructor"in e&&!("function"==typeof x&&x instanceof x&&"function"==typeof j&&j instanceof j)&&(b=!1)}return u.delete(t),u.delete(e),b}},function(t,e,r){var n=r(73),o=r(75),i=r(78);t.exports=function(t){return n(t,i,o)}},function(t,e,r){var n=r(74),o=r(10);t.exports=function(t,e,r){var i=e(t);return o(t)?i:n(i,r(t))}},function(t,e){t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},function(t,e,r){var n=r(76),o=r(77),i=Object.prototype.propertyIsEnumerable,c=Object.getOwnPropertySymbols,u=c?function(t){return null==t?[]:(t=Object(t),n(c(t),function(e){return i.call(t,e)}))}:o;t.exports=u},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var c=t[r];e(c,r,t)&&(i[o++]=c)}return i}},function(t,e){t.exports=function(){return[]}},function(t,e,r){var n=r(79),o=r(88),i=r(92);t.exports=function(t){return i(t)?n(t):o(t)}},function(t,e,r){var n=r(80),o=r(81),i=r(10),c=r(19),u=r(84),a=r(21),s=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),f=!r&&o(t),p=!r&&!f&&c(t),l=!r&&!f&&!p&&a(t),v=r||f||p||l,b=v?n(t.length,String):[],d=b.length;for(var h in t)!e&&!s.call(t,h)||v&&("length"==h||p&&("offset"==h||"parent"==h)||l&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||u(h,d))||b.push(h);return b}},function(t,e){t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},function(t,e,r){var n=r(82),o=r(7),i=Object.prototype,c=i.hasOwnProperty,u=i.propertyIsEnumerable,a=n(function(){return arguments}())?n:function(t){return o(t)&&c.call(t,"callee")&&!u.call(t,"callee")};t.exports=a},function(t,e,r){var n=r(4),o=r(7);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},function(t,e){t.exports=function(){return!1}},function(t,e){var r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&r.test(t))&&t>-1&&t%1==0&&e>t}},function(t,e,r){var n=r(4),o=r(22),i=r(7),c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c["[object Arguments]"]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c["[object Function]"]=c["[object Map]"]=c["[object Number]"]=c["[object Object]"]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!c[n(t)]}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,r){(function(t){var n=r(14),o=e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,c=i&&i.exports===o&&n.process,u=function(){try{return i&&i.require&&i.require("util").types||c&&c.binding&&c.binding("util")}catch(t){}}();t.exports=u}).call(this,r(20)(t))},function(t,e,r){var n=r(89),o=r(90),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},function(t,e){var r=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},function(t,e,r){var n=r(91)(Object.keys,Object);t.exports=n},function(t,e){t.exports=function(t,e){return function(r){return t(e(r))}}},function(t,e,r){var n=r(13),o=r(22);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},function(t,e,r){var n=r(94),o=r(8),i=r(95),c=r(96),u=r(97),a=r(4),s=r(16),f=s(n),p=s(o),l=s(i),v=s(c),b=s(u),d=a;(n&&"[object DataView]"!=d(new n(new ArrayBuffer(1)))||o&&"[object Map]"!=d(new o)||i&&"[object Promise]"!=d(i.resolve())||c&&"[object Set]"!=d(new c)||u&&"[object WeakMap]"!=d(new u))&&(d=function(t){var e=a(t),r="[object Object]"==e?t.constructor:void 0,n=r?s(r):"";if(n)switch(n){case f:return"[object DataView]";case p:return"[object Map]";case l:return"[object Promise]";case v:return"[object Set]";case b:return"[object WeakMap]"}return e}),t.exports=d},function(t,e,r){var n=r(1)(r(0),"DataView");t.exports=n},function(t,e,r){var n=r(1)(r(0),"Promise");t.exports=n},function(t,e,r){var n=r(1)(r(0),"Set");t.exports=n},function(t,e,r){var n=r(1)(r(0),"WeakMap");t.exports=n}])}); |
@@ -1,1 +0,1 @@ | ||
{"author":{"name":"Jaid","email":"jaid.jsx@gmail.com","url":"https://github.com/Jaid"},"bugs":"https://github.com/Jaid/steam-game-update-watcher/issues","dependencies":{"@babel/runtime":"^7.5.0","alias-fields":"^1.0.0","got":"^9.6.0","jaid-logger":"^1.4.0","key-counter":"^1.0.0","lodash":"^4.17.11","match-array":"^1.0.0","polling-emitter":"^3.1.1"},"description":"Emits an event whenever a specific Steam game gets patched.","homepage":"https://github.com/Jaid/steam-game-update-watcher","keywords":[],"license":"MIT","name":"steam-game-update-watcher","repository":"github:Jaid/steam-game-update-watcher","types":"index.d.ts","version":"1.0.0"} | ||
{"author":{"name":"Jaid","email":"jaid.jsx@gmail.com","url":"https://github.com/Jaid"},"bugs":"https://github.com/Jaid/steam-game-update-watcher/issues","dependencies":{"@babel/runtime":"^7.5.0","alias-fields":"^1.0.0","got":"^9.6.0","jaid-logger":"^1.4.0","key-counter":"^1.0.0","lodash":"^4.17.11","match-array":"^1.0.0","polling-emitter":"^3.1.1"},"description":"Emits an event whenever a specific Steam game gets patched.","homepage":"https://github.com/Jaid/steam-game-update-watcher","keywords":[],"license":"MIT","name":"steam-game-update-watcher","repository":"github:Jaid/steam-game-update-watcher","types":"index.d.ts","version":"1.1.0"} |
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
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
24421