@xarc/app-dev 11.0.1 → 11.0.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,7 +1,7 @@
1
1
  /**
2
2
  * Optional features to support
3
3
  */
4
- export declare type AddOnFeatures = {
4
+ export type AddOnFeatures = {
5
5
  /** Enable flow.js support? **Default: `false`** */
6
6
  flow?: boolean;
7
7
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * configurable options related to transpiler (babel)
3
3
  */
4
- export declare type BabelOptions = {
4
+ export type BabelOptions = {
5
5
  /**
6
6
  * enable support for typescript types using `@babel/preset-typescript`
7
7
  *
@@ -2,7 +2,7 @@
2
2
  * configurable options for karma
3
3
  * - Only applicable if `@xarc/opt-karma` feature is added and enabled.
4
4
  */
5
- export declare type KarmaConfigs = {
5
+ export type KarmaConfigs = {
6
6
  /**
7
7
  * Set the browser to use for karma.
8
8
  *
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * See docs at https://webpack.js.org/concepts/module-federation/
5
5
  */
6
- export declare type ModuleShareOptions = {
6
+ export type ModuleShareOptions = {
7
7
  requiredVersion?: string;
8
8
  import?: string;
9
9
  shareKey?: string;
@@ -16,7 +16,7 @@ export declare type ModuleShareOptions = {
16
16
  *
17
17
  * See docs at https://webpack.js.org/concepts/module-federation/
18
18
  */
19
- export declare type RemoteSubAppOptions = {
19
+ export type RemoteSubAppOptions = {
20
20
  /**
21
21
  * Name of the remote entry.
22
22
  *
@@ -3,7 +3,7 @@ import { RemoteSubAppOptions } from "./remote-federation";
3
3
  * Options for CDN server.
4
4
  *
5
5
  */
6
- export declare type WebpackCdnOptions = {
6
+ export type WebpackCdnOptions = {
7
7
  /**
8
8
  * Enable the use of a CDN server for serving assets.
9
9
  *
@@ -29,7 +29,7 @@ export declare type WebpackCdnOptions = {
29
29
  /**
30
30
  * User configurable options that are related to Webpack
31
31
  */
32
- export declare type WebpackOptions = {
32
+ export type WebpackOptions = {
33
33
  /**
34
34
  * Enable webpack dev mode. **Default: `false`**
35
35
  * - If not set, then will check env `WEBPACK_DEV`
@@ -4,7 +4,7 @@ import { BabelOptions } from "./babel-options";
4
4
  /**
5
5
  * User facing options for configuring features
6
6
  */
7
- export declare type XarcOptions = {
7
+ export type XarcOptions = {
8
8
  /**
9
9
  * hostname to listen on for serving your application
10
10
  *
@@ -110,7 +110,7 @@ export declare type XarcOptions = {
110
110
  /**
111
111
  * Internal options for configuring features base on user options
112
112
  */
113
- export declare type XarcInternalOptions = XarcOptions & {
113
+ export type XarcInternalOptions = XarcOptions & {
114
114
  options: any;
115
115
  webpack: any;
116
116
  babel: any;
@@ -4,7 +4,7 @@
4
4
  import http from "http";
5
5
  import Url from "url";
6
6
  import { Defer } from "xaa";
7
- export declare type AdminHttpOptions = {
7
+ export type AdminHttpOptions = {
8
8
  port?: number;
9
9
  getLogs?: (name: string) => any;
10
10
  };
@@ -17,11 +17,11 @@ export declare type AdminHttpOptions = {
17
17
  * When client request logs, it's expected to send a query param `entryId` that's
18
18
  * the stringified version in the format of "<tx>,<ts>"
19
19
  */
20
- declare type LogEntryId = {
20
+ type LogEntryId = {
21
21
  ts: number;
22
22
  tx?: number;
23
23
  };
24
- declare type EventClient = {
24
+ type EventClient = {
25
25
  lastEntryId: LogEntryId;
26
26
  res: http.ServerResponse;
27
27
  };
@@ -1,7 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  import readline from "readline";
3
3
  import { AdminHttp } from "./admin-http";
4
- declare type ProcessPorts = {
4
+ type ProcessPorts = {
5
5
  webpackDevPort?: number;
6
6
  appPort?: number;
7
7
  };
@@ -5,8 +5,8 @@ export interface DevHttpServerOptions {
5
5
  host: string;
6
6
  protocol?: string;
7
7
  }
8
- export declare type HttpRequestEvent = "connect" | "response" | "timeout" | "close" | "finish";
9
- export declare type HttpServerEvent = "open" | "close" | "listening" | "error";
8
+ export type HttpRequestEvent = "connect" | "response" | "timeout" | "close" | "finish";
9
+ export type HttpServerEvent = "open" | "close" | "listening" | "error";
10
10
  export interface DevHttpServer {
11
11
  start: () => void;
12
12
  stop: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xarc/app-dev",
3
- "version": "11.0.1",
3
+ "version": "11.0.2",
4
4
  "description": "Electrode X application development support",
5
5
  "main": "lib/index.js",
6
6
  "homepage": "http://www.electrode.io",
@@ -58,7 +58,7 @@
58
58
  "@xarc/dev-base": "^0.1.0",
59
59
  "@xarc/run": "^1.0.5",
60
60
  "@xarc/subapp": "^0.3.4",
61
- "@xarc/webpack": "^11.1.3",
61
+ "@xarc/webpack": "^11.1.4",
62
62
  "ansi-to-html": "^0.7.2",
63
63
  "babel-plugin-lodash": "^3.3.4",
64
64
  "babel-plugin-minify-dead-code-elimination": "^0.5.2",