@modern-js/plugin-bff 3.1.1 → 3.1.2

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,6 +1,4 @@
1
1
  import "node:module";
2
- import { fileURLToPath as __rspack_fileURLToPath } from "node:url";
3
- import { dirname as __rspack_dirname } from "node:path";
4
2
  import path from "path";
5
3
  import { ApiRouter } from "@modern-js/bff-core";
6
4
  import { compile } from "@modern-js/server-utils";
@@ -8,6 +6,8 @@ import { API_DIR, DEFAULT_API_PREFIX, SHARED_DIR, fs, normalizeOutputPath } from
8
6
  import clientGenerator from "./utils/clientGenerator.mjs";
9
7
  import pluginGenerator from "./utils/pluginGenerator.mjs";
10
8
  import runtimeGenerator from "./utils/runtimeGenerator.mjs";
9
+ import { fileURLToPath as __rspack_fileURLToPath } from "node:url";
10
+ import { dirname as __rspack_dirname } from "node:path";
11
11
  var cli_dirname = __rspack_dirname(__rspack_fileURLToPath(import.meta.url));
12
12
  const TS_CONFIG_FILENAME = 'tsconfig.json';
13
13
  const RUNTIME_CREATE_REQUEST = '@modern-js/plugin-bff/client';
@@ -1,9 +1,9 @@
1
1
  import "node:module";
2
- import { fileURLToPath as __rspack_fileURLToPath } from "node:url";
3
- import { dirname as __rspack_dirname } from "node:path";
4
2
  import path from "path";
5
3
  import { fs, logger, normalizeToPosixPath } from "@modern-js/utils";
6
4
  import { API_DIR, DIST_DIR, LAMBDA_DIR, PACKAGE_NAME, PREFIX } from "./crossProjectApiPlugin.mjs";
5
+ import { fileURLToPath as __rspack_fileURLToPath } from "node:url";
6
+ import { dirname as __rspack_dirname } from "node:path";
7
7
  var pluginGenerator_dirname = __rspack_dirname(__rspack_fileURLToPath(import.meta.url));
8
8
  function replaceContent(source, packageName, prefix, relativeDistPath, relativeApiPath, relativeLambdaPath) {
9
9
  const updatedSource = source.replace(new RegExp(PACKAGE_NAME, 'g'), packageName).replace(new RegExp(PREFIX, 'g'), prefix).replace(new RegExp(DIST_DIR, 'g'), normalizeToPosixPath(relativeDistPath)).replace(new RegExp(API_DIR, 'g'), normalizeToPosixPath(relativeApiPath)).replace(new RegExp(LAMBDA_DIR, 'g'), normalizeToPosixPath(relativeLambdaPath));
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.1.1",
18
+ "version": "3.1.2",
19
19
  "types": "./dist/types/cli.d.ts",
20
20
  "main": "./dist/cjs/cli.js",
21
21
  "exports": {
@@ -79,29 +79,29 @@
79
79
  "@swc/helpers": "^0.5.17",
80
80
  "qs": "^6.15.0",
81
81
  "type-is": "^1.6.18",
82
- "@modern-js/bff-core": "3.1.1",
83
- "@modern-js/create-request": "3.1.1",
84
- "@modern-js/server-core": "3.1.1",
85
- "@modern-js/server-utils": "3.1.1",
86
- "@modern-js/utils": "3.1.1",
87
- "@modern-js/builder": "3.1.1"
82
+ "@modern-js/bff-core": "3.1.2",
83
+ "@modern-js/create-request": "3.1.2",
84
+ "@modern-js/builder": "3.1.2",
85
+ "@modern-js/server-core": "3.1.2",
86
+ "@modern-js/utils": "3.1.2",
87
+ "@modern-js/server-utils": "3.1.2"
88
88
  },
89
89
  "devDependencies": {
90
- "@rsbuild/core": "2.0.0-beta.4",
91
- "@rslib/core": "0.20.0",
90
+ "@rsbuild/core": "2.0.0-rc.0",
91
+ "@rslib/core": "0.20.3",
92
92
  "@types/node": "^20",
93
93
  "@types/qs": "^6.15.0",
94
94
  "@types/type-is": "^1.6.7",
95
95
  "memfs": "^3.5.3",
96
96
  "typescript": "^5",
97
97
  "zod": "^3.25.76",
98
- "@modern-js/app-tools": "3.1.1",
99
- "@modern-js/bff-runtime": "3.1.1",
100
- "@modern-js/plugin": "3.1.1",
98
+ "@modern-js/bff-runtime": "3.1.2",
99
+ "@modern-js/plugin": "3.1.2",
101
100
  "@modern-js/rslib": "2.68.10",
102
- "@modern-js/types": "3.1.1",
103
- "@scripts/rstest-config": "2.66.0",
104
- "@modern-js/runtime": "3.1.1"
101
+ "@modern-js/runtime": "3.1.2",
102
+ "@modern-js/types": "3.1.2",
103
+ "@modern-js/app-tools": "3.1.2",
104
+ "@scripts/rstest-config": "2.66.0"
105
105
  },
106
106
  "sideEffects": false,
107
107
  "publishConfig": {