@taole/dev-helper 0.1.29 → 0.1.30

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.
@@ -373,9 +373,10 @@
373
373
  let data;
374
374
  if (extinfo) {
375
375
  try {
376
- const info = JSON.parse(extinfo);
377
- if (info && typeof info === 'object' && !Array.isArray(info)) {
378
- data = { ...resolveOpenInstallData(), ...info };
376
+ const extInfo = JSON.parse(extinfo);
377
+ if (extInfo && typeof extInfo === 'object' && !Array.isArray(extInfo)) {
378
+ const { bizInfo = '' } = resolveOpenInstallData();
379
+ data = { bizInfo, extInfo };
379
380
  }
380
381
  } catch (error) {
381
382
  this._log('invalid OpenInstall extinfo', error);
@@ -368,9 +368,10 @@ function createOpenDiandianElementClass() {
368
368
  let data;
369
369
  if (extinfo) {
370
370
  try {
371
- const info = JSON.parse(extinfo);
372
- if (info && typeof info === 'object' && !Array.isArray(info)) {
373
- data = { ...resolveOpenInstallData(), ...info };
371
+ const extInfo = JSON.parse(extinfo);
372
+ if (extInfo && typeof extInfo === 'object' && !Array.isArray(extInfo)) {
373
+ const { bizInfo = '' } = resolveOpenInstallData();
374
+ data = { bizInfo, extInfo };
374
375
  }
375
376
  } catch (error) {
376
377
  this._log('invalid OpenInstall extinfo', error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taole/dev-helper",
3
- "version": "0.1.29",
3
+ "version": "0.1.30",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "dev-helper": "./bin/dev-helper.js"