npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

sendbird-desk

v1.1.2

Published

SendBird Desk SDK for JavaScript

Downloads

12,233

Readme

SendBird Desk SDK for JavaScript

This project provides SendBird Desk SDK for JavaScript which includes SendBird messaging SDK for JavaScript, SendBird Desk SDK Core, and SendBird Desk Widget sample

Install

Note: Make sure you have node-js 18 and npm v9 or higher installed

npm install
npm run build

Note: We use dts-bundle-generator because we need a single d.ts file for the SDK. rollup-plugin-typescript2 errors out when we try to use declaration: true in tsconfig.json.

Setting up Tests

Copy .env.example to .env and fill in the values.

These variables should be setup in circle-ci as well. https://app.circleci.com/settings/project/github/sendbird/desk-js/environment-variables

Note: env variables can be found in 1password - engineering/desk_staging_e2e_test To login as admin in dashboard use E2E Admin - Dev in 1password

Test

We use jest with js-dom for testing Test cases are located in test/cases directory and are named `*.test.ts

Note: Try not to run tests in auto-watch mode. We would be connecting and disconnecting to the server for each test case

Local test

npm run test

Publish not implemented yet / maybe use github action

  1. Make sure main branch is up-to-date.
  2. Cut a release branch - release/v#.#.##.
  3. On release branch:
  • Prepare changelog
  • Update version in package.json file.
  1. Make PR to main branch. { optional steps
  2. Make release -> npm run build; npm publish --tag beta
  3. Check release candidate is good to go. }
  4. Merge PR to main branch.
  5. Make release -> npm run build; npm publish
  6. Add release note to github release.
  7. Copy CHANGELOG, LICENSE, dist & package.json to https://github.com/sendbird/SendBird-Desk-SDK-JavaScript repo main branch.

Prettier

npm run format

or (in Visual Studio Code) Install Prettier - Code formatter plugin. Open file to adjust prettier, select all(cmd+a), and cmd+k, cmd+f.

Linting

npm run lint

Browser Support

  • Modern browsers supporting ES6+ (Chrome, FireFox, Edge, Safari, etc)
  • Mobile browsers (Android/iOS)