Skip to content
This repository was archived by the owner on Oct 12, 2024. It is now read-only.

Commit 7fbc86c

Browse files
committed
fix: fix bug
1 parent 24bf590 commit 7fbc86c

File tree

2 files changed

+62
-61
lines changed

2 files changed

+62
-61
lines changed

projects/ngx-socketio2/package.json

Lines changed: 45 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,46 @@
1-
{
2-
"name": "ngx-socketio2",
3-
"version": "2.0.0",
4-
"description": "A better Socket.IO module for Angular.",
5-
"repository": {
6-
"type": "git",
7-
"url": "git+https://github.com/HyperLife1119/ngx-socketio2.git"
8-
},
9-
"keywords": [
10-
"angular",
11-
"angular11",
12-
"angular12",
13-
"angular13",
14-
"angular14",
15-
"ngx-socketio",
16-
"ngx-socket.io",
17-
"ngx-socket-io",
18-
"socketio",
19-
"socket-io",
20-
"socket.io",
21-
"socketio-client",
22-
"socket-io-client",
23-
"socket.io-client",
24-
"observable",
25-
"reactive",
26-
"rxjs"
27-
],
28-
"author": "HyperLife1119 <hyperlife1119@qq.com>",
29-
"license": "MIT",
30-
"bugs": {
31-
"url": "https://github.com/HyperLife1119/ngx-socketio2/issues"
32-
},
33-
"homepage": "https://github.com/HyperLife1119/ngx-socketio2#readme",
34-
"publishConfig": {
35-
"access": "public"
36-
},
37-
"peerDependencies": {
38-
"@angular/core": ">=11.0.0",
39-
"socket.io-client": "^4.0.0"
40-
},
41-
"dependencies": {
42-
"tslib": "2.4.0",
43-
"socket.io-client": "4.4.0"
44-
}
1+
{
2+
"name": "ngx-socketio2",
3+
"version": "2.0.1",
4+
"description": "A better Socket.IO module for Angular.",
5+
"repository": {
6+
"type": "git",
7+
"url": "git+https://github.com/HyperLife1119/ngx-socketio2.git"
8+
},
9+
"keywords": [
10+
"angular",
11+
"angular11",
12+
"angular12",
13+
"angular13",
14+
"angular14",
15+
"angular15",
16+
"ngx-socketio",
17+
"ngx-socket.io",
18+
"ngx-socket-io",
19+
"socketio",
20+
"socket-io",
21+
"socket.io",
22+
"socketio-client",
23+
"socket-io-client",
24+
"socket.io-client",
25+
"observable",
26+
"reactive",
27+
"rxjs"
28+
],
29+
"author": "HyperLife1119 <hyperlife1119@qq.com>",
30+
"license": "MIT",
31+
"bugs": {
32+
"url": "https://github.com/HyperLife1119/ngx-socketio2/issues"
33+
},
34+
"homepage": "https://github.com/HyperLife1119/ngx-socketio2#readme",
35+
"publishConfig": {
36+
"access": "public"
37+
},
38+
"peerDependencies": {
39+
"@angular/core": ">=11.0.0",
40+
"socket.io-client": "^4.0.0"
41+
},
42+
"dependencies": {
43+
"tslib": "^2.4.0",
44+
"socket.io-client": "^4.4.0"
45+
}
4546
}
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
import { ModuleWithProviders, NgModule } from '@angular/core';
2-
import { SocketioConfig } from './socketio.interface';
3-
import { Socket } from './socketio.service';
4-
import { SOCKETIO_CONFIG } from './socketio.token';
5-
6-
@NgModule()
7-
export class SocketioModule {
8-
static forRoot(config: SocketioConfig = { url: '' }): ModuleWithProviders<SocketioModule> {
9-
return {
10-
ngModule: SocketioModule,
11-
providers: [
12-
{ provide: SOCKETIO_CONFIG, useValue: config },
13-
{ provide: Socket, useClass: Socket },
14-
],
15-
};
16-
}
17-
}
1+
import { ModuleWithProviders, NgModule } from '@angular/core';
2+
import { SocketioConfig } from './socketio.interface';
3+
import { Socket } from './socketio.service';
4+
import { SOCKETIO_CONFIG } from './socketio.token';
5+
6+
@NgModule()
7+
export class SocketioModule {
8+
static forRoot(config: SocketioConfig = { url: '' }): ModuleWithProviders<SocketioModule> {
9+
return {
10+
ngModule: SocketioModule,
11+
providers: [
12+
{ provide: SOCKETIO_CONFIG, useValue: config },
13+
Socket,
14+
],
15+
};
16+
}
17+
}

0 commit comments

Comments
 (0)