@socketsecurity/sdk 2.0.5 → 2.0.6

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/CHANGELOG.md CHANGED
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
6
6
 
7
+ ## [2.0.6](https://github.com/SocketDev/socket-sdk-js/releases/tag/v2.0.6) - 2025-10-22
8
+
9
+ ### Fixed
10
+ - TypeScript lint compliance for array type syntax in `SocketSdkArrayElement` type helper
11
+
7
12
  ## [2.0.5](https://github.com/SocketDev/socket-sdk-js/releases/tag/v2.0.5) - 2025-10-22
8
13
 
9
14
  ### Added
package/dist/types.d.ts CHANGED
@@ -134,7 +134,7 @@ export type SocketSdkData<T extends SocketSdkOperations> = OpReturnType<operatio
134
134
  * @example
135
135
  * type RepoItem = SocketSdkArrayElement<'getOrgRepoList', 'results'>
136
136
  */
137
- export type SocketSdkArrayElement<T extends SocketSdkOperations, K extends keyof SocketSdkData<T>> = SocketSdkData<T>[K] extends (infer U)[] ? U : never;
137
+ export type SocketSdkArrayElement<T extends SocketSdkOperations, K extends keyof SocketSdkData<T>> = SocketSdkData<T>[K] extends Array<infer U> ? U : never;
138
138
  export type SocketSdkGenericResult<T> = {
139
139
  cause?: undefined;
140
140
  data: T;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@socketsecurity/sdk",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "license": "MIT",
5
5
  "description": "SDK for the Socket API client",
6
6
  "author": {