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

@trycourier/courier

Package Overview
Dependencies
Maintainers
3
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 4.5.0 to 4.6.0

lib/users/index.d.ts

4

lib/client.js

@@ -52,2 +52,3 @@ "use strict";

var token_management_1 = require("./token-management");
var users_1 = require("./users");
var cancelMessage = function (options) {

@@ -157,4 +158,5 @@ return function (messageId) { return __awaiter(void 0, void 0, void 0, function () {

send: send_1.send(options),
tokenManagement: token_management_1.tokenManagement(options)
tokenManagement: token_management_1.tokenManagement(options),
users: users_1.users(options)
};
};

@@ -11,2 +11,3 @@ import { ICourierClientAccounts } from "./accounts/types";

import { tokenManagement } from "./token-management";
import { users } from "./users";
export interface IInitHttpClientOptions {

@@ -350,3 +351,4 @@ baseUrl: string;

tokenManagement: ReturnType<typeof tokenManagement>;
users: ReturnType<typeof users>;
}
export {};
{
"name": "@trycourier/courier",
"version": "4.5.0",
"version": "4.6.0",
"description": "A node.js module for communicating with the Courier REST API.",

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

@@ -826,2 +826,21 @@ [![Courier: Your Complete Communication Stack](https://marketing-assets-public.s3.us-west-1.amazonaws.com/github_nodejs.png)](https://courier.com)

### Users
#### Updating user
```ts
await courier.users.put("<USER_ID>", {
accounts: [{ account_id: "ACCOUNT_ID", profile: { foo: "bar" } }],
profile: { name: "John Doe" },
});
```
#### Updating user accounts
```ts
await courier.users.putAccounts("<USER_ID>", {
accounts: [{ account_id: "ACCOUNT_ID", profile: { foo: "bar" } }],
});
```
## License

@@ -828,0 +847,0 @@

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