@cloudpss/fetch 0.6.0-alpha.1 → 0.6.0-alpha.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudpss/fetch",
3
- "version": "0.6.0-alpha.1",
3
+ "version": "0.6.0-alpha.11",
4
4
  "author": "CloudPSS",
5
5
  "license": "MIT",
6
6
  "keywords": [
package/tests/ws/e2e.ts CHANGED
@@ -5,7 +5,7 @@ jest.setTimeout(30000);
5
5
 
6
6
  describe('websocket works', () => {
7
7
  it('can access websocket echo server', async () => {
8
- const messages = /** @type {string[]} */ ([]);
8
+ const messages: string[] = [];
9
9
  const ws = new WebSocket('wss://echo.websocket.org');
10
10
  expect(ws.readyState).toBe(WebSocket.CONNECTING);
11
11
  await connected(ws);
@@ -14,7 +14,7 @@ describe('websocket works', () => {
14
14
  expect(ws.readyState).toBe(WebSocket.OPEN);
15
15
  ws.send('hello');
16
16
  // eslint-disable-next-line unicorn/prefer-add-event-listener
17
- ws.onmessage = (e) => {
17
+ ws.onmessage = (e: MessageEvent<string>) => {
18
18
  messages.push(e.data);
19
19
  if (messages.length === 2) {
20
20
  ws.close(1000, 'normal');
package/jest.config.js DELETED
@@ -1,3 +0,0 @@
1
- import { config } from '../jest.config.js';
2
-
3
- export default { ...config };
@@ -1,3 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.test"
3
- }
package/tsconfig.json DELETED
@@ -1,3 +0,0 @@
1
- {
2
- "extends": "../tsconfig.build"
3
- }