@evervault/sdk
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -101,2 +101,6 @@ /** @format */ | ||
set: async function(toSave) { | ||
toSave = await this.encrypt(toSave, { | ||
preserveObjectShape: true | ||
}); | ||
const accessToken = await this.getValidAccessToken(); | ||
@@ -134,3 +138,3 @@ | ||
return fetch(`${this.urls.api}/v1/data/${this.appId}/${toGet}`, { | ||
return await fetch(`${this.urls.api}/v1/data/${this.appId}/${toGet}`, { | ||
method: 'GET', | ||
@@ -148,3 +152,3 @@ headers: { | ||
return result; | ||
return this.decrypt(result); | ||
}) | ||
@@ -151,0 +155,0 @@ .catch((err) => { |
{ | ||
"name": "@evervault/sdk", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "evervault Browser SDK", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -275,3 +275,3 @@ /** @format */ | ||
evervault.set(testData).then((result) => { | ||
chai.assert(result.foo === testData.foo && result.bar === testData.bar); | ||
chai.assert('foo' in result && 'bar' in result); | ||
done(); | ||
@@ -278,0 +278,0 @@ }); |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
46247
736
3