Skip to content

Commit

Permalink
Please add friendly name to Key.activate (#33)
Browse files Browse the repository at this point in the history
* add friendly name to Activate

* typo

* Update package.json

---------

Co-authored-by: Artem Los <arteml@kth.se>
  • Loading branch information
JeffreyDavidsz and artemlos authored Feb 6, 2024
1 parent 4dbc157 commit 9a53277
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion methods/Key.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ const helpers = require('../internal/HelperMethods.js');

module.exports = class Key {

static Activate(token, rsaPubKey, ProductId, Key, MachineCode = "", FieldsToReturn = 0, Metadata = false, FloatingTimeInterval = 0, MaxOverdraft = 0, LicenseServerUrl = "https://api.cryptolens.io") {
static Activate(token, rsaPubKey, ProductId, Key, MachineCode = "", FriendlyName = "", FieldsToReturn = 0, Metadata = false, FloatingTimeInterval = 0, MaxOverdraft = 0, LicenseServerUrl = "https://api.cryptolens.io") {
return new Promise(async (resolve, reject) => {
try {
const formBody = {
token: token,
ProductId: ProductId,
Key: Key,
MachineCode: MachineCode,
FriendlyName: FriendlyName,
FieldsToReturn: FieldsToReturn,
Metadata: Metadata,
FloatingTimeInterval: FloatingTimeInterval,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cryptolens",
"version": "1.0.14.2",
"version": "1.0.15.1",
"description": "Client API for NodeJS to access Cryptolens Software Licensing API.",
"main": "main.js",
"scripts": {
Expand Down

0 comments on commit 9a53277

Please sign in to comment.