node-nim 10.8.10-beta.171 → 10.8.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-nim",
3
- "version": "10.8.10-beta.171",
3
+ "version": "10.8.10",
4
4
  "description": "NetEase IM nodejs wrapper based on NetEase IM C++ SDK",
5
5
  "main": "dist/node-nim.js",
6
6
  "bin": {
@@ -46,12 +46,14 @@
46
46
  "@typescript-eslint/parser": "^5.58.0",
47
47
  "bluebird": "^3.7.2",
48
48
  "cmake-js": "^6.3.2",
49
+ "commander": "^13.1.0",
49
50
  "eslint": "^8.57.0",
50
51
  "eslint-config-standard": "^17.1.0",
51
52
  "eslint-plugin-import": "^2.29.1",
52
53
  "eslint-plugin-n": "^16.6.2",
53
54
  "eslint-plugin-promise": "^6.2.0",
54
55
  "git-describe": "^4.1.1",
56
+ "hawk-web": "^1.3.21",
55
57
  "mocha": "^9.2.2",
56
58
  "node-addon-api": "^4.3.0",
57
59
  "nyc": "^15.1.0",
@@ -5,7 +5,9 @@ const compareVersions = require('compare-versions')
5
5
  const download = require('download')
6
6
 
7
7
  // Global variables
8
- const arch = process.env.npm_config_arch || process.arch
8
+ const default_arch = 'universal'
9
+ const current_arch = process.env.npm_config_arch || process.arch
10
+ const arch = process.platform === 'darwin' ? default_arch : current_arch
9
11
  const platform = process.env.npm_config_platform || process.platform
10
12
  const channel = 'message'
11
13
  const product = 'nim'