@molochko-dev/data 1.0.5 → 1.0.6
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/.husky/pre-commit +4 -0
- package/.husky/pre-push +4 -0
- package/package.json +2 -1
- package/src/enums.ts +8 -0
package/.husky/pre-push
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molochko-dev/data",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "typings/index.d.ts",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"scripts": {
|
|
11
11
|
"build": "rm -rf dist/ && tsc",
|
|
12
12
|
"test": "jest --config=jest.config.js",
|
|
13
|
+
"prepare": "husky install",
|
|
13
14
|
"format": "prettier --write \"src/**/*.ts\""
|
|
14
15
|
},
|
|
15
16
|
"keywords": [
|
package/src/enums.ts
CHANGED
|
@@ -114,4 +114,12 @@ export enum SEED_CODES_ENUM {
|
|
|
114
114
|
G6G = 'G6G',
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
+
export enum EVENT_ERROR_REASON_ENUM {
|
|
118
|
+
statusNotAllowed = 'animal-status-not-allowed',
|
|
119
|
+
notACow = 'animal-not-a-cow',
|
|
120
|
+
tooYoung = 'animal-too-yang'
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export const EVENT_ERROR_REASON_AS_OBJECT = enumToObject(EVENT_ERROR_REASON_ENUM);
|
|
124
|
+
|
|
117
125
|
export const SEED_CODES_AS_OBJECT = enumToObject(SEED_CODES_ENUM);
|