@searchfe/debug
Advanced tools
Comparing version 1.1.0 to 1.1.1
10
fake.js
@@ -1,4 +0,8 @@ | ||
define('debug', function () { | ||
function logger() { | ||
} | ||
!function (factory) { | ||
if("object" == typeof exports && "undefined" != typeof module) | ||
module.exports = factory(); | ||
else if ("function" == typeof define && define.amd) | ||
define([], factory) | ||
}(function () { | ||
function logger() {} | ||
return function factory() { | ||
@@ -5,0 +9,0 @@ return logger; |
@@ -1,1 +0,1 @@ | ||
!function e(n,r,t){function o(a,i){if(!r[a]){if(!n[a]){var c="function"==typeof require&&require;if(!i&&c)return c(a,!0);if(s)return s(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var f=r[a]={exports:{}};n[a][0].call(f.exports,function(e){var r=n[a][1][e];return o(r?r:e)},f,f.exports,e,n,r,t)}return r[a].exports}for(var s="function"==typeof require&&require,a=0;a<t.length;a++)o(t[a]);return o}({1:[function(e,n,r){function t(e){var n,t=0;for(n in e)t=(t<<5)-t+e.charCodeAt(n),t|=0;return r.colors[Math.abs(t)%r.colors.length]}function o(e){function n(){if(n.enabled){var e=n,t=+new Date,s=t-(o||t);e.diff=s,e.prev=o,e.curr=t,o=t;for(var a=new Array(arguments.length),i=0;i<a.length;i++)a[i]=arguments[i];a[0]=r.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");var c=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,function(n,t){if("%%"===n)return n;c++;var o=r.formatters[t];if("function"==typeof o){var s=a[c];n=o.call(e,s),a.splice(c,1),c--}return n}),r.formatArgs.call(e,a);var u=n.log||r.log||console.log.bind(console);u.apply(e,a)}}var o;return n.namespace=e,n.enabled=r.enabled(e),n.useColors=r.useColors(),n.color=t(e),n.destroy=s,"function"==typeof r.init&&r.init(n),r.instances.push(n),n}function s(){var e=r.instances.indexOf(this);return-1!==e?(r.instances.splice(e,1),!0):!1}function a(e){r.save(e),r.names=[],r.skips=[];var n,t=("string"==typeof e?e:"").split(/[\s,]+/),o=t.length;for(n=0;o>n;n++)t[n]&&(e=t[n].replace(/\*/g,".*?"),"-"===e[0]?r.skips.push(new RegExp("^"+e.substr(1)+"$")):r.names.push(new RegExp("^"+e+"$")));for(n=0;n<r.instances.length;n++){var s=r.instances[n];s.enabled=r.enabled(s.namespace)}}function i(){r.enable("")}function c(e){if("*"===e[e.length-1])return!0;var n,t;for(n=0,t=r.skips.length;t>n;n++)if(r.skips[n].test(e))return!1;for(n=0,t=r.names.length;t>n;n++)if(r.names[n].test(e))return!0;return!1}function u(e){return e instanceof Error?e.stack||e.message:e}r=n.exports=o.debug=o["default"]=o,r.coerce=u,r.disable=i,r.enable=a,r.enabled=c,r.humanize=e("ms"),r.instances=[],r.names=[],r.skips=[],r.formatters={}},{ms:3}],2:[function(e,n,r){(function(t){function o(){return"undefined"!=typeof window&&window.process&&"renderer"===window.process.type?!0:"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function s(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+r.humanize(this.diff),n){var t="color: "+this.color;e.splice(1,0,t,"color: inherit");var o=0,s=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(o++,"%c"===e&&(s=o))}),e.splice(s,0,t)}}function a(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function i(e){try{null==e?r.storage.removeItem("debug"):r.storage.debug=e}catch(n){}}function c(){var e;try{e=r.storage.debug}catch(n){}return!e&&"undefined"!=typeof t&&"env"in t&&(e=t.env.DEBUG),e}function u(){try{return window.localStorage}catch(e){}}r=n.exports=e("./debug"),r.log=a,r.formatArgs=s,r.save=i,r.load=c,r.useColors=o,r.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:u(),r.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],r.formatters.j=function(e){try{return JSON.stringify(e)}catch(n){return"[UnexpectedJSONParseError]: "+n.message}},r.enable(c())}).call(this,e("_process"))},{"./debug":1,_process:4}],3:[function(e,n){function r(e){if(e=String(e),!(e.length>100)){var n=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(n){var r=parseFloat(n[1]),t=(n[2]||"ms").toLowerCase();switch(t){case"years":case"year":case"yrs":case"yr":case"y":return r*f;case"days":case"day":case"d":return r*u;case"hours":case"hour":case"hrs":case"hr":case"h":return r*c;case"minutes":case"minute":case"mins":case"min":case"m":return r*i;case"seconds":case"second":case"secs":case"sec":case"s":return r*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return void 0}}}}function t(e){return e>=u?Math.round(e/u)+"d":e>=c?Math.round(e/c)+"h":e>=i?Math.round(e/i)+"m":e>=a?Math.round(e/a)+"s":e+"ms"}function o(e){return s(e,u,"day")||s(e,c,"hour")||s(e,i,"minute")||s(e,a,"second")||e+" ms"}function s(e,n,r){return n>e?void 0:1.5*n>e?Math.floor(e/n)+" "+r:Math.ceil(e/n)+" "+r+"s"}var a=1e3,i=60*a,c=60*i,u=24*c,f=365.25*u;n.exports=function(e,n){n=n||{};var s=typeof e;if("string"===s&&e.length>0)return r(e);if("number"===s&&isNaN(e)===!1)return n["long"]?o(e):t(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},{}],4:[function(e,n){function r(e){if(c===setTimeout)return setTimeout(e,0);try{return c(e,0)}catch(n){try{return c.call(null,e,0)}catch(n){return c.call(this,e,0)}}}function t(e){if(u===clearTimeout)return clearTimeout(e);try{return u(e)}catch(n){try{return u.call(null,e)}catch(n){return u.call(this,e)}}}function o(){d&&l&&(d=!1,l.length?C=l.concat(C):g=-1,C.length&&s())}function s(){if(!d){var e=r(o);d=!0;for(var n=C.length;n;){for(l=C,C=[];++g<n;)l&&l[g].run();g=-1,n=C.length}l=null,d=!1,t(e)}}function a(e,n){this.fun=e,this.array=n}function i(){}var c,u,f=n.exports={};!function(){try{c=setTimeout}catch(e){c=function(){throw new Error("setTimeout is not defined")}}try{u=clearTimeout}catch(e){u=function(){throw new Error("clearTimeout is not defined")}}}();var l,C=[],d=!1,g=-1;f.nextTick=function(e){var n=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)n[t-1]=arguments[t];C.push(new a(e,n)),1!==C.length||d||r(s)},a.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=i,f.addListener=i,f.once=i,f.off=i,f.removeListener=i,f.removeAllListeners=i,f.emit=i,f.binding=function(){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},{}]},{},[2]); | ||
!function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var a="function"==typeof require&&require;if(!f&&a)return a(i,!0);if(u)return u(i,!0);var c=new Error("Cannot find module '"+i+"'");throw c.code="MODULE_NOT_FOUND",c}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n?n:r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}({},{},[]); |
{ | ||
"name": "@searchfe/debug", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "umd port for npm debug", | ||
"main": "index.js", | ||
"scripts": { | ||
"dist": "browserify node_modules/debug | uglifyjs -c -m > index.js", | ||
"dist": "browserify -s node_modules/debug | uglifyjs -c -m > index.js", | ||
"postversion": "git push --tags", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
@@ -9,0 +10,0 @@ }, |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
11
0
1502