Skip to content

Commit

Permalink
Merge pull request #146 from zqjimlove/hotfix/remove-module-os-name
Browse files Browse the repository at this point in the history
fix: os-name依赖包报错
  • Loading branch information
giscafer authored Jan 4, 2021
2 parents 47ec9cb + a03176f commit 21083e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "leek-fund",
"displayName": "韭菜盒子",
"description": "韭菜盒子,VSCode 里也可以看股票 & 基金实时数据,做最好用的投资插件",
"version": "1.8.8",
"version": "1.8.9",
"author": "giscafer <[email protected]>",
"repository": {
"type": "git",
Expand Down Expand Up @@ -625,9 +625,7 @@
"iconv-lite": "^0.6.2",
"lodash.clonedeep": "^4.5.0",
"lodash.throttle": "^4.1.1",
"os-name": "^4.0.0",
"public-ip": "^4.0.3",
"ws": "^7.4.1",
"nice-try":"2.1.0"
"ws": "^7.4.1"
}
}
4 changes: 2 additions & 2 deletions src/shared/telemetry.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as vscode from 'vscode';
const osName = require('os-name');
const os = require('os');
const publicIp = require('public-ip');
var Amplitude = require('amplitude');

Expand Down Expand Up @@ -40,7 +40,7 @@ export class Telemetry {
this.amplitude.identify({
user_id: this.userId,
language: vscode.env.language,
platform: osName(),
platform: os.platform(),
app_version: extensionVersion,
ip: this.ip,
user_properties: {
Expand Down

0 comments on commit 21083e5

Please sign in to comment.