@cuboapp/database
Advanced tools
+1
-2
| { | ||
| "name": "@cuboapp/database", | ||
| "version": "1.0.0", | ||
| "version": "1.0.1", | ||
| "description": "Database methods", | ||
@@ -14,3 +14,2 @@ "main": "src/index.ts", | ||
| "dependencies": { | ||
| "pg": "^8.16.3", | ||
| "sequelize": "^6.37.7" | ||
@@ -17,0 +16,0 @@ }, |
+5
-1
@@ -6,2 +6,6 @@ import { Options, QueryTypes, Sequelize, Transaction } from 'sequelize' | ||
| export * from 'sequelize' | ||
| export * from './types' | ||
| export * from './utils' | ||
| export class Database { | ||
@@ -44,3 +48,3 @@ public connection: Sequelize | ||
| public async create<T = number | string>( | ||
| public async create<T extends number | string = number>( | ||
| table: string, | ||
@@ -47,0 +51,0 @@ arInsert: any, |
+8
-1
@@ -1,3 +0,6 @@ | ||
| import { QueryTypes, Sequelize, Transaction } from 'sequelize' | ||
| import { Options, QueryTypes, Sequelize, Transaction } from 'sequelize' | ||
| import { Database } from '.' | ||
| import { DatabaseOptions } from './types' | ||
| export function dbPrepareUpdateQueryString(obj: Record<string, any>, prefix = '') { | ||
@@ -129,1 +132,5 @@ const keys: string[] = [] | ||
| } | ||
| export function createDatabase(opts: Options, otherOptions?: DatabaseOptions) { | ||
| return new Database(opts, otherOptions) | ||
| } |
-314
| lockfileVersion: '9.0' | ||
| settings: | ||
| autoInstallPeers: true | ||
| excludeLinksFromLockfile: false | ||
| importers: | ||
| .: | ||
| dependencies: | ||
| pg: | ||
| specifier: ^8.16.3 | ||
| version: 8.16.3 | ||
| sequelize: | ||
| specifier: ^6.37.7 | ||
| version: 6.37.7(pg@8.16.3) | ||
| devDependencies: | ||
| '@types/node': | ||
| specifier: ^24.0.0 | ||
| version: 24.8.1 | ||
| typescript: | ||
| specifier: ^5.9.3 | ||
| version: 5.9.3 | ||
| packages: | ||
| '@types/debug@4.1.12': | ||
| resolution: {integrity: sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==} | ||
| '@types/ms@2.1.0': | ||
| resolution: {integrity: sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==} | ||
| '@types/node@24.8.1': | ||
| resolution: {integrity: sha512-alv65KGRadQVfVcG69MuB4IzdYVpRwMG/mq8KWOaoOdyY617P5ivaDiMCGOFDWD2sAn5Q0mR3mRtUOgm99hL9Q==} | ||
| '@types/validator@13.15.3': | ||
| resolution: {integrity: sha512-7bcUmDyS6PN3EuD9SlGGOxM77F8WLVsrwkxyWxKnxzmXoequ6c7741QBrANq6htVRGOITJ7z72mTP6Z4XyuG+Q==} | ||
| debug@4.4.3: | ||
| resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==} | ||
| engines: {node: '>=6.0'} | ||
| peerDependencies: | ||
| supports-color: '*' | ||
| peerDependenciesMeta: | ||
| supports-color: | ||
| optional: true | ||
| dottie@2.0.6: | ||
| resolution: {integrity: sha512-iGCHkfUc5kFekGiqhe8B/mdaurD+lakO9txNnTvKtA6PISrw86LgqHvRzWYPyoE2Ph5aMIrCw9/uko6XHTKCwA==} | ||
| inflection@1.13.4: | ||
| resolution: {integrity: sha512-6I/HUDeYFfuNCVS3td055BaXBwKYuzw7K3ExVMStBowKo9oOAMJIXIHvdyR3iboTCp1b+1i5DSkIZTcwIktuDw==} | ||
| engines: {'0': node >= 0.4.0} | ||
| lodash@4.17.21: | ||
| resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} | ||
| moment-timezone@0.5.48: | ||
| resolution: {integrity: sha512-f22b8LV1gbTO2ms2j2z13MuPogNoh5UzxL3nzNAYKGraILnbGc9NEE6dyiiiLv46DGRb8A4kg8UKWLjPthxBHw==} | ||
| moment@2.30.1: | ||
| resolution: {integrity: sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==} | ||
| ms@2.1.3: | ||
| resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} | ||
| pg-cloudflare@1.2.7: | ||
| resolution: {integrity: sha512-YgCtzMH0ptvZJslLM1ffsY4EuGaU0cx4XSdXLRFae8bPP4dS5xL1tNB3k2o/N64cHJpwU7dxKli/nZ2lUa5fLg==} | ||
| pg-connection-string@2.9.1: | ||
| resolution: {integrity: sha512-nkc6NpDcvPVpZXxrreI/FOtX3XemeLl8E0qFr6F2Lrm/I8WOnaWNhIPK2Z7OHpw7gh5XJThi6j6ppgNoaT1w4w==} | ||
| pg-int8@1.0.1: | ||
| resolution: {integrity: sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw==} | ||
| engines: {node: '>=4.0.0'} | ||
| pg-pool@3.10.1: | ||
| resolution: {integrity: sha512-Tu8jMlcX+9d8+QVzKIvM/uJtp07PKr82IUOYEphaWcoBhIYkoHpLXN3qO59nAI11ripznDsEzEv8nUxBVWajGg==} | ||
| peerDependencies: | ||
| pg: '>=8.0' | ||
| pg-protocol@1.10.3: | ||
| resolution: {integrity: sha512-6DIBgBQaTKDJyxnXaLiLR8wBpQQcGWuAESkRBX/t6OwA8YsqP+iVSiond2EDy6Y/dsGk8rh/jtax3js5NeV7JQ==} | ||
| pg-types@2.2.0: | ||
| resolution: {integrity: sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA==} | ||
| engines: {node: '>=4'} | ||
| pg@8.16.3: | ||
| resolution: {integrity: sha512-enxc1h0jA/aq5oSDMvqyW3q89ra6XIIDZgCX9vkMrnz5DFTw/Ny3Li2lFQ+pt3L6MCgm/5o2o8HW9hiJji+xvw==} | ||
| engines: {node: '>= 16.0.0'} | ||
| peerDependencies: | ||
| pg-native: '>=3.0.1' | ||
| peerDependenciesMeta: | ||
| pg-native: | ||
| optional: true | ||
| pgpass@1.0.5: | ||
| resolution: {integrity: sha512-FdW9r/jQZhSeohs1Z3sI1yxFQNFvMcnmfuj4WBMUTxOrAyLMaTcE1aAMBiTlbMNaXvBCQuVi0R7hd8udDSP7ug==} | ||
| postgres-array@2.0.0: | ||
| resolution: {integrity: sha512-VpZrUqU5A69eQyW2c5CA1jtLecCsN2U/bD6VilrFDWq5+5UIEVO7nazS3TEcHf1zuPYO/sqGvUvW62g86RXZuA==} | ||
| engines: {node: '>=4'} | ||
| postgres-bytea@1.0.0: | ||
| resolution: {integrity: sha512-xy3pmLuQqRBZBXDULy7KbaitYqLcmxigw14Q5sj8QBVLqEwXfeybIKVWiqAXTlcvdvb0+xkOtDbfQMOf4lST1w==} | ||
| engines: {node: '>=0.10.0'} | ||
| postgres-date@1.0.7: | ||
| resolution: {integrity: sha512-suDmjLVQg78nMK2UZ454hAG+OAW+HQPZ6n++TNDUX+L0+uUlLywnoxJKDou51Zm+zTCjrCl0Nq6J9C5hP9vK/Q==} | ||
| engines: {node: '>=0.10.0'} | ||
| postgres-interval@1.2.0: | ||
| resolution: {integrity: sha512-9ZhXKM/rw350N1ovuWHbGxnGh/SNJ4cnxHiM0rxE4VN41wsg8P8zWn9hv/buK00RP4WvlOyr/RBDiptyxVbkZQ==} | ||
| engines: {node: '>=0.10.0'} | ||
| retry-as-promised@7.1.1: | ||
| resolution: {integrity: sha512-hMD7odLOt3LkTjcif8aRZqi/hybjpLNgSk5oF5FCowfCjok6LukpN2bDX7R5wDmbgBQFn7YoBxSagmtXHaJYJw==} | ||
| semver@7.7.3: | ||
| resolution: {integrity: sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==} | ||
| engines: {node: '>=10'} | ||
| hasBin: true | ||
| sequelize-pool@7.1.0: | ||
| resolution: {integrity: sha512-G9c0qlIWQSK29pR/5U2JF5dDQeqqHRragoyahj/Nx4KOOQ3CPPfzxnfqFPCSB7x5UgjOgnZ61nSxz+fjDpRlJg==} | ||
| engines: {node: '>= 10.0.0'} | ||
| sequelize@6.37.7: | ||
| resolution: {integrity: sha512-mCnh83zuz7kQxxJirtFD7q6Huy6liPanI67BSlbzSYgVNl5eXVdE2CN1FuAeZwG1SNpGsNRCV+bJAVVnykZAFA==} | ||
| engines: {node: '>=10.0.0'} | ||
| peerDependencies: | ||
| ibm_db: '*' | ||
| mariadb: '*' | ||
| mysql2: '*' | ||
| oracledb: '*' | ||
| pg: '*' | ||
| pg-hstore: '*' | ||
| snowflake-sdk: '*' | ||
| sqlite3: '*' | ||
| tedious: '*' | ||
| peerDependenciesMeta: | ||
| ibm_db: | ||
| optional: true | ||
| mariadb: | ||
| optional: true | ||
| mysql2: | ||
| optional: true | ||
| oracledb: | ||
| optional: true | ||
| pg: | ||
| optional: true | ||
| pg-hstore: | ||
| optional: true | ||
| snowflake-sdk: | ||
| optional: true | ||
| sqlite3: | ||
| optional: true | ||
| tedious: | ||
| optional: true | ||
| split2@4.2.0: | ||
| resolution: {integrity: sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==} | ||
| engines: {node: '>= 10.x'} | ||
| toposort-class@1.0.1: | ||
| resolution: {integrity: sha512-OsLcGGbYF3rMjPUf8oKktyvCiUxSbqMMS39m33MAjLTC1DVIH6x3WSt63/M77ihI09+Sdfk1AXvfhCEeUmC7mg==} | ||
| typescript@5.9.3: | ||
| resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} | ||
| engines: {node: '>=14.17'} | ||
| hasBin: true | ||
| undici-types@7.14.0: | ||
| resolution: {integrity: sha512-QQiYxHuyZ9gQUIrmPo3IA+hUl4KYk8uSA7cHrcKd/l3p1OTpZcM0Tbp9x7FAtXdAYhlasd60ncPpgu6ihG6TOA==} | ||
| uuid@8.3.2: | ||
| resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==} | ||
| hasBin: true | ||
| validator@13.15.15: | ||
| resolution: {integrity: sha512-BgWVbCI72aIQy937xbawcs+hrVaN/CZ2UwutgaJ36hGqRrLNM+f5LUT/YPRbo8IV/ASeFzXszezV+y2+rq3l8A==} | ||
| engines: {node: '>= 0.10'} | ||
| wkx@0.5.0: | ||
| resolution: {integrity: sha512-Xng/d4Ichh8uN4l0FToV/258EjMGU9MGcA0HV2d9B/ZpZB3lqQm7nkOdZdm5GhKtLLhAE7PiVQwN4eN+2YJJUg==} | ||
| xtend@4.0.2: | ||
| resolution: {integrity: sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==} | ||
| engines: {node: '>=0.4'} | ||
| snapshots: | ||
| '@types/debug@4.1.12': | ||
| dependencies: | ||
| '@types/ms': 2.1.0 | ||
| '@types/ms@2.1.0': {} | ||
| '@types/node@24.8.1': | ||
| dependencies: | ||
| undici-types: 7.14.0 | ||
| '@types/validator@13.15.3': {} | ||
| debug@4.4.3: | ||
| dependencies: | ||
| ms: 2.1.3 | ||
| dottie@2.0.6: {} | ||
| inflection@1.13.4: {} | ||
| lodash@4.17.21: {} | ||
| moment-timezone@0.5.48: | ||
| dependencies: | ||
| moment: 2.30.1 | ||
| moment@2.30.1: {} | ||
| ms@2.1.3: {} | ||
| pg-cloudflare@1.2.7: | ||
| optional: true | ||
| pg-connection-string@2.9.1: {} | ||
| pg-int8@1.0.1: {} | ||
| pg-pool@3.10.1(pg@8.16.3): | ||
| dependencies: | ||
| pg: 8.16.3 | ||
| pg-protocol@1.10.3: {} | ||
| pg-types@2.2.0: | ||
| dependencies: | ||
| pg-int8: 1.0.1 | ||
| postgres-array: 2.0.0 | ||
| postgres-bytea: 1.0.0 | ||
| postgres-date: 1.0.7 | ||
| postgres-interval: 1.2.0 | ||
| pg@8.16.3: | ||
| dependencies: | ||
| pg-connection-string: 2.9.1 | ||
| pg-pool: 3.10.1(pg@8.16.3) | ||
| pg-protocol: 1.10.3 | ||
| pg-types: 2.2.0 | ||
| pgpass: 1.0.5 | ||
| optionalDependencies: | ||
| pg-cloudflare: 1.2.7 | ||
| pgpass@1.0.5: | ||
| dependencies: | ||
| split2: 4.2.0 | ||
| postgres-array@2.0.0: {} | ||
| postgres-bytea@1.0.0: {} | ||
| postgres-date@1.0.7: {} | ||
| postgres-interval@1.2.0: | ||
| dependencies: | ||
| xtend: 4.0.2 | ||
| retry-as-promised@7.1.1: {} | ||
| semver@7.7.3: {} | ||
| sequelize-pool@7.1.0: {} | ||
| sequelize@6.37.7(pg@8.16.3): | ||
| dependencies: | ||
| '@types/debug': 4.1.12 | ||
| '@types/validator': 13.15.3 | ||
| debug: 4.4.3 | ||
| dottie: 2.0.6 | ||
| inflection: 1.13.4 | ||
| lodash: 4.17.21 | ||
| moment: 2.30.1 | ||
| moment-timezone: 0.5.48 | ||
| pg-connection-string: 2.9.1 | ||
| retry-as-promised: 7.1.1 | ||
| semver: 7.7.3 | ||
| sequelize-pool: 7.1.0 | ||
| toposort-class: 1.0.1 | ||
| uuid: 8.3.2 | ||
| validator: 13.15.15 | ||
| wkx: 0.5.0 | ||
| optionalDependencies: | ||
| pg: 8.16.3 | ||
| transitivePeerDependencies: | ||
| - supports-color | ||
| split2@4.2.0: {} | ||
| toposort-class@1.0.1: {} | ||
| typescript@5.9.3: {} | ||
| undici-types@7.14.0: {} | ||
| uuid@8.3.2: {} | ||
| validator@13.15.15: {} | ||
| wkx@0.5.0: | ||
| dependencies: | ||
| '@types/node': 24.8.1 | ||
| xtend@4.0.2: {} |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
1
-50%262
3.15%9166
-48.8%8
-11.11%- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed