nest-knexjs 0.0.12 → 0.0.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.
@@ -0,0 +1,10 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: npm
4
+ directory: "/"
5
+ schedule:
6
+ interval: daily
7
+ time: "13:00"
8
+ open-pull-requests-limit: 10
9
+ labels:
10
+ - dependabot
@@ -0,0 +1,25 @@
1
+ name: Node.js CI
2
+
3
+ on:
4
+ push:
5
+ branches: [ main ]
6
+ pull_request:
7
+ branches: [ main ]
8
+
9
+ jobs:
10
+ build:
11
+
12
+ runs-on: ubuntu-latest
13
+
14
+ strategy:
15
+ matrix:
16
+ node-version: [14.x, 16.x, 18.x]
17
+
18
+ steps:
19
+ - uses: actions/checkout@v3
20
+ - name: Use Node.js ${{ matrix.node-version }}
21
+ uses: actions/setup-node@v3
22
+ with:
23
+ node-version: ${{ matrix.node-version }}
24
+ - run: npm ci
25
+ - run: npm run build --if-present
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2021-2022 Tony133
3
+ Copyright (c) 2021-2023 Tony133
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -28,7 +28,7 @@ Knexjs module for Nest framework (node.js) 😻
28
28
 
29
29
  ## Installation
30
30
 
31
- First install the module via `yarn` or `npm` and do not forget to install the driver package as well:
31
+ First install the module via `yarn` or `npm` or `pnpm` and do not forget to install the driver package as well:
32
32
 
33
33
 
34
34
  ```bash
@@ -43,6 +43,13 @@ or
43
43
  $ yarn add nest-knexjs knex pg # for postgresql
44
44
  $ yarn add nest-knexjs knex sqlite # for sqlite
45
45
  ```
46
+ or
47
+
48
+ ```bash
49
+ $ pnpm add nest-knexjs knex mysql # for mysql/mariadb
50
+ $ pnpm add nest-knexjs knex pg # for postgresql
51
+ $ pnpm add nest-knexjs knex sqlite # for sqlite
52
+ ```
46
53
 
47
54
  ## Table of Contents
48
55
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nest-knexjs",
3
- "version": "0.0.12",
3
+ "version": "0.0.14",
4
4
  "description": "Knexjs module for Nest framework (node.js) 😻",
5
5
  "author": "Tony133",
6
6
  "license": "MIT",
@@ -19,41 +19,41 @@
19
19
  "prepare": "husky install"
20
20
  },
