Skip to content

Commit d5b6aee

Browse files
committed
Fixing typos
1 parent c7938a4 commit d5b6aee

6 files changed

Lines changed: 11 additions & 11 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ const itemKeys = [
8888

8989
### AppTemplates
9090

91-
App templates based on HDS Model, provide frameworks to build application for HDS.
91+
App templates based on HDS Model, provide frameworks to build applications for HDS.
9292

93-
Some of the functionnalities will be moved from the lib
93+
Some of the functionalities will be moved from the lib
9494

9595

9696

src/appTemplates/AppManagingAccount.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const Collector = require('./Collector');
1313
* Stream structure
1414
* - applications
1515
* - [baseStreamId] "Root" stream for this app
16-
* - [baseStreamId]-[collectorsId] Each "questionnary" or "request for a set of data" has it's own stream
16+
* - [baseStreamId]-[collectorsId] Each "questionnaire" or "request for a set of data" has it's own stream
1717
* - [baseStreamId]-[collectorsId]-internal Private stuff not to be shared
1818
* - [baseStreamId]-[collectorsId]-public Contains events with the current settings of this app (this stream will be shared in "read" with the request)
1919
* - [baseStreamId]-[collectorsId]-pending Contains events with "pending" requests
@@ -64,7 +64,7 @@ class AppManagingAccount extends Application {
6464
}
6565

6666
/**
67-
* Create an unitialized Collector (mostly used by tests)
67+
* Create an un-initialized Collector (mostly used by tests)
6868
* @param {string} name
6969
* @returns {Collector}
7070
*/

src/appTemplates/Application.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class Application {
4040
*/
4141
static async newFromApiEndpoint (baseStreamId, apiEndpoint, appName) {
4242
const connection = new pryv.Connection(apiEndpoint);
43-
// in a static method "this" is the Class (here the extending class)
43+
// in a static method, "this" is the class (here the extending class)
4444
return await this.newFromConnection(baseStreamId, connection, appName);
4545
}
4646

@@ -52,7 +52,7 @@ class Application {
5252
* @returns {AppClientAccount}
5353
*/
5454
static async newFromConnection (baseStreamId, connection, appName) {
55-
// in a static method "this" is the Class (here the extending class)
55+
// in a static method "this" is the class (here the extending class)
5656
const app = new this(baseStreamId, connection, appName);
5757
await app.init();
5858
return app;

src/appTemplates/Collector.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Collector is use by AppManagingAccount
2+
* Collector is used by AppManagingAccount
33
* A "Collector" can be seen as a "Request" and set of "Responses"
44
* - Responses are authorization tokens from individuals
55
*/
@@ -102,7 +102,7 @@ class Collector {
102102
}
103103

104104
/**
105-
* Create a "pending" invite to be sent to an app usin AppSharingAccount
105+
* Create a "pending" invite to be sent to an app using AppSharingAccount
106106
* @param {string} name a default display name for this request
107107
* @param {Object} [options]
108108
* @param {Object} [options.customData] any data to be used by the client app
@@ -172,7 +172,7 @@ class Collector {
172172
* check if required streams are present, if not create them
173173
*/
174174
async checkStreamStructure () {
175-
// if streamData has correct children structure we assume all is OK
175+
// if streamData has correct child structure, we assume all is OK
176176
const childrenData = this.#streamData.children;
177177
const toCreate = Object.values(Collector.STREAMID_SUFFIXES)
178178
.filter((suffix) => {

src/appTemplates/CollectorClient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Client App in realtion with a AppManagingAccount/Collector
2+
* Client App in relation to an AppManagingAccount/Collector
33
* A "Collector" can be seen as a "Request" and set of "Responses"
44
*
55
*/

tests/apptemplates.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ describe('[APTX] appTemplates', function () {
128128
});
129129

130130
describe('[APCX] app Templates Client', function () {
131-
it('[APCE] Should throw error if not initiaized with a personal or master token', async () => {
131+
it('[APCE] Should throw error if not initialized with a personal or master token', async () => {
132132
const permissionsManager = [{ streamId: 'dummy', level: 'manage' }];
133133
const clientUserNonMaster = await createUserPermissions(user, permissionsManager, [], appName);
134134
// non master app

0 commit comments

Comments
 (0)