@digipair/skill-nuki 0.13.1 → 0.13.2

Sign up to get free protection for your applications and to get access to all the features.
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 _context_private_NUKI_API_KEY, _ref;
38
- this.NUKI_API_KEY = (_ref = (_context_private_NUKI_API_KEY = context.private.NUKI_API_KEY) != null ? _context_private_NUKI_API_KEY : params == null ? void 0 : params.NUKI_API_KEY) != null ? _ref : process.env['NUKI_API_KEY'];
39
- var _context_private_NUKI_API_ENDPOINT, _ref1, _ref2;
40
- this.API_ENDPOINT = (_ref2 = (_ref1 = (_context_private_NUKI_API_ENDPOINT = context.private.NUKI_API_ENDPOINT) != null ? _context_private_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
+ 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 _context_private_NUKI_API_KEY, _ref;
34
- this.NUKI_API_KEY = (_ref = (_context_private_NUKI_API_KEY = context.private.NUKI_API_KEY) != null ? _context_private_NUKI_API_KEY : params == null ? void 0 : params.NUKI_API_KEY) != null ? _ref : process.env['NUKI_API_KEY'];
35
- var _context_private_NUKI_API_ENDPOINT, _ref1, _ref2;
36
- this.API_ENDPOINT = (_ref2 = (_ref1 = (_context_private_NUKI_API_ENDPOINT = context.private.NUKI_API_ENDPOINT) != null ? _context_private_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';
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-nuki",
3
- "version": "0.13.1",
3
+ "version": "0.13.2",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"