Skip to content

Commit

Permalink
chore: deps
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillgroshkov committed May 24, 2023
1 parent 55986de commit fc87555
Show file tree
Hide file tree
Showing 3 changed files with 216 additions and 278 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"devDependencies": {
"@naturalcycles/dev-lib": "^13.2.1",
"@types/node": "^18.7.13",
"@types/node": "^20.2.3",
"dotenv": "^16.0.0",
"jest": "^29.0.0"
},
Expand Down
4 changes: 2 additions & 2 deletions src/schema/mysql.schema.util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ export function mysqlTableStatsToJsonSchemaField<T extends AnyObject = any>(
* @param name
*/
export function mapNameToMySQL(name: string): string {
return name.replace(/\./g, '_dot_')
return name.replaceAll('.', '_dot_')
}

export function mapNameFromMySQL(name: string): string {
return name.replace(/_dot_/g, '.')
return name.replaceAll('_dot_', '.')
}
Loading

0 comments on commit fc87555

Please sign in to comment.