uranio 0.1.65 → 0.1.68

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/.envrc ADDED
@@ -0,0 +1 @@
1
+ use nix
@@ -28,6 +28,6 @@
28
28
  "typescript": "^5.2.2"
29
29
  },
30
30
  "dependencies": {
31
- "uranio": "0.1.65"
31
+ "uranio": "0.1.68"
32
32
  }
33
33
  }
@@ -27,9 +27,9 @@ export class MongoDBClient {
27
27
  version: ServerApiVersion.v1,
28
28
  strict: true,
29
29
  deprecationErrors: true,
30
- maxPoolSize: 10,
31
- minPoolSize: 0,
32
30
  },
31
+ maxPoolSize: 10,
32
+ minPoolSize: 0,
33
33
  } as MongoClientOptions;
34
34
  this.client = new MongoClient(params.uri, options);
35
35
  this.db = this.client.db(params.db_name, {ignoreUndefined: true});
@@ -64,7 +64,9 @@ export class MySQLClient {
64
64
  log.trace(`Retrieving pool connection...`);
65
65
  const pool_connection = await this.pool.getConnection();
66
66
  log.trace(`[${pool_connection.threadId}] Retrieved pool connection`);
67
- const [rows, fields] = await pool_connection.execute(sql, values);
67
+ // NOTE: For some reason they removed the execute method from the typescript
68
+ // declaration file. The execute method is still in the javascript
69
+ const [rows, fields] = await (pool_connection as any).execute(sql, values);
68
70
  log.trace(`Releasing pool connection...`);
69
71
  pool_connection.release();
70
72
  log.trace(`[${pool_connection.threadId}] Released pool connection`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uranio",
3
- "version": "0.1.65",
3
+ "version": "0.1.68",
4
4
  "description": "Uranio is a type-safe ODM for MongoDB",
5
5
  "main": "dist/index.js",
6
6
  "repository": {
package/shell.nix ADDED
@@ -0,0 +1,14 @@
1
+ { pkgs ? import <nixpkgs> {} }:
2
+ pkgs.mkShell {
3
+ packages = [
4
+ pkgs.nodejs_24
5
+ pkgs.nodePackages_latest.yarn
6
+ pkgs.nodePackages_latest.typescript
7
+ pkgs.nodePackages_latest.typescript-language-server
8
+ ];
9
+ shellHook = ''
10
+ export NODE_ENV=development
11
+ echo "node: $(node -v) | npm: $(npm -v) | yarn: $(yarn -v) | typescript: $(tsc -v)"
12
+ '';
13
+ }
14
+