cspell-io 9.0.0 → 9.0.2

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 (2) hide show
  1. package/dist/index.js +14 -14
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -95,7 +95,7 @@ function assert(value, message) {
95
95
  }
96
96
 
97
97
  // src/common/encode-decode.ts
98
- import { gunzipSync } from "node:zlib";
98
+ import { gunzipSync } from "zlib";
99
99
 
100
100
  // src/common/arrayBuffers.ts
101
101
  function asUint8Array(data) {
@@ -345,10 +345,10 @@ function toReadFileOptions(options) {
345
345
  }
346
346
 
347
347
  // src/handlers/node/file.ts
348
- import { promises as fs3, readFileSync, statSync as statSync2 } from "node:fs";
349
- import { fileURLToPath } from "node:url";
350
- import { promisify } from "node:util";
351
- import { gunzipSync as gunzipSync2, gzip } from "node:zlib";
348
+ import { promises as fs3, readFileSync, statSync as statSync2 } from "fs";
349
+ import { fileURLToPath } from "url";
350
+ import { promisify } from "util";
351
+ import { gunzipSync as gunzipSync2, gzip } from "zlib";
352
352
  import { createResponse, createResponseFail, isServiceResponseSuccess } from "@cspell/cspell-service-bus";
353
353
 
354
354
  // src/errors/error.ts
@@ -370,8 +370,8 @@ var FileType = /* @__PURE__ */ ((FileType2) => {
370
370
  })(FileType || {});
371
371
 
372
372
  // src/node/dataUrl.ts
373
- import { promises as fs } from "node:fs";
374
- import * as fsPath from "node:path";
373
+ import { promises as fs } from "fs";
374
+ import * as fsPath from "path";
375
375
  function encodeDataUrl(data, mediaType, attributes) {
376
376
  if (typeof data === "string") return encodeString2(data, mediaType, attributes);
377
377
  const attribs = encodeAttributes(attributes || []);
@@ -503,8 +503,8 @@ function toURL2(url) {
503
503
  }
504
504
 
505
505
  // src/node/file/stat.ts
506
- import { promises as fs2, statSync } from "node:fs";
507
- import { format } from "node:util";
506
+ import { promises as fs2, statSync } from "fs";
507
+ import { format } from "util";
508
508
  async function getStatHttp(url) {
509
509
  const headers = await fetchHead(url);
510
510
  const eTag = headers.get("etag") || void 0;
@@ -1286,10 +1286,10 @@ function getDefaultVirtualFs() {
1286
1286
  }
1287
1287
 
1288
1288
  // src/node/file/fileWriter.ts
1289
- import * as fs4 from "node:fs";
1290
- import * as Stream from "node:stream";
1291
- import { promisify as promisify2 } from "node:util";
1292
- import * as zlib from "node:zlib";
1289
+ import * as fs4 from "fs";
1290
+ import * as Stream from "stream";
1291
+ import { promisify as promisify2 } from "util";
1292
+ import * as zlib from "zlib";
1293
1293
 
1294
1294
  // src/common/transformers.ts
1295
1295
  function encoderTransformer(iterable, encoding) {
@@ -1348,7 +1348,7 @@ function getStatSync(filenameOrUri) {
1348
1348
  }
1349
1349
 
1350
1350
  // src/VirtualFS/redirectProvider.ts
1351
- import assert2 from "node:assert";
1351
+ import assert2 from "assert";
1352
1352
  var RedirectProvider = class {
1353
1353
  constructor(name, publicRoot, privateRoot, options = { capabilitiesMask: -1 }) {
1354
1354
  this.name = name;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public",
5
5
  "provenance": true
6
6
  },
7
- "version": "9.0.0",
7
+ "version": "9.0.2",
8
8
  "description": "A library of useful I/O functions used across various cspell tools.",
9
9
  "type": "module",
10
10
  "sideEffects": false,
@@ -56,8 +56,8 @@
56
56
  "vitest-fetch-mock": "^0.4.5"
57
57
  },
58
58
  "dependencies": {
59
- "@cspell/cspell-service-bus": "9.0.0",
60
- "@cspell/url": "9.0.0"
59
+ "@cspell/cspell-service-bus": "9.0.2",
60
+ "@cspell/url": "9.0.2"
61
61
  },
62
- "gitHead": "f7c4be398734894d817d9b60214731a516cff7d2"
62
+ "gitHead": "39dbd9ab9b8943a023d9eda7f65f81e822f939b5"
63
63
  }