From 0fb63b93f67841badec0b52205d0881a30fc4bdb Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Fri, 17 Jul 2015 14:53:45 +0200 Subject: [PATCH] Added mail thing --- .gitignore | 1 + js/l3d/apps/prototype/coin-creator/main.js | 18 +- js/l3d/src/utils/Logger.js | 4 +- lib/NodeLog.js | 7 + npm-shrinkwrap.json | 378 ++++++++++++--------- package.json | 4 +- posts/coin-info/index.js | 19 ++ posts/coin-info/urls.js | 3 + 8 files changed, 264 insertions(+), 170 deletions(-) create mode 100644 posts/coin-info/index.js create mode 100644 posts/coin-info/urls.js diff --git a/.gitignore b/.gitignore index c35ed95..90c237f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules private.js +mail.js diff --git a/js/l3d/apps/prototype/coin-creator/main.js b/js/l3d/apps/prototype/coin-creator/main.js index 38484b6..79190f5 100644 --- a/js/l3d/apps/prototype/coin-creator/main.js +++ b/js/l3d/apps/prototype/coin-creator/main.js @@ -18,6 +18,7 @@ var coins = []; var previousTime; var pointer; var startCanvas; +var name; function sceneName() { switch (initMainScene) { @@ -34,15 +35,20 @@ function sceneName() { saveCoins = function() { - var result = '{scene: "' + sceneName() + '", coins: ['; + var result = {scene: sceneName(), coins: []}; - for (var i = 0; i < coins.length - 1; i++) { - result += JSON.stringify(coins[i].mesh.position) + ','; + if (name === undefined) { + name = window.prompt('Your name please ? :D'); } - result += JSON.stringify(coins[coins.length-1].mesh.position) + ']}'; - var blob = new Blob([result], {type: "text/plain;charset=utf-8"}); - saveAs(blob, "coins.js"); + result.name = name; + + for (var i = 0; i < coins.length; i++) { + if (coins[i].mesh.visible) + result.coins.push(coins[i].mesh.position); + } + + L3D.BD.Private.sendData('/posts/coin-info', result, true); }; diff --git a/js/l3d/src/utils/Logger.js b/js/l3d/src/utils/Logger.js index 7da79d4..e0d6726 100644 --- a/js/l3d/src/utils/Logger.js +++ b/js/l3d/src/utils/Logger.js @@ -2,8 +2,8 @@ L3D.BD = {}; L3D.BD.Private = {}; -L3D.BD.Private.sendData = function(url, data) { - if (L3D.BD.Private.enabled) { +L3D.BD.Private.sendData = function(url, data, force) { + if (L3D.BD.Private.enabled || force) { // Append time to data data.time = Date.now() / 1000; diff --git a/lib/NodeLog.js b/lib/NodeLog.js index 2394215..44a415c 100644 --- a/lib/NodeLog.js +++ b/lib/NodeLog.js @@ -64,6 +64,13 @@ Log.dberror = function(error) { ); }; +Log.mailerror = function(error) { + log( + '[MLE] ' + new Date() + ' ' + error, + Colors.RED + ); +} + if (isDev) { Log.debug = function(info) { log( diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 3604d3b..f28fee1 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -4,89 +4,89 @@ "dependencies": { "body-parser": { "version": "1.12.4", - "from": "body-parser@1.12.4", + "from": "https://registry.npmjs.org/body-parser/-/body-parser-1.12.4.tgz", "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.12.4.tgz", "dependencies": { "bytes": { "version": "1.0.0", - "from": "bytes@1.0.0", + "from": "https://registry.npmjs.org/bytes/-/bytes-1.0.0.tgz", "resolved": "https://registry.npmjs.org/bytes/-/bytes-1.0.0.tgz" }, "content-type": { "version": "1.0.1", - "from": "content-type@>=1.0.1 <1.1.0", + "from": "https://registry.npmjs.org/content-type/-/content-type-1.0.1.tgz", "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.1.tgz" }, "debug": { "version": "2.2.0", - "from": "debug@>=2.2.0 <2.3.0", + "from": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", "dependencies": { "ms": { "version": "0.7.1", - "from": "ms@0.7.1", + "from": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz" } } }, "depd": { "version": "1.0.1", - "from": "depd@>=1.0.1 <1.1.0", + "from": "https://registry.npmjs.org/depd/-/depd-1.0.1.tgz", "resolved": "https://registry.npmjs.org/depd/-/depd-1.0.1.tgz" }, "iconv-lite": { "version": "0.4.8", - "from": "iconv-lite@0.4.8", + "from": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.8.tgz", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.8.tgz" }, "on-finished": { "version": "2.2.1", - "from": "on-finished@>=2.2.1 <2.3.0", + "from": "https://registry.npmjs.org/on-finished/-/on-finished-2.2.1.tgz", "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.2.1.tgz", "dependencies": { "ee-first": { "version": "1.1.0", - "from": "ee-first@1.1.0", + "from": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.0.tgz", "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.0.tgz" } } }, "qs": { "version": "2.4.2", - "from": "qs@2.4.2", + "from": "https://registry.npmjs.org/qs/-/qs-2.4.2.tgz", "resolved": "https://registry.npmjs.org/qs/-/qs-2.4.2.tgz" }, "raw-body": { "version": "2.0.2", - "from": "raw-body@>=2.0.1 <2.1.0", + "from": "https://registry.npmjs.org/raw-body/-/raw-body-2.0.2.tgz", "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.0.2.tgz", "dependencies": { "bytes": { "version": "2.1.0", - "from": "bytes@2.1.0", + "from": "https://registry.npmjs.org/bytes/-/bytes-2.1.0.tgz", "resolved": "https://registry.npmjs.org/bytes/-/bytes-2.1.0.tgz" } } }, "type-is": { - "version": "1.6.3", - "from": "type-is@>=1.6.2 <1.7.0", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.3.tgz", + "version": "1.6.5", + "from": "https://registry.npmjs.org/type-is/-/type-is-1.6.5.tgz", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.5.tgz", "dependencies": { "media-typer": { "version": "0.3.0", - "from": "media-typer@0.3.0", + "from": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz" }, "mime-types": { - "version": "2.1.2", - "from": "mime-types@>=2.1.1 <2.2.0", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.2.tgz", + "version": "2.1.3", + "from": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.3.tgz", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.3.tgz", "dependencies": { "mime-db": { - "version": "1.14.0", - "from": "mime-db@>=1.14.0 <1.15.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.14.0.tgz" + "version": "1.15.0", + "from": "https://registry.npmjs.org/mime-db/-/mime-db-1.15.0.tgz", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.15.0.tgz" } } } @@ -96,181 +96,232 @@ }, "cookie-parser": { "version": "1.3.4", - "from": "cookie-parser@1.3.4", + "from": "https://registry.npmjs.org/cookie-parser/-/cookie-parser-1.3.4.tgz", "resolved": "https://registry.npmjs.org/cookie-parser/-/cookie-parser-1.3.4.tgz", "dependencies": { "cookie": { "version": "0.1.2", - "from": "cookie@0.1.2", + "from": "https://registry.npmjs.org/cookie/-/cookie-0.1.2.tgz", "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.1.2.tgz" }, "cookie-signature": { "version": "1.0.6", - "from": "cookie-signature@1.0.6", + "from": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz" } } }, "cookie-session": { "version": "1.1.0", - "from": "cookie-session@1.1.0", + "from": "https://registry.npmjs.org/cookie-session/-/cookie-session-1.1.0.tgz", "resolved": "https://registry.npmjs.org/cookie-session/-/cookie-session-1.1.0.tgz", "dependencies": { "cookies": { "version": "0.5.0", - "from": "cookies@0.5.0", + "from": "https://registry.npmjs.org/cookies/-/cookies-0.5.0.tgz", "resolved": "https://registry.npmjs.org/cookies/-/cookies-0.5.0.tgz", "dependencies": { "keygrip": { "version": "1.0.1", - "from": "keygrip@>=1.0.0 <1.1.0", + "from": "https://registry.npmjs.org/keygrip/-/keygrip-1.0.1.tgz", "resolved": "https://registry.npmjs.org/keygrip/-/keygrip-1.0.1.tgz" } } }, "debug": { "version": "2.1.3", - "from": "debug@>=2.1.0 <2.2.0", + "from": "https://registry.npmjs.org/debug/-/debug-2.1.3.tgz", "resolved": "https://registry.npmjs.org/debug/-/debug-2.1.3.tgz", "dependencies": { "ms": { "version": "0.7.0", - "from": "ms@0.7.0", + "from": "https://registry.npmjs.org/ms/-/ms-0.7.0.tgz", "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.0.tgz" } } }, "on-headers": { "version": "1.0.0", - "from": "on-headers@>=1.0.0 <1.1.0", + "from": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.0.tgz", "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.0.tgz" } } }, + "emailjs": { + "version": "0.3.16", + "from": "https://registry.npmjs.org/emailjs/-/emailjs-0.3.16.tgz", + "resolved": "https://registry.npmjs.org/emailjs/-/emailjs-0.3.16.tgz", + "dependencies": { + "addressparser": { + "version": "0.3.2", + "from": "https://registry.npmjs.org/addressparser/-/addressparser-0.3.2.tgz", + "resolved": "https://registry.npmjs.org/addressparser/-/addressparser-0.3.2.tgz" + }, + "mimelib": { + "version": "0.2.14", + "from": "https://registry.npmjs.org/mimelib/-/mimelib-0.2.14.tgz", + "resolved": "https://registry.npmjs.org/mimelib/-/mimelib-0.2.14.tgz", + "dependencies": { + "encoding": { + "version": "0.1.11", + "from": "https://registry.npmjs.org/encoding/-/encoding-0.1.11.tgz", + "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.11.tgz", + "dependencies": { + "iconv-lite": { + "version": "0.4.11", + "from": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.11.tgz", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.11.tgz" + } + } + }, + "addressparser": { + "version": "0.2.1", + "from": "https://registry.npmjs.org/addressparser/-/addressparser-0.2.1.tgz", + "resolved": "https://registry.npmjs.org/addressparser/-/addressparser-0.2.1.tgz" + } + } + }, + "moment": { + "version": "1.7.0", + "from": "https://registry.npmjs.org/moment/-/moment-1.7.0.tgz", + "resolved": "https://registry.npmjs.org/moment/-/moment-1.7.0.tgz" + }, + "starttls": { + "version": "0.2.1", + "from": "https://registry.npmjs.org/starttls/-/starttls-0.2.1.tgz", + "resolved": "https://registry.npmjs.org/starttls/-/starttls-0.2.1.tgz" + }, + "bufferjs": { + "version": "1.1.0", + "from": "https://registry.npmjs.org/bufferjs/-/bufferjs-1.1.0.tgz", + "resolved": "https://registry.npmjs.org/bufferjs/-/bufferjs-1.1.0.tgz" + } + } + }, "express": { "version": "4.0.0", - "from": "express@>=4.0.0 <4.1.0", + "from": "https://registry.npmjs.org/express/-/express-4.0.0.tgz", "resolved": "https://registry.npmjs.org/express/-/express-4.0.0.tgz", "dependencies": { "parseurl": { "version": "1.0.1", - "from": "parseurl@1.0.1", + "from": "https://registry.npmjs.org/parseurl/-/parseurl-1.0.1.tgz", "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.0.1.tgz" }, "accepts": { "version": "1.0.0", - "from": "accepts@1.0.0", + "from": "https://registry.npmjs.org/accepts/-/accepts-1.0.0.tgz", "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.0.0.tgz", "dependencies": { "mime": { "version": "1.2.11", - "from": "mime@>=1.2.11 <1.3.0", + "from": "https://registry.npmjs.org/mime/-/mime-1.2.11.tgz", "resolved": "https://registry.npmjs.org/mime/-/mime-1.2.11.tgz" }, "negotiator": { "version": "0.3.0", - "from": "negotiator@>=0.3.0 <0.4.0", + "from": "https://registry.npmjs.org/negotiator/-/negotiator-0.3.0.tgz", "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.3.0.tgz" } } }, "type-is": { "version": "1.0.0", - "from": "type-is@1.0.0", + "from": "https://registry.npmjs.org/type-is/-/type-is-1.0.0.tgz", "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.0.0.tgz", "dependencies": { "mime": { "version": "1.2.11", - "from": "mime@>=1.2.11 <1.3.0", + "from": "https://registry.npmjs.org/mime/-/mime-1.2.11.tgz", "resolved": "https://registry.npmjs.org/mime/-/mime-1.2.11.tgz" } } }, "range-parser": { "version": "1.0.0", - "from": "range-parser@1.0.0", + "from": "https://registry.npmjs.org/range-parser/-/range-parser-1.0.0.tgz", "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.0.0.tgz" }, "cookie": { "version": "0.1.0", - "from": "cookie@0.1.0", + "from": "https://registry.npmjs.org/cookie/-/cookie-0.1.0.tgz", "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.1.0.tgz" }, "buffer-crc32": { "version": "0.2.1", - "from": "buffer-crc32@0.2.1", + "from": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.1.tgz", "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.1.tgz" }, "fresh": { "version": "0.2.2", - "from": "fresh@0.2.2", + "from": "https://registry.npmjs.org/fresh/-/fresh-0.2.2.tgz", "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.2.2.tgz" }, "methods": { "version": "0.1.0", - "from": "methods@0.1.0", + "from": "https://registry.npmjs.org/methods/-/methods-0.1.0.tgz", "resolved": "https://registry.npmjs.org/methods/-/methods-0.1.0.tgz" }, "send": { "version": "0.2.0", - "from": "send@0.2.0", + "from": "https://registry.npmjs.org/send/-/send-0.2.0.tgz", "resolved": "https://registry.npmjs.org/send/-/send-0.2.0.tgz", "dependencies": { "mime": { "version": "1.2.11", - "from": "mime@>=1.2.11 <1.3.0", + "from": "https://registry.npmjs.org/mime/-/mime-1.2.11.tgz", "resolved": "https://registry.npmjs.org/mime/-/mime-1.2.11.tgz" } } }, "cookie-signature": { "version": "1.0.3", - "from": "cookie-signature@1.0.3", + "from": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.3.tgz", "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.3.tgz" }, "merge-descriptors": { "version": "0.0.2", - "from": "merge-descriptors@0.0.2", + "from": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-0.0.2.tgz", "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-0.0.2.tgz" }, "utils-merge": { "version": "1.0.0", - "from": "utils-merge@1.0.0", + "from": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.0.tgz", "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.0.tgz" }, "escape-html": { "version": "1.0.1", - "from": "escape-html@1.0.1", + "from": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.1.tgz", "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.1.tgz" }, "qs": { "version": "0.6.6", - "from": "qs@0.6.6", + "from": "https://registry.npmjs.org/qs/-/qs-0.6.6.tgz", "resolved": "https://registry.npmjs.org/qs/-/qs-0.6.6.tgz" }, "serve-static": { "version": "1.0.1", - "from": "serve-static@1.0.1", + "from": "https://registry.npmjs.org/serve-static/-/serve-static-1.0.1.tgz", "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.0.1.tgz", "dependencies": { "send": { "version": "0.1.4", - "from": "send@0.1.4", + "from": "https://registry.npmjs.org/send/-/send-0.1.4.tgz", "resolved": "https://registry.npmjs.org/send/-/send-0.1.4.tgz", "dependencies": { "mime": { "version": "1.2.11", - "from": "mime@>=1.2.9 <1.3.0", + "from": "https://registry.npmjs.org/mime/-/mime-1.2.11.tgz", "resolved": "https://registry.npmjs.org/mime/-/mime-1.2.11.tgz" }, "fresh": { "version": "0.2.0", - "from": "fresh@0.2.0", + "from": "https://registry.npmjs.org/fresh/-/fresh-0.2.0.tgz", "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.2.0.tgz" }, "range-parser": { "version": "0.0.4", - "from": "range-parser@0.0.4", + "from": "https://registry.npmjs.org/range-parser/-/range-parser-0.0.4.tgz", "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-0.0.4.tgz" } } @@ -279,44 +330,44 @@ }, "path-to-regexp": { "version": "0.1.2", - "from": "path-to-regexp@0.1.2", + "from": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.2.tgz", "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.2.tgz" }, "debug": { "version": "0.8.1", - "from": "debug@>=0.7.3 <1.0.0", + "from": "https://registry.npmjs.org/debug/-/debug-0.8.1.tgz", "resolved": "https://registry.npmjs.org/debug/-/debug-0.8.1.tgz" } } }, "jade": { "version": "1.9.2", - "from": "jade@1.9.2", + "from": "https://registry.npmjs.org/jade/-/jade-1.9.2.tgz", "resolved": "https://registry.npmjs.org/jade/-/jade-1.9.2.tgz", "dependencies": { "character-parser": { "version": "1.2.1", - "from": "character-parser@1.2.1", + "from": "https://registry.npmjs.org/character-parser/-/character-parser-1.2.1.tgz", "resolved": "https://registry.npmjs.org/character-parser/-/character-parser-1.2.1.tgz" }, "commander": { "version": "2.6.0", - "from": "commander@>=2.6.0 <2.7.0", + "from": "https://registry.npmjs.org/commander/-/commander-2.6.0.tgz", "resolved": "https://registry.npmjs.org/commander/-/commander-2.6.0.tgz" }, "constantinople": { "version": "3.0.1", - "from": "constantinople@>=3.0.1 <3.1.0", + "from": "https://registry.npmjs.org/constantinople/-/constantinople-3.0.1.tgz", "resolved": "https://registry.npmjs.org/constantinople/-/constantinople-3.0.1.tgz", "dependencies": { "acorn-globals": { "version": "1.0.4", - "from": "acorn-globals@>=1.0.3 <2.0.0", + "from": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-1.0.4.tgz", "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-1.0.4.tgz", "dependencies": { "acorn": { "version": "1.2.2", - "from": "acorn@>=1.0.1 <2.0.0", + "from": "https://registry.npmjs.org/acorn/-/acorn-1.2.2.tgz", "resolved": "https://registry.npmjs.org/acorn/-/acorn-1.2.2.tgz" } } @@ -325,75 +376,75 @@ }, "mkdirp": { "version": "0.5.1", - "from": "mkdirp@>=0.5.0 <0.6.0", + "from": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "dependencies": { "minimist": { "version": "0.0.8", - "from": "minimist@0.0.8", + "from": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz" } } }, "transformers": { "version": "2.1.0", - "from": "transformers@2.1.0", + "from": "https://registry.npmjs.org/transformers/-/transformers-2.1.0.tgz", "resolved": "https://registry.npmjs.org/transformers/-/transformers-2.1.0.tgz", "dependencies": { "promise": { "version": "2.0.0", - "from": "promise@>=2.0.0 <2.1.0", + "from": "https://registry.npmjs.org/promise/-/promise-2.0.0.tgz", "resolved": "https://registry.npmjs.org/promise/-/promise-2.0.0.tgz", "dependencies": { "is-promise": { "version": "1.0.1", - "from": "is-promise@>=1.0.0 <2.0.0", + "from": "https://registry.npmjs.org/is-promise/-/is-promise-1.0.1.tgz", "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-1.0.1.tgz" } } }, "css": { "version": "1.0.8", - "from": "css@>=1.0.8 <1.1.0", + "from": "https://registry.npmjs.org/css/-/css-1.0.8.tgz", "resolved": "https://registry.npmjs.org/css/-/css-1.0.8.tgz", "dependencies": { "css-parse": { "version": "1.0.4", - "from": "css-parse@1.0.4", + "from": "https://registry.npmjs.org/css-parse/-/css-parse-1.0.4.tgz", "resolved": "https://registry.npmjs.org/css-parse/-/css-parse-1.0.4.tgz" }, "css-stringify": { "version": "1.0.5", - "from": "css-stringify@1.0.5", + "from": "https://registry.npmjs.org/css-stringify/-/css-stringify-1.0.5.tgz", "resolved": "https://registry.npmjs.org/css-stringify/-/css-stringify-1.0.5.tgz" } } }, "uglify-js": { "version": "2.2.5", - "from": "uglify-js@>=2.2.5 <2.3.0", + "from": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.2.5.tgz", "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.2.5.tgz", "dependencies": { "source-map": { "version": "0.1.43", - "from": "source-map@>=0.1.7 <0.2.0", + "from": "https://registry.npmjs.org/source-map/-/source-map-0.1.43.tgz", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.43.tgz", "dependencies": { "amdefine": { - "version": "0.1.1", - "from": "amdefine@>=0.0.4", - "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-0.1.1.tgz" + "version": "1.0.0", + "from": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.0.tgz", + "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.0.tgz" } } }, "optimist": { "version": "0.3.7", - "from": "optimist@>=0.3.5 <0.4.0", + "from": "https://registry.npmjs.org/optimist/-/optimist-0.3.7.tgz", "resolved": "https://registry.npmjs.org/optimist/-/optimist-0.3.7.tgz", "dependencies": { "wordwrap": { "version": "0.0.3", - "from": "wordwrap@>=0.0.2 <0.1.0", + "from": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz", "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz" } } @@ -404,22 +455,22 @@ }, "void-elements": { "version": "2.0.1", - "from": "void-elements@>=2.0.1 <2.1.0", + "from": "https://registry.npmjs.org/void-elements/-/void-elements-2.0.1.tgz", "resolved": "https://registry.npmjs.org/void-elements/-/void-elements-2.0.1.tgz" }, "with": { "version": "4.0.3", - "from": "with@>=4.0.0 <4.1.0", + "from": "https://registry.npmjs.org/with/-/with-4.0.3.tgz", "resolved": "https://registry.npmjs.org/with/-/with-4.0.3.tgz", "dependencies": { "acorn": { "version": "1.2.2", - "from": "acorn@>=1.0.1 <2.0.0", + "from": "https://registry.npmjs.org/acorn/-/acorn-1.2.2.tgz", "resolved": "https://registry.npmjs.org/acorn/-/acorn-1.2.2.tgz" }, "acorn-globals": { "version": "1.0.4", - "from": "acorn-globals@>=1.0.3 <2.0.0", + "from": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-1.0.4.tgz", "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-1.0.4.tgz" } } @@ -428,48 +479,48 @@ }, "pg": { "version": "4.3.0", - "from": "pg@4.3.0", + "from": "https://registry.npmjs.org/pg/-/pg-4.3.0.tgz", "resolved": "https://registry.npmjs.org/pg/-/pg-4.3.0.tgz", "dependencies": { "buffer-writer": { "version": "1.0.0", - "from": "buffer-writer@1.0.0", + "from": "https://registry.npmjs.org/buffer-writer/-/buffer-writer-1.0.0.tgz", "resolved": "https://registry.npmjs.org/buffer-writer/-/buffer-writer-1.0.0.tgz" }, "generic-pool": { "version": "2.1.1", - "from": "generic-pool@2.1.1", + "from": "https://registry.npmjs.org/generic-pool/-/generic-pool-2.1.1.tgz", "resolved": "https://registry.npmjs.org/generic-pool/-/generic-pool-2.1.1.tgz" }, "packet-reader": { "version": "0.2.0", - "from": "packet-reader@0.2.0", + "from": "https://registry.npmjs.org/packet-reader/-/packet-reader-0.2.0.tgz", "resolved": "https://registry.npmjs.org/packet-reader/-/packet-reader-0.2.0.tgz" }, "pg-connection-string": { "version": "0.1.3", - "from": "pg-connection-string@0.1.3", + "from": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-0.1.3.tgz", "resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-0.1.3.tgz" }, "pg-types": { "version": "1.7.0", - "from": "pg-types@>=1.0.0 <2.0.0", + "from": "https://registry.npmjs.org/pg-types/-/pg-types-1.7.0.tgz", "resolved": "https://registry.npmjs.org/pg-types/-/pg-types-1.7.0.tgz" }, "pgpass": { "version": "0.0.3", - "from": "pgpass@0.0.3", + "from": "https://registry.npmjs.org/pgpass/-/pgpass-0.0.3.tgz", "resolved": "https://registry.npmjs.org/pgpass/-/pgpass-0.0.3.tgz", "dependencies": { "split": { "version": "0.3.3", - "from": "split@>=0.3.0 <0.4.0", + "from": "https://registry.npmjs.org/split/-/split-0.3.3.tgz", "resolved": "https://registry.npmjs.org/split/-/split-0.3.3.tgz", "dependencies": { "through": { - "version": "2.3.7", - "from": "through@>=2.0.0 <3.0.0", - "resolved": "https://registry.npmjs.org/through/-/through-2.3.7.tgz" + "version": "2.3.8", + "from": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz" } } } @@ -477,46 +528,46 @@ }, "semver": { "version": "4.3.6", - "from": "semver@>=4.1.0 <5.0.0", + "from": "https://registry.npmjs.org/semver/-/semver-4.3.6.tgz", "resolved": "https://registry.npmjs.org/semver/-/semver-4.3.6.tgz" } } }, "serve-favicon": { "version": "2.3.0", - "from": "serve-favicon@2.3.0", + "from": "https://registry.npmjs.org/serve-favicon/-/serve-favicon-2.3.0.tgz", "resolved": "https://registry.npmjs.org/serve-favicon/-/serve-favicon-2.3.0.tgz", "dependencies": { "etag": { "version": "1.7.0", - "from": "etag@>=1.7.0 <1.8.0", + "from": "https://registry.npmjs.org/etag/-/etag-1.7.0.tgz", "resolved": "https://registry.npmjs.org/etag/-/etag-1.7.0.tgz" }, "fresh": { "version": "0.3.0", - "from": "fresh@0.3.0", + "from": "https://registry.npmjs.org/fresh/-/fresh-0.3.0.tgz", "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.3.0.tgz" }, "ms": { "version": "0.7.1", - "from": "ms@0.7.1", + "from": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz" }, "parseurl": { "version": "1.3.0", - "from": "parseurl@>=1.3.0 <1.4.0", + "from": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.0.tgz", "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.0.tgz" } } }, "socket.io": { "version": "1.3.5", - "from": "socket.io@1.3.5", + "from": "https://registry.npmjs.org/socket.io/-/socket.io-1.3.5.tgz", "resolved": "https://registry.npmjs.org/socket.io/-/socket.io-1.3.5.tgz", "dependencies": { "engine.io": { "version": "1.5.1", - "from": "engine.io@1.5.1", + "from": "https://registry.npmjs.org/engine.io/-/engine.io-1.5.1.tgz", "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-1.5.1.tgz", "dependencies": { "debug": { @@ -635,54 +686,54 @@ }, "socket.io-parser": { "version": "2.2.4", - "from": "socket.io-parser@2.2.4", + "from": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-2.2.4.tgz", "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-2.2.4.tgz", "dependencies": { "debug": { "version": "0.7.4", - "from": "debug@0.7.4", + "from": "https://registry.npmjs.org/debug/-/debug-0.7.4.tgz", "resolved": "https://registry.npmjs.org/debug/-/debug-0.7.4.tgz" }, "json3": { "version": "3.2.6", - "from": "json3@3.2.6", + "from": "https://registry.npmjs.org/json3/-/json3-3.2.6.tgz", "resolved": "https://registry.npmjs.org/json3/-/json3-3.2.6.tgz" }, "component-emitter": { "version": "1.1.2", - "from": "component-emitter@1.1.2", + "from": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.1.2.tgz", "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.1.2.tgz" }, "isarray": { "version": "0.0.1", - "from": "isarray@0.0.1", + "from": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz" }, "benchmark": { "version": "1.0.0", - "from": "benchmark@1.0.0", + "from": "https://registry.npmjs.org/benchmark/-/benchmark-1.0.0.tgz", "resolved": "https://registry.npmjs.org/benchmark/-/benchmark-1.0.0.tgz" } } }, "socket.io-client": { "version": "1.3.5", - "from": "socket.io-client@1.3.5", + "from": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-1.3.5.tgz", "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-1.3.5.tgz", "dependencies": { "debug": { "version": "0.7.4", - "from": "debug@0.7.4", + "from": "https://registry.npmjs.org/debug/-/debug-0.7.4.tgz", "resolved": "https://registry.npmjs.org/debug/-/debug-0.7.4.tgz" }, "engine.io-client": { "version": "1.5.1", - "from": "engine.io-client@1.5.1", + "from": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-1.5.1.tgz", "resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-1.5.1.tgz", "dependencies": { "has-cors": { "version": "1.0.3", - "from": "has-cors@1.0.3", + "from": "https://registry.npmjs.org/has-cors/-/has-cors-1.0.3.tgz", "resolved": "https://registry.npmjs.org/has-cors/-/has-cors-1.0.3.tgz", "dependencies": { "global": { @@ -694,27 +745,27 @@ }, "ws": { "version": "0.4.31", - "from": "ws@0.4.31", + "from": "https://registry.npmjs.org/ws/-/ws-0.4.31.tgz", "resolved": "https://registry.npmjs.org/ws/-/ws-0.4.31.tgz", "dependencies": { "commander": { "version": "0.6.1", - "from": "commander@>=0.6.1 <0.7.0", + "from": "https://registry.npmjs.org/commander/-/commander-0.6.1.tgz", "resolved": "https://registry.npmjs.org/commander/-/commander-0.6.1.tgz" }, "nan": { "version": "0.3.2", - "from": "nan@>=0.3.0 <0.4.0", + "from": "https://registry.npmjs.org/nan/-/nan-0.3.2.tgz", "resolved": "https://registry.npmjs.org/nan/-/nan-0.3.2.tgz" }, "tinycolor": { "version": "0.0.1", - "from": "tinycolor@>=0.0.0 <1.0.0", + "from": "https://registry.npmjs.org/tinycolor/-/tinycolor-0.0.1.tgz", "resolved": "https://registry.npmjs.org/tinycolor/-/tinycolor-0.0.1.tgz" }, "options": { "version": "0.0.6", - "from": "options@>=0.0.5", + "from": "https://registry.npmjs.org/options/-/options-0.0.6.tgz", "resolved": "https://registry.npmjs.org/options/-/options-0.0.6.tgz" } } @@ -726,73 +777,73 @@ }, "engine.io-parser": { "version": "1.2.1", - "from": "engine.io-parser@1.2.1", + "from": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-1.2.1.tgz", "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-1.2.1.tgz", "dependencies": { "after": { "version": "0.8.1", - "from": "after@0.8.1", + "from": "https://registry.npmjs.org/after/-/after-0.8.1.tgz", "resolved": "https://registry.npmjs.org/after/-/after-0.8.1.tgz" }, "arraybuffer.slice": { "version": "0.0.6", - "from": "arraybuffer.slice@0.0.6", + "from": "https://registry.npmjs.org/arraybuffer.slice/-/arraybuffer.slice-0.0.6.tgz", "resolved": "https://registry.npmjs.org/arraybuffer.slice/-/arraybuffer.slice-0.0.6.tgz" }, "base64-arraybuffer": { "version": "0.1.2", - "from": "base64-arraybuffer@0.1.2", + "from": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.1.2.tgz", "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.1.2.tgz" }, "blob": { "version": "0.0.2", - "from": "blob@0.0.2", + "from": "https://registry.npmjs.org/blob/-/blob-0.0.2.tgz", "resolved": "https://registry.npmjs.org/blob/-/blob-0.0.2.tgz" }, "has-binary": { "version": "0.1.5", - "from": "has-binary@0.1.5", + "from": "https://registry.npmjs.org/has-binary/-/has-binary-0.1.5.tgz", "resolved": "https://registry.npmjs.org/has-binary/-/has-binary-0.1.5.tgz", "dependencies": { "isarray": { "version": "0.0.1", - "from": "isarray@0.0.1", + "from": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz" } } }, "utf8": { "version": "2.0.0", - "from": "utf8@2.0.0", + "from": "https://registry.npmjs.org/utf8/-/utf8-2.0.0.tgz", "resolved": "https://registry.npmjs.org/utf8/-/utf8-2.0.0.tgz" } } }, "debug": { "version": "1.0.4", - "from": "debug@1.0.4", + "from": "https://registry.npmjs.org/debug/-/debug-1.0.4.tgz", "resolved": "https://registry.npmjs.org/debug/-/debug-1.0.4.tgz", "dependencies": { "ms": { "version": "0.6.2", - "from": "ms@0.6.2", + "from": "https://registry.npmjs.org/ms/-/ms-0.6.2.tgz", "resolved": "https://registry.npmjs.org/ms/-/ms-0.6.2.tgz" } } }, "parseuri": { "version": "0.0.4", - "from": "parseuri@0.0.4", + "from": "https://registry.npmjs.org/parseuri/-/parseuri-0.0.4.tgz", "resolved": "https://registry.npmjs.org/parseuri/-/parseuri-0.0.4.tgz", "dependencies": { "better-assert": { "version": "1.0.2", - "from": "better-assert@>=1.0.0 <1.1.0", + "from": "https://registry.npmjs.org/better-assert/-/better-assert-1.0.2.tgz", "resolved": "https://registry.npmjs.org/better-assert/-/better-assert-1.0.2.tgz", "dependencies": { "callsite": { "version": "1.0.0", - "from": "callsite@1.0.0", + "from": "https://registry.npmjs.org/callsite/-/callsite-1.0.0.tgz", "resolved": "https://registry.npmjs.org/callsite/-/callsite-1.0.0.tgz" } } @@ -801,17 +852,17 @@ }, "parsejson": { "version": "0.0.1", - "from": "parsejson@0.0.1", + "from": "https://registry.npmjs.org/parsejson/-/parsejson-0.0.1.tgz", "resolved": "https://registry.npmjs.org/parsejson/-/parsejson-0.0.1.tgz", "dependencies": { "better-assert": { "version": "1.0.2", - "from": "better-assert@>=1.0.0 <1.1.0", + "from": "https://registry.npmjs.org/better-assert/-/better-assert-1.0.2.tgz", "resolved": "https://registry.npmjs.org/better-assert/-/better-assert-1.0.2.tgz", "dependencies": { "callsite": { "version": "1.0.0", - "from": "callsite@1.0.0", + "from": "https://registry.npmjs.org/callsite/-/callsite-1.0.0.tgz", "resolved": "https://registry.npmjs.org/callsite/-/callsite-1.0.0.tgz" } } @@ -820,17 +871,17 @@ }, "parseqs": { "version": "0.0.2", - "from": "parseqs@0.0.2", + "from": "https://registry.npmjs.org/parseqs/-/parseqs-0.0.2.tgz", "resolved": "https://registry.npmjs.org/parseqs/-/parseqs-0.0.2.tgz", "dependencies": { "better-assert": { "version": "1.0.2", - "from": "better-assert@>=1.0.0 <1.1.0", + "from": "https://registry.npmjs.org/better-assert/-/better-assert-1.0.2.tgz", "resolved": "https://registry.npmjs.org/better-assert/-/better-assert-1.0.2.tgz", "dependencies": { "callsite": { "version": "1.0.0", - "from": "callsite@1.0.0", + "from": "https://registry.npmjs.org/callsite/-/callsite-1.0.0.tgz", "resolved": "https://registry.npmjs.org/callsite/-/callsite-1.0.0.tgz" } } @@ -839,56 +890,56 @@ }, "component-inherit": { "version": "0.0.3", - "from": "component-inherit@0.0.3", + "from": "https://registry.npmjs.org/component-inherit/-/component-inherit-0.0.3.tgz", "resolved": "https://registry.npmjs.org/component-inherit/-/component-inherit-0.0.3.tgz" } } }, "component-bind": { "version": "1.0.0", - "from": "component-bind@1.0.0", + "from": "https://registry.npmjs.org/component-bind/-/component-bind-1.0.0.tgz", "resolved": "https://registry.npmjs.org/component-bind/-/component-bind-1.0.0.tgz" }, "component-emitter": { "version": "1.1.2", - "from": "component-emitter@1.1.2", + "from": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.1.2.tgz", "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.1.2.tgz" }, "object-component": { "version": "0.0.3", - "from": "object-component@0.0.3", + "from": "https://registry.npmjs.org/object-component/-/object-component-0.0.3.tgz", "resolved": "https://registry.npmjs.org/object-component/-/object-component-0.0.3.tgz" }, "has-binary": { "version": "0.1.6", - "from": "has-binary@0.1.6", + "from": "https://registry.npmjs.org/has-binary/-/has-binary-0.1.6.tgz", "resolved": "https://registry.npmjs.org/has-binary/-/has-binary-0.1.6.tgz", "dependencies": { "isarray": { "version": "0.0.1", - "from": "isarray@0.0.1", + "from": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz" } } }, "indexof": { "version": "0.0.1", - "from": "indexof@0.0.1", + "from": "https://registry.npmjs.org/indexof/-/indexof-0.0.1.tgz", "resolved": "https://registry.npmjs.org/indexof/-/indexof-0.0.1.tgz" }, "parseuri": { "version": "0.0.2", - "from": "parseuri@0.0.2", + "from": "https://registry.npmjs.org/parseuri/-/parseuri-0.0.2.tgz", "resolved": "https://registry.npmjs.org/parseuri/-/parseuri-0.0.2.tgz", "dependencies": { "better-assert": { "version": "1.0.2", - "from": "better-assert@>=1.0.0 <1.1.0", + "from": "https://registry.npmjs.org/better-assert/-/better-assert-1.0.2.tgz", "resolved": "https://registry.npmjs.org/better-assert/-/better-assert-1.0.2.tgz", "dependencies": { "callsite": { "version": "1.0.0", - "from": "callsite@1.0.0", + "from": "https://registry.npmjs.org/callsite/-/callsite-1.0.0.tgz", "resolved": "https://registry.npmjs.org/callsite/-/callsite-1.0.0.tgz" } } @@ -897,97 +948,102 @@ }, "to-array": { "version": "0.1.3", - "from": "to-array@0.1.3", + "from": "https://registry.npmjs.org/to-array/-/to-array-0.1.3.tgz", "resolved": "https://registry.npmjs.org/to-array/-/to-array-0.1.3.tgz" }, "backo2": { "version": "1.0.2", - "from": "backo2@1.0.2", + "from": "https://registry.npmjs.org/backo2/-/backo2-1.0.2.tgz", "resolved": "https://registry.npmjs.org/backo2/-/backo2-1.0.2.tgz" } } }, "socket.io-adapter": { "version": "0.3.1", - "from": "socket.io-adapter@0.3.1", + "from": "https://registry.npmjs.org/socket.io-adapter/-/socket.io-adapter-0.3.1.tgz", "resolved": "https://registry.npmjs.org/socket.io-adapter/-/socket.io-adapter-0.3.1.tgz", "dependencies": { "debug": { "version": "1.0.2", - "from": "debug@1.0.2", + "from": "https://registry.npmjs.org/debug/-/debug-1.0.2.tgz", "resolved": "https://registry.npmjs.org/debug/-/debug-1.0.2.tgz", "dependencies": { "ms": { "version": "0.6.2", - "from": "ms@0.6.2", + "from": "https://registry.npmjs.org/ms/-/ms-0.6.2.tgz", "resolved": "https://registry.npmjs.org/ms/-/ms-0.6.2.tgz" } } }, "socket.io-parser": { "version": "2.2.2", - "from": "socket.io-parser@2.2.2", + "from": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-2.2.2.tgz", "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-2.2.2.tgz", "dependencies": { "debug": { "version": "0.7.4", - "from": "debug@0.7.4", + "from": "https://registry.npmjs.org/debug/-/debug-0.7.4.tgz", "resolved": "https://registry.npmjs.org/debug/-/debug-0.7.4.tgz" }, "json3": { "version": "3.2.6", - "from": "json3@3.2.6", + "from": "https://registry.npmjs.org/json3/-/json3-3.2.6.tgz", "resolved": "https://registry.npmjs.org/json3/-/json3-3.2.6.tgz" }, "component-emitter": { "version": "1.1.2", - "from": "component-emitter@1.1.2", + "from": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.1.2.tgz", "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.1.2.tgz" }, "isarray": { "version": "0.0.1", - "from": "isarray@0.0.1", + "from": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz" }, "benchmark": { "version": "1.0.0", - "from": "benchmark@1.0.0", + "from": "https://registry.npmjs.org/benchmark/-/benchmark-1.0.0.tgz", "resolved": "https://registry.npmjs.org/benchmark/-/benchmark-1.0.0.tgz" } } }, "object-keys": { "version": "1.0.1", - "from": "object-keys@1.0.1", + "from": "https://registry.npmjs.org/object-keys/-/object-keys-1.0.1.tgz", "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.0.1.tgz" } } }, "has-binary-data": { "version": "0.1.3", - "from": "has-binary-data@0.1.3", + "from": "https://registry.npmjs.org/has-binary-data/-/has-binary-data-0.1.3.tgz", "resolved": "https://registry.npmjs.org/has-binary-data/-/has-binary-data-0.1.3.tgz", "dependencies": { "isarray": { "version": "0.0.1", - "from": "isarray@0.0.1", + "from": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz" } } }, "debug": { "version": "2.1.0", - "from": "debug@2.1.0", + "from": "https://registry.npmjs.org/debug/-/debug-2.1.0.tgz", "resolved": "https://registry.npmjs.org/debug/-/debug-2.1.0.tgz", "dependencies": { "ms": { "version": "0.6.2", - "from": "ms@0.6.2", + "from": "https://registry.npmjs.org/ms/-/ms-0.6.2.tgz", "resolved": "https://registry.npmjs.org/ms/-/ms-0.6.2.tgz" } } } } + }, + "three": { + "version": "0.71.0", + "from": "https://registry.npmjs.org/three/-/three-0.71.0.tgz", + "resolved": "https://registry.npmjs.org/three/-/three-0.71.0.tgz" } } } diff --git a/package.json b/package.json index 9737e40..21d78d1 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,9 @@ "cookie-parser" : "1.3.4", "cookie-session" : "1.1.0", "socket.io" : "1.3.5", - "serve-favicon": "2.3.0" + "serve-favicon": "2.3.0", + "emailjs":"0.3.16", + "three":"0.71.0" }, "repository" : { "type" : "git", diff --git a/posts/coin-info/index.js b/posts/coin-info/index.js new file mode 100644 index 0000000..91bc2d1 --- /dev/null +++ b/posts/coin-info/index.js @@ -0,0 +1,19 @@ +var mail = require('../../lib/mail.js'); +var Log = require('../../lib/NodeLog.js'); + +module.exports.index = function(req, res) { + + mail.send({ + from: req.body.name + " ", + to: "Thomas ", + subject: req.body.scene, + text: JSON.stringify(req.body.coins) + }, function(err, message) { + if (err !== null) { + Log.mailerror(err); + } + }); + + res.setHeader('Content-Type', 'text/html'); + res.send(""); +}; diff --git a/posts/coin-info/urls.js b/posts/coin-info/urls.js new file mode 100644 index 0000000..a9e6a1e --- /dev/null +++ b/posts/coin-info/urls.js @@ -0,0 +1,3 @@ +module.exports = { + '/coin-info': 'index' +};