Comparing version 1.0.1 to 1.0.2
@@ -16,3 +16,5 @@ // Generated by LiveScript 1.4.0 | ||
var that; | ||
if (token == null) { | ||
if (that = /^(?:(?:.*\/)?bot)?([^\/]*)(?:\/.*)?$/.exec(token)) { | ||
token = that[1]; | ||
} else { | ||
throw new Error('Missing api token'); | ||
@@ -23,5 +25,2 @@ } | ||
} | ||
if (that = /^\/?bot(.*)$/.exec(token)) { | ||
token = that[1]; | ||
} | ||
if (output === module.exports) { | ||
@@ -28,0 +27,0 @@ return stop.apply(null, [token, chat_id].concat(slice$.call(slice$.call(arguments, 3, -1 + 1 || 9e9)))); |
{ | ||
"name": "stopstop", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "simple telegram output passer", | ||
@@ -5,0 +5,0 @@ "main": "lib/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
9579
50