declapract-typescript-ehmpathy 0.33.12 → 0.33.14

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,4 +1,4 @@
1
1
  #!/bin/bash
2
2
 
3
3
  # if exists a .nvmrc, then `nvm use`, to use the specified version
4
- [[ -f ".nvmrc" ]] && nvm use
4
+ # [[ -f ".nvmrc" ]] && nvm use # todo: find a way to share nvm permissions
@@ -8,6 +8,7 @@ queries: # where to find your queries (each file must `export const query = `...
8
8
  - 'src/data/dao/**/*.ts'
9
9
  - '!src/data/dao/**/index.ts'
10
10
  - '!src/data/dao/**/castFromDatabaseObject.ts'
11
+ - '!src/data/dao/**/findByRef.ts'
11
12
  - '!src/**/*.test.ts'
12
13
  - '!src/**/*.test.integration.ts'
13
14
  generates: # where to output the generated code
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "dependencies": {
3
3
  "pg": "@declapract{check.minVersion('8.3.0')}",
4
+ "procedure-fns": "@declapract{check.minVersion('1.0.0')}",
4
5
  "yesql": "@declapract{check.minVersion('3.2.2')}"
5
6
  },
6
7
  "devDependencies": {
7
8
  "sql-code-generator": "@declapract{check.minVersion('0.10.1')}",
8
- "sql-dao-generator": "@declapract{check.minVersion('0.8.2')}",
9
+ "sql-dao-generator": "@declapract{check.minVersion('0.10.0')}",
9
10
  "sql-schema-control": "@declapract{check.minVersion('1.5.2')}",
10
11
  "sql-schema-generator": "@declapract{check.minVersion('0.25.2')}",
11
12
  "@types/yesql": "@declapract{check.minVersion('3.2.2')}",
@@ -12,7 +12,7 @@ import {
12
12
  *
13
13
  * example usage:
14
14
  * ```
15
- * const findById = withDatabaseConnection(({ id }: { id: string }, context: { dbConnection: DatabaseConnection }) => {
15
+ * const findById = withDatabaseContext(({ id }: { id: string }, context: { dbConnection: DatabaseConnection }) => {
16
16
  * // do logic with dbConnection
17
17
  * });
18
18
  * // ...
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "declapract-typescript-ehmpathy",
3
3
  "author": "ehmpathy",
4
4
  "description": "declapract best practices declarations for typescript",
5
- "version": "0.33.12",
5
+ "version": "0.33.14",
6
6
  "main": "src/index.js",
7
7
  "repository": "ehmpathy/declapract-typescript-ehmpathy",
8
8
  "homepage": "https://github.com/ehmpathy/declapract-typescript-ehmpathy",