@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 CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs';
3
3
  import { dirname, join, resolve } from 'node:path';
4
4
  import { fileURLToPath } from 'node:url';
@@ -373,10 +373,10 @@
373
373
  let data;
374
374
  if (extinfo) {
375
375
  try {
376
- const extInfo = JSON.parse(extinfo);
377
- if (extInfo && typeof extInfo === 'object' && !Array.isArray(extInfo)) {
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);
@@ -368,10 +368,10 @@ function createOpenDiandianElementClass() {
368
368
  let data;
369
369
  if (extinfo) {
370
370
  try {
371
- const extInfo = JSON.parse(extinfo);
372
- if (extInfo && typeof extInfo === 'object' && !Array.isArray(extInfo)) {
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taole/dev-helper",
3
- "version": "0.1.30",
3
+ "version": "0.1.31",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "dev-helper": "./bin/dev-helper.js"