@rsdoctor/core 1.3.1 → 1.3.3

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 (36) hide show
  1. package/README.md +1 -1
  2. package/compiled/axios/index.d.ts +5 -2
  3. package/compiled/axios/index.js +19 -21
  4. package/compiled/axios/package.json +1 -1
  5. package/dist/build-utils/build/loader/probeLoader.cjs +3 -2
  6. package/dist/build-utils/build/loader/probeLoader.js +1 -1
  7. package/dist/build-utils/build/module-graph/utils.cjs +12 -2
  8. package/dist/build-utils/build/module-graph/utils.js +1 -1
  9. package/dist/build-utils/build/module-graph/webpack/transform.cjs +3 -2
  10. package/dist/build-utils/build/module-graph/webpack/transform.js +1 -1
  11. package/dist/build-utils/build/utils/loader.cjs +8 -7
  12. package/dist/build-utils/build/utils/loader.js +4 -4
  13. package/dist/build-utils/build/utils/parseBundle.cjs +6 -3
  14. package/dist/build-utils/build/utils/parseBundle.js +2 -1
  15. package/dist/inner-plugins/loaders/proxy.cjs +11 -3
  16. package/dist/inner-plugins/loaders/proxy.d.ts +3 -0
  17. package/dist/inner-plugins/loaders/proxy.js +4 -2
  18. package/dist/inner-plugins/plugins/loader.cjs +19 -6
  19. package/dist/inner-plugins/plugins/loader.js +12 -2
  20. package/dist/inner-plugins/plugins/rules.cjs +13 -3
  21. package/dist/inner-plugins/plugins/rules.js +1 -1
  22. package/dist/inner-plugins/plugins/summary.cjs +15 -3
  23. package/dist/inner-plugins/plugins/summary.js +2 -1
  24. package/dist/inner-plugins/utils/loader.cjs +3 -2
  25. package/dist/inner-plugins/utils/loader.js +1 -1
  26. package/dist/inner-plugins/utils/plugin-common.cjs +3 -2
  27. package/dist/inner-plugins/utils/plugin-common.js +1 -1
  28. package/dist/rules/rules/cross-chunks-package/index.cjs +12 -2
  29. package/dist/rules/rules/cross-chunks-package/index.js +1 -1
  30. package/dist/rules/rules/ecma-version-check/index.cjs +2 -2
  31. package/dist/rules/rules/ecma-version-check/index.js +1 -1
  32. package/package.json +13 -13
  33. package/compiled/@rsbuild/plugin-check-syntax/index.js +0 -18008
  34. package/compiled/@rsbuild/plugin-check-syntax/license +0 -21
  35. package/compiled/@rsbuild/plugin-check-syntax/mappings.wasm +0 -0
  36. package/compiled/@rsbuild/plugin-check-syntax/package.json +0 -1
@@ -3,7 +3,7 @@ import 'module';
3
3
  import axios from "../../../compiled/axios/index.js";
4
4
  import enhanced_resolve from "enhanced-resolve";
5
5
  import fs from "fs";
6
- import { omit } from "lodash-es";
6
+ import omit from "lodash/omit.js";
7
7
  import path from "path";
8
8
  import { logger } from "@rsdoctor/utils/logger";
9
9
  import { Loader, Lodash, Time } from "@rsdoctor/utils/common";
@@ -40,13 +40,14 @@ const sdk_namespaceObject = require("@rsdoctor/sdk");
40
40
  const plugins_namespaceObject = require("@rsdoctor/core/plugins");
41
41
  const types_namespaceObject = require("@rsdoctor/types");
42
42
  const logger_namespaceObject = require("@rsdoctor/utils/logger");
43
- const external_lodash_es_namespaceObject = require("lodash-es");
43
+ const cloneDeep_js_namespaceObject = require("lodash/cloneDeep.js");
44
+ var cloneDeep_js_default = /*#__PURE__*/ __webpack_require__.n(cloneDeep_js_namespaceObject);
44
45
  const external_path_namespaceObject = require("path");
45
46
  var external_path_default = /*#__PURE__*/ __webpack_require__.n(external_path_namespaceObject);
46
47
  function processCompilerConfig(config) {
47
48
  var _rest_module, _rest_module1;
48
49
  const { plugins, infrastructureLogging, ...rest } = config;
49
- const _rest = (0, external_lodash_es_namespaceObject.cloneDeep)(rest);
50
+ const _rest = cloneDeep_js_default()(rest);
50
51
  if (null == (_rest_module = _rest.module) ? void 0 : _rest_module.defaultRules) (0, plugins_namespaceObject.makeRulesSerializable)(_rest.module.defaultRules);
51
52
  if (null == (_rest_module1 = _rest.module) ? void 0 : _rest_module1.rules) (0, plugins_namespaceObject.makeRulesSerializable)(_rest.module.rules);
52
53
  return {
@@ -4,7 +4,7 @@ import { openBrowser } from "@rsdoctor/sdk";
4
4
  import { makeRulesSerializable } from "@rsdoctor/core/plugins";
5
5
  import { SDK } from "@rsdoctor/types";
6
6
  import { chalk } from "@rsdoctor/utils/logger";
7
- import { cloneDeep } from "lodash-es";
7
+ import cloneDeep from "lodash/cloneDeep.js";
8
8
  import path from "path";
9
9
  function processCompilerConfig(config) {
10
10
  var _rest_module, _rest_module1;
@@ -1,5 +1,14 @@
1
1
  "use strict";
2
2
  var __webpack_require__ = {};
3
+ (()=>{
4
+ __webpack_require__.n = (module)=>{
5
+ var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
6
+ __webpack_require__.d(getter, {
7
+ a: getter
8
+ });
9
+ return getter;
10
+ };
11
+ })();
3
12
  (()=>{
4
13
  __webpack_require__.d = (exports1, definition)=>{
5
14
  for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
@@ -29,7 +38,8 @@ __webpack_require__.d(__webpack_exports__, {
29
38
  const types_namespaceObject = require("@rsdoctor/types");
30
39
  const external_rule_cjs_namespaceObject = require("../../rule.cjs");
31
40
  const external_utils_cjs_namespaceObject = require("./utils.cjs");
32
- const external_lodash_es_namespaceObject = require("lodash-es");
41
+ const uniq_js_namespaceObject = require("lodash/uniq.js");
42
+ var uniq_js_default = /*#__PURE__*/ __webpack_require__.n(uniq_js_namespaceObject);
33
43
  const title = 'cross-chunks-package';
34
44
  const rule = (0, external_rule_cjs_namespaceObject.defineRule)(()=>({
35
45
  meta: {
@@ -56,7 +66,7 @@ const rule = (0, external_rule_cjs_namespaceObject.defineRule)(()=>({
56
66
  };
57
67
  const chunks = [];
58
68
  pkg.duplicates.forEach((dup)=>chunks.push(...dup.chunks.map((ck)=>ck.name)));
59
- const message = (0, external_utils_cjs_namespaceObject.getErrorMsgForDupPckChunks)((0, external_lodash_es_namespaceObject.uniq)(chunks), pkg.name);
69
+ const message = (0, external_utils_cjs_namespaceObject.getErrorMsgForDupPckChunks)(uniq_js_default()(chunks), pkg.name);
60
70
  report({
61
71
  message,
62
72
  detail
@@ -3,7 +3,7 @@ import 'module';
3
3
  import { Linter } from "@rsdoctor/types";
4
4
  import { defineRule } from "../../rule.js";
5
5
  import { getErrorMsgForDupPckChunks } from "./utils.js";
6
- import { uniq } from "lodash-es";
6
+ import uniq from "lodash/uniq.js";
7
7
  const title = 'cross-chunks-package';
8
8
  const rule = defineRule(()=>({
9
9
  meta: {
@@ -37,7 +37,7 @@ __webpack_require__.d(__webpack_exports__, {
37
37
  });
38
38
  const external_path_namespaceObject = require("path");
39
39
  var external_path_default = /*#__PURE__*/ __webpack_require__.n(external_path_namespaceObject);
40
- const index_js_namespaceObject = require("../../../../compiled/@rsbuild/plugin-check-syntax/index.js");
40
+ const plugin_check_syntax_namespaceObject = require("@rsbuild/plugin-check-syntax");
41
41
  const external_browserslist_load_config_namespaceObject = require("browserslist-load-config");
42
42
  const external_rule_cjs_namespaceObject = require("../../rule.cjs");
43
43
  const types_namespaceObject = require("@rsdoctor/types");
@@ -66,7 +66,7 @@ const rule = (0, external_rule_cjs_namespaceObject.defineRule)(()=>({
66
66
  if (!finalTargets.length && !ecmaVersion) return;
67
67
  const buildConfig = null == (_configs_ = configs[0]) ? void 0 : _configs_.config;
68
68
  const context = (null == buildConfig ? void 0 : buildConfig.context) || root;
69
- const checkSyntax = new index_js_namespaceObject.CheckSyntax({
69
+ const checkSyntax = new plugin_check_syntax_namespaceObject.CheckSyntax({
70
70
  exclude,
71
71
  excludeOutput,
72
72
  ecmaVersion,
@@ -1,7 +1,7 @@
1
1
  import 'module';
2
2
  /*#__PURE__*/ import.meta.url;
3
3
  import path from "path";
4
- import { CheckSyntax } from "../../../../compiled/@rsbuild/plugin-check-syntax/index.js";
4
+ import { CheckSyntax } from "@rsbuild/plugin-check-syntax";
5
5
  import { loadConfig } from "browserslist-load-config";
6
6
  import { defineRule } from "../../rule.js";
7
7
  import { Linter } from "@rsdoctor/types";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsdoctor/core",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/web-infra-dev/rsdoctor",
@@ -62,26 +62,26 @@
62
62
  },
63
63
  "dependencies": {
64
64
  "browserslist-load-config": "^1.0.1",
65
+ "@rsbuild/plugin-check-syntax": "1.4.0",
65
66
  "enhanced-resolve": "5.12.0",
66
67
  "filesize": "^10.1.6",
67
68
  "fs-extra": "^11.1.1",
68
- "lodash-es": "^4.17.21",
69
- "semver": "^7.7.2",
69
+ "lodash": "^4.17.21",
70
+ "semver": "^7.7.3",
70
71
  "source-map": "^0.7.6",
71
- "@rsdoctor/graph": "1.3.1",
72
- "@rsdoctor/sdk": "1.3.1",
73
- "@rsdoctor/types": "1.3.1",
74
- "@rsdoctor/utils": "1.3.1"
72
+ "@rsdoctor/graph": "1.3.3",
73
+ "@rsdoctor/sdk": "1.3.3",
74
+ "@rsdoctor/utils": "1.3.3",
75
+ "@rsdoctor/types": "1.3.3"
75
76
  },
76
77
  "devDependencies": {
77
- "@rsbuild/plugin-check-syntax": "1.4.0",
78
- "axios": "^1.12.0",
79
- "@rspack/core": "1.5.2",
78
+ "axios": "^1.12.2",
79
+ "@rspack/core": "1.5.8",
80
80
  "@types/fs-extra": "^11.0.4",
81
- "@types/lodash-es": "^4.17.12",
81
+ "@types/lodash": "^4.17.20",
82
82
  "@types/node": "^22.8.1",
83
- "@types/node-fetch": "^2.6.12",
84
- "@types/semver": "^7.7.0",
83
+ "@types/node-fetch": "^2.6.13",
84
+ "@types/semver": "^7.7.1",
85
85
  "@types/tapable": "2.2.7",
86
86
  "babel-loader": "10.0.0",
87
87
  "prebundle": "1.4.2",