@dd-code/oss-uploader 0.1.9 → 0.1.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dd-code/oss-uploader",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "Upload local directories to OSS (currently Huawei OBS) with pluggable middleware and providers.",
5
5
  "main": "dist/index.cjs",
6
6
  "types": "dist/index.d.ts",
@@ -13,7 +13,7 @@
13
13
  "prepare": "npm run build"
14
14
  },
15
15
  "dependencies": {
16
- "chalk": "^5.6.2",
16
+ "chalk": "^4.1.2",
17
17
  "cli-progress": "^3.12.0",
18
18
  "commander": "^12.0.0",
19
19
  "esdk-obs-nodejs": "^3.25.0",
package/rollup.config.mjs CHANGED
@@ -40,10 +40,12 @@ const externalDeps = [
40
40
  ...Object.keys(pkg.peerDependencies || {})
41
41
  ];
42
42
 
43
+
43
44
  const external = (id) => {
44
45
  if (builtinModules.includes(id) || builtinModules.includes(id.replace(/^node:/, ''))) {
45
46
  return true;
46
47
  }
48
+
47
49
  return externalDeps.some((dep) => id === dep || id.startsWith(`${dep}/`));
48
50
  };
49
51