socket-enums-kkuznetsovv-123 1.0.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.
@@ -0,0 +1,7 @@
1
+ declare enum SocketMessages {
2
+ NEW_FOLLOW = "NEW_FOLLOW",
3
+ NEW_POST = "NEW_POST",
4
+ UNFOLLOW = "UNFOLLOW",
5
+ NEW_COMMENT = "NEW_COMMENT"
6
+ }
7
+ export default SocketMessages;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var SocketMessages;
4
+ (function (SocketMessages) {
5
+ SocketMessages["NEW_FOLLOW"] = "NEW_FOLLOW";
6
+ SocketMessages["NEW_POST"] = "NEW_POST";
7
+ SocketMessages["UNFOLLOW"] = "UNFOLLOW";
8
+ SocketMessages["NEW_COMMENT"] = "NEW_COMMENT";
9
+ })(SocketMessages || (SocketMessages = {}));
10
+ exports.default = SocketMessages;
package/package.json ADDED
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "socket-enums-kkuznetsovv-123",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "./dist/socket-enums.js",
6
+ "types": "./dist/socket-enums.d.ts",
7
+ "scripts": {
8
+ "build": "tsc"
9
+ },
10
+ "keywords": [],
11
+ "author": "",
12
+ "license": "ISC",
13
+ "type": "commonjs",
14
+ "devDependencies": {
15
+ "typescript": "^6.0.3"
16
+ }
17
+ }
@@ -0,0 +1,8 @@
1
+ enum SocketMessages {
2
+ NEW_FOLLOW = 'NEW_FOLLOW',
3
+ NEW_POST = 'NEW_POST',
4
+ UNFOLLOW = 'UNFOLLOW',
5
+ NEW_COMMENT = 'NEW_COMMENT'
6
+ }
7
+
8
+ export default SocketMessages
package/tsconfig.json ADDED
@@ -0,0 +1,20 @@
1
+ {
2
+ "compilerOptions": {
3
+ "rootDir": "./src",
4
+ "outDir": "./dist",
5
+ "target": "es2020",
6
+ "module": "commonjs",
7
+ "moduleResolution": "node",
8
+ "esModuleInterop": true,
9
+ "allowSyntheticDefaultImports": true,
10
+ "skipLibCheck": true,
11
+ "forceConsistentCasingInFileNames": true,
12
+ "strict": false,
13
+ "ignoreDeprecations": "6.0",
14
+ "experimentalDecorators": true,
15
+ "emitDecoratorMetadata": true,
16
+ "declaration": true
17
+ },
18
+ "include": ["src"],
19
+ "exclude": ["node_modules", "dist"]
20
+ }