File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed
packages/gatsby-telemetry Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 1414 "configstore" : " 4.0.0" ,
1515 "envinfo" : " ^5.8.1" ,
1616 "fs-extra" : " ^7.0.1" ,
17+ "is-docker" : " 1.1.0" ,
1718 "node-fetch" : " 2.3.0" ,
1819 "resolve-cwd" : " ^2.0.0" ,
1920 "source-map" : " ^0.5.7" ,
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ const ci = require(`ci-info`)
66const os = require ( `os` )
77const { basename } = require ( `path` )
88const { execSync } = require ( `child_process` )
9+ const isDocker = require ( `is-docker` )
910
1011module . exports = class AnalyticsTracker {
1112 store = new EventStorage ( )
@@ -155,6 +156,7 @@ module.exports = class AnalyticsTracker {
155156 arch : os . arch ( ) ,
156157 ci : ci . isCI ,
157158 ciName : ( ci . isCI && ci . name ) || undefined ,
159+ docker : isDocker ( ) ,
158160 }
159161 this . osInfo = osInfo
160162 return osInfo
Original file line number Diff line number Diff line change @@ -11496,6 +11496,11 @@ is-directory@^0.3.1:
1149611496 resolved "https://registry.yarnpkg.com/is-directory/-/is-directory-0.3.1.tgz#61339b6f2475fc772fd9c9d83f5c8575dc154ae1"
1149711497 integrity sha1-YTObbyR1/Hcv2cnYP1yFddwVSuE=
1149811498
11499+ 11500+ version "1.1.0"
11501+ resolved "https://registry.yarnpkg.com/is-docker/-/is-docker-1.1.0.tgz#f04374d4eee5310e9a8e113bf1495411e46176a1"
11502+ integrity sha1-8EN01O7lMQ6ajhE78UlUEeRhdqE=
11503+
1149911504is-dotfile@^1.0.0:
1150011505 version "1.0.3"
1150111506 resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.3.tgz#a6a2f32ffd2dfb04f5ca25ecd0f6b83cf798a1e1"
You can’t perform that action at this time.
0 commit comments