@tramvai/test-child-app 5.10.0 → 5.14.9

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.
@@ -11,12 +11,11 @@ global.__webpack_share_scopes__ = { default: { react: {}, 'react-dom': {} } };
11
11
  // @ts-ignore
12
12
  global.setImmediate = (fn) => fn();
13
13
  const testChildApp = async (childApp, options = {}) => {
14
- var _a, _b;
15
14
  const testAppInstance = await createTestApp({
16
15
  ...options,
17
- modules: [...((_a = options.modules) !== null && _a !== void 0 ? _a : []), ChildAppModule],
16
+ modules: [...(options.modules ?? []), ChildAppModule],
18
17
  providers: [
19
- ...((_b = options.providers) !== null && _b !== void 0 ? _b : []),
18
+ ...(options.providers ?? []),
20
19
  provide({
21
20
  provide: CHILD_APP_RESOLVE_BASE_URL_TOKEN,
22
21
  useValue: 'http://test',
@@ -15,12 +15,11 @@ global.__webpack_share_scopes__ = { default: { react: {}, 'react-dom': {} } };
15
15
  // @ts-ignore
16
16
  global.setImmediate = (fn) => fn();
17
17
  const testChildApp = async (childApp, options = {}) => {
18
- var _a, _b;
19
18
  const testAppInstance = await testUnit.createTestApp({
20
19
  ...options,
21
- modules: [...((_a = options.modules) !== null && _a !== void 0 ? _a : []), moduleChildApp.ChildAppModule],
20
+ modules: [...(options.modules ?? []), moduleChildApp.ChildAppModule],
22
21
  providers: [
23
- ...((_b = options.providers) !== null && _b !== void 0 ? _b : []),
22
+ ...(options.providers ?? []),
24
23
  core.provide({
25
24
  provide: childAppCore.CHILD_APP_RESOLVE_BASE_URL_TOKEN,
26
25
  useValue: 'http://test',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/test-child-app",
3
- "version": "5.10.0",
3
+ "version": "5.14.9",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -17,17 +17,17 @@
17
17
  "watch": "tsc -w"
18
18
  },
19
19
  "dependencies": {
20
- "@tramvai/child-app-core": "5.10.0",
21
- "@tramvai/core": "5.10.0",
22
- "@tramvai/test-unit": "5.10.0",
20
+ "@tramvai/child-app-core": "5.14.9",
21
+ "@tramvai/core": "5.14.9",
22
+ "@tramvai/test-unit": "5.14.9",
23
23
  "tslib": "^2.4.0"
24
24
  },
25
25
  "devDependencies": {
26
- "@tramvai/react": "5.10.0",
26
+ "@tramvai/react": "5.14.9",
27
27
  "react": "18.2.0"
28
28
  },
29
29
  "peerDependencies": {
30
- "@tramvai/module-child-app": "5.10.0"
30
+ "@tramvai/module-child-app": "5.14.9"
31
31
  },
32
32
  "license": "Apache-2.0",
33
33
  "module": "lib/index.es.js"