Comparing version 0.0.2 to 0.0.3
@@ -37,4 +37,2 @@ "use strict"; | ||
_defineProperty(this, "callbackurl", ''); | ||
_defineProperty(this, "buildRequestParams", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() { | ||
@@ -110,14 +108,2 @@ var action, | ||
case 'callbackurl': | ||
if (!options[0][key] || typeof options[0][key] !== 'string') { | ||
var _error3 = new Error(); | ||
_error3.name = 'E_API_CALL_BACK_URL_TYPE_WRONG'; | ||
_error3.message = 'Type of call back url should be a valide url'; | ||
throw _error3; | ||
} | ||
_this.callbackurl = options[0][key]; | ||
break; | ||
default: | ||
@@ -124,0 +110,0 @@ break; |
@@ -56,2 +56,3 @@ "use strict"; | ||
number = options.number, | ||
callbackurl = options.callbackurl, | ||
from = options.from, | ||
@@ -76,3 +77,3 @@ to = options.to, | ||
parameters: { | ||
callbackurl: _this.builder.callbackurl, | ||
callbackurl: callbackurl, | ||
salt: salt, | ||
@@ -79,0 +80,0 @@ resultv2: resultv2, |
{ | ||
"name": "kd100", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "KuaiDi 100 api", | ||
@@ -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
11992
248