ee-core 1.3.1 → 1.3.2

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 +1 -1
  2. package/tools/encrypt.js +3 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ee-core",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "ee core",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/tools/encrypt.js CHANGED
@@ -240,6 +240,9 @@ class Encrypt {
240
240
 
241
241
  loadConfig (prop) {
242
242
  const filepath = path.join(this.basePath, 'electron', 'config', prop);
243
+ if (!fs.existsSync(filepath)) {
244
+ return {};
245
+ }
243
246
  const obj = require(filepath);
244
247
  if (!obj) return obj;
245
248