This repository was archived by the owner on Nov 15, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +19
-6
lines changed
Expand file tree Collapse file tree 3 files changed +19
-6
lines changed Original file line number Diff line number Diff line change 77 " iot" ,
88 " device"
99 ],
10- "version" : " 2.3.3" ,
10+ "version" : " 2.3.3-dashboard-options.5 " ,
1111 "license" : " MIT" ,
1212 "sideEffects" : false ,
1313 "main" : " ./cjs-wrapper.js" ,
3838 "axios" : " 0.25.0" ,
3939 "change-case" : " 4.1.2" ,
4040 "eventemitter3" : " 4.0.7" ,
41+ "lodash" : " ^4.17.21" ,
4142 "node-inspect-extracted" : " 1.1.0" ,
4243 "ora" : " 5.4.1" ,
4344 "p-retry" : " 4.6.1" ,
5051 "@semantic-release/npm" : " 9.0.0" ,
5152 "@semantic-release/release-notes-generator" : " 10.0.3" ,
5253 "@swc/core" : " 1.2.133" ,
54+ "@types/lodash" : " ^4.14.179" ,
5355 "@types/node" : " 17.0.10" ,
5456 "@types/yargs" : " 17.0.8" ,
5557 "ajv" : " 8.9.0" ,
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { Get } from "type-fest"
33import { paramCase } from "change-case"
44import Seam , { SeamAPIError } from "../.."
55import { GlobalOptions } from "./global-options"
6+ import _ from "lodash"
67
78type ParametersByPath < Path extends string > = Parameters <
89 Exclude < Get < Seam , Path > , Seam >
@@ -32,11 +33,16 @@ const executeCommand = async <MethodPath extends string>(
3233 . start ( )
3334 }
3435
35- const seam = new Seam ( {
36- apiKey : executeArgs [ "api-key" ] ,
37- endpoint : executeArgs [ "endpoint" ] ,
38- workspaceId : executeArgs [ "workspace-id" ] ,
39- } )
36+ const seam = new Seam (
37+ _ . omitBy (
38+ {
39+ apiKey : executeArgs [ "api-key" ] ,
40+ endpoint : executeArgs [ "endpoint" ] ,
41+ workspaceId : executeArgs [ "workspace-id" ] ,
42+ } ,
43+ _ . isUndefined
44+ )
45+ )
4046
4147 let method : any = seam
4248 for ( const path of methodName . split ( "." ) ) {
Original file line number Diff line number Diff line change 417417 resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.9.tgz#97edc9037ea0c38585320b28964dde3b39e4660d"
418418 integrity sha512-qcUXuemtEu+E5wZSJHNxUXeCZhAfXKQ41D+duX+VYPde7xyEVZci+/oXKJL13tnRs9lR2pr4fod59GT6/X1/yQ==
419419
420+ " @types/lodash@^4.14.179 " :
421+ version "4.14.179"
422+ resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.179.tgz#490ec3288088c91295780237d2497a3aa9dfb5c5"
423+ integrity sha512-uwc1x90yCKqGcIOAT6DwOSuxnrAbpkdPsUOZtwrXb4D/6wZs+6qG7QnIawDuZWg0sWpxl+ltIKCaLoMlna678w==
424+
420425" @types/minimatch@* " :
421426 version "3.0.5"
422427 resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.5.tgz#1001cc5e6a3704b83c236027e77f2f58ea010f40"
You can’t perform that action at this time.
0 commit comments