tnx-shared 5.2.13 → 5.2.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -809,7 +809,7 @@ function getCurrentVersion(pkgObj, packageName, onGetVersion,) {
809
809
  if (bodyObj) {
810
810
  // nếu đã từng publish ít nhất 1 version
811
811
  const pkgVersions = Object.keys(bodyObj).filter(x => x.startsWith(angularSchemaObj.projectList[packageNameWithoutPrefix].clientVersion));
812
- if (pkgVersions) {
812
+ if (pkgVersions && pkgVersions.length > 0) {
813
813
  versionStr = pkgVersions[pkgVersions.length - 1];
814
814
  } else {
815
815
  console.log(`this is first version of ${angularSchemaObj.projectList[packageNameWithoutPrefix].clientVersion}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tnx-shared",
3
- "version": "5.2.13",
3
+ "version": "5.2.14",
4
4
  "clientVersion": "5.2",
5
5
  "version5.0": "5.0.19",
6
6
  "version5.1": "5.1.22",
@@ -131,7 +131,7 @@
131
131
  "jsplumb": "^2.15.6",
132
132
  "ngx-extended-pdf-viewer": "^9.0.5"
133
133
  },
134
- "versionPrev": "5.2.12",
134
+ "versionPrev": "5.2.13",
135
135
  "main": "bundles/tnx-shared.umd.js",
136
136
  "module": "fesm2015/tnx-shared.js",
137
137
  "es2015": "fesm2015/tnx-shared.js",