@nocobase/cli 1.9.0-beta.2 → 1.9.0-beta.4

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.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/src/util.js +6 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/cli",
3
- "version": "1.9.0-beta.2",
3
+ "version": "1.9.0-beta.4",
4
4
  "description": "",
5
5
  "license": "AGPL-3.0",
6
6
  "main": "./src/index.js",
@@ -8,7 +8,7 @@
8
8
  "nocobase": "./bin/index.js"
9
9
  },
10
10
  "dependencies": {
11
- "@nocobase/app": "1.9.0-beta.2",
11
+ "@nocobase/app": "1.9.0-beta.4",
12
12
  "@nocobase/license-kit": "^0.2.12",
13
13
  "@types/fs-extra": "^11.0.1",
14
14
  "@umijs/utils": "3.5.20",
@@ -27,12 +27,12 @@
27
27
  "tsx": "^4.19.0"
28
28
  },
29
29
  "devDependencies": {
30
- "@nocobase/devtools": "1.9.0-beta.2"
30
+ "@nocobase/devtools": "1.9.0-beta.4"
31
31
  },
32
32
  "repository": {
33
33
  "type": "git",
34
34
  "url": "git+https://github.com/nocobase/nocobase.git",
35
35
  "directory": "packages/core/cli"
36
36
  },
37
- "gitHead": "5ff02f5b60ed666fbf8bdea1a202635e77879ee0"
37
+ "gitHead": "0276aa12d87f82c73d62a9712134fe363e2c772a"
38
38
  }
package/src/util.js CHANGED
@@ -495,11 +495,14 @@ async function isEnvMatch(keyData) {
495
495
  const env = await getEnvAsync();
496
496
  if (env?.container?.id && keyData?.instanceData?.container?.id) {
497
497
  return (
498
- JSON.stringify(omit(env, ['timestamp', 'container', 'hostname'])) ===
499
- JSON.stringify(omit(keyData?.instanceData, ['timestamp', 'container', 'hostname']))
498
+ JSON.stringify(omit(env, ['timestamp', 'container', 'hostname', 'mac'])) ===
499
+ JSON.stringify(omit(keyData?.instanceData, ['timestamp', 'container', 'hostname', 'mac']))
500
500
  );
501
501
  }
502
- return JSON.stringify(omit(env, ['timestamp'])) === JSON.stringify(omit(keyData?.instanceData, ['timestamp']));
502
+ return (
503
+ JSON.stringify(omit(env, ['timestamp', 'mac'])) ===
504
+ JSON.stringify(omit(keyData?.instanceData, ['timestamp', 'mac']))
505
+ );
503
506
  }
504
507
 
505
508
  exports.getAccessKeyPair = async function () {