@nomalism-com/api 1.3.2 → 1.3.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.ts CHANGED
@@ -1897,12 +1897,13 @@ declare namespace googleSheetPool {
1897
1897
  interface IDownloadSaftRequest {
1898
1898
  month: number;
1899
1899
  year: number;
1900
+ token: string;
1900
1901
  }
1901
1902
  declare class Repository {
1902
1903
  route: string;
1903
1904
  private api;
1904
1905
  constructor({ api, route }: IModuleConstructor);
1905
- getUrl({ month, year }: IDownloadSaftRequest): Promise<string>;
1906
+ getUrl({ month, year, token }: IDownloadSaftRequest): string;
1906
1907
  }
1907
1908
 
1908
1909
  type saft_IDownloadSaftRequest = IDownloadSaftRequest;
package/dist/index.js CHANGED
@@ -4215,10 +4215,11 @@ var Repository122 = class {
4215
4215
  this.api = api;
4216
4216
  this.route = route;
4217
4217
  }
4218
- async getUrl({ month, year }) {
4218
+ getUrl({ month, year, token }) {
4219
4219
  const qs = new URLSearchParams();
4220
4220
  qs.set("month", month.toString());
4221
4221
  qs.set("year", year.toString());
4222
+ qs.set("token", token);
4222
4223
  return `${this.route}download?${qs.toString()}`;
4223
4224
  }
4224
4225
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nomalism-com/api",
3
3
  "description": "A nomalism API package for performing HTTP requests on API endpoints",
4
- "version": "1.3.2",
4
+ "version": "1.3.4",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",