@sabuj0338/axios-friday 0.1.2 → 0.1.4

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/dist/index.d.mts CHANGED
@@ -21,6 +21,7 @@ interface FridayConfig {
21
21
  enableAccessToken?: boolean;
22
22
  enableRefreshToken?: boolean;
23
23
  }
24
+
24
25
  declare class Friday {
25
26
  private config;
26
27
  private axiosInstance;
@@ -157,4 +158,4 @@ declare class Friday {
157
158
  upload(url: URL, body: FormData): Promise<AxiosResponse<any, any> | undefined>;
158
159
  }
159
160
 
160
- export { type FridayConfig, type FridayOptions, Friday as default };
161
+ export { Friday, type FridayConfig, type FridayOptions };
package/dist/index.d.ts CHANGED
@@ -21,6 +21,7 @@ interface FridayConfig {
21
21
  enableAccessToken?: boolean;
22
22
  enableRefreshToken?: boolean;
23
23
  }
24
+
24
25
  declare class Friday {
25
26
  private config;
26
27
  private axiosInstance;
@@ -157,4 +158,4 @@ declare class Friday {
157
158
  upload(url: URL, body: FormData): Promise<AxiosResponse<any, any> | undefined>;
158
159
  }
159
160
 
160
- export { type FridayConfig, type FridayOptions, Friday as default };
161
+ export { Friday, type FridayConfig, type FridayOptions };
package/dist/index.js CHANGED
@@ -30,9 +30,11 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
30
30
  // src/index.ts
31
31
  var src_exports = {};
32
32
  __export(src_exports, {
33
- default: () => Friday
33
+ Friday: () => Friday
34
34
  });
35
35
  module.exports = __toCommonJS(src_exports);
36
+
37
+ // src/friday.ts
36
38
  var import_axios = __toESM(require("axios"));
37
39
  var import_js_cookie = __toESM(require("js-cookie"));
38
40
  var Friday = class {
@@ -311,3 +313,7 @@ var Friday = class {
311
313
  }
312
314
  }
313
315
  };
316
+ // Annotate the CommonJS export names for ESM import in node:
317
+ 0 && (module.exports = {
318
+ Friday
319
+ });
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- // src/index.ts
1
+ // src/friday.ts
2
2
  import axios from "axios";
3
3
  import Cookies from "js-cookie";
4
4
  var Friday = class {
@@ -278,5 +278,5 @@ var Friday = class {
278
278
  }
279
279
  };
280
280
  export {
281
- Friday as default
281
+ Friday
282
282
  };
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@sabuj0338/axios-friday",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Friday - a axios based api handling custom class. which has refresh token mechanism configured.",
5
- "main": "dist/index.js",
6
- "module": "dist/index.mjs",
7
- "types": "dist/index.d.ts",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.mjs",
7
+ "types": "./dist/index.d.ts",
8
8
  "files": [
9
9
  "dist/**/*"
10
10
  ],
@@ -17,10 +17,9 @@
17
17
  },
18
18
  "keywords": [
19
19
  "typescript",
20
- "library",
21
20
  "axios",
22
- "refresh",
23
- "token"
21
+ "refresh token",
22
+ "authorization"
24
23
  ],
25
24
  "author": "Sabuj Islam <sabuj0338@gmail.com>",
26
25
  "license": "MIT",