@callstack/repack-dev-server 1.0.2 → 4.0.0-rc.0
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 +16 -0
- package/LICENSE +21 -0
- package/dist/createServer.d.ts +1 -1
- package/dist/createServer.js +16 -17
- package/dist/createServer.js.map +1 -1
- package/dist/plugins/api/apiPlugin.js +3 -9
- package/dist/plugins/api/apiPlugin.js.map +1 -1
- package/dist/plugins/api/index.js.map +1 -1
- package/dist/plugins/compiler/compilerPlugin.d.ts +4 -3
- package/dist/plugins/compiler/compilerPlugin.js +8 -18
- package/dist/plugins/compiler/compilerPlugin.js.map +1 -1
- package/dist/plugins/compiler/index.js.map +1 -1
- package/dist/plugins/devtools/devtoolsPlugin.d.ts +4 -3
- package/dist/plugins/devtools/devtoolsPlugin.js +6 -8
- package/dist/plugins/devtools/devtoolsPlugin.js.map +1 -1
- package/dist/plugins/devtools/index.js.map +1 -1
- package/dist/plugins/favicon/faviconPlugin.d.ts +3 -2
- package/dist/plugins/favicon/faviconPlugin.js +2 -3
- package/dist/plugins/favicon/faviconPlugin.js.map +1 -1
- package/dist/plugins/favicon/index.js.map +1 -1
- package/dist/plugins/multipart/index.js.map +1 -1
- package/dist/plugins/multipart/multipartPlugin.d.ts +3 -2
- package/dist/plugins/multipart/multipartPlugin.js +1 -14
- package/dist/plugins/multipart/multipartPlugin.js.map +1 -1
- package/dist/plugins/symbolicate/Symbolicator.js +13 -32
- package/dist/plugins/symbolicate/Symbolicator.js.map +1 -1
- package/dist/plugins/symbolicate/index.js.map +1 -1
- package/dist/plugins/symbolicate/sybmolicatePlugin.d.ts +4 -3
- package/dist/plugins/symbolicate/sybmolicatePlugin.js +2 -4
- package/dist/plugins/symbolicate/sybmolicatePlugin.js.map +1 -1
- package/dist/plugins/wss/WebSocketRouter.js +2 -6
- package/dist/plugins/wss/WebSocketRouter.js.map +1 -1
- package/dist/plugins/wss/WebSocketServer.js +2 -5
- package/dist/plugins/wss/WebSocketServer.js.map +1 -1
- package/dist/plugins/wss/index.js.map +1 -1
- package/dist/plugins/wss/servers/HermesInspectorProxy.js +1 -19
- package/dist/plugins/wss/servers/HermesInspectorProxy.js.map +1 -1
- package/dist/plugins/wss/servers/WebSocketApiServer.js +5 -11
- package/dist/plugins/wss/servers/WebSocketApiServer.js.map +1 -1
- package/dist/plugins/wss/servers/WebSocketDebuggerServer.js +6 -20
- package/dist/plugins/wss/servers/WebSocketDebuggerServer.js.map +1 -1
- package/dist/plugins/wss/servers/WebSocketDevClientServer.js +3 -12
- package/dist/plugins/wss/servers/WebSocketDevClientServer.js.map +1 -1
- package/dist/plugins/wss/servers/WebSocketEventsServer.js +18 -25
- package/dist/plugins/wss/servers/WebSocketEventsServer.js.map +1 -1
- package/dist/plugins/wss/servers/WebSocketHMRServer.js +3 -13
- package/dist/plugins/wss/servers/WebSocketHMRServer.js.map +1 -1
- package/dist/plugins/wss/servers/WebSocketMessageServer.d.ts +1 -1
- package/dist/plugins/wss/servers/WebSocketMessageServer.js +21 -51
- package/dist/plugins/wss/servers/WebSocketMessageServer.js.map +1 -1
- package/dist/plugins/wss/wssPlugin.d.ts +4 -3
- package/dist/plugins/wss/wssPlugin.js +0 -2
- package/dist/plugins/wss/wssPlugin.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.js +9 -34
- package/dist/types.js.map +1 -1
- package/package.json +26 -29
- 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
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@callstack/repack-dev-server",
|
|
3
3
|
"description": "A bundler-agnostic development server for React Native applications as part of @callstack/repack.",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "4.0.0-rc.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/index.js",
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
@@ -27,31 +27,20 @@
|
|
|
27
27
|
],
|
|
28
28
|
"author": "zamotany <zamotany.oss@gmail.com>",
|
|
29
29
|
"engines": {
|
|
30
|
-
"node": ">=
|
|
30
|
+
"node": ">=18"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"registry": "https://registry.npmjs.org/",
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
|
-
"scripts": {
|
|
37
|
-
"build:js": "babel src --out-dir dist --extensions \".js,.cjs,.ts\" --source-maps --ignore \"**/__tests__/**\" --delete-dir-on-start --copy-files",
|
|
38
|
-
"build:js:watch": "yarn build:js --watch",
|
|
39
|
-
"build:ts": "tsc --emitDeclarationOnly",
|
|
40
|
-
"build:ts:watch": "yarn build:ts --watch --preserveWatchOutput",
|
|
41
|
-
"build": "yarn build:js && yarn build:ts",
|
|
42
|
-
"docs": "typedoc",
|
|
43
|
-
"typecheck": "tsc --noEmit",
|
|
44
|
-
"lint": "eslint --ext \".js,.ts\" src",
|
|
45
|
-
"archive": "yarn build && yarn pack --out repack-dev-server-%v-$(git log -1 --format=\"%h\").tgz"
|
|
46
|
-
},
|
|
47
36
|
"dependencies": {
|
|
48
37
|
"@babel/code-frame": "^7.16.7",
|
|
49
38
|
"@callstack/repack-debugger-app": "^1.0.2",
|
|
50
|
-
"@fastify/sensible": "^
|
|
51
|
-
"@fastify/static": "^
|
|
52
|
-
"fastify": "^
|
|
53
|
-
"fastify-favicon": "^3.
|
|
54
|
-
"fastify-plugin": "^
|
|
39
|
+
"@fastify/sensible": "^5.5.0",
|
|
40
|
+
"@fastify/static": "^6.12.0",
|
|
41
|
+
"fastify": "^4.24.3",
|
|
42
|
+
"fastify-favicon": "^4.3.0",
|
|
43
|
+
"fastify-plugin": "^4.5.1",
|
|
55
44
|
"metro-inspector-proxy": "^0.71.0",
|
|
56
45
|
"open": "^8.4.0",
|
|
57
46
|
"open-editor": "^4.0.0",
|
|
@@ -60,18 +49,26 @@
|
|
|
60
49
|
"ws": "^8.7.0"
|
|
61
50
|
},
|
|
62
51
|
"devDependencies": {
|
|
63
|
-
"@babel/cli": "^7.
|
|
64
|
-
"@babel/core": "^7.
|
|
65
|
-
"@babel/preset-env": "^7.18.2",
|
|
66
|
-
"@babel/preset-typescript": "^7.17.12",
|
|
67
|
-
"@callstack/eslint-config": "^12.0.2",
|
|
52
|
+
"@babel/cli": "^7.23.9",
|
|
53
|
+
"@babel/core": "^7.23.9",
|
|
68
54
|
"@types/babel__code-frame": "^7.0.3",
|
|
69
|
-
"@types/node": "
|
|
55
|
+
"@types/node": "18",
|
|
70
56
|
"@types/ws": "^8.5.3",
|
|
71
57
|
"babel-plugin-add-import-extension": "^1.6.0",
|
|
72
|
-
"eslint": "^8.
|
|
73
|
-
"typedoc": "^0.
|
|
74
|
-
"typedoc-plugin-markdown": "^3.
|
|
75
|
-
"typescript": "^
|
|
58
|
+
"eslint": "^8.53.0",
|
|
59
|
+
"typedoc": "^0.25.3",
|
|
60
|
+
"typedoc-plugin-markdown": "^3.17.1",
|
|
61
|
+
"typescript": "^5.2.2"
|
|
62
|
+
},
|
|
63
|
+
"scripts": {
|
|
64
|
+
"build:js": "babel src --out-dir dist --extensions \".js,.cjs,.ts\" --source-maps --ignore \"**/__tests__/**\" --delete-dir-on-start --copy-files",
|
|
65
|
+
"build:js:watch": "pnpm build:js --watch",
|
|
66
|
+
"build:ts": "tsc --emitDeclarationOnly",
|
|
67
|
+
"build:ts:watch": "pnpm build:ts --watch --preserveWatchOutput",
|
|
68
|
+
"build": "pnpm build:js && pnpm build:ts",
|
|
69
|
+
"docs": "typedoc",
|
|
70
|
+
"typecheck": "tsc --noEmit",
|
|
71
|
+
"lint": "eslint --ext \".js,.ts\" src",
|
|
72
|
+
"archive": "pnpm build && pnpm pack"
|
|
76
73
|
}
|
|
77
|
-
}
|
|
74
|
+
}
|
package/docs/README.md
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# @callstack/repack-dev-server
|
|
2
|
-
|
|
3
|
-
## Table of contents
|
|
4
|
-
|
|
5
|
-
### Namespaces
|
|
6
|
-
|
|
7
|
-
- [Internal](modules/Internal.md)
|
|
8
|
-
- [Server](modules/Server.md)
|
|
9
|
-
|
|
10
|
-
### Interfaces
|
|
11
|
-
|
|
12
|
-
- [CodeFrame](interfaces/CodeFrame.md)
|
|
13
|
-
- [CompilerDelegate](interfaces/CompilerDelegate.md)
|
|
14
|
-
- [HmrDelegate](interfaces/HmrDelegate.md)
|
|
15
|
-
- [InputStackFrame](interfaces/InputStackFrame.md)
|
|
16
|
-
- [ProgressData](interfaces/ProgressData.md)
|
|
17
|
-
- [ReactNativeStackFrame](interfaces/ReactNativeStackFrame.md)
|
|
18
|
-
- [StackFrame](interfaces/StackFrame.md)
|
|
19
|
-
- [SymbolicatorDelegate](interfaces/SymbolicatorDelegate.md)
|
|
20
|
-
- [SymbolicatorResults](interfaces/SymbolicatorResults.md)
|
|
21
|
-
|
|
22
|
-
### Type Aliases
|
|
23
|
-
|
|
24
|
-
- [SendProgress](types/SendProgress.md)
|
|
25
|
-
|
|
26
|
-
### Functions
|
|
27
|
-
|
|
28
|
-
- [createServer](functions/createServer.md)
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
# Enumeration: EventTypes
|
|
2
|
-
|
|
3
|
-
[Internal](../modules/Internal.md).EventTypes
|
|
4
|
-
|
|
5
|
-
## Table of contents
|
|
6
|
-
|
|
7
|
-
### Enumeration Members
|
|
8
|
-
|
|
9
|
-
- [BuildEnd](Internal.EventTypes.md#buildend)
|
|
10
|
-
- [BuildStart](Internal.EventTypes.md#buildstart)
|
|
11
|
-
- [HmrEvent](Internal.EventTypes.md#hmrevent)
|
|
12
|
-
|
|
13
|
-
## Enumeration Members
|
|
14
|
-
|
|
15
|
-
### BuildEnd
|
|
16
|
-
|
|
17
|
-
• **BuildEnd**
|
|
18
|
-
|
|
19
|
-
#### Defined in
|
|
20
|
-
|
|
21
|
-
[types.ts:200](https://github.com/callstack/repack/blob/81f067f/packages/dev-server/src/types.ts#L200)
|
|
22
|
-
|
|
23
|
-
___
|
|
24
|
-
|
|
25
|
-
### BuildStart
|
|
26
|
-
|
|
27
|
-
• **BuildStart**
|
|
28
|
-
|
|
29
|
-
#### Defined in
|
|
30
|
-
|
|
31
|
-
[types.ts:199](https://github.com/callstack/repack/blob/81f067f/packages/dev-server/src/types.ts#L199)
|
|
32
|
-
|
|
33
|
-
___
|
|
34
|
-
|
|
35
|
-
### HmrEvent
|
|
36
|
-
|
|
37
|
-
• **HmrEvent**
|
|
38
|
-
|
|
39
|
-
#### Defined in
|
|
40
|
-
|
|
41
|
-
[types.ts:201](https://github.com/callstack/repack/blob/81f067f/packages/dev-server/src/types.ts#L201)
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# Function: createServer
|
|
2
|
-
|
|
3
|
-
▸ **createServer**(`config`): `Promise`<{ `instance`: `FastifyInstance`<`Server`, `IncomingMessage`, `ServerResponse`, `FastifyLoggerInstance`\> & `PromiseLike`<`FastifyInstance`<`Server`, `IncomingMessage`, `ServerResponse`, `FastifyLoggerInstance`\>\> ; `start`: () => `Promise`<`void`\> ; `stop`: () => `Promise`<`void`\> }\>
|
|
4
|
-
|
|
5
|
-
Create instance of development server, powered by Fastify.
|
|
6
|
-
|
|
7
|
-
#### Parameters
|
|
8
|
-
|
|
9
|
-
| Name | Type | Description |
|
|
10
|
-
| :------ | :------ | :------ |
|
|
11
|
-
| `config` | [`Config`](../interfaces/Server.Config.md) | Server configuration. |
|
|
12
|
-
|
|
13
|
-
#### Returns
|
|
14
|
-
|
|
15
|
-
`Promise`<{ `instance`: `FastifyInstance`<`Server`, `IncomingMessage`, `ServerResponse`, `FastifyLoggerInstance`\> & `PromiseLike`<`FastifyInstance`<`Server`, `IncomingMessage`, `ServerResponse`, `FastifyLoggerInstance`\>\> ; `start`: () => `Promise`<`void`\> ; `stop`: () => `Promise`<`void`\> }\>
|
|
16
|
-
|
|
17
|
-
`start` and `stop` functions as well as an underlying Fastify `instance`.
|
|
18
|
-
|
|
19
|
-
#### Defined in
|
|
20
|
-
|
|
21
|
-
[createServer.ts:21](https://github.com/callstack/repack/blob/81f067f/packages/dev-server/src/createServer.ts#L21)
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# Interface: CodeFrame
|
|
2
|
-
|
|
3
|
-
Represents [@babel/core-frame](https://babeljs.io/docs/en/babel-code-frame).
|
|
4
|
-
|
|
5
|
-
## Table of contents
|
|
6
|
-
|
|
7
|
-
### Properties
|
|
8
|
-
|
|
9
|
-
- [content](CodeFrame.md#content)
|
|
10
|
-
- [fileName](CodeFrame.md#filename)
|
|
11
|
-
- [location](CodeFrame.md#location)
|
|
12
|
-
|
|
13
|
-
## Properties
|
|
14
|
-
|
|
15
|
-
### content
|
|
16
|
-
|
|
17
|
-
• **content**: `string`
|
|
18
|
-
|
|
19
|
-
#### Defined in
|
|
20
|
-
|
|
21
|
-
[plugins/symbolicate/types.ts:29](https://github.com/callstack/repack/blob/81f067f/packages/dev-server/src/plugins/symbolicate/types.ts#L29)
|
|
22
|
-
|
|
23
|
-
___
|
|
24
|
-
|
|
25
|
-
### fileName
|
|
26
|
-
|
|
27
|
-
• **fileName**: `string`
|
|
28
|
-
|
|
29
|
-
#### Defined in
|
|
30
|
-
|
|
31
|
-
[plugins/symbolicate/types.ts:34](https://github.com/callstack/repack/blob/81f067f/packages/dev-server/src/plugins/symbolicate/types.ts#L34)
|
|
32
|
-
|
|
33
|
-
___
|
|
34
|
-
|
|
35
|
-
### location
|
|
36
|
-
|
|
37
|
-
• **location**: `Object`
|
|
38
|
-
|
|
39
|
-
#### Type declaration
|
|
40
|
-
|
|
41
|
-
| Name | Type |
|
|
42
|
-
| :------ | :------ |
|
|
43
|
-
| `column` | `number` |
|
|
44
|
-
| `row` | `number` |
|
|
45
|
-
|
|
46
|
-
#### Defined in
|
|
47
|
-
|
|
48
|
-
[plugins/symbolicate/types.ts:30](https://github.com/callstack/repack/blob/81f067f/packages/dev-server/src/plugins/symbolicate/types.ts#L30)
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
# Interface: CompilerDelegate
|
|
2
|
-
|
|
3
|
-
Delegate with implementation for compiler-specific functions.
|
|
4
|
-
|
|
5
|
-
## Table of contents
|
|
6
|
-
|
|
7
|
-
### Methods
|
|
8
|
-
|
|
9
|
-
- [getAsset](CompilerDelegate.md#getasset)
|
|
10
|
-
- [getMimeType](CompilerDelegate.md#getmimetype)
|
|
11
|
-
- [inferPlatform](CompilerDelegate.md#inferplatform)
|
|
12
|
-
|
|
13
|
-
## Methods
|
|
14
|
-
|
|
15
|
-
### getAsset
|
|
16
|
-
|
|
17
|
-
▸ **getAsset**(`filename`, `platform`, `sendProgress?`): `Promise`<`string` \| `Buffer`\>
|
|
18
|
-
|
|
19
|
-
Get compiled asset content.
|
|
20
|
-
|
|
21
|
-
If the compilation is in progress, it should wait until compilation finishes and then return the asset.
|
|
22
|
-
|
|
23
|
-
#### Parameters
|
|
24
|
-
|
|
25
|
-
| Name | Type | Description |
|
|
26
|
-
| :------ | :------ | :------ |
|
|
27
|
-
| `filename` | `string` | Filename of the asset to get. |
|
|
28
|
-
| `platform` | `string` | Platform of the asset to get. |
|
|
29
|
-
| `sendProgress?` | [`SendProgress`](../types/SendProgress.md) | Function to notify the client who requested the asset about compilation progress. |
|
|
30
|
-
|
|
31
|
-
#### Returns
|
|
32
|
-
|
|
33
|
-
`Promise`<`string` \| `Buffer`\>
|
|
34
|
-
|
|
35
|
-
#### Defined in
|
|
36
|
-
|
|
37
|
-
[plugins/compiler/types.ts:16](https://github.com/callstack/repack/blob/81f067f/packages/dev-server/src/plugins/compiler/types.ts#L16)
|
|
38
|
-
|
|
39
|
-
___
|
|
40
|
-
|
|
41
|
-
### getMimeType
|
|
42
|
-
|
|
43
|
-
▸ **getMimeType**(`filename`, `platform`, `data`): `string`
|
|
44
|
-
|
|
45
|
-
Detect MIME type of the asset from `filename`, `platform` or `data` (or from combination of either).
|
|
46
|
-
|
|
47
|
-
#### Parameters
|
|
48
|
-
|
|
49
|
-
| Name | Type | Description |
|
|
50
|
-
| :------ | :------ | :------ |
|
|
51
|
-
| `filename` | `string` | Filename of the asset. |
|
|
52
|
-
| `platform` | `string` | Platform of the asset. |
|
|
53
|
-
| `data` | `string` \| `Buffer` | Asset's content. |
|
|
54
|
-
|
|
55
|
-
#### Returns
|
|
56
|
-
|
|
57
|
-
`string`
|
|
58
|
-
|
|
59
|
-
#### Defined in
|
|
60
|
-
|
|
61
|
-
[plugins/compiler/types.ts:29](https://github.com/callstack/repack/blob/81f067f/packages/dev-server/src/plugins/compiler/types.ts#L29)
|
|
62
|
-
|
|
63
|
-
___
|
|
64
|
-
|
|
65
|
-
### inferPlatform
|
|
66
|
-
|
|
67
|
-
▸ `Optional` **inferPlatform**(`uri`): `undefined` \| `string`
|
|
68
|
-
|
|
69
|
-
Detect the platform from the URI - either from filename, query params or both.
|
|
70
|
-
|
|
71
|
-
#### Parameters
|
|
72
|
-
|
|
73
|
-
| Name | Type | Description |
|
|
74
|
-
| :------ | :------ | :------ |
|
|
75
|
-
| `uri` | `string` | URI string. |
|
|
76
|
-
|
|
77
|
-
#### Returns
|
|
78
|
-
|
|
79
|
-
`undefined` \| `string`
|
|
80
|
-
|
|
81
|
-
#### Defined in
|
|
82
|
-
|
|
83
|
-
[plugins/compiler/types.ts:40](https://github.com/callstack/repack/blob/81f067f/packages/dev-server/src/plugins/compiler/types.ts#L40)
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
# Interface: HmrDelegate
|
|
2
|
-
|
|
3
|
-
Delegate with implementation for HMR-specific functions.
|
|
4
|
-
|
|
5
|
-
## Table of contents
|
|
6
|
-
|
|
7
|
-
### Methods
|
|
8
|
-
|
|
9
|
-
- [getUriPath](HmrDelegate.md#geturipath)
|
|
10
|
-
- [onClientConnected](HmrDelegate.md#onclientconnected)
|
|
11
|
-
|
|
12
|
-
## Methods
|
|
13
|
-
|
|
14
|
-
### getUriPath
|
|
15
|
-
|
|
16
|
-
▸ **getUriPath**(): `string`
|
|
17
|
-
|
|
18
|
-
Get URI under which HMR server will be running, e.g: `/hmr`
|
|
19
|
-
|
|
20
|
-
#### Returns
|
|
21
|
-
|
|
22
|
-
`string`
|
|
23
|
-
|
|
24
|
-
#### Defined in
|
|
25
|
-
|
|
26
|
-
[plugins/wss/types.ts:6](https://github.com/callstack/repack/blob/81f067f/packages/dev-server/src/plugins/wss/types.ts#L6)
|
|
27
|
-
|
|
28
|
-
___
|
|
29
|
-
|
|
30
|
-
### onClientConnected
|
|
31
|
-
|
|
32
|
-
▸ **onClientConnected**(`platform`, `clientId`): `void`
|
|
33
|
-
|
|
34
|
-
Callback for when the new HMR client is connected.
|
|
35
|
-
|
|
36
|
-
Useful for running initial synchronization or any other side effect.
|
|
37
|
-
|
|
38
|
-
#### Parameters
|
|
39
|
-
|
|
40
|
-
| Name | Type | Description |
|
|
41
|
-
| :------ | :------ | :------ |
|
|
42
|
-
| `platform` | `string` | Platform of the connected client. |
|
|
43
|
-
| `clientId` | `string` | Id of the connected client. |
|
|
44
|
-
|
|
45
|
-
#### Returns
|
|
46
|
-
|
|
47
|
-
`void`
|
|
48
|
-
|
|
49
|
-
#### Defined in
|
|
50
|
-
|
|
51
|
-
[plugins/wss/types.ts:16](https://github.com/callstack/repack/blob/81f067f/packages/dev-server/src/plugins/wss/types.ts#L16)
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
# Interface: InputStackFrame
|
|
2
|
-
|
|
3
|
-
React Native stack frame used as input when processing by {@link Symbolicator}.
|
|
4
|
-
|
|
5
|
-
## Hierarchy
|
|
6
|
-
|
|
7
|
-
- [`ReactNativeStackFrame`](ReactNativeStackFrame.md)
|
|
8
|
-
|
|
9
|
-
↳ **`InputStackFrame`**
|
|
10
|
-
|
|
11
|
-
↳↳ [`StackFrame`](StackFrame.md)
|
|
12
|
-
|
|
13
|
-
## Table of contents
|
|
14
|
-
|
|
15
|
-
### Properties
|
|
16
|
-
|
|
17
|
-
- [column](InputStackFrame.md#column)
|
|
18
|
-
- [file](InputStackFrame.md#file)
|
|
19
|
-
- [lineNumber](InputStackFrame.md#linenumber)
|
|
20
|
-
- [methodName](InputStackFrame.md#methodname)
|
|
21
|
-
|
|
22
|
-
## Properties
|
|
23
|
-
|
|
24
|
-
### column
|
|
25
|
-
|
|
26
|
-
• **column**: ``null`` \| `number`
|
|
27
|
-
|
|
28
|
-
#### Inherited from
|
|
29
|
-
|
|
30
|
-
[ReactNativeStackFrame](ReactNativeStackFrame.md).[column](ReactNativeStackFrame.md#column)
|
|
31
|
-
|
|
32
|
-
#### Defined in
|
|
33
|
-
|
|
34
|
-
[plugins/symbolicate/types.ts:6](https://github.com/callstack/repack/blob/81f067f/packages/dev-server/src/plugins/symbolicate/types.ts#L6)
|
|
35
|
-
|
|
36
|
-
___
|
|
37
|
-
|
|
38
|
-
### file
|
|
39
|
-
|
|
40
|
-
• **file**: `string`
|
|
41
|
-
|
|
42
|
-
#### Overrides
|
|
43
|
-
|
|
44
|
-
[ReactNativeStackFrame](ReactNativeStackFrame.md).[file](ReactNativeStackFrame.md#file)
|
|
45
|
-
|
|
46
|
-
#### Defined in
|
|
47
|
-
|
|
48
|
-
[plugins/symbolicate/types.ts:15](https://github.com/callstack/repack/blob/81f067f/packages/dev-server/src/plugins/symbolicate/types.ts#L15)
|
|
49
|
-
|
|
50
|
-
___
|
|
51
|
-
|
|
52
|
-
### lineNumber
|
|
53
|
-
|
|
54
|
-
• **lineNumber**: ``null`` \| `number`
|
|
55
|
-
|
|
56
|
-
#### Inherited from
|
|
57
|
-
|
|
58
|
-
[ReactNativeStackFrame](ReactNativeStackFrame.md).[lineNumber](ReactNativeStackFrame.md#linenumber)
|
|
59
|
-
|
|
60
|
-
#### Defined in
|
|
61
|
-
|
|
62
|
-
[plugins/symbolicate/types.ts:5](https://github.com/callstack/repack/blob/81f067f/packages/dev-server/src/plugins/symbolicate/types.ts#L5)
|
|
63
|
-
|
|
64
|
-
___
|
|
65
|
-
|
|
66
|
-
### methodName
|
|
67
|
-
|
|
68
|
-
• **methodName**: `string`
|
|
69
|
-
|
|
70
|
-
#### Inherited from
|
|
71
|
-
|
|
72
|
-
[ReactNativeStackFrame](ReactNativeStackFrame.md).[methodName](ReactNativeStackFrame.md#methodname)
|
|
73
|
-
|
|
74
|
-
#### Defined in
|
|
75
|
-
|
|
76
|
-
[plugins/symbolicate/types.ts:8](https://github.com/callstack/repack/blob/81f067f/packages/dev-server/src/plugins/symbolicate/types.ts#L8)
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
# Interface: ProgressData
|
|
2
|
-
|
|
3
|
-
Representation of the compilation progress.
|
|
4
|
-
|
|
5
|
-
## Table of contents
|
|
6
|
-
|
|
7
|
-
### Properties
|
|
8
|
-
|
|
9
|
-
- [completed](ProgressData.md#completed)
|
|
10
|
-
- [total](ProgressData.md#total)
|
|
11
|
-
|
|
12
|
-
## Properties
|
|
13
|
-
|
|
14
|
-
### completed
|
|
15
|
-
|
|
16
|
-
• **completed**: `number`
|
|
17
|
-
|
|
18
|
-
Number of modules built.
|
|
19
|
-
|
|
20
|
-
#### Defined in
|
|
21
|
-
|
|
22
|
-
[types.ts:178](https://github.com/callstack/repack/blob/81f067f/packages/dev-server/src/types.ts#L178)
|
|
23
|
-
|
|
24
|
-
___
|
|
25
|
-
|
|
26
|
-
### total
|
|
27
|
-
|
|
28
|
-
• **total**: `number`
|
|
29
|
-
|
|
30
|
-
Total number of modules detect as part of compilation.
|
|
31
|
-
|
|
32
|
-
#### Defined in
|
|
33
|
-
|
|
34
|
-
[types.ts:181](https://github.com/callstack/repack/blob/81f067f/packages/dev-server/src/types.ts#L181)
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
# Interface: ReactNativeStackFrame
|
|
2
|
-
|
|
3
|
-
Raw React Native stack frame.
|
|
4
|
-
|
|
5
|
-
## Hierarchy
|
|
6
|
-
|
|
7
|
-
- **`ReactNativeStackFrame`**
|
|
8
|
-
|
|
9
|
-
↳ [`InputStackFrame`](InputStackFrame.md)
|
|
10
|
-
|
|
11
|
-
## Table of contents
|
|
12
|
-
|
|
13
|
-
### Properties
|
|
14
|
-
|
|
15
|
-
- [column](ReactNativeStackFrame.md#column)
|
|
16
|
-
- [file](ReactNativeStackFrame.md#file)
|
|
17
|
-
- [lineNumber](ReactNativeStackFrame.md#linenumber)
|
|
18
|
-
- [methodName](ReactNativeStackFrame.md#methodname)
|
|
19
|
-
|
|
20
|
-
## Properties
|
|
21
|
-
|
|
22
|
-
### column
|
|
23
|
-
|
|
24
|
-
• **column**: ``null`` \| `number`
|
|
25
|
-
|
|
26
|
-
#### Defined in
|
|
27
|
-
|
|
28
|
-
[plugins/symbolicate/types.ts:6](https://github.com/callstack/repack/blob/81f067f/packages/dev-server/src/plugins/symbolicate/types.ts#L6)
|
|
29
|
-
|
|
30
|
-
___
|
|
31
|
-
|
|
32
|
-
### file
|
|
33
|
-
|
|
34
|
-
• **file**: ``null`` \| `string`
|
|
35
|
-
|
|
36
|
-
#### Defined in
|
|
37
|
-
|
|
38
|
-
[plugins/symbolicate/types.ts:7](https://github.com/callstack/repack/blob/81f067f/packages/dev-server/src/plugins/symbolicate/types.ts#L7)
|
|
39
|
-
|
|
40
|
-
___
|
|
41
|
-
|
|
42
|
-
### lineNumber
|
|
43
|
-
|
|
44
|
-
• **lineNumber**: ``null`` \| `number`
|
|
45
|
-
|
|
46
|
-
#### Defined in
|
|
47
|
-
|
|
48
|
-
[plugins/symbolicate/types.ts:5](https://github.com/callstack/repack/blob/81f067f/packages/dev-server/src/plugins/symbolicate/types.ts#L5)
|
|
49
|
-
|
|
50
|
-
___
|
|
51
|
-
|
|
52
|
-
### methodName
|
|
53
|
-
|
|
54
|
-
• **methodName**: `string`
|
|
55
|
-
|
|
56
|
-
#### Defined in
|
|
57
|
-
|
|
58
|
-
[plugins/symbolicate/types.ts:8](https://github.com/callstack/repack/blob/81f067f/packages/dev-server/src/plugins/symbolicate/types.ts#L8)
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
# Interface: Asset
|
|
2
|
-
|
|
3
|
-
[Server](../modules/Server.md).[Api](../modules/Server.Api.md).Asset
|
|
4
|
-
|
|
5
|
-
A compilation asset representation for API clients.
|
|
6
|
-
|
|
7
|
-
## Indexable
|
|
8
|
-
|
|
9
|
-
▪ [key: `string`]: `any`
|
|
10
|
-
|
|
11
|
-
## Table of contents
|
|
12
|
-
|
|
13
|
-
### Properties
|
|
14
|
-
|
|
15
|
-
- [name](Server.Api.Asset.md#name)
|
|
16
|
-
- [size](Server.Api.Asset.md#size)
|
|
17
|
-
|
|
18
|
-
## Properties
|
|
19
|
-
|
|
20
|
-
### name
|
|
21
|
-
|
|
22
|
-
• **name**: `string`
|
|
23
|
-
|
|
24
|
-
#### Defined in
|
|
25
|
-
|
|
26
|
-
[types.ts:141](https://github.com/callstack/repack/blob/81f067f/packages/dev-server/src/types.ts#L141)
|
|
27
|
-
|
|
28
|
-
___
|
|
29
|
-
|
|
30
|
-
### size
|
|
31
|
-
|
|
32
|
-
• **size**: `number`
|
|
33
|
-
|
|
34
|
-
#### Defined in
|
|
35
|
-
|
|
36
|
-
[types.ts:142](https://github.com/callstack/repack/blob/81f067f/packages/dev-server/src/types.ts#L142)
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
# Interface: Delegate
|
|
2
|
-
|
|
3
|
-
[Server](../modules/Server.md).[Api](../modules/Server.Api.md).Delegate
|
|
4
|
-
|
|
5
|
-
Delegate with implementation for API endpoints.
|
|
6
|
-
|
|
7
|
-
## Table of contents
|
|
8
|
-
|
|
9
|
-
### Methods
|
|
10
|
-
|
|
11
|
-
- [getAssets](Server.Api.Delegate.md#getassets)
|
|
12
|
-
- [getCompilationStats](Server.Api.Delegate.md#getcompilationstats)
|
|
13
|
-
- [getPlatforms](Server.Api.Delegate.md#getplatforms)
|
|
14
|
-
|
|
15
|
-
## Methods
|
|
16
|
-
|
|
17
|
-
### getAssets
|
|
18
|
-
|
|
19
|
-
▸ **getAssets**(`platform`): `Promise`<[`Asset`](Server.Api.Asset.md)[]\>
|
|
20
|
-
|
|
21
|
-
Get all assets from compilation for given platform.
|
|
22
|
-
Should return `[]` if the compilation does not exists for given platform.
|
|
23
|
-
|
|
24
|
-
#### Parameters
|
|
25
|
-
|
|
26
|
-
| Name | Type |
|
|
27
|
-
| :------ | :------ |
|
|
28
|
-
| `platform` | `string` |
|
|
29
|
-
|
|
30
|
-
#### Returns
|
|
31
|
-
|
|
32
|
-
`Promise`<[`Asset`](Server.Api.Asset.md)[]\>
|
|
33
|
-
|
|
34
|
-
#### Defined in
|
|
35
|
-
|
|
36
|
-
[types.ts:162](https://github.com/callstack/repack/blob/81f067f/packages/dev-server/src/types.ts#L162)
|
|
37
|
-
|
|
38
|
-
___
|
|
39
|
-
|
|
40
|
-
### getCompilationStats
|
|
41
|
-
|
|
42
|
-
▸ **getCompilationStats**(`platform`): `Promise`<``null`` \| [`CompilationStats`](Server.Api.CompilationStats.md)\>
|
|
43
|
-
|
|
44
|
-
Get compilation stats for a given platform.
|
|
45
|
-
Should return `null` if the compilation does not exists for given platform.
|
|
46
|
-
|
|
47
|
-
#### Parameters
|
|
48
|
-
|
|
49
|
-
| Name | Type |
|
|
50
|
-
| :------ | :------ |
|
|
51
|
-
| `platform` | `string` |
|
|
52
|
-
|
|
53
|
-
#### Returns
|
|
54
|
-
|
|
55
|
-
`Promise`<``null`` \| [`CompilationStats`](Server.Api.CompilationStats.md)\>
|
|
56
|
-
|
|
57
|
-
#### Defined in
|
|
58
|
-
|
|
59
|
-
[types.ts:168](https://github.com/callstack/repack/blob/81f067f/packages/dev-server/src/types.ts#L168)
|
|
60
|
-
|
|
61
|
-
___
|
|
62
|
-
|
|
63
|
-
### getPlatforms
|
|
64
|
-
|
|
65
|
-
▸ **getPlatforms**(): `Promise`<`string`[]\>
|
|
66
|
-
|
|
67
|
-
Get all platforms - either with already existing compilations or all supported platforms.
|
|
68
|
-
|
|
69
|
-
#### Returns
|
|
70
|
-
|
|
71
|
-
`Promise`<`string`[]\>
|
|
72
|
-
|
|
73
|
-
#### Defined in
|
|
74
|
-
|
|
75
|
-
[types.ts:156](https://github.com/callstack/repack/blob/81f067f/packages/dev-server/src/types.ts#L156)
|