Compare commits

...

4 Commits
v21.1.1 ... v7

Author SHA1 Message Date
aa4198af9a Merge pull request #1367 from balena-io/mixpanel-args-v7
Update mixpanel tracking (v7)
2019-07-22 09:00:00 +00:00
e0523ec8fa v7.10.10 2019-07-24 14:29:26 +01:00
230a178228 Update mixpanel tracking
Change-type: patch
Signed-off-by: Paulo Castro <paulo@balena.io>
2019-07-24 14:29:26 +01:00
5d91b2e830 Fix typescript and global promise errors to allow for backport changes
Change-type: patch
Signed-off-by: Paulo Castro <paulo@balena.io>
2019-07-24 14:29:26 +01:00
7 changed files with 22 additions and 13 deletions

View File

@ -16,4 +16,4 @@ deploy:
on:
tags: true
condition: "$TRAVIS_TAG =~ ^v?[[:digit:]]+\\.[[:digit:]]+\\.[[:digit:]]+"
repo: resin-io/resin-cli
repo: balena-io/balena-cli

View File

@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
This project adheres to [Semantic Versioning](http://semver.org/).
## v7.10.10 - 2019-07-24
* [BACKPORT] Update mixpanel tracking [Paulo Castro]
* [BACKPORT] Fix typescript and global promise errors to allow for backport changes [Paulo Castro]
## v7.10.9 - 2018-10-18
* Update sdk references in wizzard.coffee [Scott Lowe]

View File

@ -24,7 +24,7 @@ execPkg(['--target', 'host', '--output', 'build-bin/resin', 'package.json'])
.then(nativeExtensions => {
console.log(`\nCopying to build-bin:\n${nativeExtensions.join('\n')}`);
return nativeExtensions.map(extPath => {
return nativeExtensions.map((extPath: string) => {
return fs.copy(
extPath,
extPath.replace(

View File

@ -14,6 +14,12 @@ See the License for the specific language governing permissions and
limitations under the License.
###
# Assign bluebird as the global promise library
# stream-to-promise will produce native promises if not
# for this module, which could wreak havoc in this
# bluebird-only codebase.
require('any-promise/register/bluebird')
Raven = require('raven')
Raven.disableConsoleAlerts()
Raven.config require('./config').sentryDsn,
@ -79,12 +85,6 @@ events = require('./events')
update = require('./utils/update')
{ exitWithExpectedError } = require('./utils/patterns')
# Assign bluebird as the global promise library
# stream-to-promise will produce native promises if not
# for this module, which could wreak havoc in this
# bluebird-only codebase.
require('any-promise/register/bluebird')
capitano.permission 'user', (done) ->
resin.auth.isLoggedIn().then (isLoggedIn) ->
if not isLoggedIn

View File

@ -30,16 +30,19 @@ export function trackCommand(capitanoCli: Capitano.Cli) {
username,
},
});
// `command.signature.toString()` results in a string like, for example:
// "push <applicationOrDevice>"
// That's literally so: "applicationOrDevice" is NOT replaced with
// the actual application ID or device ID. The purpose is find out the
// most / least used command verbs, so we can focus our development
// effort where it is most beneficial to end users.
return mixpanel.track(`[CLI] ${command.signature.toString()}`, {
distinct_id: username,
argv: process.argv.join(' '),
version: packageJSON.version,
node: process.version,
arch: process.arch,
resinUrl,
platform: process.platform,
command: capitanoCli,
});
});
})

View File

@ -1,6 +1,6 @@
{
"name": "resin-cli",
"version": "7.10.9",
"version": "7.10.10",
"description": "The official resin.io CLI tool",
"main": "./build/actions/index.js",
"homepage": "https://github.com/resin-io/resin-cli",
@ -78,7 +78,7 @@
"gulp-mocha": "^2.0.0",
"gulp-shell": "^0.5.2",
"mochainon": "^2.0.0",
"pkg": "^4.3.0-beta.1",
"pkg": "4.3.8",
"prettier": "1.13.5",
"publish-release": "^1.3.3",
"require-npm4-to-publish": "^1.0.0",

View File

@ -10,6 +10,7 @@
"preserveConstEnums": true,
"removeComments": true,
"sourceMap": true,
"skipLibCheck": true,
"lib": [
// es5 defaults:
"dom",