@tosuapp/osu-native-napi 1.0.0 → 1.0.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.
Binary file
Binary file
package/index.js CHANGED
@@ -1,3 +1,3 @@
1
- "use strict";
2
-
3
- module.exports = require("./dist/Release/osu-native-napi.node");
1
+ "use strict";
2
+
3
+ module.exports = require("./dist/Release/osu-native-napi.node");
package/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import addon from "./dist/Release/osu-native-napi.node";
2
-
3
- export default addon;
4
- export { addon };
1
+ import addon from "./dist/Release/osu-native-napi.node";
2
+
3
+ export default addon;
4
+ export { addon };
package/osu-native.d.ts CHANGED
@@ -63,6 +63,15 @@ export class NativeRuleset {
63
63
  rulesetId: number;
64
64
  }
65
65
 
66
+ export class Cabinet__Nullable_int64_t {
67
+ constructor();
68
+
69
+ constructor(_0: Cabinet__Nullable_int64_t);
70
+
71
+ hasValue: boolean;
72
+ value: number;
73
+ }
74
+
66
75
  export class NativeScoreInfo {
67
76
  constructor();
68
77
 
@@ -73,6 +82,7 @@ export class NativeScoreInfo {
73
82
  modsHandle: ManagedObjectHandle;
74
83
  maxCombo: number;
75
84
  accuracy: number;
85
+ legacyTotalScore: Cabinet__Nullable_int64_t;
76
86
  countMiss: number;
77
87
  countMeh: number;
78
88
  countOk: number;
package/package.json CHANGED
@@ -1,36 +1,36 @@
1
- {
2
- "name": "@tosuapp/osu-native-napi",
3
- "version": "1.0.0",
4
- "author": "Cherry",
5
- "main": "index.js",
6
- "types": "osu-native.d.ts",
7
- "license": "GPL-3.0",
8
- "os": [
9
- "win32"
10
- ],
11
- "cpu": [
12
- "x64"
13
- ],
14
- "exports": {
15
- ".": {
16
- "types": "./osu-native.d.ts",
17
- "require": "./index.js",
18
- "import": "./index.mjs"
19
- }
20
- },
21
- "files": [
22
- "index.js",
23
- "index.mjs",
24
- "osu-native.d.ts",
25
- "dist/Release/*.node",
26
- "dist/Release/*.dll"
27
- ],
28
- "scripts": {
29
- "build": "cmake -B build && cmake --build build --config Release",
30
- "prepack": "npm run build"
31
- },
32
- "devDependencies": {
33
- "@types/node": "^20.11.1",
34
- "typescript": "^5.9.3"
35
- }
36
- }
1
+ {
2
+ "name": "@tosuapp/osu-native-napi",
3
+ "version": "1.0.1",
4
+ "author": "Cherry",
5
+ "main": "index.js",
6
+ "types": "osu-native.d.ts",
7
+ "license": "GPL-3.0",
8
+ "os": [
9
+ "win32"
10
+ ],
11
+ "cpu": [
12
+ "x64"
13
+ ],
14
+ "exports": {
15
+ ".": {
16
+ "types": "./osu-native.d.ts",
17
+ "require": "./index.js",
18
+ "import": "./index.mjs"
19
+ }
20
+ },
21
+ "files": [
22
+ "index.js",
23
+ "index.mjs",
24
+ "osu-native.d.ts",
25
+ "dist/Release/*.node",
26
+ "dist/Release/*.dll"
27
+ ],
28
+ "scripts": {
29
+ "build": "cmake -B build && cmake --build build --config Release",
30
+ "prepack": "npm run build"
31
+ },
32
+ "devDependencies": {
33
+ "@types/node": "^20.11.1",
34
+ "typescript": "^5.9.3"
35
+ }
36
+ }