From 47bf3fd1d5bed6016975e2fc5c3071671e31f2da Mon Sep 17 00:00:00 2001 From: mamadou Date: Fri, 24 Sep 2021 19:47:40 +0000 Subject: [PATCH] patch version bump --- lib/Adaptor.js | 8 ++++---- package-lock.json | 2 +- package.json | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/Adaptor.js b/lib/Adaptor.js index 3ad1678..52d4f4d 100644 --- a/lib/Adaptor.js +++ b/lib/Adaptor.js @@ -132,7 +132,7 @@ function execute() { queries: [] }; return function (state) { - return _languageCommon.execute.apply(void 0, [createClient, connect].concat(operations, [disconnect, cleanupState]))(_objectSpread({}, initialState, {}, state))["catch"](function (e) { + return _languageCommon.execute.apply(void 0, [createClient, connect].concat(operations, [disconnect, cleanupState]))(_objectSpread(_objectSpread({}, initialState), state))["catch"](function (e) { console.error(e); console.error('Unhandled error in the operations. Exiting process.'); process.exit(1); @@ -171,7 +171,7 @@ function createClient(state) { }; // instantiate a new client var client = new _pg["default"].Client(config); - return _objectSpread({}, state, { + return _objectSpread(_objectSpread({}, state), {}, { client: client }); } @@ -179,7 +179,7 @@ function createClient(state) { function connect(state) { var client = state.client; client.connect(); - return _objectSpread({}, state, { + return _objectSpread(_objectSpread({}, state), {}, { client: client }); } @@ -221,7 +221,7 @@ function queryHandler(state, query, options) { } }); }).then(function (data) { - return _objectSpread({}, state, { + return _objectSpread(_objectSpread({}, state), {}, { response: { body: data } diff --git a/package-lock.json b/package-lock.json index 2ee2cd3..d172c3f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-postgresql", - "version": "3.3.0", + "version": "3.3.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index c06cccf..0d583dc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-postgresql", - "version": "3.3.0", + "version": "3.3.1", "description": "A PostgreSQL Language Pack for OpenFn", "homepage": "https://docs.openfn.org", "main": "lib/index.js",