Skip to content

Commit

Permalink
get dates from uw org
Browse files Browse the repository at this point in the history
  • Loading branch information
PhotoNomad0 committed Aug 27, 2024
1 parent 6914c3d commit aa903db
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
7 changes: 5 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tc-source-content-updater",
"version": "1.4.26",
"version": "1.4.27-beta",
"description": "Module that updates source content for the desktop application translationCore.",
"main": "lib/index.js",
"display": "library",
Expand Down Expand Up @@ -47,6 +47,9 @@
"url": "https://github.com/unfoldingWord/tc-source-content-updater/issues"
},
"homepage": "https://github.com/unfoldingWord/tc-source-content-updater#readme",
"engines": {
"node": ">=16.14 <16.21"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-core": "^6.26.0",
Expand Down
5 changes: 4 additions & 1 deletion src/helpers/apiHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,10 @@ function filterOutMasterBranch(catalog, ignoredResources = [], newCatalog = [])
if (sourceResource) {
const _tagName = sourceResource.branch_or_tag_name;
if (isValidVersionTag(_tagName)) {
// copy latest release data from source
resource.branch_or_tag_name = _tagName;
resource.released = sourceResource.released;
resource.modified = sourceResource.modified;
return true;
}
}
Expand Down Expand Up @@ -294,7 +297,7 @@ export async function getCatalog(config = {}) {
let catalogReleases_ = filterOutMasterBranch(catalogReleases, ['obs', 'obs-tn'], newCatalogReleases);
console.log(`getCatalog - found ${catalogReleases_.length} items in old Door43-Catalog after filter`);

let newCatalogReleases_ = filterOutMasterBranch(newCatalogReleases, ['obs', 'obs-tn']);
const newCatalogReleases_ = filterOutMasterBranch(newCatalogReleases, ['obs', 'obs-tn']);
console.log(`getCatalog - found ${newCatalogReleases_.length} items in catalog next after filter`);

// merge catalogs together - catalog new takes precedence
Expand Down

0 comments on commit aa903db

Please sign in to comment.