We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f0297e9 + 8174b1a commit b03d862Copy full SHA for b03d862
index.js
@@ -515,6 +515,20 @@ class SocketSdk {
515
}
516
517
518
+ /**
519
+ * @param {{[key: string]: number }} params
520
+ * @returns {Promise<SocketSdkResultType<'searchDependencies'>>}
521
+ */
522
+ async searchDependencies (params) {
523
+ try {
524
+ const client = await this.#getClient()
525
+ const data = await client.post('dependencies/search', { json: params }).json()
526
+ return { success: true, status: 200, data }
527
+ } catch (err) {
528
+ return /** @type {SocketSdkErrorType<'searchDependencies'>} */ (this.#handleApiError(err))
529
+ }
530
531
+
532
/**
533
* @param {Array<{ organization?: string }>} selectors
534
* @returns {Promise<SocketSdkResultType<'postSettings'>>}
0 commit comments