New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

refire-client

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

refire-client - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

readme.md

22

dist/index.js

@@ -15,3 +15,6 @@ "use strict";

constructor(apiKey, apiUrl = "https://refire.email/api") {
this.apiKey = apiKey; // Now required
if (!apiKey) {
throw new Error('API key is required');
}
this.apiKey = apiKey;
this.apiUrl = apiUrl;

@@ -21,11 +24,10 @@ }

return __awaiter(this, void 0, void 0, function* () {
const headers = {
"Content-Type": "application/json",
"x-api-key": this.apiKey,
};
const response = yield fetch(`${this.apiUrl}/send-email`, {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
apiKey: this.apiKey,
data: params,
}),
headers,
body: JSON.stringify(params),
});

@@ -44,7 +46,7 @@ if (!response.ok) {

"Content-Type": "application/json",
"x-api-key": this.apiKey,
},
body: JSON.stringify({
apiKey: this.apiKey,
templateId: params.templateId,
data: params.data,
to: params.to,
}),

@@ -51,0 +53,0 @@ });

{
"name": "refire-client",
"version": "0.1.0",
"description": "",
"version": "0.1.1",
"description": "Refire Email API Client",
"main": "dist/index.js",

@@ -6,0 +6,0 @@ "scripts": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc