Commit cfc7cb5f authored by Ben Galloway's avatar Ben Galloway

Build and bump version

parent 0afa234f
...@@ -21,6 +21,7 @@ const callGamma = async (methodSpecs, callParamsObject) => { ...@@ -21,6 +21,7 @@ const callGamma = async (methodSpecs, callParamsObject) => {
const endpoint = _config2.default.endpoints[methodSpecs.endpoint]; const endpoint = _config2.default.endpoints[methodSpecs.endpoint];
const client = await _soapAsPromised2.default.createClient(endpoint); const client = await _soapAsPromised2.default.createClient(endpoint);
const callDetails = (0, _util.getXml)(callParamsObject, methodSpecs); const callDetails = (0, _util.getXml)(callParamsObject, methodSpecs);
_config2.default.debug(`Using endpoint: ${endpoint}`);
_config2.default.debug(callDetails); _config2.default.debug(callDetails);
const rawResponse = await client.ReceiveData({ value: callDetails }); const rawResponse = await client.ReceiveData({ value: callDetails });
...@@ -32,7 +33,7 @@ const callGamma = async (methodSpecs, callParamsObject) => { ...@@ -32,7 +33,7 @@ const callGamma = async (methodSpecs, callParamsObject) => {
if (response.hasOwnProperty("Message")) throw new ReferenceError(response.Message); if (response.hasOwnProperty("Message")) throw new ReferenceError(response.Message);
return response; return response;
} catch (error) { } catch (error) {
throw new Error(`The response from the Gamma server could not be parsed correctly. The error was "${error}"`); throw new Error(`The response from the Gamma server could not be parsed correctly. The error was "${JSON.stringify(error, null, 2)}"`);
} }
}; };
......
{ {
"name": "gammajs", "name": "gammajs",
"version": "1.0.0", "version": "1.0.1",
"description": "A JavaScript library for wrapping Gamma SOAP API calls", "description": "A JavaScript library for wrapping Gamma SOAP API calls",
"main": "dist/index.js", "main": "dist/index.js",
"author": "Ben Galloway <ben.galloway@gsc.org.uk>", "author": "Ben Galloway <ben.galloway@gsc.org.uk>",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment