@rsdoctor/utils 0.1.8 → 0.1.9-beta.0

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.
@@ -269,8 +269,8 @@ class APIDataLoader {
269
269
  configs = []
270
270
  ]) => {
271
271
  let outputFilename = "";
272
- if (typeof configs[0].config?.output?.chunkFilename === "string") {
273
- outputFilename = configs[0].config.output.chunkFilename;
272
+ if (typeof configs[0]?.config?.output?.chunkFilename === "string") {
273
+ outputFilename = configs[0]?.config.output.chunkFilename;
274
274
  }
275
275
  return {
276
276
  root,
@@ -236,8 +236,8 @@ class APIDataLoader {
236
236
  configs = []
237
237
  ]) => {
238
238
  let outputFilename = "";
239
- if (typeof configs[0].config?.output?.chunkFilename === "string") {
240
- outputFilename = configs[0].config.output.chunkFilename;
239
+ if (typeof configs[0]?.config?.output?.chunkFilename === "string") {
240
+ outputFilename = configs[0]?.config.output.chunkFilename;
241
241
  }
242
242
  return {
243
243
  root,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsdoctor/utils",
3
- "version": "0.1.8",
3
+ "version": "0.1.9-beta.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/web-infra-dev/rsdoctor",
@@ -62,7 +62,7 @@
62
62
  "lodash": "^4.17.21",
63
63
  "rslog": "^1.2.0",
64
64
  "strip-ansi": "^6.0.1",
65
- "@rsdoctor/types": "0.1.8"
65
+ "@rsdoctor/types": "0.1.9-beta.0"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@types/deep-eql": "4.0.0",
@@ -71,7 +71,7 @@
71
71
  "@types/connect": "3.4.35",
72
72
  "@types/envinfo": "7.8.1",
73
73
  "@types/fs-extra": "^11.0.2",
74
- "@types/lodash": "^4.14.200",
74
+ "@types/lodash": "^4.17.0",
75
75
  "@types/node": "^16",
76
76
  "tslib": "2.4.1",
77
77
  "typescript": "^5.2.2"