Skip to content

Commit

Permalink
Merge branch 'main' into ac/lockfile-changes-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
achou11 committed Sep 19, 2024
2 parents db56e7d + b2c2a91 commit efdaa12
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 14 deletions.
1 change: 0 additions & 1 deletion src/mapeo-project.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,6 @@ export class MapeoProject extends TypedEmitter {

this.#translationApi = new TranslationApi({
dataType: this.#dataTypes.translation,
table: translationTable,
})

///////// 4. Replicate local peers automatically
Expand Down
2 changes: 1 addition & 1 deletion src/sync/core-sync-state.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import RemoteBitfield, {
* @typedef {object} LocalCoreState
* @property {number} have blocks we have
* @property {number} want unique blocks we want from any other peer
* @property {number} wanted blocks we want from this peer
* @property {number} wanted unique blocks any other peer wants from us
*/
/**
* @typedef {object} PeerNamespaceState
Expand Down
5 changes: 1 addition & 4 deletions src/translation-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export default class TranslationApi {
* Set<import('@comapeo/schema/dist/types.js').SchemaName>>} */
#translatedLanguageCodeToSchemaNames = new Map()
#dataType
#table
#indexPromise

/**
Expand All @@ -26,11 +25,9 @@ export default class TranslationApi {
* Translation,
* TranslationValue
* >} opts.dataType
* @param {typeof import('./schema/project.js').translationTable} opts.table
*/
constructor({ dataType, table }) {
constructor({ dataType }) {
this.#dataType = dataType
this.#table = table
this.#indexPromise = this.#dataType
.getMany()
.then((docs) => {
Expand Down
5 changes: 1 addition & 4 deletions tests/data-type.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,10 +358,7 @@ async function testenv(opts = {}) {
},
})

const translationApi = new TranslationApi({
dataType: translationDataType,
table: translationTable,
})
const translationApi = new TranslationApi({ dataType: translationDataType })

const dataType = new DataType({
dataStore,
Expand Down
5 changes: 1 addition & 4 deletions tests/translation-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,5 @@ function setup() {
},
})

return new TranslationApi({
dataType,
table,
})
return new TranslationApi({ dataType })
}

0 comments on commit efdaa12

Please sign in to comment.