plugin-warning.js
422 Bytes
(function(d){var e={},f=/\/(?:\d+\.){1,2}\d+\/|\D(?:\d+\.){1,2}\d+[^/]*\.(?:js|css)\W?/;d.on("fetch",function(a){a=a.uri;if(f.test(a)){var b=a.replace(f,"{version}"),b=e[b]||(e[b]=[]);-1===g(b,a)&&b.push(a);1<b.length&&d.log("This module has multiple versions:\n"+b.join("\n"),"warn")}});var g=[].indexOf?function(a,b){return a.indexOf(b)}:function(a,b){for(var c=0;c<a.length;c++)if(a[c]===b)return c;return-1}})(seajs);