@unownplain/anthelion-komac 0.0.64 → 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.
Files changed (3) hide show
  1. package/index.d.ts +6 -5
  2. package/index.js +31 -33
  3. 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,11 +1,9 @@
1
- // prettier-ignore
2
1
  /* eslint-disable */
3
2
  // @ts-nocheck
4
3
  /* auto-generated by NAPI-RS */
5
4
 
6
5
  import { createRequire } from 'module'
7
6
  const require = createRequire(import.meta.url)
8
- const __dirname = new URL('.', import.meta.url).pathname
9
7
 
10
8
  const { readFileSync } = require('fs')
11
9
  let nativeBinding = null
@@ -67,7 +65,7 @@ const isMuslFromChildProcess = () => {
67
65
  function requireNative() {
68
66
  if (process.env.NAPI_RS_NATIVE_LIBRARY_PATH) {
69
67
  try {
70
- return require(process.env.NAPI_RS_NATIVE_LIBRARY_PATH);
68
+ return require(process.env.NAPI_RS_NATIVE_LIBRARY_PATH)
71
69
  } catch (err) {
72
70
  loadErrors.push(err)
73
71
  }
@@ -111,36 +109,36 @@ function requireNative() {
111
109
  if (process.arch === 'x64') {
112
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')) {
113
111
  try {
114
- return require('./anthelion-komac.win32-x64-gnu.node')
115
- } catch (e) {
116
- loadErrors.push(e)
117
- }
118
- try {
119
- const binding = require('@unownplain/anthelion-komac-win32-x64-gnu')
120
- const bindingPackageVersion = require('@unownplain/anthelion-komac-win32-x64-gnu/package.json').version
121
- if (bindingPackageVersion !== '0.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
122
- throw new Error(`Native binding package version mismatch, expected 0.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
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)
123
125
  }
124
- return binding
125
- } catch (e) {
126
- loadErrors.push(e)
127
- }
128
126
  } else {
129
127
  try {
130
- return require('./anthelion-komac.win32-x64-msvc.node')
131
- } catch (e) {
132
- loadErrors.push(e)
133
- }
134
- try {
135
- const binding = require('@unownplain/anthelion-komac-win32-x64-msvc')
136
- const bindingPackageVersion = require('@unownplain/anthelion-komac-win32-x64-msvc/package.json').version
137
- if (bindingPackageVersion !== '0.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
138
- throw new Error(`Native binding package version mismatch, expected 0.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
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)
139
141
  }
140
- return binding
141
- } catch (e) {
142
- loadErrors.push(e)
143
- }
144
142
  }
145
143
  } else if (process.arch === 'ia32') {
146
144
  try {
@@ -554,7 +552,7 @@ function createLoadErrorChain(errors) {
554
552
  //
555
553
  // NAPI_RS_WASI_FLAVOR selects one exact generated flavor and implies strict
556
554
  // WASI loading. It never crosses into another flavor or falls back to native.
557
- const __napiWasiFlavors = ["wasm32-wasi"]
555
+ const __napiWasiFlavors = ['wasm32-wasi']
558
556
  const __napiWasiFlavor = process.env.NAPI_RS_WASI_FLAVOR
559
557
  const __napiWasiFlavorRequested =
560
558
  typeof __napiWasiFlavor === 'string' && __napiWasiFlavor.length > 0
@@ -623,11 +621,11 @@ if (!nativeBinding || forceWasi) {
623
621
  }
624
622
  return null
625
623
  }
626
- if (!wasiBindingLoaded && (!__napiWasiFlavorRequested || __napiWasiFlavor === "wasm32-wasi")) {
624
+ if (!wasiBindingLoaded && (!__napiWasiFlavorRequested || __napiWasiFlavor === 'wasm32-wasi')) {
627
625
  let candidateError = null
628
626
  let candidateFailed = false
629
627
  try {
630
- candidateError = __napiWasiResolveCandidate('./anthelion-komac.wasi.cjs', false, ["./anthelion-komac.wasm32-wasi.debug.wasm","./anthelion-komac.wasm32-wasi.wasm"])
628
+ candidateError = __napiWasiResolveCandidate('./anthelion-komac.wasi.cjs', false, ['./anthelion-komac.wasm32-wasi.debug.wasm', './anthelion-komac.wasm32-wasi.wasm'])
631
629
  candidateFailed = candidateError !== null
632
630
  if (!candidateFailed) {
633
631
  wasiBinding = require('./anthelion-komac.wasi.cjs')
@@ -643,7 +641,7 @@ if (!nativeBinding || forceWasi) {
643
641
  loadErrors.push(candidateError)
644
642
  }
645
643
  }
646
- if (!wasiBindingLoaded && (!__napiWasiFlavorRequested || __napiWasiFlavor === "wasm32-wasi")) {
644
+ if (!wasiBindingLoaded && (!__napiWasiFlavorRequested || __napiWasiFlavor === 'wasm32-wasi')) {
647
645
  let candidateError = null
648
646
  let candidateFailed = false
649
647
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unownplain/anthelion-komac",
3
- "version": "0.0.64",
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.8.6"
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.64",
45
- "@unownplain/anthelion-komac-darwin-x64": "0.0.64",
46
- "@unownplain/anthelion-komac-linux-x64-gnu": "0.0.64",
47
- "@unownplain/anthelion-komac-linux-x64-musl": "0.0.64",
48
- "@unownplain/anthelion-komac-darwin-arm64": "0.0.64",
49
- "@unownplain/anthelion-komac-linux-arm64-gnu": "0.0.64",
50
- "@unownplain/anthelion-komac-linux-arm64-musl": "0.0.64",
51
- "@unownplain/anthelion-komac-win32-arm64-msvc": "0.0.64"
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
+ }