@openfn/language-dhis2 2.0.8 → 3.0.0-0

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.
Files changed (44) hide show
  1. package/README.md +39 -4
  2. package/ast.json +295 -2430
  3. package/lib/Adaptor.js +475 -1519
  4. package/lib/Client.js +32 -0
  5. package/lib/Utils.js +124 -175
  6. package/lib/index.js +4 -6
  7. package/node_modules/@openfn/language-common/node_modules/axios/package.json +20 -0
  8. package/node_modules/@openfn/language-common/node_modules/follow-redirects/package.json +20 -0
  9. package/node_modules/@openfn/language-common/node_modules/jsonpath-plus/package.json +20 -0
  10. package/node_modules/@openfn/language-common/node_modules/lodash/package.json +20 -0
  11. package/node_modules/@openfn/language-common/package.json +8 -4
  12. package/node_modules/axios/CHANGELOG.md +159 -8
  13. package/node_modules/axios/README.md +98 -6
  14. package/node_modules/axios/SECURITY.md +5 -0
  15. package/node_modules/axios/dist/axios.js +2101 -1582
  16. package/node_modules/axios/dist/axios.map +1 -1
  17. package/node_modules/axios/dist/axios.min.js +1 -2
  18. package/node_modules/axios/dist/axios.min.map +1 -1
  19. package/node_modules/axios/index.d.ts +76 -31
  20. package/node_modules/axios/lib/adapters/http.js +74 -14
  21. package/node_modules/axios/lib/adapters/xhr.js +66 -33
  22. package/node_modules/axios/lib/axios.js +6 -5
  23. package/node_modules/axios/lib/cancel/CancelToken.js +62 -0
  24. package/node_modules/axios/lib/core/Axios.js +60 -7
  25. package/node_modules/axios/lib/core/InterceptorManager.js +4 -2
  26. package/node_modules/axios/lib/core/README.md +1 -0
  27. package/node_modules/axios/lib/core/dispatchRequest.js +11 -3
  28. package/node_modules/axios/lib/core/enhanceError.js +2 -1
  29. package/node_modules/axios/lib/core/mergeConfig.js +50 -38
  30. package/node_modules/axios/lib/core/transformData.js +3 -1
  31. package/node_modules/axios/lib/defaults.js +48 -12
  32. package/node_modules/axios/lib/env/README.md +3 -0
  33. package/node_modules/axios/lib/env/data.js +3 -0
  34. package/node_modules/axios/lib/helpers/validator.js +82 -0
  35. package/node_modules/axios/lib/utils.js +1 -3
  36. package/node_modules/axios/package.json +37 -40
  37. package/node_modules/axios/tsconfig.json +14 -0
  38. package/node_modules/axios/tslint.json +6 -0
  39. package/node_modules/follow-redirects/README.md +1 -1
  40. package/node_modules/follow-redirects/debug.js +14 -8
  41. package/node_modules/follow-redirects/index.js +106 -41
  42. package/node_modules/follow-redirects/package.json +14 -17
  43. package/node_modules/lodash/package.json +2 -2
  44. package/package.json +5 -4
package/lib/Client.js ADDED
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.request = request;
7
+
8
+ var _axios = _interopRequireDefault(require("axios"));
9
+
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+
12
+ function request({
13
+ username,
14
+ password
15
+ }, axiosRequest) {
16
+ const {
17
+ method,
18
+ url
19
+ } = axiosRequest;
20
+ console.log(`Sending ${method} request to ${url}`);
21
+ return _axios.default.request({
22
+ headers: {
23
+ 'Content-Type': 'application/json'
24
+ },
25
+ auth: {
26
+ username,
27
+ password
28
+ },
29
+ // Note that providing headers or auth in the request object will overwrite.
30
+ ...axiosRequest
31
+ });
32
+ }
package/lib/Utils.js CHANGED
@@ -3,211 +3,160 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.composeSuccessMessage = composeSuccessMessage;
7
- exports.warnExpectLargeResult = warnExpectLargeResult;
8
- exports.logWaitingForServer = logWaitingForServer;
9
- exports.logApiVersion = logApiVersion;
10
- exports.logOperation = logOperation;
11
6
  exports.buildUrl = buildUrl;
