1.0.2 • Published 9 months ago

click-send-nodejs-precompiled v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

ClickSend NodeJs Compiled

The official ClickSend npm package does not come compiled.

See this issue. ¯_(ツ)_

This unofficial package simply pulls the package at the version in package.json and compiles it. Still exports the typescript types.

The official package uses request which has been unmaintained for 5 years and suffers this cve. This package forces it to use @cypress/request which is patched.

"request": "npm:@cypress/request@^3.0.5",

Usage

import { SMSApi } from "click-send-nodejs-precompiled";
const clickSend = new SMSApi(
  process.env.CLICKSEND_USERNAME!,
  process.env.CLICKSEND_API_KEY!
);
const smsCollection = {
  messages: [
    {
      from: "from",
      body: "message",
      to: "+614...",
    },
  ],
};

await clickSend.smsSendPost(smsCollection);
1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago