anzar 1.1.11 → 1.1.12

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.cjs CHANGED
@@ -34,7 +34,6 @@ __export(index_exports, {
34
34
  });
35
35
  module.exports = __toCommonJS(index_exports);
36
36
  var import_axios = __toESM(require("axios"), 1);
37
- var import_yaml = __toESM(require("yaml"), 1);
38
37
 
39
38
  // src/anzar.ts
40
39
  var AnzarAuth = class {
@@ -162,6 +161,7 @@ var HttpClientImpl = class {
162
161
  async post(url, obj) {
163
162
  try {
164
163
  const response = await this.axios.post(url, obj);
164
+ console.log("ANZAR: ", response);
165
165
  if (response.status in [200, 201]) {
166
166
  return { ok: true, data: JSON.parse(response.data) };
167
167
  }
@@ -311,11 +311,7 @@ var SessionInterceptor = class {
311
311
  };
312
312
 
313
313
  // src/index.ts
314
- function loadConfig(file) {
315
- return import_yaml.default.parse(file);
316
- }
317
- function Anzar() {
318
- const config = loadConfig("anzar.yml");
314
+ function Anzar(config) {
319
315
  const axiosApiInstance = import_axios.default.create({
320
316
  // httpAgent: agent,
321
317
  baseURL: config.api_url,
package/dist/index.d.cts CHANGED
@@ -138,6 +138,6 @@ declare class AnzarAuth {
138
138
  };
139
139
  }
140
140
 
141
- declare function Anzar(): AnzarAuth;
141
+ declare function Anzar(config: AnzarConfig): AnzarAuth;
142
142
 
143
143
  export { Anzar };
package/dist/index.d.ts CHANGED
@@ -138,6 +138,6 @@ declare class AnzarAuth {
138
138
  };
139
139
  }
140
140
 
141
- declare function Anzar(): AnzarAuth;
141
+ declare function Anzar(config: AnzarConfig): AnzarAuth;
142
142
 
143
143
  export { Anzar };
package/dist/index.js CHANGED
@@ -1,6 +1,5 @@
1
1
  // src/index.ts
2
2
  import axios from "axios";
3
- import YAML from "yaml";
4
3
 
5
4
  // src/anzar.ts
6
5
  var AnzarAuth = class {
@@ -128,6 +127,7 @@ var HttpClientImpl = class {
128
127
  async post(url, obj) {
129
128
  try {
130
129
  const response = await this.axios.post(url, obj);
130
+ console.log("ANZAR: ", response);
131
131
  if (response.status in [200, 201]) {
132
132
  return { ok: true, data: JSON.parse(response.data) };
133
133
  }
@@ -277,11 +277,7 @@ var SessionInterceptor = class {
277
277
  };
278
278
 
279
279
  // src/index.ts
280
- function loadConfig(file) {
281
- return YAML.parse(file);
282
- }
283
- function Anzar() {
284
- const config = loadConfig("anzar.yml");
280
+ function Anzar(config) {
285
281
  const axiosApiInstance = axios.create({
286
282
  // httpAgent: agent,
287
283
  baseURL: config.api_url,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anzar",
3
- "version": "1.1.11",
3
+ "version": "1.1.12",
4
4
  "description": "Anzar SDK",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -30,7 +30,6 @@
30
30
  "dependencies": {
31
31
  "@types/node": "^25.0.3",
32
32
  "axios": "^1.13.2",
33
- "yaml": "^2.8.2",
34
33
  "zod": "^4.2.1"
35
34
  },
36
35
  "devDependencies": {