@socketsecurity/sdk 1.11.1 → 1.11.2
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 +6 -0
- package/dist/package.json.js +27 -32
- package/dist/utils.js +3 -1
- package/package.json +27 -32
- package/requirements.json +2 -2
- package/types/api-helpers.d.ts +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,12 @@ 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
|
+
## [1.11.2](https://github.com/SocketDev/socket-sdk-js/releases/tag/v1.11.2) - 2025-10-07
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
- Fixed typos in requirements.json
|
|
11
|
+
- Updated @socketsecurity/registry to fix bugs related to inlined runtime-dependent expressions
|
|
12
|
+
|
|
7
13
|
## [1.11.1](https://github.com/SocketDev/socket-sdk-js/releases/tag/v1.11.1) - 2025-10-06
|
|
8
14
|
|
|
9
15
|
### Added
|
package/dist/package.json.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var name = "@socketsecurity/sdk";
|
|
6
|
-
var version = "1.11.
|
|
6
|
+
var version = "1.11.2";
|
|
7
7
|
var license = "MIT";
|
|
8
8
|
var description = "SDK for the Socket API client";
|
|
9
9
|
var author = {
|
|
@@ -35,58 +35,55 @@ var exports$1 = {
|
|
|
35
35
|
"./package.json": "./package.json"
|
|
36
36
|
};
|
|
37
37
|
var scripts = {
|
|
38
|
-
build: "
|
|
39
|
-
"build:dist": "
|
|
40
|
-
"build:dist:src": "
|
|
41
|
-
"build:dist:types": "
|
|
42
|
-
check: "
|
|
38
|
+
build: "node scripts/build.mjs",
|
|
39
|
+
"build:dist": "node scripts/build.mjs",
|
|
40
|
+
"build:dist:src": "node scripts/build.mjs --src-only",
|
|
41
|
+
"build:dist:types": "node scripts/build.mjs --types-only",
|
|
42
|
+
check: "node scripts/check.mjs",
|
|
43
43
|
"check:lint": "eslint --config .config/eslint.config.mjs --report-unused-disable-directives .",
|
|
44
44
|
"check:lint:fix": "pnpm run check:lint -- --fix",
|
|
45
45
|
"check:tsc": "tsgo --noEmit -p .config/tsconfig.check.json",
|
|
46
46
|
"lint-ci": "pnpm run check:lint",
|
|
47
|
-
coverage: "
|
|
48
|
-
"coverage:test": "
|
|
47
|
+
coverage: "node scripts/coverage.mjs",
|
|
48
|
+
"coverage:test": "node scripts/coverage.mjs --code-only",
|
|
49
49
|
"coverage:type": "type-coverage",
|
|
50
50
|
"coverage:type:verbose": "type-coverage --detail",
|
|
51
|
-
"coverage:percent": "node scripts/
|
|
52
|
-
clean: "
|
|
53
|
-
"clean:cache": "
|
|
54
|
-
"clean:coverage": "
|
|
55
|
-
"clean:dist": "
|
|
56
|
-
"clean:dist:types": "
|
|
57
|
-
"clean:declarations": "
|
|
58
|
-
"clean:node_modules": "
|
|
59
|
-
fix: "
|
|
60
|
-
"generate-sdk": "
|
|
51
|
+
"coverage:percent": "node scripts/coverage.mjs --percent",
|
|
52
|
+
clean: "node scripts/clean.mjs",
|
|
53
|
+
"clean:cache": "node scripts/clean.mjs --cache",
|
|
54
|
+
"clean:coverage": "node scripts/clean.mjs --coverage",
|
|
55
|
+
"clean:dist": "node scripts/clean.mjs --dist",
|
|
56
|
+
"clean:dist:types": "node scripts/clean.mjs --dist-types",
|
|
57
|
+
"clean:declarations": "node scripts/clean.mjs --declarations",
|
|
58
|
+
"clean:node_modules": "node scripts/clean.mjs --node-modules",
|
|
59
|
+
fix: "node scripts/lint-fix.mjs",
|
|
60
|
+
"generate-sdk": "node scripts/generate-sdk.mjs",
|
|
61
61
|
"generate-sdk:01-prettify": "node scripts/prettify-base-json.mjs",
|
|
62
62
|
"generate-sdk:02-generate": "node scripts/generate-types.mjs > types/api.d.ts",
|
|
63
63
|
"generate-sdk:03-clean-api": "pnpm run fix && pnpm run fix",
|
|
64
64
|
"knip:dependencies": "knip --dependencies",
|
|
65
65
|
"knip:exports": "knip --include exports,duplicates",
|
|
66
66
|
lint: "oxlint -c=.config/.oxlintrc.json --ignore-path=.config/.oxlintignore --tsconfig=.config/tsconfig.json .",
|
|
67
|
-
"lint:fix": "
|
|
68
|
-
"lint:fix:oxlint": "oxlint -c=.config/.oxlintrc.json --ignore-path=.config/.oxlintignore --tsconfig=.config/tsconfig.json --quiet --fix . | dev-null",
|
|
69
|
-
"lint:fix:biome": "biome format --log-level=none --fix . | dev-null",
|
|
70
|
-
"lint:fix:eslint": "eslint --config .config/eslint.config.mjs --report-unused-disable-directives --fix . | dev-null",
|
|
67
|
+
"lint:fix": "node scripts/lint-fix.mjs",
|
|
71
68
|
"lint-staged": "lint-staged",
|
|
72
69
|
precommit: "lint-staged",
|
|
73
70
|
prepare: "husky",
|
|
74
71
|
prepublishOnly: "echo 'ERROR: Use GitHub Actions workflow for publishing' && exit 1",
|
|
75
72
|
"pretest:unit": "pnpm run build",
|
|
76
|
-
test: "run-s check test
|
|
73
|
+
test: "run-s check test:run",
|
|
77
74
|
"test:run": "node scripts/test.mjs",
|
|
78
75
|
"test:unit": "dotenvx -q run -f .env.test -- vitest --run",
|
|
79
76
|
"test:unit:update": "dotenvx -q run -f .env.test -- vitest --run --update",
|
|
80
77
|
"test:unit:coverage": "dotenvx -q run -f .env.test -- vitest run --coverage",
|
|
81
78
|
"test-ci": "dotenvx -q run -f .env.test -- vitest --run",
|
|
82
79
|
"type-ci": "pnpm run check:tsc",
|
|
83
|
-
"test-pre-commit": "dotenvx -q run -f .env.precommit --
|
|
80
|
+
"test-pre-commit": "dotenvx -q run -f .env.precommit -- node scripts/test-with-build.mjs",
|
|
84
81
|
update: "run-p --aggregate-output update:*",
|
|
85
82
|
"update:deps": "node scripts/taze.mjs",
|
|
86
83
|
"update:socket": "pnpm -r update '@socketsecurity/*' --latest"
|
|
87
84
|
};
|
|
88
85
|
var dependencies = {
|
|
89
|
-
"@socketsecurity/registry": "1.5.
|
|
86
|
+
"@socketsecurity/registry": "1.5.3"
|
|
90
87
|
};
|
|
91
88
|
var devDependencies = {
|
|
92
89
|
"@babel/core": "7.28.4",
|
|
@@ -102,8 +99,6 @@ var devDependencies = {
|
|
|
102
99
|
"@rollup/plugin-json": "6.1.0",
|
|
103
100
|
"@rollup/plugin-node-resolve": "16.0.1",
|
|
104
101
|
"@types/node": "24.6.2",
|
|
105
|
-
"@typescript-eslint/eslint-plugin": "8.44.1",
|
|
106
|
-
"@typescript-eslint/parser": "8.44.1",
|
|
107
102
|
"@typescript/native-preview": "7.0.0-dev.20250926.1",
|
|
108
103
|
"@vitest/coverage-v8": "3.2.4",
|
|
109
104
|
"del-cli": "6.0.0",
|
|
@@ -132,11 +127,11 @@ var devDependencies = {
|
|
|
132
127
|
"typescript-eslint": "8.44.1",
|
|
133
128
|
vitest: "3.2.4",
|
|
134
129
|
"yargs-parser": "22.0.0",
|
|
135
|
-
yoctocolors: "2.1.
|
|
130
|
+
"yoctocolors-cjs": "2.1.3"
|
|
136
131
|
};
|
|
137
132
|
var pnpm = {
|
|
138
133
|
overrides: {
|
|
139
|
-
vite: "7.1.
|
|
134
|
+
vite: "7.1.7"
|
|
140
135
|
},
|
|
141
136
|
ignoredBuiltDependencies: [
|
|
142
137
|
"esbuild",
|
|
@@ -155,7 +150,7 @@ var files = [
|
|
|
155
150
|
];
|
|
156
151
|
var typeCoverage = {
|
|
157
152
|
cache: true,
|
|
158
|
-
atLeast: 99.
|
|
153
|
+
atLeast: 99.64,
|
|
159
154
|
ignoreAsAssertion: true,
|
|
160
155
|
ignoreCatch: true,
|
|
161
156
|
ignoreEmptyType: true,
|
|
@@ -184,8 +179,8 @@ var rootPkgJson = {
|
|
|
184
179
|
files: files,
|
|
185
180
|
"lint-staged": {
|
|
186
181
|
"*.{cjs,js,json,md,mjs,mts,ts}": [
|
|
187
|
-
"
|
|
188
|
-
"
|
|
182
|
+
"oxlint -c=.config/.oxlintrc.json --ignore-path=.config/.oxlintignore --tsconfig=.config/tsconfig.json --quiet --fix",
|
|
183
|
+
"biome format --log-level=none --fix --no-errors-on-unmatched --files-ignore-unknown=true --colors=off"
|
|
189
184
|
]
|
|
190
185
|
},
|
|
191
186
|
typeCoverage: typeCoverage
|
package/dist/utils.js
CHANGED
|
@@ -46,7 +46,9 @@ function promiseWithResolvers() {
|
|
|
46
46
|
*/
|
|
47
47
|
function queryToSearchParams(init) {
|
|
48
48
|
const params = new URLSearchParams(init);
|
|
49
|
-
const normalized =
|
|
49
|
+
const normalized = {
|
|
50
|
+
__proto__: null
|
|
51
|
+
};
|
|
50
52
|
const entries = params.entries();
|
|
51
53
|
for (const entry of entries) {
|
|
52
54
|
let key = entry[0];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@socketsecurity/sdk",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "SDK for the Socket API client",
|
|
6
6
|
"author": {
|
|
@@ -32,58 +32,55 @@
|
|
|
32
32
|
"./package.json": "./package.json"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
|
-
"build": "
|
|
36
|
-
"build:dist": "
|
|
37
|
-
"build:dist:src": "
|
|
38
|
-
"build:dist:types": "
|
|
39
|
-
"check": "
|
|
35
|
+
"build": "node scripts/build.mjs",
|
|
36
|
+
"build:dist": "node scripts/build.mjs",
|
|
37
|
+
"build:dist:src": "node scripts/build.mjs --src-only",
|
|
38
|
+
"build:dist:types": "node scripts/build.mjs --types-only",
|
|
39
|
+
"check": "node scripts/check.mjs",
|
|
40
40
|
"check:lint": "eslint --config .config/eslint.config.mjs --report-unused-disable-directives .",
|
|
41
41
|
"check:lint:fix": "pnpm run check:lint -- --fix",
|
|
42
42
|
"check:tsc": "tsgo --noEmit -p .config/tsconfig.check.json",
|
|
43
43
|
"lint-ci": "pnpm run check:lint",
|
|
44
|
-
"coverage": "
|
|
45
|
-
"coverage:test": "
|
|
44
|
+
"coverage": "node scripts/coverage.mjs",
|
|
45
|
+
"coverage:test": "node scripts/coverage.mjs --code-only",
|
|
46
46
|
"coverage:type": "type-coverage",
|
|
47
47
|
"coverage:type:verbose": "type-coverage --detail",
|
|
48
|
-
"coverage:percent": "node scripts/
|
|
49
|
-
"clean": "
|
|
50
|
-
"clean:cache": "
|
|
51
|
-
"clean:coverage": "
|
|
52
|
-
"clean:dist": "
|
|
53
|
-
"clean:dist:types": "
|
|
54
|
-
"clean:declarations": "
|
|
55
|
-
"clean:node_modules": "
|
|
56
|
-
"fix": "
|
|
57
|
-
"generate-sdk": "
|
|
48
|
+
"coverage:percent": "node scripts/coverage.mjs --percent",
|
|
49
|
+
"clean": "node scripts/clean.mjs",
|
|
50
|
+
"clean:cache": "node scripts/clean.mjs --cache",
|
|
51
|
+
"clean:coverage": "node scripts/clean.mjs --coverage",
|
|
52
|
+
"clean:dist": "node scripts/clean.mjs --dist",
|
|
53
|
+
"clean:dist:types": "node scripts/clean.mjs --dist-types",
|
|
54
|
+
"clean:declarations": "node scripts/clean.mjs --declarations",
|
|
55
|
+
"clean:node_modules": "node scripts/clean.mjs --node-modules",
|
|
56
|
+
"fix": "node scripts/lint-fix.mjs",
|
|
57
|
+
"generate-sdk": "node scripts/generate-sdk.mjs",
|
|
58
58
|
"generate-sdk:01-prettify": "node scripts/prettify-base-json.mjs",
|
|
59
59
|
"generate-sdk:02-generate": "node scripts/generate-types.mjs > types/api.d.ts",
|
|
60
60
|
"generate-sdk:03-clean-api": "pnpm run fix && pnpm run fix",
|
|
61
61
|
"knip:dependencies": "knip --dependencies",
|
|
62
62
|
"knip:exports": "knip --include exports,duplicates",
|
|
63
63
|
"lint": "oxlint -c=.config/.oxlintrc.json --ignore-path=.config/.oxlintignore --tsconfig=.config/tsconfig.json .",
|
|
64
|
-
"lint:fix": "
|
|
65
|
-
"lint:fix:oxlint": "oxlint -c=.config/.oxlintrc.json --ignore-path=.config/.oxlintignore --tsconfig=.config/tsconfig.json --quiet --fix . | dev-null",
|
|
66
|
-
"lint:fix:biome": "biome format --log-level=none --fix . | dev-null",
|
|
67
|
-
"lint:fix:eslint": "eslint --config .config/eslint.config.mjs --report-unused-disable-directives --fix . | dev-null",
|
|
64
|
+
"lint:fix": "node scripts/lint-fix.mjs",
|
|
68
65
|
"lint-staged": "lint-staged",
|
|
69
66
|
"precommit": "lint-staged",
|
|
70
67
|
"prepare": "husky",
|
|
71
68
|
"prepublishOnly": "echo 'ERROR: Use GitHub Actions workflow for publishing' && exit 1",
|
|
72
69
|
"pretest:unit": "pnpm run build",
|
|
73
|
-
"test": "run-s check test
|
|
70
|
+
"test": "run-s check test:run",
|
|
74
71
|
"test:run": "node scripts/test.mjs",
|
|
75
72
|
"test:unit": "dotenvx -q run -f .env.test -- vitest --run",
|
|
76
73
|
"test:unit:update": "dotenvx -q run -f .env.test -- vitest --run --update",
|
|
77
74
|
"test:unit:coverage": "dotenvx -q run -f .env.test -- vitest run --coverage",
|
|
78
75
|
"test-ci": "dotenvx -q run -f .env.test -- vitest --run",
|
|
79
76
|
"type-ci": "pnpm run check:tsc",
|
|
80
|
-
"test-pre-commit": "dotenvx -q run -f .env.precommit --
|
|
77
|
+
"test-pre-commit": "dotenvx -q run -f .env.precommit -- node scripts/test-with-build.mjs",
|
|
81
78
|
"update": "run-p --aggregate-output update:*",
|
|
82
79
|
"update:deps": "node scripts/taze.mjs",
|
|
83
80
|
"update:socket": "pnpm -r update '@socketsecurity/*' --latest"
|
|
84
81
|
},
|
|
85
82
|
"dependencies": {
|
|
86
|
-
"@socketsecurity/registry": "1.5.
|
|
83
|
+
"@socketsecurity/registry": "1.5.3"
|
|
87
84
|
},
|
|
88
85
|
"devDependencies": {
|
|
89
86
|
"@babel/core": "7.28.4",
|
|
@@ -99,8 +96,6 @@
|
|
|
99
96
|
"@rollup/plugin-json": "6.1.0",
|
|
100
97
|
"@rollup/plugin-node-resolve": "16.0.1",
|
|
101
98
|
"@types/node": "24.6.2",
|
|
102
|
-
"@typescript-eslint/eslint-plugin": "8.44.1",
|
|
103
|
-
"@typescript-eslint/parser": "8.44.1",
|
|
104
99
|
"@typescript/native-preview": "7.0.0-dev.20250926.1",
|
|
105
100
|
"@vitest/coverage-v8": "3.2.4",
|
|
106
101
|
"del-cli": "6.0.0",
|
|
@@ -129,11 +124,11 @@
|
|
|
129
124
|
"typescript-eslint": "8.44.1",
|
|
130
125
|
"vitest": "3.2.4",
|
|
131
126
|
"yargs-parser": "22.0.0",
|
|
132
|
-
"yoctocolors": "2.1.
|
|
127
|
+
"yoctocolors-cjs": "2.1.3"
|
|
133
128
|
},
|
|
134
129
|
"pnpm": {
|
|
135
130
|
"overrides": {
|
|
136
|
-
"vite": "7.1.
|
|
131
|
+
"vite": "7.1.7"
|
|
137
132
|
},
|
|
138
133
|
"ignoredBuiltDependencies": [
|
|
139
134
|
"esbuild",
|
|
@@ -152,13 +147,13 @@
|
|
|
152
147
|
],
|
|
153
148
|
"lint-staged": {
|
|
154
149
|
"*.{cjs,js,json,md,mjs,mts,ts}": [
|
|
155
|
-
"
|
|
156
|
-
"
|
|
150
|
+
"oxlint -c=.config/.oxlintrc.json --ignore-path=.config/.oxlintignore --tsconfig=.config/tsconfig.json --quiet --fix",
|
|
151
|
+
"biome format --log-level=none --fix --no-errors-on-unmatched --files-ignore-unknown=true --colors=off"
|
|
157
152
|
]
|
|
158
153
|
},
|
|
159
154
|
"typeCoverage": {
|
|
160
155
|
"cache": true,
|
|
161
|
-
"atLeast": 99.
|
|
156
|
+
"atLeast": 99.64,
|
|
162
157
|
"ignoreAsAssertion": true,
|
|
163
158
|
"ignoreCatch": true,
|
|
164
159
|
"ignoreEmptyType": true,
|
package/requirements.json
CHANGED
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
"getOrgAnalytics": {
|
|
52
52
|
"quota": 10,
|
|
53
|
-
"permissions": ["
|
|
53
|
+
"permissions": ["report:write"]
|
|
54
54
|
},
|
|
55
55
|
"getOrganizations": {
|
|
56
56
|
"quota": 0,
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
},
|
|
99
99
|
"getRepoAnalytics": {
|
|
100
100
|
"quota": 10,
|
|
101
|
-
"permissions": ["
|
|
101
|
+
"permissions": ["report:write"]
|
|
102
102
|
},
|
|
103
103
|
"getScan": {
|
|
104
104
|
"quota": 0,
|
package/types/api-helpers.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview TypeScript type helpers for OpenAPI operation responses.
|
|
3
|
+
* Utility types for extracting return types and error types from OpenAPI operations.
|
|
4
|
+
* Based on openapi-typescript-fetch patterns.
|
|
5
|
+
*/
|
|
1
6
|
declare type ValueOf<
|
|
2
7
|
ObjectType,
|
|
3
8
|
ValueType extends keyof ObjectType = keyof ObjectType,
|