@unownplain/anthelion-komac 0.0.65 → 0.0.66
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/index.d.ts +6 -5
- package/index.js +31 -32
- package/package.json +11 -11
package/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/* auto-generated by NAPI-RS */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
|
|
3
4
|
/**
|
|
4
5
|
* Reusable Komac client.
|
|
5
6
|
*
|
|
@@ -184,11 +185,11 @@ export interface UpdatePackageRequest {
|
|
|
184
185
|
/** Release notes fields for the default locale manifest. */
|
|
185
186
|
releaseNotes?: ReleaseNotesInput
|
|
186
187
|
/** Existing version to remove in the same pull request. */
|
|
187
|
-
replace?: { target: 'latest' } | { target: 'version'; value: string }
|
|
188
|
-
/** Package layout. Defaults to `auto`, which probes standard manifests before fonts. */
|
|
189
|
-
packageKind?: 'auto' | 'standard' | 'font'
|
|
190
|
-
/** Generate manifests locally or submit them as a pull request. */
|
|
191
|
-
mode: 'generate' | 'submit'
|
|
188
|
+
replace?: { target: 'latest' } | { target: 'version'; value: string }
|
|
189
|
+
/** Package layout. Defaults to `auto`, which probes standard manifests before fonts. */
|
|
190
|
+
packageKind?: 'auto' | 'standard' | 'font'
|
|
191
|
+
/** Generate manifests locally or submit them as a pull request. */
|
|
192
|
+
mode: 'generate' | 'submit'
|
|
192
193
|
}
|
|
193
194
|
|
|
194
195
|
/** Result of generating or submitting a package update. */
|
package/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// prettier-ignore
|
|
2
1
|
/* eslint-disable */
|
|
3
2
|
// @ts-nocheck
|
|
4
3
|
/* auto-generated by NAPI-RS */
|
|
@@ -66,7 +65,7 @@ const isMuslFromChildProcess = () => {
|
|
|
66
65
|
function requireNative() {
|
|
67
66
|
if (process.env.NAPI_RS_NATIVE_LIBRARY_PATH) {
|
|
68
67
|
try {
|
|
69
|
-
return require(process.env.NAPI_RS_NATIVE_LIBRARY_PATH)
|
|
68
|
+
return require(process.env.NAPI_RS_NATIVE_LIBRARY_PATH)
|
|
70
69
|
} catch (err) {
|
|
71
70
|
loadErrors.push(err)
|
|
72
71
|
}
|
|
@@ -110,36 +109,36 @@ function requireNative() {
|
|
|
110
109
|
if (process.arch === 'x64') {
|
|
111
110
|
if ((process.config && process.config.variables && process.config.variables.shlib_suffix === 'dll.a') || (process.config && process.config.variables && process.config.variables.node_target_type === 'shared_library')) {
|
|
112
111
|
try {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
112
|
+
return require('./anthelion-komac.win32-x64-gnu.node')
|
|
113
|
+
} catch (e) {
|
|
114
|
+
loadErrors.push(e)
|
|
115
|
+
}
|
|
116
|
+
try {
|
|
117
|
+
const binding = require('@unownplain/anthelion-komac-win32-x64-gnu')
|
|
118
|
+
const bindingPackageVersion = require('@unownplain/anthelion-komac-win32-x64-gnu/package.json').version
|
|
119
|
+
if (bindingPackageVersion !== '0.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
120
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
121
|
+
}
|
|
122
|
+
return binding
|
|
123
|
+
} catch (e) {
|
|
124
|
+
loadErrors.push(e)
|
|
122
125
|
}
|
|
123
|
-
return binding
|
|
124
|
-
} catch (e) {
|
|
125
|
-
loadErrors.push(e)
|
|
126
|
-
}
|
|
127
126
|
} else {
|
|
128
127
|
try {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
128
|
+
return require('./anthelion-komac.win32-x64-msvc.node')
|
|
129
|
+
} catch (e) {
|
|
130
|
+
loadErrors.push(e)
|
|
131
|
+
}
|
|
132
|
+
try {
|
|
133
|
+
const binding = require('@unownplain/anthelion-komac-win32-x64-msvc')
|
|
134
|
+
const bindingPackageVersion = require('@unownplain/anthelion-komac-win32-x64-msvc/package.json').version
|
|
135
|
+
if (bindingPackageVersion !== '0.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
136
|
+
throw new Error(`Native binding package version mismatch, expected 0.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
137
|
+
}
|
|
138
|
+
return binding
|
|
139
|
+
} catch (e) {
|
|
140
|
+
loadErrors.push(e)
|
|
138
141
|
}
|
|
139
|
-
return binding
|
|
140
|
-
} catch (e) {
|
|
141
|
-
loadErrors.push(e)
|
|
142
|
-
}
|
|
143
142
|
}
|
|
144
143
|
} else if (process.arch === 'ia32') {
|
|
145
144
|
try {
|
|
@@ -553,7 +552,7 @@ function createLoadErrorChain(errors) {
|
|
|
553
552
|
//
|
|
554
553
|
// NAPI_RS_WASI_FLAVOR selects one exact generated flavor and implies strict
|
|
555
554
|
// WASI loading. It never crosses into another flavor or falls back to native.
|
|
556
|
-
const __napiWasiFlavors = [
|
|
555
|
+
const __napiWasiFlavors = ['wasm32-wasi']
|
|
557
556
|
const __napiWasiFlavor = process.env.NAPI_RS_WASI_FLAVOR
|
|
558
557
|
const __napiWasiFlavorRequested =
|
|
559
558
|
typeof __napiWasiFlavor === 'string' && __napiWasiFlavor.length > 0
|
|
@@ -622,11 +621,11 @@ if (!nativeBinding || forceWasi) {
|
|
|
622
621
|
}
|
|
623
622
|
return null
|
|
624
623
|
}
|
|
625
|
-
if (!wasiBindingLoaded && (!__napiWasiFlavorRequested || __napiWasiFlavor ===
|
|
624
|
+
if (!wasiBindingLoaded && (!__napiWasiFlavorRequested || __napiWasiFlavor === 'wasm32-wasi')) {
|
|
626
625
|
let candidateError = null
|
|
627
626
|
let candidateFailed = false
|
|
628
627
|
try {
|
|
629
|
-
candidateError = __napiWasiResolveCandidate('./anthelion-komac.wasi.cjs', false, [
|
|
628
|
+
candidateError = __napiWasiResolveCandidate('./anthelion-komac.wasi.cjs', false, ['./anthelion-komac.wasm32-wasi.debug.wasm', './anthelion-komac.wasm32-wasi.wasm'])
|
|
630
629
|
candidateFailed = candidateError !== null
|
|
631
630
|
if (!candidateFailed) {
|
|
632
631
|
wasiBinding = require('./anthelion-komac.wasi.cjs')
|
|
@@ -642,7 +641,7 @@ if (!nativeBinding || forceWasi) {
|
|
|
642
641
|
loadErrors.push(candidateError)
|
|
643
642
|
}
|
|
644
643
|
}
|
|
645
|
-
if (!wasiBindingLoaded && (!__napiWasiFlavorRequested || __napiWasiFlavor ===
|
|
644
|
+
if (!wasiBindingLoaded && (!__napiWasiFlavorRequested || __napiWasiFlavor === 'wasm32-wasi')) {
|
|
646
645
|
let candidateError = null
|
|
647
646
|
let candidateFailed = false
|
|
648
647
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unownplain/anthelion-komac",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.66",
|
|
4
4
|
"description": "komac JS bindings for Anthelion",
|
|
5
5
|
"license": "GPL-3.0-or-later",
|
|
6
6
|
"repository": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"version": "napi version"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@napi-rs/cli": "3.9.
|
|
25
|
+
"@napi-rs/cli": "3.9.1"
|
|
26
26
|
},
|
|
27
27
|
"napi": {
|
|
28
28
|
"binaryName": "anthelion-komac",
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
"node": ">=22.0.0"
|
|
42
42
|
},
|
|
43
43
|
"optionalDependencies": {
|
|
44
|
-
"@unownplain/anthelion-komac-win32-x64-msvc": "0.0.
|
|
45
|
-
"@unownplain/anthelion-komac-darwin-x64": "0.0.
|
|
46
|
-
"@unownplain/anthelion-komac-linux-x64-gnu": "0.0.
|
|
47
|
-
"@unownplain/anthelion-komac-linux-x64-musl": "0.0.
|
|
48
|
-
"@unownplain/anthelion-komac-darwin-arm64": "0.0.
|
|
49
|
-
"@unownplain/anthelion-komac-linux-arm64-gnu": "0.0.
|
|
50
|
-
"@unownplain/anthelion-komac-linux-arm64-musl": "0.0.
|
|
51
|
-
"@unownplain/anthelion-komac-win32-arm64-msvc": "0.0.
|
|
44
|
+
"@unownplain/anthelion-komac-win32-x64-msvc": "0.0.66",
|
|
45
|
+
"@unownplain/anthelion-komac-darwin-x64": "0.0.66",
|
|
46
|
+
"@unownplain/anthelion-komac-linux-x64-gnu": "0.0.66",
|
|
47
|
+
"@unownplain/anthelion-komac-linux-x64-musl": "0.0.66",
|
|
48
|
+
"@unownplain/anthelion-komac-darwin-arm64": "0.0.66",
|
|
49
|
+
"@unownplain/anthelion-komac-linux-arm64-gnu": "0.0.66",
|
|
50
|
+
"@unownplain/anthelion-komac-linux-arm64-musl": "0.0.66",
|
|
51
|
+
"@unownplain/anthelion-komac-win32-arm64-msvc": "0.0.66"
|
|
52
52
|
}
|
|
53
|
-
}
|
|
53
|
+
}
|