tinygame.xyz
Advanced tools
Comparing version 1.2.2015 to 1.2.3001
{ | ||
"name": "tinygame.xyz", | ||
"version": "1.2.2015", | ||
"version": "1.2.3001", | ||
"main": "index.js", | ||
@@ -20,3 +20,13 @@ "dependencies": {}, | ||
"readme": "tinygame\r\n\r\n", | ||
"readmeFilename": "readme.md" | ||
"readmeFilename": "readme.md", | ||
"bugs": { | ||
"url": "https://github.com/tinygame/tinygame/issues" | ||
}, | ||
"homepage": "https://github.com/tinygame/tinygame", | ||
"_id": "tinygame.xyz@1.2.20150310", | ||
"dist": { | ||
"shasum": "0f41841c21e857b7482d48a2a8a663c401c9592f" | ||
}, | ||
"_from": "tinygame.xyz@", | ||
"_resolved": "https://registry.npmjs.org/tinygame.xyz/-/tinygame.xyz-1.2.20150310.tgz" | ||
} |
@@ -31,3 +31,7 @@ { | ||
"_id": "bytes@1.0.0", | ||
"_from": "bytes@1.0.0" | ||
"dist": { | ||
"shasum": "0d59053cd85c87731f2e54f79cf2afb40568b8b3" | ||
}, | ||
"_from": "bytes@1.0.0", | ||
"_resolved": "https://registry.npmjs.org/bytes/-/bytes-1.0.0.tgz" | ||
} |
@@ -99,3 +99,7 @@ { | ||
"_id": "iconv-lite@0.4.6", | ||
"_from": "iconv-lite@0.4.6" | ||
"dist": { | ||
"shasum": "648856365e9cf3faeff353e5e79c58c593c8649b" | ||
}, | ||
"_from": "iconv-lite@0.4.6", | ||
"_resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.6.tgz" | ||
} |
@@ -38,3 +38,7 @@ { | ||
"_id": "media-typer@0.3.0", | ||
"_from": "media-typer@0.3.0" | ||
"dist": { | ||
"shasum": "a0d2edc14fa5a8b7451603bbcd69c18521f0bdc3" | ||
}, | ||
"_from": "media-typer@0.3.0", | ||
"_resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz" | ||
} |
@@ -40,3 +40,7 @@ { | ||
"_id": "ee-first@1.1.0", | ||
"_from": "ee-first@1.1.0" | ||
"dist": { | ||
"shasum": "dd68b4175286e43ab53b0003a884cc587809ca83" | ||
}, | ||
"_from": "ee-first@1.1.0", | ||
"_resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.0.tgz" | ||
} |
@@ -35,3 +35,7 @@ { | ||
"_id": "qs@2.3.3", | ||
"_from": "qs@2.3.3" | ||
"dist": { | ||
"shasum": "162a060774c571b8355bf88e85be75833d93d603" | ||
}, | ||
"_from": "qs@2.3.3", | ||
"_resolved": "https://registry.npmjs.org/qs/-/qs-2.3.3.tgz" | ||
} |
@@ -49,3 +49,7 @@ { | ||
"_id": "raw-body@1.3.2", | ||
"_from": "raw-body@1.3.2" | ||
"dist": { | ||
"shasum": "b83323c87a0bdde5cdf01fb217559afc7e96f946" | ||
}, | ||
"_from": "raw-body@1.3.2", | ||
"_resolved": "https://registry.npmjs.org/raw-body/-/raw-body-1.3.2.tgz" | ||
} |
@@ -53,3 +53,3 @@ { | ||
"_id": "type-is@1.5.7", | ||
"_from": "type-is@~1.5.5" | ||
"_from": "type-is@~1.5.6" | ||
} |
@@ -34,3 +34,7 @@ { | ||
"_id": "cookie-signature@1.0.6", | ||
"_from": "cookie-signature@1.0.6" | ||
"dist": { | ||
"shasum": "d40d79198321b39b906c528bd3eaf0c8b567fef5" | ||
}, | ||
"_from": "cookie-signature@1.0.6", | ||
"_resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz" | ||
} |
@@ -35,3 +35,7 @@ { | ||
"_id": "cookie@0.1.2", | ||
"_from": "cookie@0.1.2" | ||
"dist": { | ||
"shasum": "1eef0dec7e54f653c66b69d1428efc5e3c52c0ef" | ||
}, | ||
"_from": "cookie@0.1.2", | ||
"_resolved": "https://registry.npmjs.org/cookie/-/cookie-0.1.2.tgz" | ||
} |
{ | ||
"name": "visionmedia/debug", | ||
"name": "visionmedia-debug", | ||
"main": "dist/debug.js", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"homepage": "https://github.com/visionmedia/debug", | ||
@@ -9,3 +9,3 @@ "authors": [ | ||
], | ||
"description": "visionmedia/debug", | ||
"description": "visionmedia-debug", | ||
"moduleType": [ | ||
@@ -12,0 +12,0 @@ "amd", |
@@ -24,3 +24,3 @@ | ||
else | ||
storage = window.localStorage; | ||
storage = localstorage(); | ||
@@ -160,1 +160,18 @@ /** | ||
exports.enable(load()); | ||
/** | ||
* Localstorage attempts to return the localstorage. | ||
* | ||
* This is necessary because safari throws | ||
* when a user disables cookies/localstorage | ||
* and you attempt to access it. | ||
* | ||
* @return {LocalStorage} | ||
* @api private | ||
*/ | ||
function localstorage(){ | ||
try { | ||
return window.localStorage; | ||
} catch (e) {} | ||
} |
@@ -5,3 +5,3 @@ { | ||
"description": "small debugging utility", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"keywords": [ | ||
@@ -18,4 +18,4 @@ "debug", | ||
"dependencies": { | ||
"guille/ms.js": "0.6.1" | ||
"rauchg/ms.js": "0.7.0" | ||
} | ||
} |
2.1.2 / 2015-03-01 | ||
================== | ||
* dist: recompile | ||
* update "ms" to v0.7.0 | ||
* package: update "browserify" to v9.0.3 | ||
* component: fix "ms.js" repo location | ||
* changed bower package name | ||
* updated documentation about using debug in a browser | ||
* fix: security error on safari (#167, #168, @yields) | ||
2.1.1 / 2014-12-29 | ||
@@ -14,5 +25,5 @@ ================== | ||
* node: implement `DEBUG_FD` env variable support | ||
* package: update "browserify" to v6.1.0 | ||
* package: add "license" field to package.json (#135, @panuhorsmalahti) | ||
* node: implement `DEBUG_FD` env variable support | ||
* package: update "browserify" to v6.1.0 | ||
* package: add "license" field to package.json (#135, @panuhorsmalahti) | ||
@@ -22,4 +33,4 @@ 2.0.0 / 2014-09-01 | ||
* package: update "browserify" to v5.11.0 | ||
* node: use stderr rather than stdout for logging (#29, @stephenmathieson) | ||
* package: update "browserify" to v5.11.0 | ||
* node: use stderr rather than stdout for logging (#29, @stephenmathieson) | ||
@@ -29,10 +40,10 @@ 1.0.4 / 2014-07-15 | ||
* dist: recompile | ||
* example: remove `console.info()` log usage | ||
* example: add "Content-Type" UTF-8 header to browser example | ||
* browser: place %c marker after the space character | ||
* browser: reset the "content" color via `color: inherit` | ||
* browser: add colors support for Firefox >= v31 | ||
* debug: prefer an instance `log()` function over the global one (#119) | ||
* Readme: update documentation about styled console logs for FF v31 (#116, @wryk) | ||
* dist: recompile | ||
* example: remove `console.info()` log usage | ||
* example: add "Content-Type" UTF-8 header to browser example | ||
* browser: place %c marker after the space character | ||
* browser: reset the "content" color via `color: inherit` | ||
* browser: add colors support for Firefox >= v31 | ||
* debug: prefer an instance `log()` function over the global one (#119) | ||
* Readme: update documentation about styled console logs for FF v31 (#116, @wryk) | ||
@@ -42,4 +53,4 @@ 1.0.3 / 2014-07-09 | ||
* Add support for multiple wildcards in namespaces (#122, @seegno) | ||
* browser: fix lint | ||
* Add support for multiple wildcards in namespaces (#122, @seegno) | ||
* browser: fix lint | ||
@@ -46,0 +57,0 @@ 1.0.2 / 2014-06-10 |
@@ -41,3 +41,3 @@ /** | ||
function parse(str) { | ||
var match = /^((?:\d+)?\.?\d+) *(ms|seconds?|s|minutes?|m|hours?|h|days?|d|years?|y)?$/i.exec(str); | ||
var match = /^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(str); | ||
if (!match) return; | ||
@@ -49,2 +49,4 @@ var n = parseFloat(match[1]); | ||
case 'year': | ||
case 'yrs': | ||
case 'yr': | ||
case 'y': | ||
@@ -58,2 +60,4 @@ return n * y; | ||
case 'hour': | ||
case 'hrs': | ||
case 'hr': | ||
case 'h': | ||
@@ -63,2 +67,4 @@ return n * h; | ||
case 'minute': | ||
case 'mins': | ||
case 'min': | ||
case 'm': | ||
@@ -68,4 +74,10 @@ return n * m; | ||
case 'second': | ||
case 'secs': | ||
case 'sec': | ||
case 's': | ||
return n * s; | ||
case 'milliseconds': | ||
case 'millisecond': | ||
case 'msecs': | ||
case 'msec': | ||
case 'ms': | ||
@@ -72,0 +84,0 @@ return n; |
{ | ||
"name": "ms", | ||
"version": "0.6.2", | ||
"version": "0.7.0", | ||
"description": "Tiny ms conversion utility", | ||
@@ -20,3 +20,3 @@ "repository": { | ||
}, | ||
"readme": "# ms.js: miliseconds conversion utility\n\n```js\nms('1d') // 86400000\nms('10h') // 36000000\nms('2h') // 7200000\nms('1m') // 60000\nms('5s') // 5000\nms('100') // 100\n```\n\n```js\nms(60000) // \"1m\"\nms(2 * 60000) // \"2m\"\nms(ms('10 hours')) // \"10h\"\n```\n\n```js\nms(60000, { long: true }) // \"1 minute\"\nms(2 * 60000, { long: true }) // \"2 minutes\"\nms(ms('10 hours', { long: true })) // \"10 hours\"\n```\n\n- Node/Browser compatible. Published as `ms` in NPM.\n- If a number is supplied to `ms`, a string with a unit is returned.\n- If a string that contains the number is supplied, it returns it as\na number (e.g: it returns `100` for `'100'`).\n- If you pass a string with a number and a valid unit, the number of\nequivalent ms is returned.\n\n## License\n\nMIT", | ||
"readme": "# ms.js: miliseconds conversion utility\n\n```js\nms('2 days') // 172800000\nms('1d') // 86400000\nms('10h') // 36000000\nms('2.5 hrs') // 9000000\nms('2h') // 7200000\nms('1m') // 60000\nms('5s') // 5000\nms('100') // 100\n```\n\n```js\nms(60000) // \"1m\"\nms(2 * 60000) // \"2m\"\nms(ms('10 hours')) // \"10h\"\n```\n\n```js\nms(60000, { long: true }) // \"1 minute\"\nms(2 * 60000, { long: true }) // \"2 minutes\"\nms(ms('10 hours'), { long: true }) // \"10 hours\"\n```\n\n- Node/Browser compatible. Published as [`ms`](https://www.npmjs.org/package/ms) in [NPM](nodejs.org/download).\n- If a number is supplied to `ms`, a string with a unit is returned.\n- If a string that contains the number is supplied, it returns it as\na number (e.g: it returns `100` for `'100'`).\n- If you pass a string with a number and a valid unit, the number of\nequivalent ms is returned.\n\n## License\n\nMIT\n", | ||
"readmeFilename": "README.md", | ||
@@ -26,4 +26,8 @@ "bugs": { | ||
}, | ||
"_id": "ms@0.6.2", | ||
"_from": "ms@0.6.2" | ||
"_id": "ms@0.7.0", | ||
"dist": { | ||
"shasum": "1755a148628019be8eae32f53f04881f0f8297ec" | ||
}, | ||
"_from": "ms@0.7.0", | ||
"_resolved": "https://registry.npmjs.org/ms/-/ms-0.7.0.tgz" | ||
} |
# ms.js: miliseconds conversion utility | ||
```js | ||
ms('2 days') // 172800000 | ||
ms('1d') // 86400000 | ||
ms('10h') // 36000000 | ||
ms('2.5 hrs') // 9000000 | ||
ms('2h') // 7200000 | ||
@@ -21,6 +23,6 @@ ms('1m') // 60000 | ||
ms(2 * 60000, { long: true }) // "2 minutes" | ||
ms(ms('10 hours', { long: true })) // "10 hours" | ||
ms(ms('10 hours'), { long: true }) // "10 hours" | ||
``` | ||
- Node/Browser compatible. Published as `ms` in NPM. | ||
- Node/Browser compatible. Published as [`ms`](https://www.npmjs.org/package/ms) in [NPM](nodejs.org/download). | ||
- If a number is supplied to `ms`, a string with a unit is returned. | ||
@@ -34,2 +36,2 @@ - If a string that contains the number is supplied, it returns it as | ||
MIT | ||
MIT |
{ | ||
"name": "debug", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"repository": { | ||
@@ -27,6 +27,6 @@ "type": "git", | ||
"dependencies": { | ||
"ms": "0.6.2" | ||
"ms": "0.7.0" | ||
}, | ||
"devDependencies": { | ||
"browserify": "6.1.0", | ||
"browserify": "9.0.3", | ||
"mocha": "*" | ||
@@ -42,3 +42,3 @@ }, | ||
}, | ||
"readme": "# debug\n\n tiny node.js debugging utility modelled after node core's debugging technique.\n\n## Installation\n\n```bash\n$ npm install debug\n```\n\n## Usage\n\n With `debug` you simply invoke the exported function to generate your debug function, passing it a name which will determine if a noop function is returned, or a decorated `console.error`, so all of the `console` format string goodies you're used to work fine. A unique color is selected per-function for visibility.\n\nExample _app.js_:\n\n```js\nvar debug = require('debug')('http')\n , http = require('http')\n , name = 'My App';\n\n// fake app\n\ndebug('booting %s', name);\n\nhttp.createServer(function(req, res){\n debug(req.method + ' ' + req.url);\n res.end('hello\\n');\n}).listen(3000, function(){\n debug('listening');\n});\n\n// fake worker of some kind\n\nrequire('./worker');\n```\n\nExample _worker.js_:\n\n```js\nvar debug = require('debug')('worker');\n\nsetInterval(function(){\n debug('doing some work');\n}, 1000);\n```\n\n The __DEBUG__ environment variable is then used to enable these based on space or comma-delimited names. Here are some examples:\n\n ![debug http and worker](http://f.cl.ly/items/18471z1H402O24072r1J/Screenshot.png)\n\n ![debug worker](http://f.cl.ly/items/1X413v1a3M0d3C2c1E0i/Screenshot.png)\n\n#### Windows note\n\n On Windows the environment variable is set using the `set` command. \n \n ```cmd\n set DEBUG=*,-not_this\n ```\n\nThen, run the program to be debugged as ususal.\n\n## Millisecond diff\n\n When actively developing an application it can be useful to see when the time spent between one `debug()` call and the next. Suppose for example you invoke `debug()` before requesting a resource, and after as well, the \"+NNNms\" will show you how much time was spent between calls.\n\n ![](http://f.cl.ly/items/2i3h1d3t121M2Z1A3Q0N/Screenshot.png)\n\n When stdout is not a TTY, `Date#toUTCString()` is used, making it more useful for logging the debug information as shown below:\n\n ![](http://f.cl.ly/items/112H3i0e0o0P0a2Q2r11/Screenshot.png)\n\n## Conventions\n\n If you're using this in one or more of your libraries, you _should_ use the name of your library so that developers may toggle debugging as desired without guessing names. If you have more than one debuggers you _should_ prefix them with your library name and use \":\" to separate features. For example \"bodyParser\" from Connect would then be \"connect:bodyParser\".\n\n## Wildcards\n\n The `*` character may be used as a wildcard. Suppose for example your library has debuggers named \"connect:bodyParser\", \"connect:compress\", \"connect:session\", instead of listing all three with `DEBUG=connect:bodyParser,connect.compress,connect:session`, you may simply do `DEBUG=connect:*`, or to run everything using this module simply use `DEBUG=*`.\n\n You can also exclude specific debuggers by prefixing them with a \"-\" character. For example, `DEBUG=*,-connect:*` would include all debuggers except those starting with \"connect:\".\n\n## Browser support\n\n Debug works in the browser as well, currently persisted by `localStorage`. For example if you have `worker:a` and `worker:b` as shown below, and wish to debug both type `debug.enable('worker:*')` in the console and refresh the page, this will remain until you disable with `debug.disable()`.\n\n```js\na = debug('worker:a');\nb = debug('worker:b');\n\nsetInterval(function(){\n a('doing some work');\n}, 1000);\n\nsetInterval(function(){\n b('doing some work');\n}, 1200);\n```\n\n#### Web Inspector Colors\n\n Colors are also enabled on \"Web Inspectors\" that understand the `%c` formatting\n option. These are WebKit web inspectors, Firefox ([since version\n 31](https://hacks.mozilla.org/2014/05/editable-box-model-multiple-selection-sublime-text-keys-much-more-firefox-developer-tools-episode-31/))\n and the Firebug plugin for Firefox (any version).\n\n Colored output looks something like:\n\n ![](https://cloud.githubusercontent.com/assets/71256/3139768/b98c5fd8-e8ef-11e3-862a-f7253b6f47c6.png)\n\n### stderr vs stdout\n\nYou can set an alternative logging method per-namespace by overriding the `log` method on a per-namespace or globally:\n\nExample _stderr.js_:\n\n```js\nvar debug = require('../');\nvar log = debug('app:log');\n\n// by default console.log is used\nlog('goes to stdout!');\n\nvar error = debug('app:error');\n// set this namespace to log via console.error\nerror.log = console.error.bind(console); // don't forget to bind to console!\nerror('goes to stderr');\nlog('still goes to stdout!');\n\n// set all output to go via console.warn\n// overrides all per-namespace log settings\ndebug.log = console.warn.bind(console);\nlog('now goes to stderr via console.warn');\nerror('still goes to stderr, but via console.warn now');\n```\n\n## Authors\n\n - TJ Holowaychuk\n - Nathan Rajlich\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2014 TJ Holowaychuk <tj@vision-media.ca>\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n", | ||
"readme": "# debug\n\n tiny node.js debugging utility modelled after node core's debugging technique.\n\n## Installation\n\n```bash\n$ npm install debug\n```\n\n## Usage\n\n With `debug` you simply invoke the exported function to generate your debug function, passing it a name which will determine if a noop function is returned, or a decorated `console.error`, so all of the `console` format string goodies you're used to work fine. A unique color is selected per-function for visibility.\n\nExample _app.js_:\n\n```js\nvar debug = require('debug')('http')\n , http = require('http')\n , name = 'My App';\n\n// fake app\n\ndebug('booting %s', name);\n\nhttp.createServer(function(req, res){\n debug(req.method + ' ' + req.url);\n res.end('hello\\n');\n}).listen(3000, function(){\n debug('listening');\n});\n\n// fake worker of some kind\n\nrequire('./worker');\n```\n\nExample _worker.js_:\n\n```js\nvar debug = require('debug')('worker');\n\nsetInterval(function(){\n debug('doing some work');\n}, 1000);\n```\n\n The __DEBUG__ environment variable is then used to enable these based on space or comma-delimited names. Here are some examples:\n\n ![debug http and worker](http://f.cl.ly/items/18471z1H402O24072r1J/Screenshot.png)\n\n ![debug worker](http://f.cl.ly/items/1X413v1a3M0d3C2c1E0i/Screenshot.png)\n\n#### Windows note\n\n On Windows the environment variable is set using the `set` command. \n \n ```cmd\n set DEBUG=*,-not_this\n ```\n\nThen, run the program to be debugged as ususal.\n\n## Millisecond diff\n\n When actively developing an application it can be useful to see when the time spent between one `debug()` call and the next. Suppose for example you invoke `debug()` before requesting a resource, and after as well, the \"+NNNms\" will show you how much time was spent between calls.\n\n ![](http://f.cl.ly/items/2i3h1d3t121M2Z1A3Q0N/Screenshot.png)\n\n When stdout is not a TTY, `Date#toUTCString()` is used, making it more useful for logging the debug information as shown below:\n\n ![](http://f.cl.ly/items/112H3i0e0o0P0a2Q2r11/Screenshot.png)\n\n## Conventions\n\n If you're using this in one or more of your libraries, you _should_ use the name of your library so that developers may toggle debugging as desired without guessing names. If you have more than one debuggers you _should_ prefix them with your library name and use \":\" to separate features. For example \"bodyParser\" from Connect would then be \"connect:bodyParser\".\n\n## Wildcards\n\n The `*` character may be used as a wildcard. Suppose for example your library has debuggers named \"connect:bodyParser\", \"connect:compress\", \"connect:session\", instead of listing all three with `DEBUG=connect:bodyParser,connect.compress,connect:session`, you may simply do `DEBUG=connect:*`, or to run everything using this module simply use `DEBUG=*`.\n\n You can also exclude specific debuggers by prefixing them with a \"-\" character. For example, `DEBUG=*,-connect:*` would include all debuggers except those starting with \"connect:\".\n\n## Browser support\n\n Debug works in the browser as well, currently persisted by `localStorage`. Consider the situation shown below where you have `worker:a` and `worker:b`, and wish to debug both. Somewhere in the code on your page, include:\n\n```js\nwindow.myDebug = require(\"debug\");\n```\n\n (\"debug\" is a global object in the browser so we give this object a different name.) When your page is open in the browser, type the following in the console:\n\n```js\nmyDebug.enable(\"worker:*\")\n```\n\n Refresh the page. Debug output will continue to be sent to the console until it is disabled by typing `myDebug.disable()` in the console.\n\n```js\na = debug('worker:a');\nb = debug('worker:b');\n\nsetInterval(function(){\n a('doing some work');\n}, 1000);\n\nsetInterval(function(){\n b('doing some work');\n}, 1200);\n```\n\n#### Web Inspector Colors\n\n Colors are also enabled on \"Web Inspectors\" that understand the `%c` formatting\n option. These are WebKit web inspectors, Firefox ([since version\n 31](https://hacks.mozilla.org/2014/05/editable-box-model-multiple-selection-sublime-text-keys-much-more-firefox-developer-tools-episode-31/))\n and the Firebug plugin for Firefox (any version).\n\n Colored output looks something like:\n\n ![](https://cloud.githubusercontent.com/assets/71256/3139768/b98c5fd8-e8ef-11e3-862a-f7253b6f47c6.png)\n\n### stderr vs stdout\n\nYou can set an alternative logging method per-namespace by overriding the `log` method on a per-namespace or globally:\n\nExample _stderr.js_:\n\n```js\nvar debug = require('../');\nvar log = debug('app:log');\n\n// by default console.log is used\nlog('goes to stdout!');\n\nvar error = debug('app:error');\n// set this namespace to log via console.error\nerror.log = console.error.bind(console); // don't forget to bind to console!\nerror('goes to stderr');\nlog('still goes to stdout!');\n\n// set all output to go via console.warn\n// overrides all per-namespace log settings\ndebug.log = console.warn.bind(console);\nlog('now goes to stderr via console.warn');\nerror('still goes to stderr, but via console.warn now');\n```\n\n## Authors\n\n - TJ Holowaychuk\n - Nathan Rajlich\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2014 TJ Holowaychuk <tj@vision-media.ca>\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n", | ||
"readmeFilename": "Readme.md", | ||
@@ -48,4 +48,4 @@ "bugs": { | ||
}, | ||
"_id": "debug@2.1.1", | ||
"_id": "debug@2.1.2", | ||
"_from": "debug@~2.1.1" | ||
} |
@@ -86,5 +86,17 @@ # debug | ||
Debug works in the browser as well, currently persisted by `localStorage`. For example if you have `worker:a` and `worker:b` as shown below, and wish to debug both type `debug.enable('worker:*')` in the console and refresh the page, this will remain until you disable with `debug.disable()`. | ||
Debug works in the browser as well, currently persisted by `localStorage`. Consider the situation shown below where you have `worker:a` and `worker:b`, and wish to debug both. Somewhere in the code on your page, include: | ||
```js | ||
window.myDebug = require("debug"); | ||
``` | ||
("debug" is a global object in the browser so we give this object a different name.) When your page is open in the browser, type the following in the console: | ||
```js | ||
myDebug.enable("worker:*") | ||
``` | ||
Refresh the page. Debug output will continue to be sent to the console until it is disabled by typing `myDebug.disable()` in the console. | ||
```js | ||
a = debug('worker:a'); | ||
@@ -91,0 +103,0 @@ b = debug('worker:b'); |
@@ -50,7 +50,3 @@ { | ||
"_id": "ejs@2.2.4", | ||
"dist": { | ||
"shasum": "3c4d8479ddbb896c764e77927dee6823c0832dfe" | ||
}, | ||
"_from": "ejs@~2.2.3", | ||
"_resolved": "https://registry.npmjs.org/ejs/-/ejs-2.2.4.tgz" | ||
"_from": "ejs@~2.2.3" | ||
} |
@@ -58,3 +58,7 @@ { | ||
"_id": "negotiator@0.5.1", | ||
"_from": "negotiator@0.5.1" | ||
"dist": { | ||
"shasum": "076ec3205759845a598bb817c2b212b4eb039061" | ||
}, | ||
"_from": "negotiator@0.5.1", | ||
"_resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.5.1.tgz" | ||
} |
@@ -31,3 +31,7 @@ { | ||
"_id": "cookie-signature@1.0.5", | ||
"_from": "cookie-signature@1.0.5" | ||
"dist": { | ||
"shasum": "db0d1679443e99e41173d67e9f2a8ab8f9ab3205" | ||
}, | ||
"_from": "cookie-signature@1.0.5", | ||
"_resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.5.tgz" | ||
} |
@@ -35,3 +35,7 @@ { | ||
"_id": "cookie@0.1.2", | ||
"_from": "cookie@0.1.2" | ||
"dist": { | ||
"shasum": "1eef0dec7e54f653c66b69d1428efc5e3c52c0ef" | ||
}, | ||
"_from": "cookie@0.1.2", | ||
"_resolved": "https://registry.npmjs.org/cookie/-/cookie-0.1.2.tgz" | ||
} |
@@ -27,3 +27,7 @@ { | ||
"_id": "escape-html@1.0.1", | ||
"_from": "escape-html@1.0.1" | ||
"dist": { | ||
"shasum": "777cf0da92d25aa00e7a1583bcd29fd16d71343a" | ||
}, | ||
"_from": "escape-html@1.0.1", | ||
"_resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.1.tgz" | ||
} |
@@ -44,3 +44,7 @@ { | ||
"_id": "finalhandler@0.3.3", | ||
"_from": "finalhandler@0.3.3" | ||
"dist": { | ||
"shasum": "f9897839df40a866aff26afff93b3238ee1f6026" | ||
}, | ||
"_from": "finalhandler@0.3.3", | ||
"_resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-0.3.3.tgz" | ||
} |
@@ -38,3 +38,7 @@ { | ||
"_id": "media-typer@0.3.0", | ||
"_from": "media-typer@0.3.0" | ||
"dist": { | ||
"shasum": "a0d2edc14fa5a8b7451603bbcd69c18521f0bdc3" | ||
}, | ||
"_from": "media-typer@0.3.0", | ||
"_resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz" | ||
} |
@@ -24,3 +24,7 @@ { | ||
"_id": "merge-descriptors@0.0.2", | ||
"_from": "merge-descriptors@0.0.2" | ||
"dist": { | ||
"shasum": "64fe67a0481be3b6e66d4e03171af8da8e01d444" | ||
}, | ||
"_from": "merge-descriptors@0.0.2", | ||
"_resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-0.0.2.tgz" | ||
} |
@@ -40,3 +40,7 @@ { | ||
"_id": "ee-first@1.1.0", | ||
"_from": "ee-first@1.1.0" | ||
"dist": { | ||
"shasum": "dd68b4175286e43ab53b0003a884cc587809ca83" | ||
}, | ||
"_from": "ee-first@1.1.0", | ||
"_resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.0.tgz" | ||
} |
@@ -35,3 +35,7 @@ { | ||
"_id": "qs@2.3.3", | ||
"_from": "qs@2.3.3" | ||
"dist": { | ||
"shasum": "162a060774c571b8355bf88e85be75833d93d603" | ||
}, | ||
"_from": "qs@2.3.3", | ||
"_resolved": "https://registry.npmjs.org/qs/-/qs-2.3.3.tgz" | ||
} |
@@ -47,3 +47,7 @@ { | ||
"_id": "destroy@1.0.3", | ||
"_from": "destroy@1.0.3" | ||
"dist": { | ||
"shasum": "533b7848fce3ac7cbbd86fc84b888b81677aebfa" | ||
}, | ||
"_from": "destroy@1.0.3", | ||
"_resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.3.tgz" | ||
} |
@@ -34,3 +34,7 @@ { | ||
"_id": "mime@1.2.11", | ||
"_from": "mime@1.2.11" | ||
"dist": { | ||
"shasum": "2e68433cd8b933cc360926e916e08e705e3bf1ae" | ||
}, | ||
"_from": "mime@1.2.11", | ||
"_resolved": "https://registry.npmjs.org/mime/-/mime-1.2.11.tgz" | ||
} |
@@ -26,4 +26,8 @@ { | ||
"_id": "ms@0.7.0", | ||
"dist": { | ||
"shasum": "1755a148628019be8eae32f53f04881f0f8297ec" | ||
}, | ||
"_from": "ms@0.7.0", | ||
"_resolved": "https://registry.npmjs.org/ms/-/ms-0.7.0.tgz", | ||
"scripts": {} | ||
} |
@@ -62,3 +62,7 @@ { | ||
"_id": "send@0.11.1", | ||
"_from": "send@0.11.1" | ||
"dist": { | ||
"shasum": "72cb75021ad9aa0536fc74b549009d821fce5606" | ||
}, | ||
"_from": "send@0.11.1", | ||
"_resolved": "https://registry.npmjs.org/send/-/send-0.11.1.tgz" | ||
} |
@@ -41,3 +41,7 @@ { | ||
"_id": "utils-merge@1.0.0", | ||
"_from": "utils-merge@1.0.0" | ||
"dist": { | ||
"shasum": "71492a858a7e6939180c36738fb4361674fd84a6" | ||
}, | ||
"_from": "utils-merge@1.0.0", | ||
"_resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.0.tgz" | ||
} |
@@ -32,3 +32,7 @@ { | ||
"_id": "basic-auth@1.0.0", | ||
"_from": "basic-auth@1.0.0" | ||
"dist": { | ||
"shasum": "10db2d5563670d7ef09814adb562c47e71cfd740" | ||
}, | ||
"_from": "basic-auth@1.0.0", | ||
"_resolved": "https://registry.npmjs.org/basic-auth/-/basic-auth-1.0.0.tgz" | ||
} |
@@ -40,3 +40,7 @@ { | ||
"_id": "ee-first@1.1.0", | ||
"_from": "ee-first@1.1.0" | ||
"dist": { | ||
"shasum": "dd68b4175286e43ab53b0003a884cc587809ca83" | ||
}, | ||
"_from": "ee-first@1.1.0", | ||
"_resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.0.tgz" | ||
} |
@@ -26,3 +26,8 @@ { | ||
"_id": "ms@0.7.0", | ||
"_from": "ms@0.7.0" | ||
"dist": { | ||
"shasum": "1755a148628019be8eae32f53f04881f0f8297ec" | ||
}, | ||
"_from": "ms@0.7.0", | ||
"_resolved": "https://registry.npmjs.org/ms/-/ms-0.7.0.tgz", | ||
"scripts": {} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
4398077
585
60776
20