@recappi/sdk 1.0.0 → 1.1.0

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.
Files changed (3) hide show
  1. package/README.md +59 -25
  2. package/index.cjs +323 -526
  3. package/package.json +54 -65
package/package.json CHANGED
@@ -1,10 +1,13 @@
1
1
  {
2
2
  "name": "@recappi/sdk",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "Cross platform audio capture SDK",
5
- "main": "index.cjs",
6
- "types": "./index.d.cts",
7
- "type": "module",
5
+ "keywords": [
6
+ "audio",
7
+ "napi-rs",
8
+ "recording"
9
+ ],
10
+ "license": "MIT",
8
11
  "repository": {
9
12
  "type": "git",
10
13
  "url": "git+ssh://git@github.com/Recappi/sdk.git"
@@ -12,34 +15,14 @@
12
15
  "workspaces": [
13
16
  "./playground"
14
17
  ],
15
- "license": "MIT",
16
- "keywords": [
17
- "napi-rs",
18
- "audio",
19
- "recording"
20
- ],
21
18
  "files": [
22
19
  "index.d.ts",
23
20
  "index.js",
24
21
  "./dist/**/*"
25
22
  ],
26
- "napi": {
27
- "binaryName": "recording",
28
- "targets": [
29
- "aarch64-apple-darwin",
30
- "x86_64-apple-darwin",
31
- "x86_64-pc-windows-msvc",
32
- "i686-pc-windows-msvc",
33
- "aarch64-pc-windows-msvc"
34
- ]
35
- },
36
- "engines": {
37
- "node": ">= 10"
38
- },
39
- "publishConfig": {
40
- "registry": "https://registry.npmjs.org/",
41
- "access": "public"
42
- },
23
+ "type": "module",
24
+ "main": "index.cjs",
25
+ "types": "./index.d.cts",
43
26
  "exports": {
44
27
  ".": "./index.cjs",
45
28
  "./encode-wav": {
@@ -47,6 +30,10 @@
47
30
  "types": "./dist/encode-wav.d.ts"
48
31
  }
49
32
  },
33
+ "publishConfig": {
34
+ "access": "public",
35
+ "registry": "https://registry.npmjs.org/"
36
+ },
50
37
  "scripts": {
51
38
  "artifacts": "napi artifacts",
52
39
  "bench": "node --import @oxc-node/core/register benchmark/bench.ts",
@@ -54,63 +41,65 @@
54
41
  "build:debug": "napi build --platform --js index.cjs --dts index.d.cts",
55
42
  "build:ts": "tsc",
56
43
  "format": "run-p format:js format:rs format:toml",
57
- "format:js": "oxfmt .",
44
+ "format:js": "vp fmt .",
58
45
  "format:toml": "taplo format",
59
46
  "format:rs": "cargo fmt",
60
- "lint": "oxlint .",
47
+ "lint": "vp lint .",
61
48
  "prepublishOnly": "napi prepublish -t npm",
62
49
  "test": "ava",
63
- "preversion": "napi build --platform && git add .",
50
+ "preversion": "yarn build:debug && git add .",
64
51
  "version": "napi version",
65
- "prepare": "husky"
52
+ "prepare": "vp config"
66
53
  },
67
54
  "devDependencies": {
68
- "@napi-rs/cli": "^3.4.1",
69
- "@oxc-node/core": "^0.0.34",
70
- "@taplo/cli": "^0.7.0",
71
- "@types/node": "^24.10.1",
72
- "ava": "^6.4.1",
73
- "husky": "^9.1.7",
74
- "lint-staged": "^16.2.6",
55
+ "@napi-rs/cli": "^3.5.1",
56
+ "@oxc-node/core": "^0.0.35",
57
+ "@types/node": "^25.5.0",
58
+ "ava": "^7.0.0",
75
59
  "npm-run-all2": "^8.0.4",
76
- "oxfmt": "^0.13.0",
77
- "oxlint": "^1.28.0",
78
- "prettier": "^3.6.2",
79
- "tinybench": "^5.1.0",
80
- "typescript": "^5.9.3"
60
+ "oxlint-tsgolint": "^0.17.0",
61
+ "prettier": "^3.8.1",
62
+ "tinybench": "^6.0.0",
63
+ "typescript": "^5.9.3",
64
+ "vite-plus": "catalog:"
81
65
  },
82
- "lint-staged": {
83
- "*.@(js|ts|tsx)": [
84
- "oxlint --fix",
85
- "oxfmt"
86
- ],
87
- "*.@(yml|yaml|md|json)": [
88
- "prettier --write"
89
- ],
90
- "*.toml": [
91
- "taplo format"
66
+ "resolutions": {
67
+ "vite": "npm:@voidzero-dev/vite-plus-core@latest",
68
+ "vitest": "npm:@voidzero-dev/vite-plus-test@latest"
69
+ },
70
+ "napi": {
71
+ "binaryName": "recording",
72
+ "targets": [
73
+ "aarch64-apple-darwin",
74
+ "x86_64-apple-darwin",
75
+ "x86_64-pc-windows-msvc",
76
+ "i686-pc-windows-msvc",
77
+ "aarch64-pc-windows-msvc"
92
78
  ]
93
79
  },
94
80
  "ava": {
95
- "extensions": {
96
- "ts": "module"
97
- },
98
- "timeout": "2m",
99
- "workerThreads": false,
100
81
  "environmentVariables": {
101
82
  "OXC_TSCONFIG_PATH": "./__test__/tsconfig.json"
102
83
  },
84
+ "extensions": {
85
+ "ts": "module"
86
+ },
103
87
  "nodeArguments": [
104
88
  "--import",
105
89
  "@oxc-node/core/register"
106
- ]
90
+ ],
91
+ "timeout": "2m",
92
+ "workerThreads": false
93
+ },
94
+ "engines": {
95
+ "node": ">= 20.19.0"
107
96
  },
108
- "packageManager": "yarn@4.11.0",
97
+ "packageManager": "yarn@4.12.0",
109
98
  "optionalDependencies": {
110
- "@recappi/sdk-darwin-arm64": "1.0.0",
111
- "@recappi/sdk-darwin-x64": "1.0.0",
112
- "@recappi/sdk-win32-x64-msvc": "1.0.0",
113
- "@recappi/sdk-win32-ia32-msvc": "1.0.0",
114
- "@recappi/sdk-win32-arm64-msvc": "1.0.0"
99
+ "@recappi/sdk-darwin-arm64": "1.1.0",
100
+ "@recappi/sdk-darwin-x64": "1.1.0",
101
+ "@recappi/sdk-win32-x64-msvc": "1.1.0",
102
+ "@recappi/sdk-win32-ia32-msvc": "1.1.0",
103
+ "@recappi/sdk-win32-arm64-msvc": "1.1.0"
115
104
  }
116
105
  }