@modern-js/plugin-testing 2.58.3 → 2.60.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,7 @@
1
1
  import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
2
2
  import { _ as _create_class } from "@swc/helpers/_/_create_class";
3
3
  import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
4
+ import { _ as _type_of } from "@swc/helpers/_/_type_of";
4
5
  import { merge } from "@modern-js/utils/lodash";
5
6
  var TestConfigOperator = /* @__PURE__ */ function() {
6
7
  "use strict";
@@ -23,7 +24,7 @@ var TestConfigOperator = /* @__PURE__ */ function() {
23
24
  };
24
25
  _proto.setJestUserConfig = function setJestUserConfig() {
25
26
  var userJestConfig = this.userJestConfig;
26
- if (typeof userJestConfig === "object") {
27
+ if ((typeof userJestConfig === "undefined" ? "undefined" : _type_of(userJestConfig)) === "object") {
27
28
  this.setJestConfig(userJestConfig);
28
29
  }
29
30
  };
@@ -2,6 +2,7 @@ import { _ as _define_property } from "@swc/helpers/_/_define_property";
2
2
  import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
3
3
  import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
4
4
  import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array";
5
+ import { _ as _type_of } from "@swc/helpers/_/_type_of";
5
6
  import * as ptr from "path-to-regexp";
6
7
  import * as mockAppModule from "./app";
7
8
  var mock_replaceUrlWithParams = function(url, paramValues, payload) {
@@ -26,14 +27,14 @@ var mock_getParamsAndPayload = function(args) {
26
27
  ];
27
28
  }
28
29
  var head = args[0];
29
- if (typeof head === "object") {
30
+ if ((typeof head === "undefined" ? "undefined" : _type_of(head)) === "object") {
30
31
  return [
31
32
  [],
32
33
  head
33
34
  ];
34
35
  } else {
35
36
  var latest = args[args.length - 1];
36
- if (typeof latest === "object") {
37
+ if ((typeof latest === "undefined" ? "undefined" : _type_of(latest)) === "object") {
37
38
  return [
38
39
  args.slice(0, args.length - 1),
39
40
  latest
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.58.3",
18
+ "version": "2.60.0",
19
19
  "jsnext:source": "./src/cli/index.ts",
20
20
  "types": "./dist/types/cli/index.d.ts",
21
21
  "main": "./dist/cjs/cli/index.js",
@@ -117,7 +117,7 @@
117
117
  "@modern-js-reduck/plugin-effects": "^1.1.10",
118
118
  "@modern-js-reduck/plugin-immutable": "^1.1.10",
119
119
  "@modern-js-reduck/store": "^1.1.10",
120
- "@swc/helpers": "0.5.3",
120
+ "@swc/helpers": "0.5.13",
121
121
  "@testing-library/jest-dom": "^5.16.1",
122
122
  "@testing-library/react": "^13.4.0",
123
123
  "@types/testing-library__jest-dom": "^5.14.3",
@@ -130,19 +130,19 @@
130
130
  "supertest": "^6.1.6",
131
131
  "ts-jest": "^29.1.0",
132
132
  "yargs": "^17.0.1",
133
- "@modern-js/babel-compiler": "2.58.3",
134
- "@modern-js/babel-preset": "2.58.3",
135
- "@modern-js/bff-core": "2.58.3",
136
- "@modern-js/plugin": "2.58.3",
137
- "@modern-js/prod-server": "2.58.3",
138
- "@modern-js/server-core": "2.58.3",
139
- "@modern-js/types": "2.58.3",
140
- "@modern-js/utils": "2.58.3"
133
+ "@modern-js/babel-preset": "2.60.0",
134
+ "@modern-js/babel-compiler": "2.60.0",
135
+ "@modern-js/bff-core": "2.60.0",
136
+ "@modern-js/plugin": "2.60.0",
137
+ "@modern-js/server-core": "2.60.0",
138
+ "@modern-js/prod-server": "2.60.0",
139
+ "@modern-js/types": "2.60.0",
140
+ "@modern-js/utils": "2.60.0"
141
141
  },
142
142
  "peerDependencies": {
143
143
  "react": ">=17",
144
144
  "react-dom": ">=17",
145
- "@modern-js/runtime": "^2.58.3"
145
+ "@modern-js/runtime": "^2.60.0"
146
146
  },
147
147
  "peerDependenciesMeta": {
148
148
  "@modern-js/runtime": {
@@ -157,10 +157,10 @@
157
157
  "react": "^18",
158
158
  "react-dom": "^18",
159
159
  "typescript": "^5",
160
- "@modern-js/core": "2.58.3",
161
- "@modern-js/runtime": "2.58.3",
162
- "@scripts/jest-config": "2.58.3",
163
- "@scripts/build": "2.58.3"
160
+ "@modern-js/core": "2.60.0",
161
+ "@scripts/build": "2.60.0",
162
+ "@scripts/jest-config": "2.60.0",
163
+ "@modern-js/runtime": "2.60.0"
164
164
  },
165
165
  "sideEffects": false,
166
166
  "publishConfig": {