tradly 1.0.66 → 1.0.69

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.
@@ -5,8 +5,6 @@ import axios from "axios";
5
5
  import { APPCONSTANT } from "../Constants/AppConstant.js";
6
6
  import { REFRESH } from "../Constants/PathConstant.js";
7
7
  import Environment, { ImageConfig } from "../Helper/APIParam.js";
8
- import Cookies from "js-cookie";
9
- var CryptoJS = require("crypto-js");
10
8
 
11
9
  var header = {
12
10
  Accept: "application/json",
@@ -32,15 +30,9 @@ export var TradlyConfig = {
32
30
 
33
31
  class NetworkManager {
34
32
  networkCall = async (config = TradlyConfig) => {
35
- const decrypted = CryptoJS.AES.decrypt(
36
- Cookies.get(`pk_key`),
37
- process.env.AES_SECRET
38
- );
39
- var pk_key = decrypted.toString(CryptoJS.enc.Utf8);
40
-
41
33
  var BaseURL = Environment(APPCONSTANT.ENVIRONMENT);
42
34
  var url = BaseURL + config.path;
43
- header["Authorization"] = "Bearer " + APPCONSTANT.TOKEN || pk_key;
35
+ header["Authorization"] = "Bearer " + APPCONSTANT.TOKEN;
44
36
  if (config.authKey != undefined || config.authKey == "") {
45
37
  header["x-auth-key"] = config.authKey;
46
38
  }
package/Roots/SetSDK.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import axios from "axios";
2
- import { APPCONSTANT } from "../Constants/AppConstant";
3
- import Environment from "../Helper/APIParam";
4
- var CryptoJS = require("crypto-js");
2
+ import { APPCONSTANT } from "../Constants/AppConstant.js";
3
+ import Environment from "../Helper/APIParam.js";
5
4
  import Cookies from "js-cookie";
5
+ import CryptoJS from "crypto-js";
6
6
 
7
7
  /*export default set_sdk = (domain, env) => {
8
8
  axios({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tradly",
3
- "version": "1.0.66",
3
+ "version": "1.0.69",
4
4
  "description": "Tradly JS SDK",
5
5
  "main": "index.js",
6
6
  "type": "module",