@openfn/language-dhis2 2.0.11 → 3.0.0-4

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 +220 -2573
  3. package/lib/Adaptor.js +548 -1636
  4. package/lib/Client.js +48 -0
  5. package/lib/Utils.js +50 -183
  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 +6 -5
package/lib/Client.js ADDED
@@ -0,0 +1,48 @@
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
+ /**
13
+ * The request client takes configuration from state and an axios request object
14
+ * then (1) logs the method and URL, (2) applies standard headers and auth
15
+ * before spreading the rest of the axios configuration, and (3) executes an
16
+ * axios request.
17
+ * @function
18
+ * @param {object} configuration - configuration must have a username and password
19
+ * @param {object} axiosRequest - the axiosRequest contains valid axios params: https://axios-http.com/docs/req_config
20
+ * @returns {Promise} a promise that will resolve to either a response object or an error object.
21
+ */
22
+ function request({
23
+ username,
24
+ password
25
+ }, axiosRequest) {
26
+ const {
27
+ method,
28
+ url,
29
+ params
30
+ } = axiosRequest;
31
+ console.log(`Sending ${method} request to ${url}`);
32
+ if (params) console.log(` with params:`, params); // NOTE: We don't follow redirects for unsafe methods: https://github.com/axios/axios/issues/2460
33
+
34
+ const safeRedirect = ['get', 'head', 'options', 'trace'].includes(method.toLowerCase());
35
+ return (0, _axios.default)({
36
+ headers: {
37
+ 'Content-Type': 'application/json'
38
+ },
39
+ responseType: 'json',
40
+ maxRedirects: safeRedirect ? 5 : 0,
41
+ auth: {
42
+ username,
43
+ password
44
+ },
45
+ // Note that providing headers or auth in the request object will overwrite.
46
+ ...axiosRequest
47
+ });
48
+ }
package/lib/Utils.js CHANGED
@@ -3,211 +3,78 @@
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;
9
+ exports.nestArray = nestArray;
10
+ exports.generateUrl = generateUrl;
11
+ exports.Log = exports.CONTENT_TYPES = void 0;
22
12
 
23
- var _lodash = require("lodash");
13
+ var _languageCommon = require("@openfn/language-common");
24
14
 
25
- var _axios = _interopRequireDefault(require("axios"));
26
-
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"); } }
30
-
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); } }
32
-
33
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
34
-
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); }
15
+ const CONTENT_TYPES = {
16
+ xml: 'application/xml',
17
+ json: 'application/json',
18
+ pdf: 'application/pdf',
19
+ csv: 'application/csv',
20
+ xls: 'application/vnd.ms-excel'
21
+ };
22
+ exports.CONTENT_TYPES = CONTENT_TYPES;
36
23
 
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
- }
24
+ class Log {
25
+ static success(message) {
26
+ return console.info(`✓ Success at ${new Date()}:\n`, message);
27
+ }
40
28
 
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
- }
29
+ static warn(message) {
30
+ return console.warn(`⚠ Warning at ${new Date()}:\n`, message);
31
+ }
44
32
 
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
- }
33
+ static error(message) {
34
+ return console.error(`✗ Error at ${new Date()}:\n`, message);
35
+ }
49
36
 
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
37
  }
54
38
 
55
- function logOperation(operation) {
56
- console.info("Executing ".concat(operation, " ..."));
57
- }
39
+ exports.Log = Log;
58
40
 
59
41
  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
- }
42
+ const pathSuffix = apiVersion ? `/${apiVersion}${path}` : `${path}`;
43
+ return hostUrl + '/api' + pathSuffix;
44
+ } // Write a unit test for this one
64
45
 
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
- });
99
- }
100
46
 
101
47
  function handleResponse(result, state, callback) {
102
- if (callback) return callback(composeNextState(state, result));
103
- return composeNextState(state, result);
48
+ const {
49
+ data
50
+ } = result;
51
+ if (callback) return callback((0, _languageCommon.composeNextState)(state, data));
52
+ return (0, _languageCommon.composeNextState)(state, data);
104
53
  }
105
54
 
106
55
  function prettyJson(data) {
107
56
  return JSON.stringify(data, null, 2);
108
57
  }
109
58
 
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;
117
-
118
- if (!indexes[match[0]]) {
119
- indexes[match[0]] = {};
120
- }
121
-
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);
170
- }
171
-
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
- }
197
-
198
- function parseFilter(filterExpression) {
199
- var _filterTokens$;
59
+ const isArray = variable => !!variable && variable.constructor === Array;
200
60
 
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;
61
+ function nestArray(data, key) {
62
+ return isArray(data) ? {
63
+ [key]: data
64
+ } : data;
204
65
  }
205
66
 
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;
67
+ function generateUrl(configuration, options, resourceType, path = null) {
68
+ let {
69
+ hostUrl,
70
+ apiVersion
71
+ } = configuration;
72
+ const urlString = '/' + resourceType; // Note that users can override the apiVersion from configuration with args
73
+
74
+ if (options === null || options === void 0 ? void 0 : options.apiVersion) apiVersion = options.apiVersion;
75
+ const apiMessage = apiVersion ? `Using DHIS2 api version ${apiVersion}` : 'Using latest available version of the DHIS2 api on this server.';
76
+ console.log(apiMessage);
77
+ const url = buildUrl(urlString, hostUrl, apiVersion);
78
+ if (path) return `${url}/${path}`;
79
+ return url;
80
+ }
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",