@openfn/language-resourcemap 0.2.3 → 0.3.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/dist/index.cjs CHANGED
@@ -104,8 +104,8 @@ function submitSite(collection_id, submissionData) {
104
104
  "content-disposition": 'form-data; name=\\"site\\"'
105
105
  }
106
106
  },
107
- function(error, response, body2) {
108
- error = assembleError({ error, response });
107
+ function(err, response, body2) {
108
+ const error = assembleError({ error: err, response });
109
109
  if (error) {
110
110
  reject(error);
111
111
  } else {
package/dist/index.js CHANGED
@@ -81,8 +81,8 @@ function submitSite(collection_id, submissionData) {
81
81
  "content-disposition": 'form-data; name=\\"site\\"'
82
82
  }
83
83
  },
84
- function(error, response, body2) {
85
- error = assembleError({ error, response });
84
+ function(err, response, body2) {
85
+ const error = assembleError({ error: err, response });
86
86
  if (error) {
87
87
  reject(error);
88
88
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfn/language-resourcemap",
3
- "version": "0.2.3",
3
+ "version": "0.3.1",
4
4
  "description": "Resourcemap Language Pack for OpenFn",
5
5
  "main": "dist/index.cjs",
6
6
  "author": "Open Function Group",
@@ -12,7 +12,7 @@
12
12
  "configuration-schema.json"
13
13
  ],
14
14
  "dependencies": {
15
- "@openfn/language-common": "^1.7.6",
15
+ "@openfn/language-common": "^1.8.1",
16
16
  "request": "^2.88.2"
17
17
  },
18
18
  "devDependencies": {
@@ -44,6 +44,7 @@
44
44
  "test": "mocha --experimental-specifier-resolution=node --no-warnings",
45
45
  "test:watch": "mocha -w --experimental-specifier-resolution=node --no-warnings",
46
46
  "clean": "rimraf dist types docs",
47
- "pack": "pnpm pack --pack-destination ../../dist"
47
+ "pack": "pnpm pack --pack-destination ../../dist",
48
+ "lint": "eslint src"
48
49
  }
49
50
  }