@openfn/language-facebook 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
@@ -98,8 +98,8 @@ function postMessage(params) {
98
98
  headers,
99
99
  json: body
100
100
  },
101
- function(error, response, body2) {
102
- error = assembleError({ error, response });
101
+ function(err, response, body2) {
102
+ const error = assembleError({ error: err, response });
103
103
  if (error) {
104
104
  reject(error);
105
105
  console.log(response);
package/dist/index.js CHANGED
@@ -76,8 +76,8 @@ function postMessage(params) {
76
76
  headers,
77
77
  json: body
78
78
  },
79
- function(error, response, body2) {
80
- error = assembleError({ error, response });
79
+ function(err, response, body2) {
80
+ const error = assembleError({ error: err, response });
81
81
  if (error) {
82
82
  reject(error);
83
83
  console.log(response);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfn/language-facebook",
3
- "version": "0.2.3",
3
+ "version": "0.3.1",
4
4
  "description": "An Language Package for Facebook Messenger API",
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": {
@@ -45,6 +45,7 @@
45
45
  "test": "mocha --experimental-specifier-resolution=node --no-warnings",
46
46
  "test:watch": "mocha -w --experimental-specifier-resolution=node --no-warnings",
47
47
  "clean": "rimraf dist types docs",
48
- "pack": "pnpm pack --pack-destination ../../dist"
48
+ "pack": "pnpm pack --pack-destination ../../dist",
49
+ "lint": "eslint src"
49
50
  }
50
51
  }