@xuda.io/drive_module 1.1.1088 → 1.1.1089
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 +3 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2208,14 +2208,16 @@ exports.compile_javascript_program_in_studio_drive = async function (
|
|
|
2208
2208
|
const matches = [];
|
|
2209
2209
|
let match;
|
|
2210
2210
|
while ((match = regex.exec(fileContent)) !== null) {
|
|
2211
|
-
|
|
2211
|
+
let dep = match[1];
|
|
2212
2212
|
// Ignore relative imports and CSS files
|
|
2213
2213
|
if (
|
|
2214
2214
|
!dep.startsWith(".") &&
|
|
2215
2215
|
!dep.startsWith("/") &&
|
|
2216
2216
|
!dep.endsWith(".css")
|
|
2217
2217
|
) {
|
|
2218
|
+
// handles "invalid package name: 'vue-grid-layout/dist/vue-grid-layout.umd.min.js'"
|
|
2218
2219
|
if (dep.includes("/")) dep = dep.split("/")[0];
|
|
2220
|
+
|
|
2219
2221
|
matches.push(dep);
|
|
2220
2222
|
}
|
|
2221
2223
|
}
|