@beauraines/rtm-api 1.14.0 → 1.14.1

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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.14.1](https://github.com/beauraines/rtm-api/compare/v1.14.0...v1.14.1) (2025-12-19)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * adds Location functions to the user ([18322b7](https://github.com/beauraines/rtm-api/commit/18322b743419a7274e65d55780563198088cfd1d))
11
+
5
12
  ## [1.14.0](https://github.com/beauraines/rtm-api/compare/v1.13.1...v1.14.0) (2025-12-19)
6
13
 
7
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beauraines/rtm-api",
3
- "version": "1.14.0",
3
+ "version": "1.14.1",
4
4
  "description": "Remember the Milk API Interface",
5
5
  "author": "David Waring <dev@davidwaring.net> (https://davidwaring.net)",
6
6
  "contributors": [
package/src/user/index.js CHANGED
@@ -259,6 +259,16 @@ class RTMUser {
259
259
  }
260
260
 
261
261
 
262
+ /**
263
+ * RTM Location related functions:
264
+ * - {@link RTMUser~locations/get|get}
265
+ * @returns {{get: function}}
266
+ */
267
+ get locations() {
268
+ return require('./locations.js')(this);
269
+ }
270
+
271
+
262
272
  /**
263
273
  * RTM Task related functions:
264
274
  * - {@link RTMUser~tasks/get|get}
@@ -0,0 +1,27 @@
1
+ 'use strict';
2
+
3
+ const _locations = require('../location/helper.js');
4
+
5
+
6
+ /**
7
+ * This module returns the RTM location-related functions for the RTMUser
8
+ * @param {RTMUser} user RTM User instance
9
+ * @returns {{get: function}}
10
+ * @private
11
+ */
12
+ module.exports = function(user) {
13
+ let rtn = {};
14
+
15
+ /**
16
+ * Get the list of RTM Lists for this User from the API Server
17
+ * @param {function} callback Callback function(err, lists)
18
+ * @param {RTMError} callback.err RTM API Error Response, if encountered
19
+ * @param {RTMList[]} callback.lists List of User's RTM Lists
20
+ * @function RTMUser~lists/get
21
+ */
22
+ rtn.get = function(callback) {
23
+ _locations.get(user, callback);
24
+ };
25
+
26
+ return rtn;
27
+ };