fastypest 1.3.10 → 1.4.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.
Files changed (36) hide show
  1. package/.yarnrc.yml +1 -1
  2. package/CHANGELOG.md +45 -45
  3. package/LICENSE +674 -674
  4. package/README.md +42 -42
  5. package/dist/core/config.d.ts +2 -0
  6. package/dist/core/config.js +8 -0
  7. package/dist/core/config.js.map +1 -0
  8. package/dist/core/fastypest.d.ts +16 -11
  9. package/dist/core/fastypest.js +133 -45
  10. package/dist/core/fastypest.js.map +1 -1
  11. package/dist/core/sql-script/queries/cockroachdb.json +5 -2
  12. package/dist/core/sql-script/queries/index.d.ts +12 -0
  13. package/dist/core/sql-script/queries/mysql.query.json +4 -1
  14. package/dist/core/sql-script/queries/postgres.query.json +7 -4
  15. package/dist/core/sql-script/sql-script.d.ts +6 -5
  16. package/dist/core/sql-script/sql-script.js +7 -4
  17. package/dist/core/sql-script/sql-script.js.map +1 -1
  18. package/dist/core/types.d.ts +28 -0
  19. package/dist/core/types.js +3 -0
  20. package/dist/core/types.js.map +1 -0
  21. package/eslint.config.mjs +29 -28
  22. package/package.json +81 -81
  23. package/.pnp.loader.mjs +0 -2110
  24. package/.yarn/releases/yarn-4.2.2.cjs +0 -894
  25. package/.yarn/sdks/eslint/bin/eslint.js +0 -20
  26. package/.yarn/sdks/eslint/lib/api.js +0 -20
  27. package/.yarn/sdks/eslint/lib/unsupported-api.js +0 -20
  28. package/.yarn/sdks/eslint/package.json +0 -14
  29. package/.yarn/sdks/integrations.yml +0 -5
  30. package/.yarn/sdks/typescript/bin/tsc +0 -20
  31. package/.yarn/sdks/typescript/bin/tsserver +0 -20
  32. package/.yarn/sdks/typescript/lib/tsc.js +0 -20
  33. package/.yarn/sdks/typescript/lib/tsserver.js +0 -232
  34. package/.yarn/sdks/typescript/lib/tsserverlibrary.js +0 -232
  35. package/.yarn/sdks/typescript/lib/typescript.js +0 -20
  36. package/.yarn/sdks/typescript/package.json +0 -10
