@digipair/skill-twilio 0.13.1 → 0.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +8 -8
- package/index.esm.js +8 -8
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -32,14 +32,14 @@ let TwilioService = class TwilioService {
|
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
constructor(context, params){
|
|
35
|
-
var
|
|
36
|
-
this.TWILIO_SID = (_ref = (
|
|
37
|
-
var
|
|
38
|
-
this.TWILIO_TOKEN = (_ref1 = (
|
|
39
|
-
var
|
|
40
|
-
this.FROM_NUMBER = (_ref2 = (
|
|
41
|
-
var
|
|
42
|
-
this.API_ENDPOINT = (_ref4 = (_ref3 = (
|
|
35
|
+
var _context_privates_TWILIO_SID, _ref;
|
|
36
|
+
this.TWILIO_SID = (_ref = (_context_privates_TWILIO_SID = context.privates.TWILIO_SID) != null ? _context_privates_TWILIO_SID : params == null ? void 0 : params.TWILIO_SID) != null ? _ref : process.env['TWILIO_SID'];
|
|
37
|
+
var _context_privates_TWILIO_TOKEN, _ref1;
|
|
38
|
+
this.TWILIO_TOKEN = (_ref1 = (_context_privates_TWILIO_TOKEN = context.privates.TWILIO_TOKEN) != null ? _context_privates_TWILIO_TOKEN : params == null ? void 0 : params.TWILIO_TOKEN) != null ? _ref1 : process.env['TWILIO_TOKEN'];
|
|
39
|
+
var _context_privates_TWILIO_FROM_NUMBER, _ref2;
|
|
40
|
+
this.FROM_NUMBER = (_ref2 = (_context_privates_TWILIO_FROM_NUMBER = context.privates.TWILIO_FROM_NUMBER) != null ? _context_privates_TWILIO_FROM_NUMBER : params == null ? void 0 : params.TWILIO_FROM_NUMBER) != null ? _ref2 : process.env['TWILIO_FROM_NUMBER'];
|
|
41
|
+
var _context_privates_TWILIO_API_ENDPOINT, _ref3, _ref4;
|
|
42
|
+
this.API_ENDPOINT = (_ref4 = (_ref3 = (_context_privates_TWILIO_API_ENDPOINT = context.privates.TWILIO_API_ENDPOINT) != null ? _context_privates_TWILIO_API_ENDPOINT : params == null ? void 0 : params.TWILIO_API_ENDPOINT) != null ? _ref3 : process.env['TWILIO_API_ENDPOINT']) != null ? _ref4 : 'https://api.twilio.com/2010-04-01';
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
const sendSms = (params, pinsSettingsList, context)=>new TwilioService(context, params).sendSms(params, pinsSettingsList, context);
|
package/index.esm.js
CHANGED
|
@@ -28,14 +28,14 @@ let TwilioService = class TwilioService {
|
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
constructor(context, params){
|
|
31
|
-
var
|
|
32
|
-
this.TWILIO_SID = (_ref = (
|
|
33
|
-
var
|
|
34
|
-
this.TWILIO_TOKEN = (_ref1 = (
|
|
35
|
-
var
|
|
36
|
-
this.FROM_NUMBER = (_ref2 = (
|
|
37
|
-
var
|
|
38
|
-
this.API_ENDPOINT = (_ref4 = (_ref3 = (
|
|
31
|
+
var _context_privates_TWILIO_SID, _ref;
|
|
32
|
+
this.TWILIO_SID = (_ref = (_context_privates_TWILIO_SID = context.privates.TWILIO_SID) != null ? _context_privates_TWILIO_SID : params == null ? void 0 : params.TWILIO_SID) != null ? _ref : process.env['TWILIO_SID'];
|
|
33
|
+
var _context_privates_TWILIO_TOKEN, _ref1;
|
|
34
|
+
this.TWILIO_TOKEN = (_ref1 = (_context_privates_TWILIO_TOKEN = context.privates.TWILIO_TOKEN) != null ? _context_privates_TWILIO_TOKEN : params == null ? void 0 : params.TWILIO_TOKEN) != null ? _ref1 : process.env['TWILIO_TOKEN'];
|
|
35
|
+
var _context_privates_TWILIO_FROM_NUMBER, _ref2;
|
|
36
|
+
this.FROM_NUMBER = (_ref2 = (_context_privates_TWILIO_FROM_NUMBER = context.privates.TWILIO_FROM_NUMBER) != null ? _context_privates_TWILIO_FROM_NUMBER : params == null ? void 0 : params.TWILIO_FROM_NUMBER) != null ? _ref2 : process.env['TWILIO_FROM_NUMBER'];
|
|
37
|
+
var _context_privates_TWILIO_API_ENDPOINT, _ref3, _ref4;
|
|
38
|
+
this.API_ENDPOINT = (_ref4 = (_ref3 = (_context_privates_TWILIO_API_ENDPOINT = context.privates.TWILIO_API_ENDPOINT) != null ? _context_privates_TWILIO_API_ENDPOINT : params == null ? void 0 : params.TWILIO_API_ENDPOINT) != null ? _ref3 : process.env['TWILIO_API_ENDPOINT']) != null ? _ref4 : 'https://api.twilio.com/2010-04-01';
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
const sendSms = (params, pinsSettingsList, context)=>new TwilioService(context, params).sendSms(params, pinsSettingsList, context);
|