@clazic/kordoc 2.4.6 → 2.4.7

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/dist/index.js CHANGED
@@ -2245,14 +2245,20 @@ __export(batch_provider_exports, {
2245
2245
  DEFAULT_BATCH_SIZES: () => DEFAULT_BATCH_SIZES,
2246
2246
  createBatchCliProvider: () => createBatchCliProvider
2247
2247
  });
2248
- import { spawn } from "child_process";
2248
+ import { spawn, execSync as execSync2 } from "child_process";
2249
2249
  import { writeFileSync as writeFileSync2, readFileSync as readFileSync2, unlinkSync as unlinkSync2, mkdirSync as mkdirSync2 } from "fs";
2250
2250
  import { join as join2 } from "path";
2251
2251
  import { tmpdir as tmpdir2 } from "os";
2252
2252
  function getBatchTempDir() {
2253
2253
  if (!_batchTempDir) {
2254
- _batchTempDir = join2(process.cwd(), "_kordoc_ocr_tmp");
2254
+ _batchTempDir = join2(process.cwd(), ".kordoc_ocr_tmp");
2255
2255
  mkdirSync2(_batchTempDir, { recursive: true });
2256
+ if (process.platform === "win32") {
2257
+ try {
2258
+ execSync2(`attrib +h "${_batchTempDir}"`, { stdio: "ignore" });
2259
+ } catch {
2260
+ }
2261
+ }
2256
2262
  }
2257
2263
  return _batchTempDir;
2258
2264
  }
@@ -2820,7 +2826,7 @@ import JSZip2 from "jszip";
2820
2826
  import { DOMParser } from "@xmldom/xmldom";
2821
2827
 
2822
2828
  // src/utils.ts
2823
- var VERSION = true ? "2.4.6" : "0.0.0-dev";
2829
+ var VERSION = true ? "2.4.7" : "0.0.0-dev";
2824
2830
  function toArrayBuffer(buf) {
2825
2831
  if (buf.byteOffset === 0 && buf.byteLength === buf.buffer.byteLength) {
2826
2832
  return buf.buffer;