@quatrain/cloudwrapper 1.1.11 → 1.1.12

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.
@@ -1,7 +1,7 @@
1
1
  import { BackendAction } from '@quatrain/backend';
2
2
  export type DatabaseTriggerType = {
3
3
  name: string;
4
- event: BackendAction;
4
+ event: BackendAction | BackendAction[];
5
5
  model: string;
6
6
  path: string;
7
7
  script: Function;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quatrain/cloudwrapper",
3
- "version": "1.1.11",
3
+ "version": "1.1.12",
4
4
  "license": "MIT",
5
5
  "description": "Cloud wrappers commons",
6
6
  "main": "lib/index.js",
@@ -11,8 +11,8 @@
11
11
  ],
12
12
  "author": "Quatrain Développement SAS <developers@quatrain.com>",
13
13
  "peerDependencies": {
14
- "@quatrain/backend": "^1.1.11",
15
- "@quatrain/core": "^1.1.11"
14
+ "@quatrain/backend": "^1.1.12",
15
+ "@quatrain/core": "^1.1.14"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@tsconfig/recommended": "^1.0.1",
@@ -27,12 +27,14 @@
27
27
  "typescript": "^5.1.5"
28
28
  },
29
29
  "scripts": {
30
- "pretest": "tsc",
31
- "test": "clear && firebase emulators:exec 'jest -i --verbose --silent=false'",
32
30
  "test-ci": "jest --runInBand",
33
31
  "build": "tsc",
34
32
  "wbuild": "tsc --watch",
35
33
  "bump-to": "yarn version",
36
- "publish": "yarn build && yarn npm publish --access public"
34
+ "hash": "node ../../bin/hashFolder.js",
35
+ "hash:persist": "yarn hash > .hash_latest.txt",
36
+ "hash:compare": "yarn hash > .hash_newest.txt && cmp -s .hash_latest.txt .hash_newest.txt",
37
+ "publish": "yarn hash:compare || yarn publish:process",
38
+ "publish:process": "yarn version patch && yarn build && yarn npm publish --access public && yarn hash:persist"
37
39
  }
38
40
  }