libsql-migrate
Advanced tools
+5
-3
| { | ||
| "name": "libsql-migrate", | ||
| "version": "1.3.4", | ||
| "version": "1.3.5", | ||
| "description": "Database migration and seed management for libsql with configurable options.", | ||
@@ -9,3 +9,3 @@ "bin": { | ||
| "scripts": { | ||
| "test": "echo \"Error: no test specified\" && exit 1", | ||
| "test": "vitest run", | ||
| "format": "prettier . --write", | ||
@@ -50,5 +50,7 @@ "lint:eslint": "eslint **/*[.cjs,.js] --ignore-path=.gitignore --no-error-on-unmatched-pattern", | ||
| "devDependencies": { | ||
| "@vitest/coverage-v8": "^4.0.18", | ||
| "eslint": "^8.57.0", | ||
| "eslint-config-prettier": "^9.1.0", | ||
| "prettier": "3.2.5" | ||
| "prettier": "3.2.5", | ||
| "vitest": "^4.0.18" | ||
| }, | ||
@@ -55,0 +57,0 @@ "dependencies": { |
+5
-2
@@ -406,5 +406,8 @@ # libsql Migrate | ||
| Contributions are welcome. Kindly run `npm run format` and `npm run lint` before | ||
| committing code and submitting a pull request. | ||
| Contributions are welcome. Kindly run `npm test`, `npm run format`, and `npm run | ||
| lint` before committing code and submitting a pull request. Please ensure all | ||
| tests pass before submitting. | ||
| If you introduce new features, please add tests for them. | ||
| ## License | ||
@@ -411,0 +414,0 @@ |
+2
-2
@@ -44,5 +44,5 @@ import { createClient } from "@libsql/client"; | ||
| DELETE FROM libsql_migrate | ||
| WHERE name = :name; | ||
| WHERE name = ?; | ||
| `, | ||
| args: { name: latest.name }, | ||
| args: [latest.name], | ||
| }); | ||
@@ -49,0 +49,0 @@ |
@@ -51,10 +51,7 @@ import { createClient } from "@libsql/client"; | ||
| ) VALUES ( | ||
| :name, | ||
| :batch | ||
| ?, | ||
| ? | ||
| ); | ||
| `, | ||
| args: { | ||
| name: migration.name, | ||
| batch, | ||
| }, | ||
| args: [migration.name, batch], | ||
| }); | ||
@@ -61,0 +58,0 @@ } |
@@ -51,7 +51,5 @@ import { createClient } from "@libsql/client"; | ||
| DELETE FROM libsql_migrate | ||
| WHERE name = :name; | ||
| WHERE name = ?; | ||
| `, | ||
| args: { | ||
| name: migration.name, | ||
| }, | ||
| args: [migration.name], | ||
| }); | ||
@@ -58,0 +56,0 @@ } |
+3
-6
@@ -49,10 +49,7 @@ import { createClient } from "@libsql/client"; | ||
| ) VALUES ( | ||
| :name, | ||
| :batch | ||
| ?, | ||
| ? | ||
| ); | ||
| `, | ||
| args: { | ||
| name: next.name, | ||
| batch: latest ? latest.batch + 1 : 1, | ||
| }, | ||
| args: [next.name, latest ? latest.batch + 1 : 1], | ||
| }); | ||
@@ -59,0 +56,0 @@ |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
39687
0.04%0
-100%434
0.7%5
66.67%791
-1%