@callstack/repack-dev-server 1.0.0-next.2 → 1.0.0-next.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.
- package/CHANGELOG.md +12 -0
- package/dist/createServer.d.ts +0 -0
- package/dist/createServer.js +5 -1
- package/dist/createServer.js.map +1 -1
- package/dist/img/favicon.ico +0 -0
- package/dist/index.d.ts +0 -0
- package/dist/index.js +0 -0
- package/dist/index.js.map +0 -0
- package/dist/plugins/api/apiPlugin.d.ts +0 -0
- package/dist/plugins/api/apiPlugin.js +0 -0
- package/dist/plugins/api/apiPlugin.js.map +0 -0
- package/dist/plugins/api/index.d.ts +0 -0
- package/dist/plugins/api/index.js +0 -0
- package/dist/plugins/api/index.js.map +0 -0
- package/dist/plugins/compiler/compilerPlugin.d.ts +0 -0
- package/dist/plugins/compiler/compilerPlugin.js +0 -0
- package/dist/plugins/compiler/compilerPlugin.js.map +0 -0
- package/dist/plugins/compiler/index.d.ts +0 -0
- package/dist/plugins/compiler/index.js +0 -0
- package/dist/plugins/compiler/index.js.map +0 -0
- package/dist/plugins/compiler/types.d.ts +0 -0
- package/dist/plugins/compiler/types.js +0 -0
- package/dist/plugins/compiler/types.js.map +0 -0
- package/dist/plugins/devtools/devtoolsPlugin.d.ts +0 -0
- package/dist/plugins/devtools/devtoolsPlugin.js +0 -0
- package/dist/plugins/devtools/devtoolsPlugin.js.map +0 -0
- package/dist/plugins/devtools/index.d.ts +0 -0
- package/dist/plugins/devtools/index.js +0 -0
- package/dist/plugins/devtools/index.js.map +0 -0
- package/dist/plugins/favicon/faviconPlugin.d.ts +3 -0
- package/dist/plugins/favicon/faviconPlugin.js +15 -0
- package/dist/plugins/favicon/faviconPlugin.js.map +1 -0
- package/dist/plugins/favicon/index.d.ts +1 -0
- package/dist/plugins/favicon/index.js +2 -0
- package/dist/plugins/favicon/index.js.map +1 -0
- package/dist/plugins/multipart/index.d.ts +0 -0
- package/dist/plugins/multipart/index.js +0 -0
- package/dist/plugins/multipart/index.js.map +0 -0
- package/dist/plugins/multipart/multipartPlugin.d.ts +0 -0
- package/dist/plugins/multipart/multipartPlugin.js +0 -0
- package/dist/plugins/multipart/multipartPlugin.js.map +0 -0
- package/dist/plugins/multipart/types.d.ts +0 -0
- package/dist/plugins/multipart/types.js +0 -0
- package/dist/plugins/multipart/types.js.map +0 -0
- package/dist/plugins/symbolicate/Symbolicator.d.ts +0 -0
- package/dist/plugins/symbolicate/Symbolicator.js +0 -0
- package/dist/plugins/symbolicate/Symbolicator.js.map +0 -0
- package/dist/plugins/symbolicate/index.d.ts +0 -0
- package/dist/plugins/symbolicate/index.js +0 -0
- package/dist/plugins/symbolicate/index.js.map +0 -0
- package/dist/plugins/symbolicate/sybmolicatePlugin.d.ts +0 -0
- package/dist/plugins/symbolicate/sybmolicatePlugin.js +0 -0
- package/dist/plugins/symbolicate/sybmolicatePlugin.js.map +0 -0
- package/dist/plugins/symbolicate/types.d.ts +0 -0
- package/dist/plugins/symbolicate/types.js +0 -0
- package/dist/plugins/symbolicate/types.js.map +0 -0
- package/dist/plugins/wss/WebSocketRouter.d.ts +0 -0
- package/dist/plugins/wss/WebSocketRouter.js +0 -0
- package/dist/plugins/wss/WebSocketRouter.js.map +0 -0
- package/dist/plugins/wss/WebSocketServer.d.ts +0 -0
- package/dist/plugins/wss/WebSocketServer.js +0 -0
- package/dist/plugins/wss/WebSocketServer.js.map +0 -0
- package/dist/plugins/wss/index.d.ts +0 -0
- package/dist/plugins/wss/index.js +0 -0
- package/dist/plugins/wss/index.js.map +0 -0
- package/dist/plugins/wss/servers/HermesInspectorProxy.d.ts +0 -0
- package/dist/plugins/wss/servers/HermesInspectorProxy.js +0 -0
- package/dist/plugins/wss/servers/HermesInspectorProxy.js.map +0 -0
- package/dist/plugins/wss/servers/WebSocketApiServer.d.ts +0 -0
- package/dist/plugins/wss/servers/WebSocketApiServer.js +0 -0
- package/dist/plugins/wss/servers/WebSocketApiServer.js.map +0 -0
- package/dist/plugins/wss/servers/WebSocketDebuggerServer.d.ts +0 -0
- package/dist/plugins/wss/servers/WebSocketDebuggerServer.js +0 -0
- package/dist/plugins/wss/servers/WebSocketDebuggerServer.js.map +0 -0
- package/dist/plugins/wss/servers/WebSocketDevClientServer.d.ts +0 -0
- package/dist/plugins/wss/servers/WebSocketDevClientServer.js +0 -0
- package/dist/plugins/wss/servers/WebSocketDevClientServer.js.map +0 -0
- package/dist/plugins/wss/servers/WebSocketEventsServer.d.ts +0 -0
- package/dist/plugins/wss/servers/WebSocketEventsServer.js +0 -0
- package/dist/plugins/wss/servers/WebSocketEventsServer.js.map +0 -0
- package/dist/plugins/wss/servers/WebSocketHMRServer.d.ts +0 -0
- package/dist/plugins/wss/servers/WebSocketHMRServer.js +0 -0
- package/dist/plugins/wss/servers/WebSocketHMRServer.js.map +0 -0
- package/dist/plugins/wss/servers/WebSocketMessageServer.d.ts +0 -0
- package/dist/plugins/wss/servers/WebSocketMessageServer.js +0 -0
- package/dist/plugins/wss/servers/WebSocketMessageServer.js.map +0 -0
- package/dist/plugins/wss/types.d.ts +0 -0
- package/dist/plugins/wss/types.js +0 -0
- package/dist/plugins/wss/types.js.map +0 -0
- package/dist/plugins/wss/wssPlugin.d.ts +0 -0
- package/dist/plugins/wss/wssPlugin.js +0 -0
- package/dist/plugins/wss/wssPlugin.js.map +0 -0
- package/dist/types.d.ts +0 -0
- package/dist/types.js +0 -0
- package/dist/types.js.map +0 -0
- package/package.json +5 -3
- package/docs/README.md +0 -28
- package/docs/enums/Internal.EventTypes.md +0 -41
- package/docs/functions/createServer.md +0 -21
- package/docs/interfaces/CodeFrame.md +0 -48
- package/docs/interfaces/CompilerDelegate.md +0 -83
- package/docs/interfaces/HmrDelegate.md +0 -51
- package/docs/interfaces/InputStackFrame.md +0 -76
- package/docs/interfaces/ProgressData.md +0 -34
- package/docs/interfaces/ReactNativeStackFrame.md +0 -58
- package/docs/interfaces/Server.Api.Asset.md +0 -36
- package/docs/interfaces/Server.Api.CompilationStats.md +0 -9
- package/docs/interfaces/Server.Api.Delegate.md +0 -75
- package/docs/interfaces/Server.Config.md +0 -49
- package/docs/interfaces/Server.Delegate.md +0 -88
- package/docs/interfaces/Server.DelegateContext.md +0 -134
- package/docs/interfaces/Server.LoggerDelegate.md +0 -33
- package/docs/interfaces/Server.MessagesDelegate.md +0 -44
- package/docs/interfaces/Server.Options.md +0 -70
- package/docs/interfaces/StackFrame.md +0 -85
- package/docs/interfaces/SymbolicatorDelegate.md +0 -77
- package/docs/interfaces/SymbolicatorResults.md +0 -30
- package/docs/modules/Internal.md +0 -11
- package/docs/modules/Server.Api.md +0 -11
- package/docs/modules/Server.md +0 -16
- package/docs/types/SendProgress.md +0 -26
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
# Interface: Options
|
|
2
|
-
|
|
3
|
-
[Server](../modules/Server.md).Options
|
|
4
|
-
|
|
5
|
-
Development server options.
|
|
6
|
-
|
|
7
|
-
## Table of contents
|
|
8
|
-
|
|
9
|
-
### Properties
|
|
10
|
-
|
|
11
|
-
- [host](Server.Options.md#host)
|
|
12
|
-
- [https](Server.Options.md#https)
|
|
13
|
-
- [port](Server.Options.md#port)
|
|
14
|
-
- [rootDir](Server.Options.md#rootdir)
|
|
15
|
-
|
|
16
|
-
## Properties
|
|
17
|
-
|
|
18
|
-
### host
|
|
19
|
-
|
|
20
|
-
• `Optional` **host**: `string`
|
|
21
|
-
|
|
22
|
-
Hostname or IP address under which to run the development server.
|
|
23
|
-
When left unspecified, it will listen on all available network interfaces, similarly to listening on '0.0.0.0'.
|
|
24
|
-
|
|
25
|
-
#### Defined in
|
|
26
|
-
|
|
27
|
-
[types.ts:39](https://github.com/callstack/repack/blob/a067171/packages/dev-server/src/types.ts#L39)
|
|
28
|
-
|
|
29
|
-
___
|
|
30
|
-
|
|
31
|
-
### https
|
|
32
|
-
|
|
33
|
-
• `Optional` **https**: `Object`
|
|
34
|
-
|
|
35
|
-
Options for running the server as HTTPS. If `undefined`, the server will run as HTTP.
|
|
36
|
-
|
|
37
|
-
#### Type declaration
|
|
38
|
-
|
|
39
|
-
| Name | Type | Description |
|
|
40
|
-
| :------ | :------ | :------ |
|
|
41
|
-
| `cert?` | `string` | Path to certificate when running server as HTTPS. |
|
|
42
|
-
| `key?` | `string` | Path to certificate key when running server as HTTPS. |
|
|
43
|
-
|
|
44
|
-
#### Defined in
|
|
45
|
-
|
|
46
|
-
[types.ts:42](https://github.com/callstack/repack/blob/a067171/packages/dev-server/src/types.ts#L42)
|
|
47
|
-
|
|
48
|
-
___
|
|
49
|
-
|
|
50
|
-
### port
|
|
51
|
-
|
|
52
|
-
• **port**: `number`
|
|
53
|
-
|
|
54
|
-
Port under which to run the development server.
|
|
55
|
-
|
|
56
|
-
#### Defined in
|
|
57
|
-
|
|
58
|
-
[types.ts:33](https://github.com/callstack/repack/blob/a067171/packages/dev-server/src/types.ts#L33)
|
|
59
|
-
|
|
60
|
-
___
|
|
61
|
-
|
|
62
|
-
### rootDir
|
|
63
|
-
|
|
64
|
-
• **rootDir**: `string`
|
|
65
|
-
|
|
66
|
-
Root directory of the project.
|
|
67
|
-
|
|
68
|
-
#### Defined in
|
|
69
|
-
|
|
70
|
-
[types.ts:30](https://github.com/callstack/repack/blob/a067171/packages/dev-server/src/types.ts#L30)
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
# Interface: StackFrame
|
|
2
|
-
|
|
3
|
-
Final symbolicated stack frame.
|
|
4
|
-
|
|
5
|
-
## Hierarchy
|
|
6
|
-
|
|
7
|
-
- [`InputStackFrame`](InputStackFrame.md)
|
|
8
|
-
|
|
9
|
-
↳ **`StackFrame`**
|
|
10
|
-
|
|
11
|
-
## Table of contents
|
|
12
|
-
|
|
13
|
-
### Properties
|
|
14
|
-
|
|
15
|
-
- [collapse](StackFrame.md#collapse)
|
|
16
|
-
- [column](StackFrame.md#column)
|
|
17
|
-
- [file](StackFrame.md#file)
|
|
18
|
-
- [lineNumber](StackFrame.md#linenumber)
|
|
19
|
-
- [methodName](StackFrame.md#methodname)
|
|
20
|
-
|
|
21
|
-
## Properties
|
|
22
|
-
|
|
23
|
-
### collapse
|
|
24
|
-
|
|
25
|
-
• **collapse**: `boolean`
|
|
26
|
-
|
|
27
|
-
#### Defined in
|
|
28
|
-
|
|
29
|
-
[plugins/symbolicate/types.ts:22](https://github.com/callstack/repack/blob/a067171/packages/dev-server/src/plugins/symbolicate/types.ts#L22)
|
|
30
|
-
|
|
31
|
-
___
|
|
32
|
-
|
|
33
|
-
### column
|
|
34
|
-
|
|
35
|
-
• **column**: ``null`` \| `number`
|
|
36
|
-
|
|
37
|
-
#### Inherited from
|
|
38
|
-
|
|
39
|
-
[InputStackFrame](InputStackFrame.md).[column](InputStackFrame.md#column)
|
|
40
|
-
|
|
41
|
-
#### Defined in
|
|
42
|
-
|
|
43
|
-
[plugins/symbolicate/types.ts:6](https://github.com/callstack/repack/blob/a067171/packages/dev-server/src/plugins/symbolicate/types.ts#L6)
|
|
44
|
-
|
|
45
|
-
___
|
|
46
|
-
|
|
47
|
-
### file
|
|
48
|
-
|
|
49
|
-
• **file**: `string`
|
|
50
|
-
|
|
51
|
-
#### Inherited from
|
|
52
|
-
|
|
53
|
-
[InputStackFrame](InputStackFrame.md).[file](InputStackFrame.md#file)
|
|
54
|
-
|
|
55
|
-
#### Defined in
|
|
56
|
-
|
|
57
|
-
[plugins/symbolicate/types.ts:15](https://github.com/callstack/repack/blob/a067171/packages/dev-server/src/plugins/symbolicate/types.ts#L15)
|
|
58
|
-
|
|
59
|
-
___
|
|
60
|
-
|
|
61
|
-
### lineNumber
|
|
62
|
-
|
|
63
|
-
• **lineNumber**: ``null`` \| `number`
|
|
64
|
-
|
|
65
|
-
#### Inherited from
|
|
66
|
-
|
|
67
|
-
[InputStackFrame](InputStackFrame.md).[lineNumber](InputStackFrame.md#linenumber)
|
|
68
|
-
|
|
69
|
-
#### Defined in
|
|
70
|
-
|
|
71
|
-
[plugins/symbolicate/types.ts:5](https://github.com/callstack/repack/blob/a067171/packages/dev-server/src/plugins/symbolicate/types.ts#L5)
|
|
72
|
-
|
|
73
|
-
___
|
|
74
|
-
|
|
75
|
-
### methodName
|
|
76
|
-
|
|
77
|
-
• **methodName**: `string`
|
|
78
|
-
|
|
79
|
-
#### Inherited from
|
|
80
|
-
|
|
81
|
-
[InputStackFrame](InputStackFrame.md).[methodName](InputStackFrame.md#methodname)
|
|
82
|
-
|
|
83
|
-
#### Defined in
|
|
84
|
-
|
|
85
|
-
[plugins/symbolicate/types.ts:8](https://github.com/callstack/repack/blob/a067171/packages/dev-server/src/plugins/symbolicate/types.ts#L8)
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
# Interface: SymbolicatorDelegate
|
|
2
|
-
|
|
3
|
-
Delegate with implementation for symbolication functions.
|
|
4
|
-
|
|
5
|
-
## Table of contents
|
|
6
|
-
|
|
7
|
-
### Methods
|
|
8
|
-
|
|
9
|
-
- [getSource](SymbolicatorDelegate.md#getsource)
|
|
10
|
-
- [getSourceMap](SymbolicatorDelegate.md#getsourcemap)
|
|
11
|
-
- [shouldIncludeFrame](SymbolicatorDelegate.md#shouldincludeframe)
|
|
12
|
-
|
|
13
|
-
## Methods
|
|
14
|
-
|
|
15
|
-
### getSource
|
|
16
|
-
|
|
17
|
-
▸ **getSource**(`fileUrl`): `Promise`<`string` \| `Buffer`\>
|
|
18
|
-
|
|
19
|
-
Get source code of file in the URL.
|
|
20
|
-
|
|
21
|
-
#### Parameters
|
|
22
|
-
|
|
23
|
-
| Name | Type | Description |
|
|
24
|
-
| :------ | :------ | :------ |
|
|
25
|
-
| `fileUrl` | `string` | A full URL pointing to a file. |
|
|
26
|
-
|
|
27
|
-
#### Returns
|
|
28
|
-
|
|
29
|
-
`Promise`<`string` \| `Buffer`\>
|
|
30
|
-
|
|
31
|
-
#### Defined in
|
|
32
|
-
|
|
33
|
-
[plugins/symbolicate/types.ts:54](https://github.com/callstack/repack/blob/a067171/packages/dev-server/src/plugins/symbolicate/types.ts#L54)
|
|
34
|
-
|
|
35
|
-
___
|
|
36
|
-
|
|
37
|
-
### getSourceMap
|
|
38
|
-
|
|
39
|
-
▸ **getSourceMap**(`fileUrl`): `Promise`<`string` \| `Buffer`\>
|
|
40
|
-
|
|
41
|
-
Get source map for the file in the URL.
|
|
42
|
-
|
|
43
|
-
#### Parameters
|
|
44
|
-
|
|
45
|
-
| Name | Type | Description |
|
|
46
|
-
| :------ | :------ | :------ |
|
|
47
|
-
| `fileUrl` | `string` | A full (usually `http:`) URL pointing to a compiled file. The URL points to a file for which to return source map, not to the source map file itself, e.g: `http://localhost:8081/index.bundle?platform=ios`. |
|
|
48
|
-
|
|
49
|
-
#### Returns
|
|
50
|
-
|
|
51
|
-
`Promise`<`string` \| `Buffer`\>
|
|
52
|
-
|
|
53
|
-
#### Defined in
|
|
54
|
-
|
|
55
|
-
[plugins/symbolicate/types.ts:63](https://github.com/callstack/repack/blob/a067171/packages/dev-server/src/plugins/symbolicate/types.ts#L63)
|
|
56
|
-
|
|
57
|
-
___
|
|
58
|
-
|
|
59
|
-
### shouldIncludeFrame
|
|
60
|
-
|
|
61
|
-
▸ **shouldIncludeFrame**(`frame`): `boolean`
|
|
62
|
-
|
|
63
|
-
Check if given stack frame should be included in the new symbolicated stack.
|
|
64
|
-
|
|
65
|
-
#### Parameters
|
|
66
|
-
|
|
67
|
-
| Name | Type | Description |
|
|
68
|
-
| :------ | :------ | :------ |
|
|
69
|
-
| `frame` | [`StackFrame`](StackFrame.md) | Stack frame to check. |
|
|
70
|
-
|
|
71
|
-
#### Returns
|
|
72
|
-
|
|
73
|
-
`boolean`
|
|
74
|
-
|
|
75
|
-
#### Defined in
|
|
76
|
-
|
|
77
|
-
[plugins/symbolicate/types.ts:70](https://github.com/callstack/repack/blob/a067171/packages/dev-server/src/plugins/symbolicate/types.ts#L70)
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# Interface: SymbolicatorResults
|
|
2
|
-
|
|
3
|
-
Represents results of running {@link process} method on {@link Symbolicator} instance.
|
|
4
|
-
|
|
5
|
-
## Table of contents
|
|
6
|
-
|
|
7
|
-
### Properties
|
|
8
|
-
|
|
9
|
-
- [codeFrame](SymbolicatorResults.md#codeframe)
|
|
10
|
-
- [stack](SymbolicatorResults.md#stack)
|
|
11
|
-
|
|
12
|
-
## Properties
|
|
13
|
-
|
|
14
|
-
### codeFrame
|
|
15
|
-
|
|
16
|
-
• **codeFrame**: ``null`` \| [`CodeFrame`](CodeFrame.md)
|
|
17
|
-
|
|
18
|
-
#### Defined in
|
|
19
|
-
|
|
20
|
-
[plugins/symbolicate/types.ts:41](https://github.com/callstack/repack/blob/a067171/packages/dev-server/src/plugins/symbolicate/types.ts#L41)
|
|
21
|
-
|
|
22
|
-
___
|
|
23
|
-
|
|
24
|
-
### stack
|
|
25
|
-
|
|
26
|
-
• **stack**: [`StackFrame`](StackFrame.md)[]
|
|
27
|
-
|
|
28
|
-
#### Defined in
|
|
29
|
-
|
|
30
|
-
[plugins/symbolicate/types.ts:42](https://github.com/callstack/repack/blob/a067171/packages/dev-server/src/plugins/symbolicate/types.ts#L42)
|
package/docs/modules/Internal.md
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
# Namespace: Api
|
|
2
|
-
|
|
3
|
-
[Server](Server.md).Api
|
|
4
|
-
|
|
5
|
-
## Table of contents
|
|
6
|
-
|
|
7
|
-
### Interfaces
|
|
8
|
-
|
|
9
|
-
- [Asset](../interfaces/Server.Api.Asset.md)
|
|
10
|
-
- [CompilationStats](../interfaces/Server.Api.CompilationStats.md)
|
|
11
|
-
- [Delegate](../interfaces/Server.Api.Delegate.md)
|
package/docs/modules/Server.md
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# Namespace: Server
|
|
2
|
-
|
|
3
|
-
## Table of contents
|
|
4
|
-
|
|
5
|
-
### Namespaces
|
|
6
|
-
|
|
7
|
-
- [Api](Server.Api.md)
|
|
8
|
-
|
|
9
|
-
### Interfaces
|
|
10
|
-
|
|
11
|
-
- [Config](../interfaces/Server.Config.md)
|
|
12
|
-
- [Delegate](../interfaces/Server.Delegate.md)
|
|
13
|
-
- [DelegateContext](../interfaces/Server.DelegateContext.md)
|
|
14
|
-
- [LoggerDelegate](../interfaces/Server.LoggerDelegate.md)
|
|
15
|
-
- [MessagesDelegate](../interfaces/Server.MessagesDelegate.md)
|
|
16
|
-
- [Options](../interfaces/Server.Options.md)
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# Type alias: SendProgress
|
|
2
|
-
|
|
3
|
-
Ƭ **SendProgress**: (`data`: [`ProgressData`](../interfaces/ProgressData.md)) => `void`
|
|
4
|
-
|
|
5
|
-
#### Type declaration
|
|
6
|
-
|
|
7
|
-
▸ (`data`): `void`
|
|
8
|
-
|
|
9
|
-
Type representing a function to send the progress.
|
|
10
|
-
|
|
11
|
-
Used by [CompilerDelegate](../interfaces/CompilerDelegate.md) in `getAsset` function to send the compilation
|
|
12
|
-
progress to the client who requested the asset.
|
|
13
|
-
|
|
14
|
-
##### Parameters
|
|
15
|
-
|
|
16
|
-
| Name | Type |
|
|
17
|
-
| :------ | :------ |
|
|
18
|
-
| `data` | [`ProgressData`](../interfaces/ProgressData.md) |
|
|
19
|
-
|
|
20
|
-
##### Returns
|
|
21
|
-
|
|
22
|
-
`void`
|
|
23
|
-
|
|
24
|
-
#### Defined in
|
|
25
|
-
|
|
26
|
-
[types.ts:190](https://github.com/callstack/repack/blob/a067171/packages/dev-server/src/types.ts#L190)
|