12
- exports.attribute = attribute;
13
- exports.requestHttpHead = requestHttpHead;
14
- exports.validateMetadataPayload = validateMetadataPayload;
15
7
  exports.handleResponse = handleResponse;
16
8
  exports.prettyJson = prettyJson;
17
- exports.getIndicesOf = getIndicesOf;
18
- exports.isLike = isLike;
19
- exports.applyFilter = applyFilter;
20
- exports.parseFilter = parseFilter;
21
- exports.CONTENT_TYPES = exports.dhis2OperatorMap = exports.Log = void 0;
22
-
23
- var _lodash = require("lodash");
9
+ exports.nestArray = nestArray;
10
+ exports.generateUrl = generateUrl;
11
+ exports.buildUrlParams = buildUrlParams;
12
+ exports.Log = exports.CONTENT_TYPES = void 0;
24
13
 
25
14
  var _axios = _interopRequireDefault(require("axios"));
26
15
 
27
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
28
-
29
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
16
+ var _lodash = require("lodash");
30
17
 
31
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
18
+ var _languageCommon = require("@openfn/language-common");
32
19
 
33
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
20
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
34
21
 
35
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
22
+ const CONTENT_TYPES = {
23
+ xml: 'application/xml',
24
+ json: 'application/json',
25
+ pdf: 'application/pdf',
26
+ csv: 'application/csv',
27
+ xls: 'application/vnd.ms-excel'
28
+ };
29
+ exports.CONTENT_TYPES = CONTENT_TYPES;
36
30
 