21
21
  "devDependencies": {
22
- "@commitlint/cli": "17.0.3",
23
- "@commitlint/config-angular": "17.0.3",
24
- "@nestjs/common": "9.0.1",
25
- "@nestjs/core": "9.0.1",
26
- "@nestjs/platform-express": "9.0.1",
27
- "@nestjs/testing": "9.0.1",
28
- "@types/express": "4.17.13",
29
- "@types/node": "16.11.43",
30
- "@types/jest": "28.1.4",
22
+ "@commitlint/cli": "17.4.4",
23
+ "@commitlint/config-angular": "17.4.4",
24
+ "@nestjs/common": "9.3.2",
25
+ "@nestjs/core": "9.3.2",
26
+ "@nestjs/platform-express": "9.3.2",
27
+ "@nestjs/testing": "9.3.2",
28
+ "@types/express": "4.17.17",
29
+ "@types/jest": "29.4.0",
30
+ "@types/node": "18.14.0",
31
31
  "@types/supertest": "2.0.12",
32
- "@typescript-eslint/eslint-plugin": "5.30.5",
33
- "@typescript-eslint/parser": "5.30.5",
34
- "eslint": "8.19.0",
35
- "eslint-config-prettier": "8.5.0",
36
- "eslint-plugin-import": "2.26.0",
37
- "knex": "2.1.0",
32
+ "@typescript-eslint/eslint-plugin": "5.52.0",
33
+ "@typescript-eslint/parser": "5.52.0",
34
+ "eslint": "8.34.0",
35
+ "eslint-config-prettier": "8.6.0",
36
+ "eslint-plugin-import": "2.27.5",
37
+ "husky": "8.0.3",
38
+ "jest": "29.4.3",
39
+ "knex": "2.4.2",
38
40
  "mysql": "2.18.1",
39
- "husky": "8.0.1",
40
- "prettier": "2.7.1",
41
- "jest": "28.1.2",
41
+ "prettier": "2.8.4",
42
42
  "reflect-metadata": "0.1.13",
43
- "release-it": "15.1.1",
44
- "supertest": "6.2.4",
45
- "ts-node": "10.8.2",
46
- "rxjs": "7.5.5",
47
- "ts-jest": "28.0.5",
48
- "tsconfig-paths": "4.0.0",
49
- "typescript": "4.7.4"
43
+ "release-it": "15.6.0",
44
+ "rxjs": "7.8.0",
45
+ "supertest": "6.3.3",
46
+ "ts-jest": "29.0.5",
47
+ "ts-node": "10.9.1",
48
+ "tsconfig-paths": "4.1.2",
49
+ "typescript": "4.9.5"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "@nestjs/common": "^7.0.0 || ^8.0.0 || ^9.0.0",
53
53
  "@nestjs/core": "^7.0.0 || ^8.0.0 || ^9.0.0",
54
+ "knex": "^0.21.17 || ^0.95.0 || ^1.0.0 || ^2.0.0",
54
55
  "reflect-metadata": "^0.1.13",
55
- "rxjs": "^6.6.3 || ^7.2.0",
56
- "knex": "^0.21.17 || ^0.95.0 || ^1.0.0 || ^2.0.0"
56
+ "rxjs": "^6.6.3 || ^7.2.0"
57
57
  },
58
58
  "lint-staged": {
59
59
  "**/*.{ts,json}": []
@@ -61,5 +61,8 @@
61
61
  "repository": {
62
62
  "type": "git",
63
63
  "url": "https://github.com/tony133/nestjs-knexjs"
64
+ },
65
+ "dependencies": {
66
+ "uuid": "9.0.0"
64
67
  }
65
68
  }
package/tags ADDED
@@ -0,0 +1,19 @@
1
+ !_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/
2
+ !_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
3
+ !_TAG_PROGRAM_AUTHOR Darren Hiebert /dhiebert@users.sourceforge.net/
4
+ !_TAG_PROGRAM_NAME Exuberant Ctags //
5
+ !_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/
6
+ !_TAG_PROGRAM_VERSION 5.8 //
7
+ exports.down tests/app-knex/migrations/20210223224919_api.js /^exports.down = function (knex) {$/;" f
8
+ exports.down tests/app-multi-database/migrations/posts/20210902093735_posts.js /^exports.down = function (knex) {$/;" f
9
+ exports.down tests/app-multi-database/migrations/users/20210808150144_users.js /^exports.down = function (knex) {$/;" f
10
+ exports.seed tests/app-knex/seeds/users.js /^exports.seed = function (knex) {$/;" f
11
+ exports.seed tests/app-multi-database/seeds/posts.js /^exports.seed = function (knex) {$/;" f
12
+ exports.seed tests/app-multi-database/seeds/users.js /^exports.seed = function (knex) {$/;" f
13
+ exports.up tests/app-knex/migrations/20210223224919_api.js /^exports.up = function (knex) {$/;" f
14
+ exports.up tests/app-multi-database/migrations/posts/20210902093735_posts.js /^exports.up = function (knex) {$/;" f
15
+ exports.up tests/app-multi-database/migrations/users/20210808150144_users.js /^exports.up = function (knex) {$/;" f
16
+ module.exports.development tests/app-knex/knexfile.js /^ development: {$/;" p
17
+ module.exports.development tests/app-multi-database/knexfile.js /^ development: {$/;" p
18
+ module.exports.parser .eslintrc.js /^ parser: '@typescript-eslint\/parser',$/;" p
19
+ module.exports.parserOptions .eslintrc.js /^ parserOptions: {$/;" p