@wdio/static-server-service 10.0.0-alpha.149 → 10.0.0-alpha.18

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/README.md CHANGED
@@ -30,11 +30,9 @@ export const config = {
30
30
 
31
31
  ### `folders` (required)
32
32
 
33
- <Option type="Array<Object>">
34
-
35
33
  Array of folder paths and mount points.
36
34
 
37
- </Option>
35
+ Type: `Array<Object>`
38
36
  Props:
39
37
  - mount `{String}` - URL endpoint where folder will be mounted.
40
38
  - path `{String}` - Path to the folder to mount.
@@ -57,23 +55,23 @@ Props:
57
55
 
58
56
  ### `port`
59
57
 
60
- <Option type="Number" default="4567">
61
-
62
58
  Port to bind the server.
63
59
 
64
- </Option>
60
+ Type: `Number`
65
61
 
66
- ### `middleware`
62
+ Default: `4567`
67
63
 
68
- <Option type="Array<Object>" default="[]">
64
+ ### `middleware`
69
65
 
70
66
  Array of middleware objects. Load and instatiate these in the config, and pass them in for the static server to use.
71
67
 
72
- </Option>
68
+ Type: `Array<Object>`
73
69
  Props:
74
70
  - mount `{String}` - URL endpoint where middleware will be mounted.
75
71
  - middleware `<Object>` - Middleware function callback.
76
72
 
73
+ Default: `[]`
74
+
77
75
  ``` javascript
78
76
  // wdio.conf.js
79
77
  import middleware from 'middleware-package'
@@ -95,5 +93,3 @@ export const config = {
95
93
  ----
96
94
 
97
95
  For more information on WebdriverIO, see the [homepage](http://webdriver.io).
98
-
99
-
package/build/index.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  import StaticServerLauncher from './launcher.js';
2
2
  import type { StaticServerOptions } from './types.js';
3
+ export default class StaticServerService {
4
+ }
3
5
  export declare const launcher: typeof StaticServerLauncher;
4
6
  export * from './types.js';
5
7
  declare global {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,oBAAoB,MAAM,eAAe,CAAA;AAChD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAErD,eAAO,MAAM,QAAQ,6BAAuB,CAAA;AAC5C,cAAc,YAAY,CAAA;AAE1B,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,WAAW,CAAC;QAClB,UAAU,aAAc,SAAQ,mBAAmB;SAAG;KACzD;CACJ"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,oBAAoB,MAAM,eAAe,CAAA;AAChD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAErD,MAAM,CAAC,OAAO,OAAO,mBAAmB;CAAI;AAC5C,eAAO,MAAM,QAAQ,6BAAuB,CAAA;AAC5C,cAAc,YAAY,CAAA;AAE1B,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,WAAW,CAAC;QAClB,UAAU,aAAc,SAAQ,mBAAmB;SAAG;KACzD;CACJ"}
package/build/index.js CHANGED
@@ -41,7 +41,10 @@ var StaticServerLauncher = class {
41
41
  };
42
42
 
43
43
  // src/index.ts
44
+ var StaticServerService = class {
45
+ };
44
46
  var launcher = StaticServerLauncher;
45
47
  export {
48
+ StaticServerService as default,
46
49
  launcher
47
50
  };
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@wdio/static-server-service",
3
- "version": "10.0.0-alpha.149+ce13bea83",
3
+ "version": "10.0.0-alpha.18+dbf0f4971",
4
4
  "description": "A WebdriverIO service that can serve your static websites",
5
5
  "author": "Christian Bromann <mail@bromann.dev>",
6
6
  "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-static-server-service",
7
7
  "license": "MIT",
8
8
  "engines": {
9
- "node": ">=22.19.0"
9
+ "node": ">=18.20.0"
10
10
  },
11
11
  "repository": {
12
12
  "type": "git",
@@ -34,10 +34,10 @@
34
34
  "import": "./build/index.js"
35
35
  }
36
36
  },
37
- "typeScriptVersion": "6.0.3",
37
+ "typeScriptVersion": "3.8.3",
38
38
  "dependencies": {
39
- "@wdio/logger": "10.0.0-alpha.149+ce13bea83",
40
- "@wdio/types": "10.0.0-alpha.149+ce13bea83",
39
+ "@wdio/logger": "10.0.0-alpha.18+dbf0f4971",
40
+ "@wdio/types": "10.0.0-alpha.18+dbf0f4971",
41
41
  "express": "^5.1.0",
42
42
  "morgan": "^1.7.0"
43
43
  },
@@ -48,5 +48,5 @@
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
- "gitHead": "ce13bea839fb037eceda429dbf94cd387b7c3584"
51
+ "gitHead": "dbf0f497130676040ce4212d9cf6459adfe16c42"
52
52
  }
package/AGENTS.md DELETED
@@ -1,20 +0,0 @@
1
- # @wdio/static-server-service
2
-
3
- Launcher-only service. `onPrepare` serves folders and has no worker hooks.
4
-
5
- ## Guardrails
6
-
7
- - Do not add a default export. `initializeLauncherService` treats a default
8
- function as a worker service and would load this package in every worker.
9
- `@wdio/firefox-profile-service` is the same shape.
10
- - Launcher tests own `onPrepare`: no server without `folders`, folder mounts,
11
- listen port, the access-log stream, and middleware. Assert the handler
12
- `express.static` returns. `undefined` is only the automock default and does
13
- not prove the mount.
14
- - Option types are covered in `tests/typings/webdriverio/config.ts`.
15
-
16
- ## Commands
17
-
18
- ```sh
19
- pnpm run test:package wdio-static-server-service
20
- ```