@taole/dev-helper 0.1.30 → 0.1.31
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.
- package/bin/dev-helper.js +1 -1
- package/dist/open-diandian.umd.js +3 -3
- package/open-diandian/index.js +3 -3
- package/package.json +1 -1
package/bin/dev-helper.js
CHANGED
|
@@ -373,10 +373,10 @@
|
|
|
373
373
|
let data;
|
|
374
374
|
if (extinfo) {
|
|
375
375
|
try {
|
|
376
|
-
const
|
|
377
|
-
if (
|
|
376
|
+
const parsedExtInfo = JSON.parse(extinfo);
|
|
377
|
+
if (parsedExtInfo && typeof parsedExtInfo === 'object' && !Array.isArray(parsedExtInfo)) {
|
|
378
378
|
const { bizInfo = '' } = resolveOpenInstallData();
|
|
379
|
-
data = { bizInfo, extInfo };
|
|
379
|
+
data = { bizInfo, extInfo: extinfo };
|
|
380
380
|
}
|
|
381
381
|
} catch (error) {
|
|
382
382
|
this._log('invalid OpenInstall extinfo', error);
|
package/open-diandian/index.js
CHANGED
|
@@ -368,10 +368,10 @@ function createOpenDiandianElementClass() {
|
|
|
368
368
|
let data;
|
|
369
369
|
if (extinfo) {
|
|
370
370
|
try {
|
|
371
|
-
const
|
|
372
|
-
if (
|
|
371
|
+
const parsedExtInfo = JSON.parse(extinfo);
|
|
372
|
+
if (parsedExtInfo && typeof parsedExtInfo === 'object' && !Array.isArray(parsedExtInfo)) {
|
|
373
373
|
const { bizInfo = '' } = resolveOpenInstallData();
|
|
374
|
-
data = { bizInfo, extInfo };
|
|
374
|
+
data = { bizInfo, extInfo: extinfo };
|
|
375
375
|
}
|
|
376
376
|
} catch (error) {
|
|
377
377
|
this._log('invalid OpenInstall extinfo', error);
|