npm_microservice 1.0.28 → 1.0.32

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.
package/README.md CHANGED
@@ -28,7 +28,9 @@ copy folder dist => dự án
28
28
  Kiểm thử
29
29
  ```
30
30
 
31
+ npm run build
31
32
  npm version patch --no-git-tag-version # lên 1.0.3
32
33
  git add package.json package-lock.json
33
34
  git commit -m "chore: bump version to 1.0.3"
34
- npm publish --access public
35
+ npm publish --access public
36
+ git push
package/dist/service.js CHANGED
@@ -2548,6 +2548,10 @@ var require_EduTestService = __commonJS({
2548
2548
  this.service = "contact_test";
2549
2549
  return this.request("get", url, { params: filter });
2550
2550
  }
2551
+ async requestToken(data) {
2552
+ let url = CONFIG_ROUTER_SERVICE.BASE_URL + "/tests/request-token/store";
2553
+ return this.request("post", url, { data });
2554
+ }
2551
2555
  // có thể thêm method riêng cho user nếu cần
2552
2556
  };
2553
2557
  module2.exports = EduTestService;
@@ -478,6 +478,10 @@ var EduTestService = class extends BaseService {
478
478
  this.service = "contact_test";
479
479
  return this.request("get", url, { params: filter });
480
480
  }
481
+ async requestToken(data) {
482
+ let url = CONFIG_ROUTER_SERVICE.BASE_URL + "/tests/request-token/store";
483
+ return this.request("post", url, { data });
484
+ }
481
485
  // có thể thêm method riêng cho user nếu cần
482
486
  };
483
487
  module.exports = EduTestService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "npm_microservice",
3
- "version": "1.0.28",
3
+ "version": "1.0.32",
4
4
  "type": "commonjs",
5
5
  "main": "dist/index.js",
6
6
  "exports": {