@pgpmjs/core 7.5.0 → 7.5.1
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.
- package/core/class/pgpm.js +6 -4
- package/esm/core/class/pgpm.js +6 -4
- package/package.json +2 -2
package/core/class/pgpm.js
CHANGED
|
@@ -867,10 +867,12 @@ ${dependencies.length > 0 ? dependencies.map(dep => `-- requires: ${dep}`).join(
|
|
|
867
867
|
if (!fs_1.default.existsSync(pkgJsonFile)) {
|
|
868
868
|
throw new Error(`Missing package.json in installed extension: ${dst}`);
|
|
869
869
|
}
|
|
870
|
-
const { version } = JSON.parse(fs_1.default.readFileSync(pkgJsonFile, 'utf-8'));
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
pkgData
|
|
870
|
+
const { name: installedName, version } = JSON.parse(fs_1.default.readFileSync(pkgJsonFile, 'utf-8'));
|
|
871
|
+
if (installedName === name) {
|
|
872
|
+
installedVersions[name] = `${version}`;
|
|
873
|
+
if (pkgData) {
|
|
874
|
+
pkgData.dependencies[name] = `${version}`;
|
|
875
|
+
}
|
|
874
876
|
}
|
|
875
877
|
const extensionName = (0, files_2.getExtensionName)(dst);
|
|
876
878
|
newlyAdded.push(extensionName);
|
package/esm/core/class/pgpm.js
CHANGED
|
@@ -828,10 +828,12 @@ ${dependencies.length > 0 ? dependencies.map(dep => `-- requires: ${dep}`).join(
|
|
|
828
828
|
if (!fs.existsSync(pkgJsonFile)) {
|
|
829
829
|
throw new Error(`Missing package.json in installed extension: ${dst}`);
|
|
830
830
|
}
|
|
831
|
-
const { version } = JSON.parse(fs.readFileSync(pkgJsonFile, 'utf-8'));
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
pkgData
|
|
831
|
+
const { name: installedName, version } = JSON.parse(fs.readFileSync(pkgJsonFile, 'utf-8'));
|
|
832
|
+
if (installedName === name) {
|
|
833
|
+
installedVersions[name] = `${version}`;
|
|
834
|
+
if (pkgData) {
|
|
835
|
+
pkgData.dependencies[name] = `${version}`;
|
|
836
|
+
}
|
|
835
837
|
}
|
|
836
838
|
const extensionName = getExtensionName(dst);
|
|
837
839
|
newlyAdded.push(extensionName);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pgpmjs/core",
|
|
3
|
-
"version": "7.5.
|
|
3
|
+
"version": "7.5.1",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "PGPM Package and Migration Tools",
|
|
6
6
|
"main": "index.js",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"pgsql-parser": "^18.1.1",
|
|
67
67
|
"yanse": "^0.2.1"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "217ead37de876d05763874856347a48a6f356a69"
|
|
70
70
|
}
|