Skip to content

Commit 50dac82

Browse files
committed
fixes
1 parent c4695ba commit 50dac82

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

js/botasaurus-js/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@
132132
"dev": "tsc -w",
133133
"build": "rimraf dist tsconfig.tsbuildinfo && tsc && rimraf tsconfig.tsbuildinfo",
134134
"build-mv": "npm run build && mv -f ~/Documents/grow/botasaurus/js/botasaurus-js/dist/* ~/Documents/google-maps-extractor-desktop/node_modules/botasaurus/dist/",
135+
"build-mv-starter": "npm run build && mv -f ~/Documents/grow/botasaurus/js/botasaurus-js/dist/* ~/Documents/botasaurus-desktop-starter/node_modules/botasaurus-server/dist/",
135136
"clean": "rimraf dist tsconfig.tsbuildinfo",
136137
"clean-install": "rm -rf dist/ node_modules/ package-lock.json yarn.lock .next/* && npm install",
137138
"prepublishOnly": "npm run build",

js/botasaurus-js/src/output.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ function convertNestedToJsonForExcelInPlace(inputList: any[]): any[] {
194194

195195

196196
function removeNonObjects(data: any[]): any[] {
197-
return data.filter((x) => typeof x === 'object' && (x !== null || x !== undefined))
197+
return data.filter((x) => typeof x === 'object' && x !== null && x !== undefined)
198198
}
199199

200200

@@ -543,6 +543,7 @@ convertNestedToJsonForExcelInPlace,
543543
convertNestedToJsonInPlace,
544544
cleanDataInPlace,
545545
normalizeItem,
546+
appendOutputIfNeeded,
546547
}
547548

548549
// zipFiles,

0 commit comments

Comments
 (0)