package/package.json CHANGED
@@ -1,81 +1,81 @@
1
- {
2
- "name": "fastypest",
3
- "version": "1.3.10",
4
- "description": "Restores the database automatically after each test. Allows serial execution of tests without having to delete and restore the database having to stop the application",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "engines": {
8
- "node": ">=18.18.0"
9
- },
10
- "packageManager": "yarn@4.2.2",
11
- "volta": {
12
- "node": "18.18.0",
13
- "yarn": "4.2.2"
14
- },
15
- "installConfig": {
16
- "pnp": false
17
- },
18
- "scripts": {
19
- "prebuild": "rimraf dist",
20
- "build": "tsc",
21
- "eslint": "eslint --fix .",
22
- "pretest": "tsc",
23
- "test": "jest --runInBand --config ./jest.config.json",
24
- "docker": "ts-node -r tsconfig-paths/register scripts/prepare-docker.ts",
25
- "release": "standard-version --release-as patch"
26
- },
27
- "repository": {
28
- "type": "git",
29
- "url": "git+https://github.com/juanjoGonDev/fastypest.git"
30
- },
31
- "keywords": [
32
- "typeorm",
33
- "test",
34
- "transaction",
35
- "rollback",
36
- "nestjs",
37
- "restore",
38
- "db",
39
- "speed",
40
- "up",
41
- "tests",
42
- "jest",
43
- "fastypest"
44
- ],
45
- "author": "juanjoGonDev",
46
- "license": "GPL",
47
- "bugs": {
48
- "url": "https://github.com/juanjoGonDev/fastypest/issues"
49
- },
50
- "homepage": "https://github.com/juanjoGonDev/fastypest#readme",
51
- "devDependencies": {
52
- "@eslint/js": "^9.3.0",
53
- "@types/cross-spawn": "^6.0.6",
54
- "@types/jest": "^29.5.12",
55
- "@types/node": "^20.12.12",
56
- "@typescript-eslint/eslint-plugin": "^7.10.0",
57
- "cross-spawn": "^7.0.3",
58
- "eslint": "^9.3.0",
59
- "eslint-config-standard-with-typescript": "^43.0.1",
60
- "eslint-plugin-import": "^2.29.1",
61
- "eslint-plugin-n": "^17.7.0",
62
- "eslint-plugin-prettier": "^5.1.3",
63
- "eslint-plugin-promise": "^6.1.1",
64
- "globals": "^15.3.0",
65
- "jest": "^29.7.0",
66
- "mariadb": "^3.3.0",
67
- "mysql": "^2.18.1",
68
- "pg": "^8.11.5",
69
- "rimraf": "^5.0.7",
70
- "standard-version": "^9.5.0",
71
- "ts-jest": "^29.1.3",
72
- "ts-node": "^10.9.2",
73
- "tsconfig-paths": "^4.2.0",
74
- "typeorm": "^0.3.20",
75
- "typescript": "^5.4.5",
76
- "typescript-eslint": "^7.10.0"
77
- },
78
- "peerDependencies": {
79
- "typeorm": "^0.3.20"
80
- }
81
- }
1
+ {
2
+ "name": "fastypest",
3
+ "version": "1.4.0",
4
+ "description": "Restores the database automatically after each test. Allows serial execution of tests without having to delete and restore the database having to stop the application",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "engines": {
8
+ "node": ">=18.18.0"
9
+ },
10
+ "packageManager": "yarn@4.2.2",
11
+ "volta": {
12
+ "node": "18.18.0",
13
+ "yarn": "4.2.2"
14
+ },
15
+ "scripts": {
16
+ "postinstall": "husky install",
17
+ "prebuild": "rimraf dist",
18
+ "build": "tsc",
19
+ "eslint": "eslint --fix .",
20
+ "pretest": "tsc",
21
+ "test:ci": "jest --runInBand --forceExit --verbose --showSeed --config ./tests/jest.config.json",
22
+ "test": "yarn build && yarn test:ci",
23
+ "docker": "ts-node -r tsconfig-paths/register scripts/prepare-docker.ts",
24
+ "release": "standard-version --release-as patch"
25
+ },
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "git+https://github.com/juanjoGonDev/fastypest.git"
29
+ },
30
+ "keywords": [
31
+ "typeorm",
32
+ "test",
33
+ "transaction",
34
+ "rollback",
35
+ "nestjs",
36
+ "restore",
37
+ "db",
38
+ "speed",
39
+ "up",
40
+ "tests",
41
+ "jest",
42
+ "fastypest"
43
+ ],
44
+ "author": "juanjoGonDev",
45
+ "license": "GPL",
46
+ "bugs": {
47
+ "url": "https://github.com/juanjoGonDev/fastypest/issues"
48
+ },
49
+ "homepage": "https://github.com/juanjoGonDev/fastypest#readme",
50
+ "devDependencies": {
51
+ "@eslint/js": "^9.3.0",
52
+ "@types/cross-spawn": "^6.0.6",
53
+ "@types/jest": "^29.5.12",
54
+ "@types/node": "^20.12.12",
55
+ "@typescript-eslint/eslint-plugin": "^7.10.0",
56
+ "cross-spawn": "^7.0.3",
57
+ "eslint": "^9.3.0",
58
+ "eslint-config-standard-with-typescript": "^43.0.1",
59
+ "eslint-plugin-import": "^2.29.1",
60
+ "eslint-plugin-n": "^17.7.0",
61
+ "eslint-plugin-prettier": "^5.1.3",
62
+ "eslint-plugin-promise": "^6.1.1",
63
+ "globals": "^15.3.0",
64
+ "husky": "^9.0.11",
65
+ "jest": "^29.7.0",
66
+ "mariadb": "^3.3.0",
67
+ "mysql": "^2.18.1",
68
+ "pg": "^8.11.5",
69
+ "rimraf": "^5.0.7",
70
+ "standard-version": "^9.5.0",
71
+ "ts-jest": "^29.1.3",
72
+ "ts-node": "^10.9.2",
73
+ "tsconfig-paths": "^4.2.0",
74
+ "typeorm": "^0.3.20",
75
+ "typescript": "^5.4.5",
76
+ "typescript-eslint": "^7.10.0"
77
+ },
78
+ "peerDependencies": {
79
+ "typeorm": "^0.3.20"
80
+ }
81
+ }