@cimo/websocket 1.5.52 → 1.5.53
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
|
@@ -35,12 +35,12 @@ import * as ControllerTest from "../controller/Test";
|
|
|
35
35
|
|
|
36
36
|
const cwsServer = new CwsServer(server, "secret-key");
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
ControllerTest.websocket(cwsServer);
|
|
39
39
|
|
|
40
40
|
...
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
-
-
|
|
43
|
+
- ControllerTest.ts
|
|
44
44
|
|
|
45
45
|
```
|
|
46
46
|
...
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TSESTree } from "@typescript-eslint/utils";
|
|
2
2
|
import { RuleContext } from "@typescript-eslint/utils/dist/ts-eslint";
|
|
3
3
|
export declare const rules: {
|
|
4
|
-
"
|
|
4
|
+
"no-array-assignment-for-object-type": {
|
|
5
5
|
meta: {
|
|
6
6
|
type: string;
|
|
7
7
|
docs: {
|
|
@@ -9,11 +9,11 @@ export declare const rules: {
|
|
|
9
9
|
recommended: boolean;
|
|
10
10
|
};
|
|
11
11
|
messages: {
|
|
12
|
-
|
|
12
|
+
noArrayAssignmentForObjectType: string;
|
|
13
13
|
};
|
|
14
14
|
schema: never[];
|
|
15
15
|
};
|
|
16
|
-
create(context: RuleContext<"
|
|
16
|
+
create(context: RuleContext<"noArrayAssignmentForObjectType", []>): {
|
|
17
17
|
TSArrayType(node: TSESTree.TSArrayType): void;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
@@ -3,15 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.rules = void 0;
|
|
4
4
|
const utils_1 = require("@typescript-eslint/utils");
|
|
5
5
|
exports.rules = {
|
|
6
|
-
"
|
|
6
|
+
"no-array-assignment-for-object-type": {
|
|
7
7
|
meta: {
|
|
8
8
|
type: "problem",
|
|
9
9
|
docs: {
|
|
10
|
-
description: "
|
|
10
|
+
description: "Safe array assignment for object type.",
|
|
11
11
|
recommended: false
|
|
12
12
|
},
|
|
13
13
|
messages: {
|
|
14
|
-
|
|
14
|
+
noArrayAssignmentForObjectType: "Array assign for object type is disallowed."
|
|
15
15
|
},
|
|
16
16
|
schema: []
|
|
17
17
|
},
|
|
@@ -26,7 +26,7 @@ exports.rules = {
|
|
|
26
26
|
if (indexType) {
|
|
27
27
|
context.report({
|
|
28
28
|
node,
|
|
29
|
-
messageId: "
|
|
29
|
+
messageId: "noArrayAssignmentForObjectType"
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eslint.customRule.js","sourceRoot":"","sources":["../eslint.customRule.ts"],"names":[],"mappings":";;;AAAA,oDAAiE;AAGpD,QAAA,KAAK,GAAG;IACjB,
|
|
1
|
+
{"version":3,"file":"eslint.customRule.js","sourceRoot":"","sources":["../eslint.customRule.ts"],"names":[],"mappings":";;;AAAA,oDAAiE;AAGpD,QAAA,KAAK,GAAG;IACjB,qCAAqC,EAAE;QACnC,IAAI,EAAE;YACF,IAAI,EAAE,SAAS;YACf,IAAI,EAAE;gBACF,WAAW,EAAE,wCAAwC;gBACrD,WAAW,EAAE,KAAK;aACrB;YACD,QAAQ,EAAE;gBACN,8BAA8B,EAAE,6CAA6C;aAChF;YACD,MAAM,EAAE,EAAE;SACb;QACD,MAAM,CAAC,OAA0D;YAC7D,MAAM,cAAc,GAAG,mBAAW,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;YAE9D,OAAO;gBACH,WAAW,CAAC,IAA0B;oBAClC,MAAM,MAAM,GAAG,cAAc,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;oBAC1E,MAAM,OAAO,GAAG,cAAc,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;oBACxD,MAAM,IAAI,GAAG,OAAO,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;oBAE/C,MAAM,SAAS,GAAG,IAAI,CAAC,kBAAkB,EAAE,CAAC;oBAE5C,IAAI,SAAS,EAAE,CAAC;wBACZ,OAAO,CAAC,MAAM,CAAC;4BACX,IAAI;4BACJ,SAAS,EAAE,gCAAgC;yBAC9C,CAAC,CAAC;oBACP,CAAC;gBACL,CAAC;aACJ,CAAC;QACN,CAAC;KACJ;CACJ,CAAC"}
|