senter-sms-helper
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4799
117