js-klikvet-logic-worker 2.1.5 → 2.3.18

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,17 @@
1
+ {
2
+ // Use IntelliSense to learn about possible attributes.
3
+ // Hover to view descriptions of existing attributes.
4
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5
+ "version": "0.2.0",
6
+ "configurations": [
7
+ {
8
+ "type": "pwa-node",
9
+ "request": "launch",
10
+ "name": "Launch Program",
11
+ "skipFiles": [
12
+ "<node_internals>/**"
13
+ ],
14
+ "program": "${workspaceFolder}/index.js"
15
+ }
16
+ ]
17
+ }
package/index.mjs ADDED
@@ -0,0 +1,20 @@
1
+ //@ts-check
2
+ import assert from 'assert'
3
+ import { KlikvetLogicWorker } from './worker.mjs'
4
+ import dotenv from "dotenv"
5
+ dotenv.config()
6
+ assert(process.env.VETERINE, "določi veterine v .env")
7
+
8
+ const veterine = process.env.VETERINE.split(',').map(a => a.trim()).filter(a => !!a)
9
+ const gsm = process.env.GSM
10
+
11
+ if (!veterine.length) {
12
+ console.error("naštej veterine")
13
+ process.exit(1)
14
+ }
15
+
16
+ if (gsm) console.log("GSM za SMSe", gsm)
17
+
18
+ new KlikvetLogicWorker({ veterine, gsm }).start()
19
+
20
+
package/package.json CHANGED
@@ -1,20 +1,22 @@
1
1
  {
2
2
  "name": "js-klikvet-logic-worker",
3
- "version": "2.1.5",
3
+ "version": "2.3.18",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "dependencies": {
7
- "bson-objectid": ">=1.3.1",
8
- "cry-db": ">=1.2.10",
9
- "cry-ebus2": ">=2.1.32",
10
- "cry-helpers": ">=2.1.18",
11
- "cry-klikvet-logic": ">=0.6.52",
12
- "lodash.clonedeep": ">=4.5.0"
7
+ "cry-db": "^2.2.4",
8
+ "cry-ebus2": "^3.1.23",
9
+ "cry-helpers": "^2.1.103",
10
+ "cry-klikvet-logic": "^0.10.306",
11
+ "cry-local-query": "^1.0.12",
12
+ "dotenv": "^16.3.1",
13
+ "lodash.clonedeep": ">=4.5.0",
14
+ "make-dir": "^4.0.0"
13
15
  },
14
16
  "devDependencies": {
15
- "@types/lodash.clonedeep": "^4.5.6",
16
- "chai": "^4.2.0",
17
- "mocha": "^8.2.1"
17
+ "@types/lodash.clonedeep": "^4.5.9",
18
+ "chai": "^4.3.10",
19
+ "mocha": "^10.2.0"
18
20
  },
19
21
  "scripts": {
20
22
  "test": "mocha"