Merge pull request #2019 from szeck87/uuid-prepublish
Change node-uuid to uuid, prepublish to prepare
This commit is contained in:
commit
9fca1386d5
|
@ -198,7 +198,6 @@
|
|||
"nginxbeautify": "^2.0.1",
|
||||
"node-cljfmt": "0.5.3",
|
||||
"node-dir": "0.1.17",
|
||||
"node-uuid": "1.4.8",
|
||||
"open": "0.0.5",
|
||||
"prettier": "^1.10.2",
|
||||
"prettydiff2": "^2.2.7",
|
||||
|
@ -214,6 +213,7 @@
|
|||
"typescript": "^2.6.2",
|
||||
"typescript-formatter": "^7.0.0",
|
||||
"underscore-plus": "^1.6.6",
|
||||
"uuid": "^3.1.0",
|
||||
"universal-analytics": "^0.4.16",
|
||||
"which": "^1.3.0",
|
||||
"winston": "^2.4.0",
|
||||
|
@ -451,7 +451,7 @@
|
|||
"scripts": {
|
||||
"build-options": "node script/build-options.js",
|
||||
"docs": "npm run build-options && coffee docs/",
|
||||
"prepublish": "npm run docs",
|
||||
"prepare": "npm run docs",
|
||||
"lint": "coffeelint src/ spec/",
|
||||
"code-docs": "codo && open docs/code/index.html",
|
||||
"test": "atom --test spec"
|
||||
|
|
|
@ -266,8 +266,8 @@ module.exports = class Beautifiers extends EventEmitter
|
|||
logger.info("Analytics is enabled.")
|
||||
# Setup Analytics
|
||||
unless atom.config.get("atom-beautify.general._analyticsUserId")
|
||||
uuid = require("node-uuid")
|
||||
atom.config.set "atom-beautify.general._analyticsUserId", uuid.v4()
|
||||
uuidv4 = require("uuid/v4")
|
||||
atom.config.set "atom-beautify.general._analyticsUserId", uuidv4()
|
||||
# Setup Analytics User Id
|
||||
userId = atom.config.get("atom-beautify.general._analyticsUserId")
|
||||
@analytics ?= new ua(trackingId, userId, {
|
||||
|
|
Loading…
Reference in New Issue