Merge branch 'master' of github.com:Glavin001/atom-beautify

This commit is contained in:
Glavin Wiechert 2018-03-01 23:49:28 -04:00
commit bd04d75888
3 changed files with 6 additions and 6 deletions

View File

@ -184,7 +184,7 @@
"bluebird": "^3.5.1", "bluebird": "^3.5.1",
"coffee-fmt": "^0.12.0", "coffee-fmt": "^0.12.0",
"coffee-formatter": "^0.1.2", "coffee-formatter": "^0.1.2",
"coffee-script": "^1.12.6", "coffeescript": "^1.12.6",
"csscomb": "^4.2.0", "csscomb": "^4.2.0",
"diff": "^3.4.0", "diff": "^3.4.0",
"editorconfig": "^0.15.0", "editorconfig": "^0.15.0",
@ -202,7 +202,6 @@
"nginxbeautify": "^2.0.1", "nginxbeautify": "^2.0.1",
"node-cljfmt": "0.5.3", "node-cljfmt": "0.5.3",
"node-dir": "0.1.17", "node-dir": "0.1.17",
"node-uuid": "1.4.8",
"open": "0.0.5", "open": "0.0.5",
"prettier": "^1.10.2", "prettier": "^1.10.2",
"prettydiff2": "^2.2.7", "prettydiff2": "^2.2.7",
@ -218,6 +217,7 @@
"typescript": "^2.6.2", "typescript": "^2.6.2",
"typescript-formatter": "^7.0.0", "typescript-formatter": "^7.0.0",
"underscore-plus": "^1.6.6", "underscore-plus": "^1.6.6",
"uuid": "^3.1.0",
"universal-analytics": "^0.4.16", "universal-analytics": "^0.4.16",
"which": "^1.3.0", "which": "^1.3.0",
"winston": "^2.4.0", "winston": "^2.4.0",
@ -455,7 +455,7 @@
"scripts": { "scripts": {
"build-options": "node script/build-options.js", "build-options": "node script/build-options.js",
"docs": "npm run build-options && coffee docs/", "docs": "npm run build-options && coffee docs/",
"prepublish": "npm run docs", "prepare": "npm run docs",
"lint": "coffeelint src/ spec/", "lint": "coffeelint src/ spec/",
"code-docs": "codo && open docs/code/index.html", "code-docs": "codo && open docs/code/index.html",
"test": "atom --test spec" "test": "atom --test spec"

View File

@ -9,7 +9,7 @@ _ = require('lodash');
_plus = require('underscore-plus'); _plus = require('underscore-plus');
require("coffee-script/register"); require("coffeescript/register");
logger = require('../src/logger')(__filename) logger = require('../src/logger')(__filename)

View File

@ -266,8 +266,8 @@ module.exports = class Beautifiers extends EventEmitter
logger.info("Analytics is enabled.") logger.info("Analytics is enabled.")
# Setup Analytics # Setup Analytics
unless atom.config.get("atom-beautify.general._analyticsUserId") unless atom.config.get("atom-beautify.general._analyticsUserId")
uuid = require("node-uuid") uuidv4 = require("uuid/v4")
atom.config.set "atom-beautify.general._analyticsUserId", uuid.v4() atom.config.set "atom-beautify.general._analyticsUserId", uuidv4()
# Setup Analytics User Id # Setup Analytics User Id
userId = atom.config.get("atom-beautify.general._analyticsUserId") userId = atom.config.get("atom-beautify.general._analyticsUserId")
@analytics ?= new ua(trackingId, userId, { @analytics ?= new ua(trackingId, userId, {