From b2650a39e4556eca124d97afa9d6a0953852ba94 Mon Sep 17 00:00:00 2001 From: Olivier Melcher Date: Mon, 12 May 2014 21:53:41 -0400 Subject: [PATCH] c8 --- c3.js | 3 ++- component.json | 6 ++++-- package.json | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/c3.js b/c3.js index e9566f9..7c68cc9 100644 --- a/c3.js +++ b/c3.js @@ -4541,10 +4541,11 @@ if (typeof window.define === "function" && window.define.amd) { window.define("c3", ["d3"], c3); + } else if ('undefined' !== typeof exports && 'undefined' !== typeof module){ + module.exports = c3; } else { window.c3 = c3; } - // TODO: module.exports // Features: // 1. category axis diff --git a/component.json b/component.json index abf09d2..2eea38a 100644 --- a/component.json +++ b/component.json @@ -2,9 +2,11 @@ "name": "c3", "repo": "masayuki0812/c3", "description": "A D3-based reusable chart library", - "version": "0.0.1", + "version": "0.1.39", "keywords": [], - "dependencies": {}, + "dependencies": { + "mbostock/d3": "*" + }, "development": {}, "license": "MIT", "main": "c3.js", diff --git a/package.json b/package.json index 7674540..cc6b837 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "c3", - "version": "0.1.38", + "version": "0.1.39", "description": "D3-based reusable chart library", "main": "c3.js", "scripts": {