File tree 2 files changed +7
-2
lines changed
client/packages/lowcoder/src
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ export const CompName = (props: Iprops) => {
83
83
84
84
const items : EditPopoverItemType [ ] = [ ] ;
85
85
86
+ // Falk: TODO - Implement upgrade for individual Version functionality
86
87
const handleUpgrade = async ( ) => {
87
88
if ( upgrading ) {
88
89
return ;
Original file line number Diff line number Diff line change @@ -10,13 +10,17 @@ import {
10
10
async function npmLoader (
11
11
remoteInfo : RemoteCompInfo
12
12
) : Promise < CompConstructor | null > {
13
- const { packageName, packageVersion = "latest" , compName } = remoteInfo ;
13
+
14
+ console . log ( "remoteInfo: " , remoteInfo ) ;
15
+
16
+ // Falk: removed "packageVersion = "latest" as default value fir packageVersion - to ensure no automatic version jumping.
17
+
18
+ const { packageName, packageVersion, compName } = remoteInfo ;
14
19
const entry = `${ NPM_PLUGIN_ASSETS_BASE_URL } /${ packageName } @${ packageVersion } /index.js` ;
15
20
// const entry = `../../../../../public/package/index.js`;
16
21
// console.log("Entry", entry);
17
22
try {
18
23
const module = await import ( /* webpackIgnore: true */ entry ) ;
19
- // console.log("Entry 1", module);
20
24
const comp = module . default ?. [ compName ] ;
21
25
if ( ! comp ) {
22
26
throw new Error ( trans ( "npm.compNotFound" , { compName } ) ) ;
You can’t perform that action at this time.
0 commit comments