Permalink
Browse files

Adapted to new component spec.

  • Loading branch information...
1 parent b64124c commit 77531e47dd376252a7261d498d550767e5d0fa53 @slaskis slaskis committed Oct 10, 2012
Showing with 21 additions and 8 deletions.
  1. +9 −0 component.js
  2. +6 −0 debug.js
  3. +5 −2 index.js
  4. +1 −6 package.json
View
@@ -0,0 +1,9 @@
+{
+ "name": "debug",
+ "repo": "visionmedia/debug",
+ "description": "small debugging utility",
+ "version": "0.7.0",
+ "keywords": ["debug", "log", "debugger"],
+ "scripts": ["index.js", "debug.js"],
+ "dependencies": {}
+}
View
@@ -1,4 +1,10 @@
+/**
+ * Expose `debug()` as the module.
+ */
+
+module.exports = debug;
+
/**
* Create a debugger with the given `name`.
*
View
@@ -1,2 +1,5 @@
-
-module.exports = require('./lib/debug');
+if (typeof window != 'undefined') {
+ module.exports = require('./debug');
+} else {
+ module.exports = require('./lib/debug');
+}
View
@@ -7,11 +7,6 @@
, "dependencies": {}
, "devDependencies": { "mocha": "*" }
, "main": "index"
- , "browserify": "debug.component.js"
+ , "browserify": "debug.js"
, "engines": { "node": "*" }
- , "component": {
- "scripts": {
- "debug": "debug.component.js"
- }
- }
}

0 comments on commit 77531e4

Please sign in to comment.