Skip to content

Commit d7f7f35

Browse files
Merge pull request #218 from terminusdb/docs-update
Docs update
2 parents 83a5bff + c094605 commit d7f7f35

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

lib/woqlClient.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1468,9 +1468,9 @@ WOQLClient.prototype.userOrganizations = function (orgList) {
14681468
* Get the patch of difference between two documents.
14691469
* @param {object} before - The current state of JSON document
14701470
* @param {object} after - The updated state of JSON document
1471-
* @param {object} [options] - {keep:{}} Options to send to the diff endpoint
1472-
* the diff api outputs the changes between the input (JSON Object),
1473-
* but you can list the properties that you would like to see in the diff result in any case.
1471+
* @param {object} [options] - {keep:{}} Options to send to the diff endpoint.
1472+
* The diff api outputs the changes between the input (branches or commits),
1473+
* in options you can list the properties that you would like to see in the diff result in any case.
14741474
* @returns {Promise} A promise that returns the call response object, or an Error if rejected.
14751475
* @example
14761476
* client.getJSONDiff(
@@ -1542,12 +1542,12 @@ WOQLClient.prototype.getVersionObjectDiff = function (dataVersion, jsonObject, i
15421542
/**
15431543
* Get the patch of difference between branches or commits.
15441544
* @param {string} beforeVersion - Before branch/commit to compare
1545-
* @param {string} afterVersion - Before branch/commit to compare
1546-
* @param {string} [id] - The object id to be diffed,
1545+
* @param {string} afterVersion - After branch/commit to compare
1546+
* @param {string} [id] - The document id to be diffed,
15471547
* if it is omitted all the documents will be compared
1548-
* @param {object} [options] - {keep:{}} Options to send to the diff endpoint
1549-
* the diff api outputs the changes between the input (branches or commits),
1550-
* but you can list the properties that you would like to see in the diff result in any case.
1548+
* @param {object} [options] - {keep:{}} Options to send to the diff endpoint.
1549+
* The diff api outputs the changes between the input (branches or commits),
1550+
* in options you can list the properties that you would like to see in the diff result in any case.
15511551
* @returns {Promise} A promise that returns the call response object, or an Error if rejected.
15521552
* @example
15531553
* //This is to view all the changes between two commits
@@ -1600,16 +1600,16 @@ WOQLClient.prototype.getVersionDiff = function (beforeVersion, afterVersion, id,
16001600
};
16011601

16021602
/**
1603-
* Diff two different commits and apply changes on the current branch/commit
1604-
* if you would like to change branch or commit before apply use client.checkout("branchName")
1603+
* Diff two different commits and apply changes on the current branch/commit.
1604+
* If you would like to change branch or commit before apply use client.checkout("branchName")
16051605
* @param {string} beforeVersion - Before branch/commit to compare
1606-
* @param {string} afterVersion - Before branch/commit to compare
1606+
* @param {string} afterVersion - After branch/commit to compare
16071607
* @param {string} message - apply commit message
1608-
* @param {boolean} [match_final_state] - the deafult value is false
1608+
* @param {boolean} [match_final_state] - the default value is false
16091609
* @param {object} [options] - {keep:{}} Options to send to the apply endpoint
16101610
* @example
16111611
* client.checkout("mybranch")
1612-
* client.apply("main","mybranch").then(result=>{
1612+
* client.apply("main","mybranch","merge main").then(result=>{
16131613
* console.log(result)
16141614
* })
16151615
*/

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@terminusdb/terminusdb-client",
3-
"version": "10.0.16",
3+
"version": "10.0.17",
44
"description": "TerminusDB client library",
55
"main": "index.js",
66
"types": "./dist/typescript/index.d.ts",

0 commit comments

Comments
 (0)