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.
- package/dist/index.js +14 -14
- 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 "
|
|
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 "
|
|
349
|
-
import { fileURLToPath } from "
|
|
350
|
-
import { promisify } from "
|
|
351
|
-
import { gunzipSync as gunzipSync2, gzip } from "
|
|
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 "
|
|
374
|
-
import * as fsPath from "
|
|
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 "
|
|
507
|
-
import { format } from "
|
|
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 "
|
|
1290
|
-
import * as Stream from "
|
|
1291
|
-
import { promisify as promisify2 } from "
|
|
1292
|
-
import * as zlib from "
|
|
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 "
|
|
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.
|
|
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.
|
|
60
|
-
"@cspell/url": "9.0.
|
|
59
|
+
"@cspell/cspell-service-bus": "9.0.2",
|
|
60
|
+
"@cspell/url": "9.0.2"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "39dbd9ab9b8943a023d9eda7f65f81e822f939b5"
|
|
63
63
|
}
|