@xuda.io/drive_module 1.1.1081 → 1.1.1082

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.
Files changed (2) hide show
  1. package/index.js +13 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2244,6 +2244,19 @@ exports.compile_javascript_program_in_studio_drive = async function (
2244
2244
  devDependencies[dep] = npm_ret.version; // Use "latest" as the version or fetch actual versions if needed
2245
2245
  }
2246
2246
  }
2247
+ // update versions from doc
2248
+ for await (const [key, val] of Object.entries(
2249
+ doc?.scriptData?.dependencies || {}
2250
+ )) {
2251
+ if (!devDependencies[dep]) {
2252
+ console.log(`Adding dependency: ${dep}`);
2253
+ const npm_ret = await queryRegistry.getPackageManifest({
2254
+ name: dep,
2255
+ });
2256
+
2257
+ devDependencies[dep] = npm_ret.version; // Use "latest" as the version or fetch actual versions if needed
2258
+ }
2259
+ }
2247
2260
 
2248
2261
  // Update package.json
2249
2262
  packageJSON.devDependencies = devDependencies;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.1081",
3
+ "version": "1.1.1082",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {