Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@trycourier/courier

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trycourier/courier - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

6

lib/client.js

@@ -62,3 +62,3 @@ "use strict";

switch (_a.label) {
case 0: return [4 /*yield*/, options.httpClient.put("/profiles/" + params.profileId, {
case 0: return [4 /*yield*/, options.httpClient.put("/profiles/" + params.recipientId, {
profile: params.profile

@@ -78,3 +78,3 @@ })];

switch (_a.label) {
case 0: return [4 /*yield*/, options.httpClient.post("/profiles/" + params.profileId, {
case 0: return [4 /*yield*/, options.httpClient.post("/profiles/" + params.recipientId, {
profile: params.profile

@@ -94,3 +94,3 @@ })];

switch (_a.label) {
case 0: return [4 /*yield*/, options.httpClient.get("/profiles/" + params.profileId)];
case 0: return [4 /*yield*/, options.httpClient.get("/profiles/" + params.recipientId)];
case 1:

@@ -97,0 +97,0 @@ res = _a.sent();

@@ -27,3 +27,3 @@ export declare type HttpMethodClient = <T>(url: string, body?: object) => Promise<{

export interface ICourierProfilePutParameters {
profileId: string;
recipientId: string;
profile: object;

@@ -35,3 +35,3 @@ }

export interface ICourierProfilePostParameters {
profileId: string;
recipientId: string;
profile: object;

@@ -43,3 +43,3 @@ }

export interface ICourierProfileGetParameters {
profileId: string;
recipientId: string;
}

@@ -46,0 +46,0 @@ export interface ICourierProfileGetResponse {

{
"name": "@trycourier/courier",
"version": "1.1.0",
"version": "1.1.1",
"description": "A node.js module for communicating with the Courier REST API.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -31,3 +31,3 @@ # `@trycourier/courier`

const replaceRes = await courier.replaceProfile({
profileId: "<PROFILE_ID>",
recipientId: "<PROFILE_ID>",
profile: {

@@ -41,3 +41,3 @@ email: "example@example.com"

const mergeRes = await courier.mergeProfile({
profileId: "<PROFILE_ID>",
recipientId: "<PROFILE_ID>",
profile: {

@@ -51,3 +51,3 @@ "sms": "555-555-5555"

const { profile } = await courier.getProfile({
profileId: "<PROFILE_ID>"
recipientId: "<PROFILE_ID>"
});

@@ -54,0 +54,0 @@ console.log(profile);

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