bdy 1.18.18-dev → 1.18.20-dev

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bdy",
3
3
  "preferGlobal": false,
4
- "version": "1.18.18-dev",
4
+ "version": "1.18.20-dev",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "scripts": {
@@ -65,9 +65,9 @@ commandScrape.action(async (inputUrl, options) => {
65
65
  const unpack = tar.extract();
66
66
  unpack.on('entry', async (header, stream, next) => {
67
67
  const currentDir = process.cwd();
68
- const preparedOutputDir = outputDir.startsWith('.')
69
- ? node_path_1.default.join(currentDir, outputDir)
70
- : outputDir;
68
+ const preparedOutputDir = node_path_1.default.isAbsolute(outputDir)
69
+ ? outputDir
70
+ : node_path_1.default.join(currentDir, outputDir);
71
71
  const newFilePath = node_path_1.default.join(preparedOutputDir, header.name);
72
72
  try {
73
73
  if (header.type === 'file') {
@@ -36,10 +36,10 @@ function getServiceUrl(token) {
36
36
  }
37
37
  return devServiceUrl;
38
38
  }
39
- if (token.startsWith('bud_vt_eu')) {
39
+ if (token.startsWith('bud_vt_eu') || token.startsWith('bud_scrap_eu')) {
40
40
  return 'https://vt.eu.buddy.works';
41
41
  }
42
- if (token.startsWith('bud_vt_asia')) {
42
+ if (token.startsWith('bud_vt_asia') || token.startsWith('bud_scrap_asia')) {
43
43
  return 'https://vt.asia.buddy.works';
44
44
  }
45
45
  return 'https://vt.buddy.works';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bdy",
3
3
  "preferGlobal": false,
4
- "version": "1.18.18-dev",
4
+ "version": "1.18.20-dev",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "scripts": {