@replit/database
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -60,3 +60,3 @@ const fetch = require("node-fetch"); | ||
headers: { "Content-Type": "application/x-www-form-urlencoded" }, | ||
body: key + "=" + strValue, | ||
body: encodeURIComponent(key) + "=" + encodeURIComponent(strValue), | ||
}); | ||
@@ -63,0 +63,0 @@ return this; |
@@ -76,1 +76,7 @@ const fetch = require("node-fetch"); | ||
}); | ||
test("ensure that we escape values when setting", async () => { | ||
expect(await client.set("a", "1;b=2")).toEqual(client); | ||
expect(await client.list()).toEqual(["a"]) | ||
expect(await client.get("a")).toEqual("1;b=2") | ||
}); |
{ | ||
"name": "@replit/database", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Client for Repl.it Database", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10251
207