@xuda.io/drive_module 1.1.1086 → 1.1.1088
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/index.js +1 -8
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2215,6 +2215,7 @@ exports.compile_javascript_program_in_studio_drive = async function (
|
|
|
2215
2215
|
!dep.startsWith("/") &&
|
|
2216
2216
|
!dep.endsWith(".css")
|
|
2217
2217
|
) {
|
|
2218
|
+
if (dep.includes("/")) dep = dep.split("/")[0];
|
|
2218
2219
|
matches.push(dep);
|
|
2219
2220
|
}
|
|
2220
2221
|
}
|
|
@@ -2225,14 +2226,6 @@ exports.compile_javascript_program_in_studio_drive = async function (
|
|
|
2225
2226
|
const requires = extractDependencies(content, requireRegex);
|
|
2226
2227
|
imports.concat(requires).forEach((dep) => allDependencies.add(dep));
|
|
2227
2228
|
|
|
2228
|
-
// Add missing dependencies to package.json
|
|
2229
|
-
// allDependencies.forEach((dep) => {
|
|
2230
|
-
// if (!devDependencies[dep]) {
|
|
2231
|
-
// console.log(`Adding dependency: ${dep}`);
|
|
2232
|
-
// devDependencies[dep] = "latest"; // Use "latest" as the version or fetch actual versions if needed
|
|
2233
|
-
// }
|
|
2234
|
-
// });
|
|
2235
|
-
|
|
2236
2229
|
// Add missing dependencies to package.json
|
|
2237
2230
|
for await (const dep of allDependencies) {
|
|
2238
2231
|
if (!devDependencies[dep]) {
|