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

senter-sms-helper

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

senter-sms-helper - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

7

index.js

@@ -0,5 +1,8 @@

const defaultOoptoutMessage = '\nopt-out STOP';
const defaultMaxMessages = 4;
module.exports = class SmsContentHelper {
constructor(optoutMessage, maxMessages) {
this.optoutMessage = optoutMessage;
this.maxMessages = maxMessages;
this.optoutMessage = optoutMessage ? optoutMessage : defaultOoptoutMessage;
this.maxMessages = maxMessages ? maxMessages : defaultMaxMessages;
this.asciiRegex = /^[\x20-\x7F,\n]+$/;

@@ -6,0 +9,0 @@ this.asciiMessageLength = 160;

{
"name": "senter-sms-helper",
"version": "1.0.4",
"version": "1.0.5",
"description": "Simple package to help with sms message content",

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

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