namirasoft-access 1.3.9 → 1.3.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@ exports.NamirasoftAccessServerBase = void 0;
4
4
  const namirasoft_account_1 = require("namirasoft-account");
5
5
  class NamirasoftAccessServerBase extends namirasoft_account_1.NamirasoftServerBase {
6
6
  constructor(manager, onError) {
7
- super(`https://access.namirasoft.com/api/v1`, `1.3.9`, manager, onError);
7
+ super(`https://access.namirasoft.com/api/v1`, `1.3.10`, manager, onError);
8
8
  }
9
9
  }
10
10
  exports.NamirasoftAccessServerBase = NamirasoftAccessServerBase;
@@ -1 +1 @@
1
- {"version":3,"file":"NamirasoftAccessServerBase.js","sourceRoot":"","sources":["../src/NamirasoftAccessServerBase.ts"],"names":[],"mappings":";;;AAoBA,2DAA0D;AAG1D,MAAa,0BAA2B,SAAQ,yCAAoB;IAEhE,YAAY,OAAqB,EAAE,OAA+B;QAE9D,KAAK,CAAC,sCAAsC,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;CACJ;AAND,gEAMC;AAAA,CAAC"}
1
+ {"version":3,"file":"NamirasoftAccessServerBase.js","sourceRoot":"","sources":["../src/NamirasoftAccessServerBase.ts"],"names":[],"mappings":";;;AAoBA,2DAA0D;AAG1D,MAAa,0BAA2B,SAAQ,yCAAoB;IAEhE,YAAY,OAAqB,EAAE,OAA+B;QAE9D,KAAK,CAAC,sCAAsC,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;CACJ;AAND,gEAMC;AAAA,CAAC"}
@@ -15,7 +15,7 @@ class NamirasoftAccessServerProduct extends NamirasoftAccessServerBase_1.Namiras
15
15
  Set(product_id, body) {
16
16
  return __awaiter(this, void 0, void 0, function* () {
17
17
  let path = `/product/${product_id}`;
18
- yield this._get(path, {}, body);
18
+ yield this._put(path, {}, body);
19
19
  });
20
20
  }
21
21
  }
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "framework": "npm",
9
9
  "application": "package",
10
10
  "private": false,
11
- "version": "1.3.9",
11
+ "version": "1.3.10",
12
12
  "author": "Amir Abolhasani",
13
13
  "license": "MIT",
14
14
  "main": "./dist/index.js",
@@ -20,7 +20,7 @@
20
20
  "namirasoft-core": "^1.3.46",
21
21
  "namirasoft-site": "^1.3.4",
22
22
  "namirasoft-node-cli": "^1.3.8",
23
- "namirasoft-account": "^1.3.22"
23
+ "namirasoft-account": "^1.3.23"
24
24
  },
25
25
  "bin": {
26
26
  "ns-access": "./dist/command/cli.js"
@@ -25,6 +25,6 @@ export class NamirasoftAccessServerBase extends NamirasoftServerBase
25
25
  {
26
26
  constructor(manager: TokenManager, onError: (error: Error) => void)
27
27
  {
28
- super(`https://access.namirasoft.com/api/v1`, `1.3.9`, manager, onError);
28
+ super(`https://access.namirasoft.com/api/v1`, `1.3.10`, manager, onError);
29
29
  }
30
30
  };
@@ -25,6 +25,6 @@ export class NamirasoftAccessServerProduct extends NamirasoftAccessServerBase
25
25
  async Set(product_id: string, body: any): Promise<void>
26
26
  {
27
27
  let path = `/product/${product_id}`;
28
- await this._get<void>(path, {}, body);
28
+ await this._put<void>(path, {}, body);
29
29
  }
30
30
  };