🚨 Latest Research:Tanstack npm Packages Compromised in Ongoing Mini Shai-Hulud Supply-Chain Attack.Learn More →
Socket
Book a DemoSign in
Socket

libsql-migrate

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libsql-migrate - npm Package Compare versions

Comparing version
1.3.4
to
1.3.5
+5
-3
package.json
{
"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": {

@@ -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 @@

@@ -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 @@ }

@@ -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 @@