Skip to content

Commit 26f0ed3

Browse files
committed
v2.0
1 parent e1839b8 commit 26f0ed3

9 files changed

Lines changed: 160 additions & 265 deletions

File tree

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{
1+
{
22
"version": "0.2.0",
33
"configurations": [
44
{

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
MIT License
1+
MIT License
22

3-
Copyright (c) 2021 Manuel Lõhmus
3+
Copyright (c) Manuel Lõhmus
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,6 @@ <h3 id="createdatacontextdata-propertyname-parent"><em>createDataContext(data, p
371371
<li><code>ignoreMetadata</code> - Global flag to ignore metadata and comments. Default is false.</li>
372372
<li><code>createDataContext</code> {(data: any, propertyName?: string, parent?: <a href="#datacontext">DataContext</a>) =&gt; <a href="#datacontext">DataContext</a>} - Create a data context from the data.</li>
373373
<li><code>parse</code> {(str: string, reviver?: <a href="#reviver">Reviver</a>) =&gt; <a href="#datacontext">DataContext</a>} - Parse JSON string to the data context.</li>
374-
<li><code>parsePromise</code> {(str: string, reviver?: <a href="#reviver">Reviver</a>) =&gt; Promise&lt;<a href="#datacontext">DataContext</a>&gt;} - Parse JSON string to the data context asynchronously. Returns a promise.</li>
375374
<li><code>stringify</code> {(data: any, replacer?: Replacer, space?: number) =&gt; string} - Stringify the data to JSON string.</li>
376375
</ul>
377376
<h3 id="datacontext"><em>DataContext</em></h3>

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,6 @@ Create a data context from the data.
348348
- `ignoreMetadata` {boolean} - Global flag to ignore metadata and comments. Default is false.
349349
- `createDataContext` {(data: any, propertyName?: string, parent?: [DataContext](#datacontext)) => [DataContext](#datacontext)} - Create a data context from the data.
350350
- `parse` {(str: string, reviver?: [Reviver](#reviver)) => [DataContext](#datacontext)} - Parse JSON string to the data context.
351-
- `parsePromise` {(str: string, reviver?: [Reviver](#reviver)) => Promise<[DataContext](#datacontext)>} - Parse JSON string to the data context asynchronously. Returns a promise.
352351
- `stringify` {(data: any, replacer?: Replacer, space?: number) => string} - Stringify the data to JSON string.
353352

354353
### *DataContext*

index.d.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-

1+
22
declare module 'data-context' {
33

44
/** Creates a new data context. */
@@ -64,12 +64,6 @@ declare module 'data-context' {
6464
/** Set unmodified. */
6565
setUnmodified: boolean;
6666

67-
/** Write stream. */
68-
writeStream: WriteStream;
69-
70-
/** Callback. */
71-
callback(strJSON: string): void;
72-
7367
/** Add the BOM to the beginning of the string. */
7468
includeBOM: boolean;
7569
}

0 commit comments

Comments
 (0)