cspell-io 10.3.6 → 10.4.0-alpha.1
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.d.ts +0 -1
- package/dist/index.js +6 -4
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -108,15 +108,17 @@ function assert$1(value, message) {
|
|
|
108
108
|
if (!value) throw new AssertionError(message ?? "Assertion failed");
|
|
109
109
|
}
|
|
110
110
|
//#endregion
|
|
111
|
+
//#region src/common/nodeBuffer.ts
|
|
112
|
+
function arrayBufferViewToBuffer(data) {
|
|
113
|
+
if (data instanceof Buffer) return data;
|
|
114
|
+
return Buffer.from(data.buffer, data.byteOffset, data.byteLength);
|
|
115
|
+
}
|
|
116
|
+
//#endregion
|
|
111
117
|
//#region src/common/arrayBuffers.ts
|
|
112
118
|
function toUint8Array(data) {
|
|
113
119
|
if (data instanceof Uint8Array) return data;
|
|
114
120
|
return new Uint8Array(data.buffer, data.byteOffset, data.byteLength);
|
|
115
121
|
}
|
|
116
|
-
function arrayBufferViewToBuffer(data) {
|
|
117
|
-
if (data instanceof Buffer) return data;
|
|
118
|
-
return Buffer.from(data.buffer, data.byteOffset, data.byteLength);
|
|
119
|
-
}
|
|
120
122
|
function copyArrayBufferView(data) {
|
|
121
123
|
return new Uint8Array(data.buffer.slice(data.byteOffset, data.byteOffset + data.byteLength));
|
|
122
124
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cspell-io",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.4.0-alpha.1",
|
|
4
4
|
"description": "A library of useful I/O functions used across various cspell tools.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"watch": "pnpm build:watch"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@cspell/cspell-service-bus": "10.
|
|
52
|
-
"@cspell/url": "10.
|
|
51
|
+
"@cspell/cspell-service-bus": "10.4.0-alpha.1",
|
|
52
|
+
"@cspell/url": "10.4.0-alpha.1"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"lorem-ipsum": "^3.0.0",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"engines": {
|
|
60
60
|
"node": ">=22.18.0"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "628768a6e62b792e628189b41e63e12e5d3d8fe3"
|
|
63
63
|
}
|