1.0.0 • Published 6 years ago

liferay-hotfix-data-service v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

liferay-hotfix-data-service

A wrapper for the internal Liferay Hotfix Data Service API

Usage

First, require the module, which will give you the class constructor.

const HotfixDataService = require('liferay-hotfix-data-service');

Then you can use that constructor:

cosnt hds = new HotfixDataService(host, user, password);

And then you can call the method:

hds.getHotfix('405-7010', '/metadata/git-revision')
	.then(console.log)
// should print 8fde56147ae2954447bbaaa8fa54bb16df402364

getHotfix returns a native Javascript Promise.