@monkeyplus/flow 5.0.0-rc.103 → 5.0.0-rc.105

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.
@@ -24,7 +24,7 @@ import replace from '@rollup/plugin-replace';
24
24
  import { sanitizeFilePath } from 'mlly';
25
25
  import { resolveTSConfig } from 'pkg-types';
26
26
 
27
- const version = "5.0.0-rc.103";
27
+ const version = "5.0.0-rc.105";
28
28
 
29
29
  let _distDir = dirname(fileURLToPath(import.meta.url));
30
30
  if (_distDir.endsWith("chunks"))
@@ -6,12 +6,14 @@ const normalizeCall = async (seo, ctx) => {
6
6
  return seo || {};
7
7
  };
8
8
  function replacePath(_path, url) {
9
- if (url === "string") {
9
+ if (typeof url === "string") {
10
10
  _path = joinURL(_path.replace("/**", ""), url);
11
11
  } else {
12
12
  Object.entries(url).forEach(([key, value]) => {
13
13
  _path = _path.replace(`:${key}`, value);
14
14
  });
15
+ if (url._ && _path.endsWith("**"))
16
+ _path = joinURL(_path.replace("/**", ""), url._);
15
17
  }
16
18
  return _path;
17
19
  }
@@ -30,12 +30,14 @@ export default defineFlowPlugin(async (flow) => {
30
30
  });
31
31
  const cache = {};
32
32
  function replacePath(_path, url) {
33
- if (url === "string") {
33
+ if (typeof url === "string") {
34
34
  _path = joinURL(_path.replace("/**", ""), url);
35
35
  } else {
36
36
  Object.entries(url).forEach(([key, value]) => {
37
37
  _path = _path.replace(`:${key}`, value);
38
38
  });
39
+ if (url._ && _path.endsWith("**"))
40
+ _path = joinURL(_path.replace("/**", ""), url._);
39
41
  }
40
42
  return _path;
41
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monkeyplus/flow",
3
- "version": "5.0.0-rc.103",
3
+ "version": "5.0.0-rc.105",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",
@@ -25,9 +25,9 @@
25
25
  "dist"
26
26
  ],
27
27
  "dependencies": {
28
- "@monkeyplus/flow-cli": "5.0.0-rc.103",
29
- "@monkeyplus/flow-kit": "5.0.0-rc.103",
30
- "@monkeyplus/flow-schema": "5.0.0-rc.103",
28
+ "@monkeyplus/flow-cli": "5.0.0-rc.105",
29
+ "@monkeyplus/flow-kit": "5.0.0-rc.105",
30
+ "@monkeyplus/flow-schema": "5.0.0-rc.105",
31
31
  "@rollup/plugin-replace": "^4.0.0",
32
32
  "@vueuse/head": "^0.7.6",
33
33
  "c12": "^0.2.8",