@socketsecurity/sdk 1.8.0 → 1.8.1

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
+ ## [1.8.1](https://github.com/SocketDev/socket-sdk-js/releases/tag/v1.8.1) - 2025-09-29
8
+
9
+ ### Changed
10
+ - Update test infrastructure and build configuration
11
+
7
12
  ## [1.8.0](https://github.com/SocketDev/socket-sdk-js/releases/tag/v1.8.0) - 2025-09-27
8
13
 
9
14
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@socketsecurity/sdk",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "license": "MIT",
5
5
  "description": "SDK for the Socket API client",
6
6
  "author": {
@@ -28,41 +28,41 @@
28
28
  "./package.json": "./package.json"
29
29
  },
30
30
  "scripts": {
31
- "build": "pnpm run clean:dist && dotenvx -q run -f .env.local -- tsgo",
31
+ "build": "pnpm run clean:dist && tsgo --build",
32
32
  "check": "run-p -c --aggregate-output check:*",
33
- "check:lint": "dotenvx -q run -f .env.local -- eslint --report-unused-disable-directives .",
33
+ "check:lint": "eslint --report-unused-disable-directives .",
34
34
  "check:lint:fix": "pnpm run check:lint -- --fix",
35
- "check:tsc": "dotenvx -q run -f .env.local -- tsgo --noEmit -p tsconfig.check.json",
35
+ "check:tsc": "pnpm run build && tsgo --noEmit -p tsconfig.check.json",
36
36
  "check-ci": "pnpm run check:lint",
37
37
  "coverage": "run-s coverage:*",
38
- "coverage:test": "run-s test:prepare test:unit:coverage",
39
- "coverage:type": "dotenvx -q run -f .env.local -- type-coverage",
40
- "coverage:type:verbose": "dotenvx -q run -f .env.local -- type-coverage --detail",
38
+ "coverage:test": "run-s pretest:unit test:unit:coverage",
39
+ "coverage:type": "type-coverage",
40
+ "coverage:type:verbose": "type-coverage --detail",
41
41
  "coverage:percent": "node scripts/get-coverage-percentage.mjs",
42
42
  "clean": "run-s -c clean:*",
43
43
  "clean:cache": "del-cli '**/.cache'",
44
44
  "clean:coverage": "del-cli '.type-coverage' 'coverage'",
45
- "clean:dist": "del-cli 'dist'",
45
+ "clean:dist": "del-cli 'dist' '**/*.tsbuildinfo'",
46
46
  "clean:declarations": "del-cli '*.d.ts' '!api*.d.ts'",
47
47
  "clean:node_modules": "del-cli '**/node_modules'",
48
48
  "fix": "run-s lint:fix",
49
49
  "generate-sdk": "run-s generate-sdk:*",
50
- "generate-sdk:01-prettify": "dotenvx -q run -f .env.local -- node scripts/prettify-base-json.mjs",
51
- "generate-sdk:02-generate": "dotenvx -q run -f .env.local -- node scripts/generate-types.mjs > types/api.d.ts",
50
+ "generate-sdk:01-prettify": "node scripts/prettify-base-json.mjs",
51
+ "generate-sdk:02-generate": "node scripts/generate-types.mjs > types/api.d.ts",
52
52
  "generate-sdk:03-clean-api": "pnpm run fix && pnpm run fix",
53
53
  "knip:dependencies": "knip --dependencies",
54
54
  "knip:exports": "knip --include exports,duplicates",
55
- "lint": "dotenvx -q run -f .env.local -- oxlint -c=.oxlintrc.json --ignore-path=.oxlintignore --tsconfig=tsconfig.json .",
55
+ "lint": "oxlint -c=.oxlintrc.json --ignore-path=.oxlintignore --tsconfig=tsconfig.json .",
56
56
  "lint:fix": "run-s -c lint:fix:*",
57
- "lint:fix:oxlint": "dotenvx -q run -f .env.local -- oxlint -c=.oxlintrc.json --ignore-path=.oxlintignore --tsconfig=tsconfig.json --quiet --fix . | dev-null",
58
- "lint:fix:biome": "dotenvx -q run -f .env.local -- biome format --log-level=none --fix . | dev-null",
59
- "lint:fix:eslint": "dotenvx -q run -f .env.local -- eslint --report-unused-disable-directives --fix . | dev-null",
60
- "lint-staged": "dotenvx -q run -f .env.local -- lint-staged",
57
+ "lint:fix:oxlint": "oxlint -c=.oxlintrc.json --ignore-path=.oxlintignore --tsconfig=tsconfig.json --quiet --fix . | dev-null",
58
+ "lint:fix:biome": "biome format --log-level=none --fix . | dev-null",
59
+ "lint:fix:eslint": "eslint --report-unused-disable-directives --fix . | dev-null",
60
+ "lint-staged": "lint-staged",
61
61
  "precommit": "lint-staged",
62
- "prepare": "dotenvx -q run -f .env.local -- husky",
63
- "prepublishOnly": "run-s build",
62
+ "prepare": "husky",
63
+ "prepublishOnly": "pnpm run build",
64
+ "pretest:unit": "dotenvx -q run -f .env.test -- pnpm run build",
64
65
  "test": "run-s check test:*",
65
- "test:prepare": "dotenvx -q run -f .env.test -- pnpm run build",
66
66
  "test:unit": "dotenvx -q run -f .env.test -- vitest --run",
67
67
  "test:unit:update": "dotenvx -q run -f .env.test -- vitest --run --update",
68
68
  "test:unit:coverage": "dotenvx -q run -f .env.test -- vitest run --coverage",
@@ -83,7 +83,7 @@
83
83
  "@types/node": "24.5.2",
84
84
  "@typescript-eslint/eslint-plugin": "8.44.1",
85
85
  "@typescript-eslint/parser": "8.44.1",
86
- "@typescript/native-preview": "7.0.0-dev.20250927.1",
86
+ "@typescript/native-preview": "7.0.0-dev.20250926.1",
87
87
  "@vitest/coverage-v8": "3.2.4",
88
88
  "del-cli": "6.0.0",
89
89
  "dev-null-cli": "2.0.0",