@things-factory/env 3.5.28 → 3.6.7

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.
@@ -23,7 +23,7 @@ function loader(moduleName) {
23
23
  return require(moduleName)
24
24
  }
25
25
  } catch (e) {
26
- debug('load error', e)
26
+ console.error('load error', e)
27
27
  }
28
28
  }
29
29
 
@@ -11,8 +11,12 @@ const sceneModules = orderedModuleNames.reduce((sum, name) => {
11
11
 
12
12
  Object.keys(dependencies)
13
13
  .filter(dep => {
14
- const pkg = require(`${dep}/package.json`)
15
- return pkg && pkg['things-scene']
14
+ try {
15
+ const pkg = require(`${dep}/package.json`)
16
+ return pkg && pkg['things-scene']
17
+ } catch (err) {
18
+ return
19
+ }
16
20
  })
17
21
  .forEach(dep => {
18
22
  sum[dep] = true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/env",
3
- "version": "3.5.28",
3
+ "version": "3.6.7",
4
4
  "description": "Things Factory running environment helper library",
5
5
  "main": "index.js",
6
6
  "author": "heartyoh@hatiolab.com",
@@ -26,5 +26,5 @@
26
26
  "winston": "^3.2.1",
27
27
  "winston-daily-rotate-file": "^4.2.1"
28
28
  },
29
- "gitHead": "5a3f270ba5f368e5cb6792ce9af533bc8cc48045"
29
+ "gitHead": "6f15856aaf04842e4b4508133753c3e17eadeec9"
30
30
  }