Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GammaJS
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GSC Libraries
GammaJS
Commits
cfc7cb5f
Commit
cfc7cb5f
authored
Jun 21, 2018
by
Ben Galloway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build and bump version
parent
0afa234f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
dist/callGamma.js
dist/callGamma.js
+2
-1
package.json
package.json
+1
-1
No files found.
dist/callGamma.js
View file @
cfc7cb5f
...
...
@@ -21,6 +21,7 @@ const callGamma = async (methodSpecs, callParamsObject) => {
const
endpoint
=
_config2
.
default
.
endpoints
[
methodSpecs
.
endpoint
];
const
client
=
await
_soapAsPromised2
.
default
.
createClient
(
endpoint
);
const
callDetails
=
(
0
,
_util
.
getXml
)(
callParamsObject
,
methodSpecs
);
_config2
.
default
.
debug
(
`Using endpoint:
${
endpoint
}
`
);
_config2
.
default
.
debug
(
callDetails
);
const
rawResponse
=
await
client
.
ReceiveData
({
value
:
callDetails
});
...
...
@@ -32,7 +33,7 @@ const callGamma = async (methodSpecs, callParamsObject) => {
if
(
response
.
hasOwnProperty
(
"
Message
"
))
throw
new
ReferenceError
(
response
.
Message
);
return
response
;
}
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
)
}
"`
);
}
};
...
...
package.json
View file @
cfc7cb5f
{
"name"
:
"gammajs"
,
"version"
:
"1.0.
0
"
,
"version"
:
"1.0.
1
"
,
"description"
:
"A JavaScript library for wrapping Gamma SOAP API calls"
,
"main"
:
"dist/index.js"
,
"author"
:
"Ben Galloway <ben.galloway@gsc.org.uk>"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment