@modern-js/generator-cases 3.1.15 → 3.1.17

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/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @modern-js/generator-cases
2
2
 
3
+ ## 3.1.17
4
+
5
+ ### Patch Changes
6
+
7
+ - 6b9d90a: chore: remove @babel/runtime. add @swc/helper and enable `externalHelper` config.
8
+ chore: 移除 @babel/runtime 依赖. 增加 @swc/helpers 依赖并且开启 `externalHelpers` 配置
9
+ - Updated dependencies [6b9d90a]
10
+ - @modern-js/generator-common@3.1.17
11
+
12
+ ## 3.1.16
13
+
14
+ ### Patch Changes
15
+
16
+ - @modern-js/generator-common@3.1.16
17
+
3
18
  ## 3.1.15
4
19
 
5
20
  ### Patch Changes
package/dist/cjs/index.js CHANGED
@@ -30,13 +30,9 @@ _export(exports, {
30
30
  ModuleSubProjectValueMap: () => ModuleSubProjectValueMap,
31
31
  getMonorepoNewCases: () => getMonorepoNewCases
32
32
  });
33
- const _covertable = /* @__PURE__ */ _interop_require_default(require("covertable"));
33
+ const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
34
+ const _covertable = /* @__PURE__ */ _interop_require_default._(require("covertable"));
34
35
  const _generatorcommon = require("@modern-js/generator-common");
35
- function _interop_require_default(obj) {
36
- return obj && obj.__esModule ? obj : {
37
- default: obj
38
- };
39
- }
40
36
  const LanguageValues = Object.values(_generatorcommon.Language);
41
37
  const PackageManagerValues = Object.values(_generatorcommon.PackageManager);
42
38
  const BooleanConfigValues = Object.values(_generatorcommon.BooleanConfig);
package/dist/esm/index.js CHANGED
@@ -1,89 +1,7 @@
1
- function _array_like_to_array(arr, len) {
2
- if (len == null || len > arr.length)
3
- len = arr.length;
4
- for (var i = 0, arr2 = new Array(len); i < len; i++)
5
- arr2[i] = arr[i];
6
- return arr2;
7
- }
8
- function _array_without_holes(arr) {
9
- if (Array.isArray(arr))
10
- return _array_like_to_array(arr);
11
- }
12
- function _define_property(obj, key, value) {
13
- if (key in obj) {
14
- Object.defineProperty(obj, key, {
15
- value: value,
16
- enumerable: true,
17
- configurable: true,
18
- writable: true
19
- });
20
- } else {
21
- obj[key] = value;
22
- }
23
- return obj;
24
- }
25
- function _iterable_to_array(iter) {
26
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
27
- return Array.from(iter);
28
- }
29
- function _non_iterable_spread() {
30
- throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
31
- }
32
- function _object_spread(target) {
33
- for (var i = 1; i < arguments.length; i++) {
34
- var source = arguments[i] != null ? arguments[i] : {};
35
- var ownKeys2 = Object.keys(source);
36
- if (typeof Object.getOwnPropertySymbols === "function") {
37
- ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
38
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
39
- }));
40
- }
41
- ownKeys2.forEach(function(key) {
42
- _define_property(target, key, source[key]);
43
- });
44
- }
45
- return target;
46
- }
47
- function ownKeys(object, enumerableOnly) {
48
- var keys = Object.keys(object);
49
- if (Object.getOwnPropertySymbols) {
50
- var symbols = Object.getOwnPropertySymbols(object);
51
- if (enumerableOnly) {
52
- symbols = symbols.filter(function(sym) {
53
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
54
- });
55
- }
56
- keys.push.apply(keys, symbols);
57
- }
58
- return keys;
59
- }
60
- function _object_spread_props(target, source) {
61
- source = source != null ? source : {};
62
- if (Object.getOwnPropertyDescriptors) {
63
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
64
- } else {
65
- ownKeys(Object(source)).forEach(function(key) {
66
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
67
- });
68
- }
69
- return target;
70
- }
71
- function _to_consumable_array(arr) {
72
- return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
73
- }
74
- function _unsupported_iterable_to_array(o, minLen) {
75
- if (!o)
76
- return;
77
- if (typeof o === "string")
78
- return _array_like_to_array(o, minLen);
79
- var n = Object.prototype.toString.call(o).slice(8, -1);
80
- if (n === "Object" && o.constructor)
81
- n = o.constructor.name;
82
- if (n === "Map" || n === "Set")
83
- return Array.from(n);
84
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
85
- return _array_like_to_array(o, minLen);
86
- }
1
+ import { _ as _define_property } from "@swc/helpers/_/_define_property";
2
+ import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
3
+ import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
4
+ import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array";
87
5
  import make from "covertable";
88
6
  import { Solution, PackageManager, Language, BooleanConfig, MWAActionTypes, MWAActionTypesMap, Framework, BFFType, ActionElement, ActionFunction, ModuleActionTypes, ModuleActionTypesMap, SubSolution, BuildTools } from "@modern-js/generator-common";
89
7
  export var LanguageValues = Object.values(Language);
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.1.15",
18
+ "version": "3.1.17",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/types/index.d.ts",
21
21
  "main": "./dist/cjs/index.js",
@@ -31,17 +31,17 @@
31
31
  }
32
32
  },
33
33
  "dependencies": {
34
- "@babel/runtime": "^7.18.0",
35
34
  "covertable": "^2.2.2",
36
- "@modern-js/generator-common": "3.1.15"
35
+ "@swc/helpers": "0.5.1",
36
+ "@modern-js/generator-common": "3.1.17"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/jest": "^29",
40
40
  "@types/node": "^14",
41
41
  "typescript": "^4",
42
42
  "jest": "^29",
43
- "@scripts/build": "2.19.0",
44
- "@scripts/jest-config": "2.19.0"
43
+ "@scripts/build": "2.20.0",
44
+ "@scripts/jest-config": "2.20.0"
45
45
  },
46
46
  "sideEffects": false,
47
47
  "publishConfig": {