@molochko-dev/data 1.0.5 → 1.1.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,4 @@
1
+ #!/usr/bin/env sh
2
+ . "$(dirname -- "$0")/_/husky.sh"
3
+
4
+ npm version patch --no-git-tag-version
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env sh
2
+ . "$(dirname -- "$0")/_/husky.sh"
3
+
4
+ npm version minor --no-git-tag-version
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molochko-dev/data",
3
- "version": "1.0.5",
3
+ "version": "1.1.0",
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 const SEED_CODES_AS_OBJECT = enumToObject(SEED_CODES_ENUM);
117
+ export const SEED_CODES_AS_OBJECT = enumToObject(SEED_CODES_ENUM);
118
+
119
+ export enum EVENT_ERROR_REASON_ENUM {
120
+ statusNotAllowed = 'animal-status-not-allowed',
121
+ notACow = 'animal-not-a-cow',
122
+ tooYoung = 'animal-too-yang'
123
+ }
124
+
125
+ export const EVENT_ERROR_REASON_AS_OBJECT = enumToObject(EVENT_ERROR_REASON_ENUM);