@qbraid-core/base 0.12.0 → 0.12.1

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.
@@ -1 +1 @@
1
- export declare const version = "0.12.0";
1
+ export declare const version = "0.12.1";
@@ -2,5 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
4
  // This file is auto-generated. Do not edit manually.
5
- exports.version = '0.12.0';
5
+ exports.version = '0.12.1';
6
6
  //# sourceMappingURL=_version.js.map
@@ -1,4 +1,5 @@
1
1
  export declare const DEFAULT_CONFIG: ConfigData;
2
+ export declare const DEFAULT_CONFIG_V1: ConfigData;
2
3
  /**
3
4
  * Abstract base class for configuration management.
4
5
  * Provides core configuration logic without filesystem operations.
@@ -2,8 +2,9 @@
2
2
  // Copyright (c) 2025, qBraid Development Team
3
3
  // All rights reserved.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.ConfigManager = exports.DEFAULT_CONFIG = void 0;
5
+ exports.ConfigManager = exports.DEFAULT_CONFIG_V1 = exports.DEFAULT_CONFIG = void 0;
6
6
  const session_1 = require("./session");
7
+ const _1 = require(".");
7
8
  // Browser-safe env accessor: returns '' when process/env is unavailable
8
9
  const safeEnv = (key) => {
9
10
  try {
@@ -24,6 +25,12 @@ exports.DEFAULT_CONFIG = {
24
25
  url: session_1.DEFAULT_BASE_URL,
25
26
  },
26
27
  };
28
+ exports.DEFAULT_CONFIG_V1 = {
29
+ default: {
30
+ 'api-key': safeEnv('QBRAID_API_KEY'),
31
+ url: _1.DEFAULT_BASE_URL_V1,
32
+ },
33
+ };
27
34
  /**
28
35
  * Abstract base class for configuration management.
29
36
  * Provides core configuration logic without filesystem operations.
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":";AAAA,8CAA8C;AAC9C,uBAAuB;;;AAEvB,uCAA6C;AAE7C,wEAAwE;AACxE,MAAM,O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AC;AAEW,QAAA,cAAc,GAAe;IACxC,OAAO,EAAE;QACP,SAAS,EAAE,OAAO,CAAC,gBAAgB,CAAC;QACpC,eAAe,EAAE,OAAO,CAAC,SAAS,CAAC;QACnC,KAAK,EAAE,OAAO,CAAC,iBAAiB,CAAC;QACjC,GAAG,EAAE,0BAAgB;KACtB;CACF,CAAC;AAEW,QAAA,iBAAiB,GAAe;IAC3C,OAAO,EAAE;QACP,SAAS,EAAE,OAAO,CAAC,gBAAgB,CAAC;QACpC,GAAG,EAAE,sBAAmB;KACzB;CACF,CAAC;AAEF;;;;GAIG;AACH,MAAsB,aAAa;IACvB,UAAU,CAAS;IACnB,MAAM,CAAI;IAEpB,YAAY,QAAgB;QAC1B,IAAI,CAAC,UAAU,GAAG,QAAQ,CAAC;QAC3B,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;IAClC,CAAC;IAgBM,SAAS;QACd,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;CACF;AA1BD,sCA0BC"}
@@ -6,7 +6,7 @@ export { QbraidSession, DEFAULT_BASE_URL, DEFAULT_USER_POOL } from './session';
6
6
  export { QbraidClientV1 } from './client';
7
7
  export { QbraidSessionV1, DEFAULT_BASE_URL as DEFAULT_BASE_URL_V1, DEFAULT_USER_DOMAIN as DEFAULT_USER_DOMAIN_V1, } from './session-v1';
8
8
  export { QbraidError } from './errors';
9
- export { ConfigManager, DEFAULT_CONFIG } from './config';
9
+ export { ConfigManager, DEFAULT_CONFIG, DEFAULT_CONFIG_V1 } from './config';
10
10
  export type { ConfigData } from './config';
11
11
  export type { QbraidUser, DiskUsage } from './user';
12
12
  export type { AuthData } from './session';
package/dist/src/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  // Copyright (c) 2025, qBraid Development Team
3
3
  // All rights reserved.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.DEFAULT_CONFIG = exports.ConfigManager = exports.QbraidError = exports.DEFAULT_USER_DOMAIN_V1 = exports.DEFAULT_BASE_URL_V1 = exports.QbraidSessionV1 = exports.QbraidClientV1 = exports.DEFAULT_USER_POOL = exports.DEFAULT_BASE_URL = exports.QbraidSession = exports.QbraidClient = void 0;
5
+ exports.DEFAULT_CONFIG_V1 = exports.DEFAULT_CONFIG = exports.ConfigManager = exports.QbraidError = exports.DEFAULT_USER_DOMAIN_V1 = exports.DEFAULT_BASE_URL_V1 = exports.QbraidSessionV1 = exports.QbraidClientV1 = exports.DEFAULT_USER_POOL = exports.DEFAULT_BASE_URL = exports.QbraidSession = exports.QbraidClient = void 0;
6
6
  /**
7
7
  * @module base
8
8
  */
@@ -23,4 +23,5 @@ Object.defineProperty(exports, "QbraidError", { enumerable: true, get: function
23
23
  var config_1 = require("./config");
24
24
  Object.defineProperty(exports, "ConfigManager", { enumerable: true, get: function () { return config_1.ConfigManager; } });
25
25
  Object.defineProperty(exports, "DEFAULT_CONFIG", { enumerable: true, get: function () { return config_1.DEFAULT_CONFIG; } });
26
+ Object.defineProperty(exports, "DEFAULT_CONFIG_V1", { enumerable: true, get: function () { return config_1.DEFAULT_CONFIG_V1; } });
26
27
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,8CAA8C;AAC9C,uBAAuB;;;AAEvB;;GAEG;AACH,mCAAwC;AAA/B,sGAAA,YAAY,OAAA;AACrB,qCAA+E;AAAtE,wGAAA,aAAa,OAAA;AAAE,2GAAA,gBAAgB,OAAA;AAAE,4GAAA,iBAAiB,OAAA;AAC3D,mCAA0C;AAAjC,wGAAA,cAAc,OAAA;AACvB,2CAIsB;AAHpB,6GAAA,eAAe,OAAA;AACf,iHAAA,gBAAgB,OAAuB;AACvC,oHAAA,mBAAmB,OAA0B;AAE/C,mCAAuC;AAA9B,qGAAA,WAAW,OAAA;AACpB,mCAAyD;AAAhD,uGAAA,aAAa,OAAA;AAAE,wGAAA,cAAc,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,8CAA8C;AAC9C,uBAAuB;;;AAEvB;;GAEG;AACH,mCAAwC;AAA/B,sGAAA,YAAY,OAAA;AACrB,qCAA+E;AAAtE,wGAAA,aAAa,OAAA;AAAE,2GAAA,gBAAgB,OAAA;AAAE,4GAAA,iBAAiB,OAAA;AAC3D,mCAA0C;AAAjC,wGAAA,cAAc,OAAA;AACvB,2CAIsB;AAHpB,6GAAA,eAAe,OAAA;AACf,iHAAA,gBAAgB,OAAuB;AACvC,oHAAA,mBAAmB,OAA0B;AAE/C,mCAAuC;AAA9B,qGAAA,WAAW,OAAA;AACpB,mCAA4E;AAAnE,uGAAA,aAAa,OAAA;AAAE,wGAAA,cAAc,OAAA;AAAE,2GAAA,iBAAiB,OAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qbraid-core/base",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "description": "Core functionality for interacting with qBraid Cloud Services.",