keytops-game-framework 1.0.7 → 1.0.9

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/dist/index.js +3 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6280,6 +6280,9 @@ class EnterOptionParser {
6280
6280
  getOption(key) {
6281
6281
  let keyArr = key.split(".");
6282
6282
  let parent = this._options;
6283
+ if (!parent) {
6284
+ return null;
6285
+ }
6283
6286
  for (let i = 0; i < keyArr.length; i++) {
6284
6287
  const key = keyArr[i];
6285
6288
  parent = parent[key];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keytops-game-framework",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "cocos creator game framework library",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",