typeorm-naming-strategy 2.0.9 → 2.0.10
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.
- package/README.md +1 -1
- package/dist/main.d.ts +1 -1
- package/dist/main.js.map +1 -1
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -77,9 +77,9 @@ module.exports = {
|
|
|
77
77
|
Use with NestJs configuration
|
|
78
78
|
|
|
79
79
|
```ts
|
|
80
|
+
import type { MysqlConnectionOptions } from 'typeorm/driver/mysql/MysqlConnectionOptions'
|
|
80
81
|
import { registerAs } from '@nestjs/config'
|
|
81
82
|
import { SnakeNamingStrategy } from 'typeorm-naming-strategy'
|
|
82
|
-
import type { MysqlConnectionOptions } from 'typeorm/driver/mysql/MysqlConnectionOptions'
|
|
83
83
|
|
|
84
84
|
export default registerAs('database', (): MysqlConnectionOptions => ({
|
|
85
85
|
// ...
|
package/dist/main.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DefaultNamingStrategy } from 'typeorm';
|
|
2
1
|
import type { NamingStrategyInterface } from 'typeorm';
|
|
2
|
+
import { DefaultNamingStrategy } from 'typeorm';
|
|
3
3
|
export declare class SnakeNamingStrategy extends DefaultNamingStrategy implements NamingStrategyInterface {
|
|
4
4
|
tableName(className: string, customName?: string): string;
|
|
5
5
|
columnName(propertyName: string, customName: string | undefined, embeddedPrefixes: string[]): string;
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;;AACA,qCAA+C;AAC/C,0DAAoD;AAEpD,MAAa,mBACX,SAAQ,+BAAqB;IAE7B,SAAS,CAAC,SAAiB,EAAE,UAAmB;QAC9C,OAAO,UAAU,IAAI,IAAA,uBAAS,EAAC,SAAS,CAAC,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
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.10",
|
|
4
4
|
"packageManager": "yarn@4.4.1",
|
|
5
5
|
"description": "Custom naming strategies for typeorm",
|
|
6
6
|
"author": {
|
|
@@ -39,27 +39,27 @@
|
|
|
39
39
|
"prepublish": "yarn build",
|
|
40
40
|
"prepare": "husky",
|
|
41
41
|
"lint": "eslint .",
|
|
42
|
-
"release": "standard-version && git push --follow-tags origin main &&
|
|
42
|
+
"release": "standard-version && git push --follow-tags origin main && npm publish"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"typeorm": "^0.3"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@antfu/eslint-config": "^3.
|
|
49
|
-
"@commitlint/cli": "^19.
|
|
50
|
-
"@commitlint/config-conventional": "^19.
|
|
51
|
-
"@types/node": "^22.5.
|
|
52
|
-
"@vitest/coverage-v8": "^2.
|
|
48
|
+
"@antfu/eslint-config": "^3.6.2",
|
|
49
|
+
"@commitlint/cli": "^19.5.0",
|
|
50
|
+
"@commitlint/config-conventional": "^19.5.0",
|
|
51
|
+
"@types/node": "^22.5.5",
|
|
52
|
+
"@vitest/coverage-v8": "^2.1.1",
|
|
53
53
|
"eslint": "^9.10.0",
|
|
54
|
-
"husky": "^9.1.
|
|
54
|
+
"husky": "^9.1.6",
|
|
55
55
|
"lint-staged": "^15.2.10",
|
|
56
56
|
"prettier": "^3.3.3",
|
|
57
57
|
"rimraf": "^5.0.10",
|
|
58
58
|
"standard-version": "^9.5.0",
|
|
59
59
|
"ts-node": "^10.9.2",
|
|
60
60
|
"typeorm": "^0.3.20",
|
|
61
|
-
"typescript": "^5.
|
|
62
|
-
"vitest": "^2.
|
|
61
|
+
"typescript": "^5.6.2",
|
|
62
|
+
"vitest": "^2.1.1"
|
|
63
63
|
},
|
|
64
64
|
"lint-staged": {
|
|
65
65
|
"*.{ts,js}": "eslint"
|