@digipair/skill-nuki 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 +4 -4
- package/index.esm.js +4 -4
- package/package.json +1 -1
package/index.cjs.js
CHANGED
@@ -34,10 +34,10 @@ let NukiService = class NukiService {
|
|
34
34
|
return await this.call(`/${id}/action/lock`, 'POST');
|
35
35
|
}
|
36
36
|
constructor(context, params){
|
37
|
-
var
|
38
|
-
this.NUKI_API_KEY = (_ref = (
|
39
|
-
var
|
40
|
-
this.API_ENDPOINT = (_ref2 = (_ref1 = (
|
37
|
+
var _context_privates_NUKI_API_KEY, _ref;
|
38
|
+
this.NUKI_API_KEY = (_ref = (_context_privates_NUKI_API_KEY = context.privates.NUKI_API_KEY) != null ? _context_privates_NUKI_API_KEY : params == null ? void 0 : params.NUKI_API_KEY) != null ? _ref : process.env['NUKI_API_KEY'];
|
39
|
+
var _context_privates_NUKI_API_ENDPOINT, _ref1, _ref2;
|
40
|
+
this.API_ENDPOINT = (_ref2 = (_ref1 = (_context_privates_NUKI_API_ENDPOINT = context.privates.NUKI_API_ENDPOINT) != null ? _context_privates_NUKI_API_ENDPOINT : params == null ? void 0 : params.NUKI_API_ENDPOINT) != null ? _ref1 : process.env['NUKI_API_ENDPOINT']) != null ? _ref2 : 'https://api.nuki.io/smartlock';
|
41
41
|
}
|
42
42
|
};
|
43
43
|
const lock = (params, pinsSettingsList, context)=>new NukiService(context, params).lock(params, pinsSettingsList, context);
|
package/index.esm.js
CHANGED
@@ -30,10 +30,10 @@ let NukiService = class NukiService {
|
|
30
30
|
return await this.call(`/${id}/action/lock`, 'POST');
|
31
31
|
}
|
32
32
|
constructor(context, params){
|
33
|
-
var
|
34
|
-
this.NUKI_API_KEY = (_ref = (
|
35
|
-
var
|
36
|
-
this.API_ENDPOINT = (_ref2 = (_ref1 = (
|
33
|
+
var _context_privates_NUKI_API_KEY, _ref;
|
34
|
+
this.NUKI_API_KEY = (_ref = (_context_privates_NUKI_API_KEY = context.privates.NUKI_API_KEY) != null ? _context_privates_NUKI_API_KEY : params == null ? void 0 : params.NUKI_API_KEY) != null ? _ref : process.env['NUKI_API_KEY'];
|
35
|
+
var _context_privates_NUKI_API_ENDPOINT, _ref1, _ref2;
|
36
|
+
this.API_ENDPOINT = (_ref2 = (_ref1 = (_context_privates_NUKI_API_ENDPOINT = context.privates.NUKI_API_ENDPOINT) != null ? _context_privates_NUKI_API_ENDPOINT : params == null ? void 0 : params.NUKI_API_ENDPOINT) != null ? _ref1 : process.env['NUKI_API_ENDPOINT']) != null ? _ref2 : 'https://api.nuki.io/smartlock';
|
37
37
|
}
|
38
38
|
};
|
39
39
|
const lock = (params, pinsSettingsList, context)=>new NukiService(context, params).lock(params, pinsSettingsList, context);
|