uranio 0.1.69 → 0.1.72

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.
@@ -4,10 +4,10 @@
4
4
  "scripts": {
5
5
  "build": "yarn tsc -b",
6
6
  "dev": "yarn tsc -w",
7
- "dev:base": "infisical run --env=dev -- node -r source-map-support/register -r dotenv/config ./dist/run.js",
8
- "dev:run": "infisical run --env=dev -- yarn tsc-watch --onSuccess \"yarn dev:base\"",
9
- "dev:test": "infisical run --env=dev -- node --import tsx --test --test-reporter spec --watch ./tests/*.test.ts",
10
- "test": "infisical run --env=dev -- node --no-warnings --import tsx --test --test-reporter spec tests/**/*test.ts"
7
+ "dev:base": "node -r source-map-support/register -r dotenv/config ./dist/run.js",
8
+ "dev:run": "yarn tsc-watch --onSuccess \"yarn dev:base\"",
9
+ "dev:test": "node --import tsx --test --test-reporter spec --watch ./tests/*.test.ts",
10
+ "test": "node --no-warnings --import tsx --test --test-reporter spec tests/**/*test.ts"
11
11
  },
12
12
  "devDependencies": {
13
13
  "@types/node": "^20.9.0",
@@ -28,6 +28,6 @@
28
28
  "typescript": "^5.2.2"
29
29
  },
30
30
  "dependencies": {
31
- "uranio": "0.1.69"
31
+ "uranio": "0.1.72"
32
32
  }
33
33
  }
@@ -23,7 +23,7 @@ export class MySQLAtomClient<S extends atom_types.mysql_atom> {
23
23
  const {query, map} = sql.param.compose_select({
24
24
  table: this.name,
25
25
  where,
26
- limit: 'LIMIT 1',
26
+ limit: '1',
27
27
  });
28
28
  const [rows] = await this.client.exe(query, map);
29
29
  if (Array.isArray(rows) && rows[0]) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uranio",
3
- "version": "0.1.69",
3
+ "version": "0.1.72",
4
4
  "description": "Uranio is a type-safe ODM for MongoDB",
5
5
  "main": "dist/index.js",
6
6
  "repository": {
@@ -38,7 +38,7 @@
38
38
  "upgrade:plutonio": "npx remove plutonio && npx add plutonio"
39
39
  },
40
40
  "devDependencies": {
41
- "@types/inquirer": "^9.0.7",
41
+ "@types/inquirer": "^8.2.10",
42
42
  "@types/node": "^20.9.0",
43
43
  "@typescript-eslint/eslint-plugin": "^5.59.1",
44
44
  "@typescript-eslint/parser": "^5.59.1",
@@ -60,7 +60,7 @@
60
60
  "@aws-sdk/util-dynamodb": "^3.969.0",
61
61
  "app-root-path": "^3.1.0",
62
62
  "i0n": "^0.9.0",
63
- "inquirer": "^13.2.0",
63
+ "inquirer": "^8.2.6",
64
64
  "mongodb": "^7.0.0",
65
65
  "mysql2": "^3.16.0",
66
66
  "plutonio": "^0.7.2",
@@ -7,6 +7,28 @@ if [[ `git status --porcelain` ]]; then
7
7
  exit 1
8
8
  fi;
9
9
 
10
+ # Check if logged in to npm
11
+ echo "Checking npm login status..."
12
+ if ! npm whoami --loglevel=error > /dev/null 2>&1; then
13
+ echo
14
+ echo "You are not logged in to npm."
15
+ echo "Please log in to continue."
16
+ echo
17
+ npm login 2>&1 | grep -v "npm warn Unknown"
18
+ if ! npm whoami --loglevel=error > /dev/null 2>&1; then
19
+ echo
20
+ echo "Error: npm login failed. Aborting."
21
+ echo
22
+ exit 1
23
+ fi
24
+ echo
25
+ echo "Successfully logged in to npm as: $(npm whoami 2>/dev/null)"
26
+ echo
27
+ else
28
+ echo "Already logged in to npm as: $(npm whoami --loglevel=error 2>/dev/null)"
29
+ echo
30
+ fi
31
+
10
32
  SEMANTIC_NAME=""
11
33
  FORCE_FLAG=""
12
34