37
- function composeSuccessMessage(operation) {
38
- return "".concat(operation, " succeeded. The body of this result will be available in state.data or in your callback.");
39
- }
31
+ class Log {
32
+ static success(message) {
33
+ return console.info(`✓ ${message} @ ${new Date()}`);
34
+ }
40
35
 
41
- function warnExpectLargeResult(paramOrResourceType, endpointUrl) {
42
- if (!paramOrResourceType) Log.warn(" Missing params or resourceType. This may take a while. This endpoint(".concat(endpointUrl, ") may return a large collection of records, since 'params' or 'resourceType' is not specified. We recommend you specify 'params' or 'resourceType' or use 'filter' parameter to limit the content of the result."));
43
- }
36
+ static warn(message) {
37
+ return console.warn(`⚠ Warning: ${message} @ ${new Date()}`);
38
+ }
44
39
 
45
- function logWaitingForServer(url, params) {
46
- console.info('Request params: ', _typeof(params) === 'object' && !(params instanceof URLSearchParams) ? prettyJson(params) : params);
47
- console.info("Waiting for response from ".concat(url));
48
- }
40
+ static error(message) {
41
+ return console.error(`✗ Error: ${message} @ ${new Date()}`);
42
+ }
49
43
 
50
- function logApiVersion(apiVersion) {
51
- var message = apiVersion && apiVersion ? "Using DHIS2 api version ".concat(apiVersion) : ' Attempting to use apiVersion without providing it in state.configuration or in options parameter. You may encounter errors. api_version_missing.';
52
- if (apiVersion) console.warn(message);else console.warn("Using latest version of DHIS2 api.");
53
44
  }
54
45
 
55
- function logOperation(operation) {
56
- console.info("Executing ".concat(operation, " ..."));
57
- }
46
+ exports.Log = Log;
58
47
 
59
48
  function buildUrl(path, hostUrl, apiVersion) {
60
- var pathSuffix = apiVersion ? "/".concat(apiVersion).concat(path) : "".concat(path);
61
- var url = hostUrl + '/api' + pathSuffix;
62
- return url;
63
- }
64
-
65
- function attribute(attributeId, attributeValue) {
66
- return {
67
- attribute: attributeId,
68
- value: attributeValue
69
- };
70
- }
71
-
72
- function requestHttpHead(endpointUrl, _ref) {
73
- var username = _ref.username,
74
- password = _ref.password;
75
- return _axios["default"].request({
76
- method: 'HEAD',
77
- url: endpointUrl,
78
- auth: {
79
- username: username,
80
- password: password
81
- }
82
- }).then(function (result) {
83
- return result.headers['content-length'];
84
- });
85
- }
86
-
87
- function validateMetadataPayload(payload, resourceType) {
88
- return _axios["default"].request({
89
- method: 'POST',
90
- url: "https://play.dhis2.org/dev/api/schemas/".concat(resourceType),
91
- auth: {
92
- username: 'admin',
93
- password: 'distict'
94
- },
95
- data: payload
96
- }).then(function (result) {
97
- return result.data;
98
- });
49
+ const pathSuffix = apiVersion ? `/${apiVersion}${path}` : `${path}`;
50
+ return hostUrl + '/api' + pathSuffix;
99
51
  }
100
52
 
101
53
  function handleResponse(result, state, callback) {
102
- if (callback) return callback(composeNextState(state, result));
103
- return composeNextState(state, result);
54
+ // TODO: @Elias, should composeNextState get passed result OR result.data?
55
+ if (callback) return callback((0, _languageCommon.composeNextState)(state, result.data));
56
+ return (0, _languageCommon.composeNextState)(state, result.data);
104
57
  }
105
58
 
106
59
  function prettyJson(data) {
107
60
  return JSON.stringify(data, null, 2);
61
+ } // =============================================================================
62
+ // TODO: @Elias... what are these functions doing and do they have a place in the new implementation?
63
+ // export function getIndicesOf(string, regex) {
64
+ // var match,
65
+ // indexes = {};
66
+ // regex = new RegExp(regex);
67
+ // while ((match = regex.exec(string))) {
68
+ // let schemaRef;
69
+ // if (!indexes[match[0]]) {
70
+ // indexes[match[0]] = {};
71
+ // }
72
+ // let hrefString = string.slice(
73
+ // match.index,
74
+ // indexOf(string, '}', match.index) - 1
75
+ // );
76
+ // let lastIndex = lastIndexOf(hrefString, '/') + 1;
77
+ // schemaRef = trim(hrefString.slice(lastIndex));
78
+ // indexes[match[0]][match.index] = schemaRef;
79
+ // }
80
+ // return indexes;
81
+ // }
82
+ // export function isLike(string, words) {
83
+ // const wordsArrary = words?.match(/([^\W]+[^\s,]*)/)?.splice(0, 1);
84
+ // const isFound = word => RegExp(word, 'i')?.test(string);
85
+ // return some(wordsArrary, isFound);
86
+ // }
87
+ // export const dhis2OperatorMap = {
88
+ // eq: eq,
89
+ // like: isLike,
90
+ // };
91
+ // export function applyFilter(
92
+ // arrObject,
93
+ // targetProperty,
94
+ // operator,
95
+ // valueToCompareWith
96
+ // ) {
97
+ // if (targetProperty && operator && valueToCompareWith) {
98
+ // try {
99
+ // return filter(arrObject, obj =>
100
+ // Reflect.apply(operator, obj, [obj[targetProperty], valueToCompareWith])
101
+ // );
102
+ // } catch (error) {
103
+ // Log.warn(
104
+ // `Returned unfiltered data. Failed to apply custom filter(${prettyJson({
105
+ // targetProperty: targetProperty ?? null,
106
+ // operator: operator ?? null,
107
+ // value: valueToCompareWith ?? null,
108
+ // })}) on this collection. The operator you supplied maybe unsupported on this resource at the moment.`
109
+ // );
110
+ // return arrObject;
111
+ // }
112
+ // }
113
+ // console.log('No filters applied; returned all records for this resource.');
114
+ // return arrObject;
115
+ // }
116
+ // export function parseFilter(filterExpression) {
117
+ // const filterTokens = filterExpression?.split(':');
118
+ // filterTokens
119
+ // ? (filterTokens[1] = dhis2OperatorMap[filterTokens[1] ?? null])
120
+ // : null;
121
+ // return filterTokens;
122
+ // }
123
+ // // TODO: @Elias, end of the investigation block!
124
+ // =============================================================================
125
+
126
+
127
+ const isArray = variable => !!variable && variable.constructor === Array;
128
+
129
+ function nestArray(data, key) {
130
+ return isArray(data) ? {
131
+ [key]: data
132
+ } : data;
108
133
  }
109
134
 
110
- function getIndicesOf(string, regex) {
111
- var match,
112
- indexes = {};
113
- regex = new RegExp(regex);
114
-
115
- while (match = regex.exec(string)) {
116
- var schemaRef = void 0;
135
+ function generateUrl(configuration, options, resourceType) {
136
+ let {
137
+ hostUrl,
138
+ apiVersion
139
+ } = configuration;
140
+ const urlString = '/' + resourceType; // Note that users can override the apiVersion from configuration with args
117
141
 
118
- if (!indexes[match[0]]) {
119
- indexes[match[0]] = {};
120
- }
142
+ if (options === null || options === void 0 ? void 0 : options.apiVersion) apiVersion = options.apiVersion; // TODO: discuss how this actually works on DHIS2. I'm not sure I'm following.
121
143
 
122
- var hrefString = string.slice(match.index, (0, _lodash.indexOf)(string, '}', match.index) - 1);
123
- var lastIndex = (0, _lodash.lastIndexOf)(hrefString, '/') + 1;
124
- schemaRef = (0, _lodash.trim)(hrefString.slice(lastIndex));
125
- indexes[match[0]][match.index] = schemaRef;
126
- }
127
-
128
- return indexes;
129
- }
130
-
131
- var Log = /*#__PURE__*/function () {
132
- function Log() {
133
- _classCallCheck(this, Log);
134
- }
135
-
136
- _createClass(Log, null, [{
137
- key: "info",
138
- value: function info(message) {
139
- return console.info('(info)', new Date(), "\n".concat(message));
140
- }
141
- }, {
142
- key: "warn",
143
- value: function warn(message) {
144
- return console.warn('⚠ WARNING', new Date(), "\n".concat(message));
145
- }
146
- }, {
147
- key: "error",
148
- value: function error(message) {
149
- return console.error('✗ ERROR', new Date(), "\n".concat(message));
150
- }
151
- }]);
152
-
153
- return Log;
154
- }();
155
-
156
- exports.Log = Log;
157
-
158
- function isLike(string, words) {
159
- var _words$match;
160
-
161
- var wordsArrary = words === null || words === void 0 ? void 0 : (_words$match = words.match(/([^\W]+[^\s,]*)/)) === null || _words$match === void 0 ? void 0 : _words$match.splice(0, 1);
162
-
163
- var isFound = function isFound(word) {
164
- var _RegExp;
165
-
166
- return (_RegExp = RegExp(word, 'i')) === null || _RegExp === void 0 ? void 0 : _RegExp.test(string);
167
- };
168
-
169
- return (0, _lodash.some)(wordsArrary, isFound);
144
+ const apiMessage = apiVersion ? `Using DHIS2 api version ${apiVersion}` : 'Using latest available version of the DHIS2 api on this server.';
145
+ console.log(apiMessage);
146
+ return buildUrl(urlString, hostUrl, apiVersion);
170
147
  }
171
148
 
172
- var dhis2OperatorMap = {
173
- eq: _lodash.eq,
174
- like: isLike
175
- };
176
- exports.dhis2OperatorMap = dhis2OperatorMap;
177
-
178
- function applyFilter(arrObject, targetProperty, operator, valueToCompareWith) {
179
- if (targetProperty && operator && valueToCompareWith) {
180
- try {
181
- return (0, _lodash.filter)(arrObject, function (obj) {
182
- return Reflect.apply(operator, obj, [obj[targetProperty], valueToCompareWith]);
183
- });
184
- } catch (error) {
185
- Log.warn("Returned unfiltered data. Failed to apply custom filter(".concat(prettyJson({
186
- targetProperty: targetProperty !== null && targetProperty !== void 0 ? targetProperty : null,
187
- operator: operator !== null && operator !== void 0 ? operator : null,
188
- value: valueToCompareWith !== null && valueToCompareWith !== void 0 ? valueToCompareWith : null
189
- }), ") on this collection. The operator you supplied maybe unsupported on this resource at the moment."));
190
- return arrObject;
191
- }
192
- }
193
-
194
- Log.info("No filters applied, returned all records on this resource.");
195
- return arrObject;
196
- }
149
+ function buildUrlParams(options) {
150
+ var _options$params, _options$params2, _options$params3, _options$params4;
197
151
 
198
- function parseFilter(filterExpression) {
199
- var _filterTokens$;
152
+ const filters = options === null || options === void 0 ? void 0 : (_options$params = options.params) === null || _options$params === void 0 ? void 0 : _options$params.filters;
153
+ const dimensions = options === null || options === void 0 ? void 0 : (_options$params2 = options.params) === null || _options$params2 === void 0 ? void 0 : _options$params2.dimensions; // We remove filters and dimensions before building standard search params.
200
154
 
201
- var filterTokens = filterExpression === null || filterExpression === void 0 ? void 0 : filterExpression.split(':');
202
- filterTokens ? filterTokens[1] = dhis2OperatorMap[(_filterTokens$ = filterTokens[1]) !== null && _filterTokens$ !== void 0 ? _filterTokens$ : null] : null;
203
- return filterTokens;
204
- }
155
+ options === null || options === void 0 ? true : (_options$params3 = options.params) === null || _options$params3 === void 0 ? true : delete _options$params3.filters;
156
+ options === null || options === void 0 ? true : (_options$params4 = options.params) === null || _options$params4 === void 0 ? true : delete _options$params4.dimensions;
157
+ const urlParams = new URLSearchParams(options === null || options === void 0 ? void 0 : options.params); // Then we re-apply the filters and dimensions in this dhis2-specific way.
205
158
 
206
- var CONTENT_TYPES = {
207
- xml: 'application/xml',
208
- json: 'application/json',
209
- pdf: 'application/pdf',
210
- csv: 'application/csv',
211
- xls: 'application/vnd.ms-excel'
212
- };
213
- exports.CONTENT_TYPES = CONTENT_TYPES;
159
+ filters === null || filters === void 0 ? void 0 : filters.map(f => urlParams.append('filter', f));
160
+ dimensions === null || dimensions === void 0 ? void 0 : dimensions.map(d => urlParams.append('dimension', d));
161
+ return urlParams;
162
+ }
package/lib/index.js CHANGED
@@ -1,19 +1,17 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
- exports.Adaptor = exports["default"] = void 0;
6
+ exports.Adaptor = exports.default = void 0;
9
7
 
10
8
  var Adaptor = _interopRequireWildcard(require("./Adaptor"));
11
9
 
12
10
  exports.Adaptor = Adaptor;
13
11
 
14
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
12
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
13
 
16
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
14
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
15
 
18
16
  var _default = Adaptor;
19
- exports["default"] = _default;
17
+ exports.default = _default;
@@ -1,11 +1,31 @@
1
1
  {
2
+ "_args": [
3
+ [
4
+ "axios@0.21.1",
5
+ "/Users/taylor/devtools/adaptors/language-dhis2"
6
+ ]
7
+ ],
8
+ "_from": "axios@0.21.1",
2
9
  "_id": "axios@0.21.1",
3
10
  "_inBundle": true,
4
11
  "_location": "/@openfn/language-common/axios",
5
12
  "_phantomChildren": {},
13
+ "_requested": {
14
+ "type": "version",
15
+ "registry": true,
16
+ "raw": "axios@0.21.1",
17
+ "name": "axios",
18
+ "escapedName": "axios",
19
+ "rawSpec": "0.21.1",
20
+ "saveSpec": null,
21
+ "fetchSpec": "0.21.1"
22
+ },
6
23
  "_requiredBy": [
7
24
  "/@openfn/language-common"
8
25
  ],
26
+ "_resolved": false,
27
+ "_spec": "0.21.1",
28
+ "_where": "/Users/taylor/devtools/adaptors/language-dhis2",
9
29
  "author": {
10
30
  "name": "Matt Zabriskie"
11
31
  },
@@ -1,11 +1,31 @@
1
1
  {
2
+ "_args": [
3
+ [
4
+ "follow-redirects@1.13.1",
5
+ "/Users/taylor/devtools/adaptors/language-dhis2"
6
+ ]
7
+ ],
8
+ "_from": "follow-redirects@1.13.1",
2
9
  "_id": "follow-redirects@1.13.1",
3
10
  "_inBundle": true,
4
11
  "_location": "/@openfn/language-common/follow-redirects",
5
12
  "_phantomChildren": {},
13
+ "_requested": {
14
+ "type": "version",
15
+ "registry": true,
16
+ "raw": "follow-redirects@1.13.1",
17
+ "name": "follow-redirects",
18
+ "escapedName": "follow-redirects",
19
+ "rawSpec": "1.13.1",
20
+ "saveSpec": null,
21
+ "fetchSpec": "1.13.1"
22
+ },
6
23
  "_requiredBy": [
7
24
  "/@openfn/language-common/axios"
8
25
  ],
26
+ "_resolved": false,
27
+ "_spec": "1.13.1",
28
+ "_where": "/Users/taylor/devtools/adaptors/language-dhis2",
9
29
  "author": {
10
30
  "name": "Ruben Verborgh",
11
31
  "email": "ruben@verborgh.org",
@@ -1,11 +1,31 @@
1
1
  {
2
+ "_args": [
3
+ [
4
+ "jsonpath-plus@4.0.0",
5
+ "/Users/taylor/devtools/adaptors/language-dhis2"
6
+ ]
7
+ ],
8
+ "_from": "jsonpath-plus@4.0.0",
2
9
  "_id": "jsonpath-plus@4.0.0",
3
10
  "_inBundle": true,
4
11
  "_location": "/@openfn/language-common/jsonpath-plus",
5
12
  "_phantomChildren": {},
13
+ "_requested": {
14
+ "type": "version",
15
+ "registry": true,
16
+ "raw": "jsonpath-plus@4.0.0",
17
+ "name": "jsonpath-plus",
18
+ "escapedName": "jsonpath-plus",
19
+ "rawSpec": "4.0.0",
20
+ "saveSpec": null,
21
+ "fetchSpec": "4.0.0"
22
+ },
6
23
  "_requiredBy": [
7
24
  "/@openfn/language-common"
8
25
  ],
26
+ "_resolved": false,
27
+ "_spec": "4.0.0",
28
+ "_where": "/Users/taylor/devtools/adaptors/language-dhis2",
9
29
  "author": {
10
30
  "name": "Stefan Goessner"
11
31
  },
@@ -1,11 +1,31 @@
1
1
  {
2
+ "_args": [
3
+ [
4
+ "lodash@4.17.21",
5
+ "/Users/taylor/devtools/adaptors/language-dhis2"
6
+ ]
7
+ ],
8
+ "_from": "lodash@4.17.21",
2
9
  "_id": "lodash@4.17.21",
3
10
  "_inBundle": true,
4
11
  "_location": "/@openfn/language-common/lodash",
5
12
  "_phantomChildren": {},
13
+ "_requested": {
14
+ "type": "version",
15
+ "registry": true,
16
+ "raw": "lodash@4.17.21",
17
+ "name": "lodash",
18
+ "escapedName": "lodash",
19
+ "rawSpec": "4.17.21",
20
+ "saveSpec": null,
21
+ "fetchSpec": "4.17.21"
22
+ },
6
23
  "_requiredBy": [
7
24
  "/@openfn/language-common"
8
25
  ],
26
+ "_resolved": false,
27
+ "_spec": "4.17.21",
28
+ "_where": "/Users/taylor/devtools/adaptors/language-dhis2",
9
29
  "author": {
10
30
  "name": "John-David Dalton",
11
31
  "email": "john.david.dalton@gmail.com"
@@ -1,4 +1,10 @@
1
1
  {
2
+ "_args": [
3
+ [
4
+ "@openfn/language-common@1.4.1",
5
+ "/Users/taylor/devtools/adaptors/language-dhis2"
6
+ ]
7
+ ],
2
8
  "_from": "@openfn/language-common@1.4.1",
3
9
  "_id": "@openfn/language-common@1.4.1",
4
10
  "_inBundle": false,
@@ -20,9 +26,8 @@
20
26
  "/"
21
27
  ],
22
28
  "_resolved": "https://registry.npmjs.org/@openfn/language-common/-/language-common-1.4.1.tgz",
23
- "_shasum": "c1fe92062e54bb73b594a06892322b70390f03f3",
24
- "_spec": "@openfn/language-common@1.4.1",
25
- "_where": "/home/taylor/devtools/adaptors/language-dhis2",
29
+ "_spec": "1.4.1",
30
+ "_where": "/Users/taylor/devtools/adaptors/language-dhis2",
26
31
  "author": {
27
32
  "name": "Open Function Group"
28
33
  },
@@ -39,7 +44,6 @@
39
44
  "jsonpath-plus": "^4.0.0",
40
45
  "lodash": "^4.17.19"
41
46
  },
42
- "deprecated": false,
43
47
  "description": "Common Expressions for OpenFn",
44
48
  "devDependencies": {
45
49
  "@babel/cli": "^7.8.4",