diff --git a/package-lock.json b/package-lock.json index c43db52587..0c3dd32af5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,11 +9,11 @@ "version": "5.0.1", "license": "LGPL-3.0", "dependencies": { - "@alfresco/adf-content-services": "7.0.0-alpha.2", - "@alfresco/adf-core": "7.0.0-alpha.2", - "@alfresco/adf-extensions": "7.0.0-alpha.2", - "@alfresco/eslint-plugin-eslint-angular": "7.0.0-alpha.2", - "@alfresco/js-api": "8.0.0-alpha.2", + "@alfresco/adf-content-services": "7.0.0-alpha.2-10667123445", + "@alfresco/adf-core": "7.0.0-alpha.2-10667123445", + "@alfresco/adf-extensions": "7.0.0-alpha.2-10667123445", + "@alfresco/eslint-plugin-eslint-angular": "7.0.0-alpha.2-10667123445", + "@alfresco/js-api": "8.0.0-alpha.2-10667123445", "@angular/animations": "15.2.10", "@angular/cdk": "15.2.9", "@angular/common": "15.2.10", @@ -41,7 +41,7 @@ "zone.js": "0.11.8" }, "devDependencies": { - "@alfresco/adf-cli": "7.0.0-alpha.2", + "@alfresco/adf-cli": "7.0.0-alpha.2-10667123445", "@angular-devkit/build-angular": "15.2.10", "@angular-devkit/core": "15.2.10", "@angular-devkit/schematics": "15.2.10", @@ -106,12 +106,12 @@ "dev": true }, "node_modules/@alfresco/adf-cli": { - "version": "7.0.0-alpha.2", - "resolved": "https://registry.npmjs.org/@alfresco/adf-cli/-/adf-cli-7.0.0-alpha.2.tgz", - "integrity": "sha512-MIfh1lgRT5VCSbNLv2lVgNz4g+9HCsZleQf4M8xOYRA9ffkbSGFuHxS0hAz5sbNHZ3pDE+920tcH5PmCE9JpvQ==", + "version": "7.0.0-alpha.2-10667123445", + "resolved": "https://registry.npmjs.org/@alfresco/adf-cli/-/adf-cli-7.0.0-alpha.2-10667123445.tgz", + "integrity": "sha512-myLt806h8qe518tMIZhqUyPmijCC+/DSj5ezjELRY1qC9846yM33USMtTb91MZuPj/8I3SBwQUmL3S1zte7gYQ==", "dev": true, "dependencies": { - "@alfresco/js-api": ">=7.8.0", + "@alfresco/js-api": ">=8.0.0-alpha.2-10667123445", "commander": "^6.2.1", "ejs": "^3.1.9", "license-checker": "^25.0.1", @@ -125,27 +125,16 @@ "adf-cli": "bin/adf-cli" } }, - "node_modules/@alfresco/adf-cli/node_modules/@alfresco/js-api": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/@alfresco/js-api/-/js-api-7.8.0.tgz", - "integrity": "sha512-3y5WwtvsEkwAB3WaFC9Ec+QMzvPmZccJ7Em06lVBDwxtFgZ1F2CisVNepWgZLoCSkCH8Lgm6e4Tr0L93S3AmoQ==", - "dev": true, - "dependencies": { - "event-emitter": "^0.3.5", - "superagent": "^9.0.1", - "tslib": "^2.6.1" - } - }, "node_modules/@alfresco/adf-content-services": { - "version": "7.0.0-alpha.2", - "resolved": "https://registry.npmjs.org/@alfresco/adf-content-services/-/adf-content-services-7.0.0-alpha.2.tgz", - "integrity": "sha512-vV2cygMta0LfV6PxGidaPDX+Dy6YLg5+H9c3ROTfcN+HwLezPXDDwyUtEXSxNzM9O7YomPEzepXuJ+J7WSosWw==", + "version": "7.0.0-alpha.2-10667123445", + "resolved": "https://registry.npmjs.org/@alfresco/adf-content-services/-/adf-content-services-7.0.0-alpha.2-10667123445.tgz", + "integrity": "sha512-0egx8F7FLjdCnz214koJHKCui4eKMrjF/cK94oUWCYu8O0uAnYdH1X9+Qox6Y+ZyTTWPWflU3AUVnMvWDWIeuw==", "dependencies": { "tslib": "^2.3.0" }, "peerDependencies": { - "@alfresco/adf-core": ">=7.0.0-alpha.2", - "@alfresco/js-api": ">=8.0.0-alpha.2", + "@alfresco/adf-core": ">=7.0.0-alpha.2-10667123445", + "@alfresco/js-api": ">=8.0.0-alpha.2-10667123445", "@angular/animations": ">=14.1.3", "@angular/cdk": ">=14.1.2", "@angular/common": ">=14.1.3", @@ -160,9 +149,9 @@ } }, "node_modules/@alfresco/adf-core": { - "version": "7.0.0-alpha.2", - "resolved": "https://registry.npmjs.org/@alfresco/adf-core/-/adf-core-7.0.0-alpha.2.tgz", - "integrity": "sha512-4uzcWojS6ZqzfaHUP8UoESal3Vj/xgyU2YDdxyfH6o1R+gOY4j4+npFkqc9Y5B+2BmsGBdfhX5ss1DdyK07k5w==", + "version": "7.0.0-alpha.2-10667123445", + "resolved": "https://registry.npmjs.org/@alfresco/adf-core/-/adf-core-7.0.0-alpha.2-10667123445.tgz", + "integrity": "sha512-usaLUvY179dzQploosvZVZkR2m35ITAvTgCgFtoVf+7T6guG+S3AFkIhQov6ppQumfMkbTFgpjDIJRlSM/Y4lQ==", "dependencies": { "angular-oauth2-oidc": "^13.0.1", "angular-oauth2-oidc-jwks": "^17.0.2", @@ -170,8 +159,8 @@ "tslib": "^2.3.0" }, "peerDependencies": { - "@alfresco/adf-extensions": ">=7.0.0-alpha.2", - "@alfresco/js-api": ">=8.0.0-alpha.2", + "@alfresco/adf-extensions": ">=7.0.0-alpha.2-10667123445", + "@alfresco/js-api": ">=8.0.0-alpha.2-10667123445", "@angular/animations": ">=14.1.3", "@angular/cdk": ">=14.1.2", "@angular/common": ">=14.1.3", @@ -186,31 +175,31 @@ } }, "node_modules/@alfresco/adf-extensions": { - "version": "7.0.0-alpha.2", - "resolved": "https://registry.npmjs.org/@alfresco/adf-extensions/-/adf-extensions-7.0.0-alpha.2.tgz", - "integrity": "sha512-PsGA4Slf2zUTAAaecxLGwrpL0ANoP/UVoVrR60s9GH/l+RYKt0s7a3M2Ou4halQZCUF9ZFgYA52Ys9oz/WMfdw==", + "version": "7.0.0-alpha.2-10667123445", + "resolved": "https://registry.npmjs.org/@alfresco/adf-extensions/-/adf-extensions-7.0.0-alpha.2-10667123445.tgz", + "integrity": "sha512-66Fmy2LBdf1dZU6p9MvQLASppjlFFZpG6dGJwKamfkSRw5vv62meCvD5525YLXLFjjSDsfg03aNJGFcYDcyCCg==", "dependencies": { "tslib": "^2.3.0" }, "peerDependencies": { - "@alfresco/js-api": ">=8.0.0-alpha.2", + "@alfresco/js-api": ">=8.0.0-alpha.2-10667123445", "@angular/common": ">=14.1.3", "@angular/core": ">=14.1.3" } }, "node_modules/@alfresco/eslint-plugin-eslint-angular": { - "version": "7.0.0-alpha.2", - "resolved": "https://registry.npmjs.org/@alfresco/eslint-plugin-eslint-angular/-/eslint-plugin-eslint-angular-7.0.0-alpha.2.tgz", - "integrity": "sha512-m3enhSrPZ/7ZiDfCm3LRAPi/2cGuxpT4J54GcRdwT4eVT9VhCR8lsamBqmD6t8IGwn/Ie9ZlVQi9yohEpgeXLA==", + "version": "7.0.0-alpha.2-10667123445", + "resolved": "https://registry.npmjs.org/@alfresco/eslint-plugin-eslint-angular/-/eslint-plugin-eslint-angular-7.0.0-alpha.2-10667123445.tgz", + "integrity": "sha512-akW9As8DEQvzNIDA5sGVAg1GrRUU/coA75Yo4/063K+IqftTZEr9b4ojLRjP4F1hQWZh9quxaCINuchRwIVa0A==", "dependencies": { "@angular-eslint/utils": "15.2.1", "@typescript-eslint/utils": "5.48.2" } }, "node_modules/@alfresco/js-api": { - "version": "8.0.0-alpha.2", - "resolved": "https://registry.npmjs.org/@alfresco/js-api/-/js-api-8.0.0-alpha.2.tgz", - "integrity": "sha512-qSJvX5tAn2FFoWOevKXIWeMbRcDSiNHNgGob/5FqH9YIV5wzuz84EL+LAHV8ac/5rSBjY/hWa0CP4d/Q/cNaKA==", + "version": "8.0.0-alpha.2-10667123445", + "resolved": "https://registry.npmjs.org/@alfresco/js-api/-/js-api-8.0.0-alpha.2-10667123445.tgz", + "integrity": "sha512-FD4rrI7AHiVtdTtv4Q4OxzS1EutF0n4PUqptXiFq1N7CbPcklsxttVeM3/9lEQ5tm9WHv4EZd7rvtRz2P2CwbA==", "dependencies": { "event-emitter": "0.3.5", "superagent": "9.0.2", diff --git a/package.json b/package.json index 21187bf3bc..31074eda7a 100644 --- a/package.json +++ b/package.json @@ -30,11 +30,11 @@ }, "private": true, "dependencies": { - "@alfresco/adf-content-services": "7.0.0-alpha.2", - "@alfresco/adf-core": "7.0.0-alpha.2", - "@alfresco/adf-extensions": "7.0.0-alpha.2", - "@alfresco/eslint-plugin-eslint-angular": "7.0.0-alpha.2", - "@alfresco/js-api": "8.0.0-alpha.2", + "@alfresco/adf-content-services": "7.0.0-alpha.2-10667123445", + "@alfresco/adf-core": "7.0.0-alpha.2-10667123445", + "@alfresco/adf-extensions": "7.0.0-alpha.2-10667123445", + "@alfresco/eslint-plugin-eslint-angular": "7.0.0-alpha.2-10667123445", + "@alfresco/js-api": "8.0.0-alpha.2-10667123445", "@angular/animations": "15.2.10", "@angular/cdk": "15.2.9", "@angular/common": "15.2.10", @@ -62,7 +62,7 @@ "zone.js": "0.11.8" }, "devDependencies": { - "@alfresco/adf-cli": "7.0.0-alpha.2", + "@alfresco/adf-cli": "7.0.0-alpha.2-10667123445", "@angular-devkit/build-angular": "15.2.10", "@angular-devkit/core": "15.2.10", "@angular-devkit/schematics": "15.2.10", diff --git a/scripts/gh/update/latest-version-of.js b/scripts/gh/update/latest-version-of.js index 031f502322..ccbedb5b1b 100644 --- a/scripts/gh/update/latest-version-of.js +++ b/scripts/gh/update/latest-version-of.js @@ -24,8 +24,16 @@ module.exports = async ({ exec, github, dependencyName, tag }) => { } }; await exec.exec(`npm dist-tag ls @alfresco/${dependencyName}`, [], options); + let matchedPkgVersion = ''; const tagsType = packageDistTag.split('\n'); - const matchedPkgVersion = tagsType.find((tagType) => tagType.includes(tag))?.split(':')[1].trim(); + for (const tagType of tagsType) { + const tagSplit = tagType.split(':'); + if (tagSplit[0].trim() === tag) { + matchedPkgVersion = tagSplit[1].trim(); + break; + } + } + const latestPkgToUpdate = availablePackages.find((package) => package.name === matchedPkgVersion); if (localVersion === latestPkgToUpdate?.name) {