json-stream-lite 1.0.14 → 1.0.15
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/parser.d.ts +2 -2
- package/dist/parser.js +1 -1
- package/package.json +1 -1
package/dist/parser.d.ts
CHANGED
|
@@ -178,13 +178,13 @@ export declare class JsonValue<T extends unknown = unknown, K extends string = s
|
|
|
178
178
|
*
|
|
179
179
|
* @returns The actual JavaScript value (string, number, boolean, null, object, or array)
|
|
180
180
|
*/
|
|
181
|
-
readValue():
|
|
181
|
+
readValue(): T;
|
|
182
182
|
/**
|
|
183
183
|
* Asynchronously reads and fully evaluates the value.
|
|
184
184
|
*
|
|
185
185
|
* @returns A promise that resolves to the actual JavaScript value
|
|
186
186
|
*/
|
|
187
|
-
readValueAsync(): Promise<
|
|
187
|
+
readValueAsync(): Promise<T>;
|
|
188
188
|
/**
|
|
189
189
|
* Asynchronously reads the value entity from a stream.
|
|
190
190
|
*
|
package/dist/parser.js
CHANGED
|
@@ -390,7 +390,7 @@ export class JsonValue extends JsonEntity {
|
|
|
390
390
|
*/
|
|
391
391
|
async readValueAsync() {
|
|
392
392
|
const value = await this.readAsync();
|
|
393
|
-
return await value.readAsync();
|
|
393
|
+
return (await value.readAsync());
|
|
394
394
|
}
|
|
395
395
|
/**
|
|
396
396
|
* Asynchronously reads the value entity from a stream.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "json-stream-lite",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.15",
|
|
4
4
|
"description": "A lightweight, memory-efficient, zero-dependency streaming JSON parser and stringifier for JavaScript and TypeScript. It works in both Node.js and browser environments.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|