@socketsecurity/sdk 3.0.4 → 3.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 +16 -0
- package/README.md +20 -20
- package/dist/index.mjs +9 -118
- package/package.json +9 -20
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,22 @@ 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
|
+
## [3.0.6](https://github.com/SocketDev/socket-sdk-js/releases/tag/v3.0.6) - 2025-10-24
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- Externalized `@socketsecurity/lib` dependency to prevent dynamic require errors in bundled applications
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- Updated `@socketsecurity/lib` to v1.3.3
|
|
16
|
+
|
|
17
|
+
## [3.0.5](https://github.com/SocketDev/socket-sdk-js/releases/tag/v3.0.5) - 2025-10-24
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
|
|
21
|
+
- Cleanup package.json files entries
|
|
22
|
+
|
|
7
23
|
## [3.0.4](https://github.com/SocketDev/socket-sdk-js/releases/tag/v3.0.4) - 2025-10-24
|
|
8
24
|
|
|
9
25
|
### Fixed
|
package/README.md
CHANGED
|
@@ -48,7 +48,7 @@ const batchResult = await client.batchPackageFetch({
|
|
|
48
48
|
})
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
-
**[→ Configuration](./docs/
|
|
51
|
+
**[→ Configuration](./docs/api-reference.md#configuration)**
|
|
52
52
|
|
|
53
53
|
## API Methods
|
|
54
54
|
|
|
@@ -56,99 +56,99 @@ const batchResult = await client.batchPackageFetch({
|
|
|
56
56
|
|
|
57
57
|
Quick security checks: `batchPackageFetch()` • `batchPackageStream()` • `getIssuesByNpmPackage()` • `getScoreByNpmPackage()`
|
|
58
58
|
|
|
59
|
-
[→ Documentation](./docs/
|
|
59
|
+
[→ Documentation](./docs/api-reference.md#package-analysis)
|
|
60
60
|
|
|
61
61
|
### Scanning & Analysis
|
|
62
62
|
|
|
63
63
|
Project scanning: `createDependenciesSnapshot()` • `createOrgFullScan()` • `createScanFromFilepaths()` • `getScan()` • `getScanList()` • `getSupportedScanFiles()`
|
|
64
64
|
|
|
65
|
-
[→ Documentation](./docs/
|
|
65
|
+
[→ Documentation](./docs/api-reference.md#scanning--analysis)
|
|
66
66
|
|
|
67
67
|
### Organization Management
|
|
68
68
|
|
|
69
69
|
Organizations and repositories: `getOrganizations()` • `createOrgRepo()` • `getOrgRepo()` • `getOrgRepoList()` • `updateOrgRepo()` • `deleteOrgRepo()`
|
|
70
70
|
|
|
71
|
-
[→ Documentation](./docs/
|
|
71
|
+
[→ Documentation](./docs/api-reference.md#organization-management)
|
|
72
72
|
|
|
73
73
|
### Policy & Settings
|
|
74
74
|
|
|
75
75
|
Security configuration: `getOrgSecurityPolicy()` • `updateOrgSecurityPolicy()` • `getOrgLicensePolicy()` • `updateOrgLicensePolicy()` • `postSettings()`
|
|
76
76
|
|
|
77
|
-
[→ Documentation](./docs/
|
|
77
|
+
[→ Documentation](./docs/api-reference.md#policy--settings)
|
|
78
78
|
|
|
79
79
|
### Full Scan Management
|
|
80
80
|
|
|
81
81
|
Deep analysis: `getOrgFullScanList()` • `getOrgFullScanMetadata()` • `getOrgFullScanBuffered()` • `streamOrgFullScan()` • `deleteOrgFullScan()`
|
|
82
82
|
|
|
83
|
-
[→ Documentation](./docs/
|
|
83
|
+
[→ Documentation](./docs/api-reference.md#full-scan-management)
|
|
84
84
|
|
|
85
85
|
### Diff Scans
|
|
86
86
|
|
|
87
87
|
Scan comparison: `createOrgDiffScanFromIds()` • `getDiffScanById()` • `listOrgDiffScans()` • `deleteOrgDiffScan()`
|
|
88
88
|
|
|
89
|
-
[→ Documentation](./docs/
|
|
89
|
+
[→ Documentation](./docs/api-reference.md#diff-scans)
|
|
90
90
|
|
|
91
91
|
### Patches & Vulnerabilities
|
|
92
92
|
|
|
93
93
|
Security fixes: `streamPatchesFromScan()` • `viewPatch()`
|
|
94
94
|
|
|
95
|
-
[→ Documentation](./docs/
|
|
95
|
+
[→ Documentation](./docs/api-reference.md#patches--vulnerabilities)
|
|
96
96
|
|
|
97
97
|
### Alert & Triage
|
|
98
98
|
|
|
99
99
|
Alert management: `getOrgTriage()` • `updateOrgAlertTriage()`
|
|
100
100
|
|
|
101
|
-
[→ Documentation](./docs/
|
|
101
|
+
[→ Documentation](./docs/api-reference.md#alert--triage)
|
|
102
102
|
|
|
103
103
|
### Export & Integration
|
|
104
104
|
|
|
105
105
|
SBOM export: `exportCDX()` • `exportSPDX()` • `searchDependencies()` • `uploadManifestFiles()`
|
|
106
106
|
|
|
107
|
-
[→ Documentation](./docs/
|
|
107
|
+
[→ Documentation](./docs/api-reference.md#export--integration)
|
|
108
108
|
|
|
109
109
|
### Repository Labels
|
|
110
110
|
|
|
111
111
|
Categorization: `createOrgRepoLabel()` • `getOrgRepoLabel()` • `getOrgRepoLabelList()` • `updateOrgRepoLabel()` • `deleteOrgRepoLabel()`
|
|
112
112
|
|
|
113
|
-
[→ Documentation](./docs/
|
|
113
|
+
[→ Documentation](./docs/api-reference.md#repository-labels)
|
|
114
114
|
|
|
115
115
|
### Analytics & Monitoring
|
|
116
116
|
|
|
117
117
|
Usage metrics: `getQuota()` • `getOrgAnalytics()` • `getRepoAnalytics()` • `getAuditLogEvents()`
|
|
118
118
|
|
|
119
|
-
[→ Documentation](./docs/
|
|
119
|
+
[→ Documentation](./docs/api-reference.md#analytics--monitoring)
|
|
120
120
|
|
|
121
121
|
### Authentication & Access
|
|
122
122
|
|
|
123
123
|
API tokens: `getAPITokens()` • `postAPIToken()` • `postAPITokensRotate()` • `postAPITokensRevoke()` • `postAPITokenUpdate()`
|
|
124
124
|
|
|
125
|
-
[→ Documentation](./docs/
|
|
125
|
+
[→ Documentation](./docs/api-reference.md#authentication--access)
|
|
126
126
|
|
|
127
127
|
### Entitlements
|
|
128
128
|
|
|
129
129
|
Feature access: `getEnabledEntitlements()` • `getEntitlements()`
|
|
130
130
|
|
|
131
|
-
[→ Documentation](./docs/
|
|
131
|
+
[→ Documentation](./docs/api-reference.md#entitlements)
|
|
132
132
|
|
|
133
133
|
### Quota Utilities
|
|
134
134
|
|
|
135
135
|
Cost helpers: `getQuotaCost()` • `getRequiredPermissions()` • `calculateTotalQuotaCost()` • `hasQuotaForMethods()` • `getMethodsByQuotaCost()` • `getMethodsByPermissions()` • `getQuotaUsageSummary()` • `getAllMethodRequirements()`
|
|
136
136
|
|
|
137
|
-
[→ Documentation](./docs/
|
|
137
|
+
[→ Documentation](./docs/quota-management.md)
|
|
138
138
|
|
|
139
139
|
### Advanced Query Methods
|
|
140
140
|
|
|
141
141
|
Raw API access: `getApi()` • `sendApi()`
|
|
142
142
|
|
|
143
|
-
[→ Documentation](./docs/
|
|
143
|
+
[→ Documentation](./docs/api-reference.md#advanced-query-methods)
|
|
144
144
|
|
|
145
|
-
**[→ API Reference](./docs/
|
|
145
|
+
**[→ API Reference](./docs/api-reference.md)**
|
|
146
146
|
|
|
147
|
-
**[→ Examples](./docs/
|
|
147
|
+
**[→ Examples](./docs/usage-examples.md)**
|
|
148
148
|
|
|
149
|
-
**[→ Quota Management](./docs/
|
|
149
|
+
**[→ Quota Management](./docs/quota-management.md)** - Cost tiers: 0 (free), 10 (standard), 100 (batch/uploads)
|
|
150
150
|
|
|
151
|
-
**[→ Testing Utilities](./docs/
|
|
151
|
+
**[→ Testing Utilities](./docs/dev/testing.md)** - Mock factories, fixtures, type guards
|
|
152
152
|
|
|
153
153
|
## See Also
|
|
154
154
|
|