@qbraid-core/base 0.2.0 → 0.4.0
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/src/_version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.
|
|
1
|
+
export declare const version = "0.4.0";
|
package/dist/src/_version.js
CHANGED
package/dist/src/context.d.ts
CHANGED
|
@@ -19,4 +19,12 @@ export declare function using<T extends Disposable, R>(resource: T & {
|
|
|
19
19
|
* @param fn Function to execute while directory is guaranteed to exist
|
|
20
20
|
*/
|
|
21
21
|
export declare function ensureDirectory<R>(dirPath: string, removeIfCreated: boolean, fn: () => Promise<R>): Promise<R>;
|
|
22
|
+
/**
|
|
23
|
+
* Default URLs for qBraid services
|
|
24
|
+
*/
|
|
25
|
+
export declare const DEFAULT_API_URL = "https://api.qbraid.com";
|
|
26
|
+
export declare const DEFAULT_LAB_URL = "https://lab.qbraid.com";
|
|
27
|
+
export declare const DEFAULT_QBOOK_URL = "https://qbook.qbraid.com";
|
|
28
|
+
export declare const DEFAULT_ACCOUNT_URL = "https://account.qbraid.com/";
|
|
29
|
+
export declare const DEFAULT_HUB_URL = "https://lab.qbraid.com";
|
|
22
30
|
export {};
|
package/dist/src/context.js
CHANGED
|
@@ -35,6 +35,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
35
35
|
};
|
|
36
36
|
})();
|
|
37
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
exports.DEFAULT_HUB_URL = exports.DEFAULT_ACCOUNT_URL = exports.DEFAULT_QBOOK_URL = exports.DEFAULT_LAB_URL = exports.DEFAULT_API_URL = void 0;
|
|
38
39
|
exports.using = using;
|
|
39
40
|
exports.ensureDirectory = ensureDirectory;
|
|
40
41
|
const fs = __importStar(require("fs"));
|
|
@@ -89,4 +90,12 @@ async function using(resource, fn) {
|
|
|
89
90
|
async function ensureDirectory(dirPath, removeIfCreated, fn) {
|
|
90
91
|
return using(new DirectoryManager(dirPath, removeIfCreated), async () => await fn());
|
|
91
92
|
}
|
|
93
|
+
/**
|
|
94
|
+
* Default URLs for qBraid services
|
|
95
|
+
*/
|
|
96
|
+
exports.DEFAULT_API_URL = 'https://api.qbraid.com';
|
|
97
|
+
exports.DEFAULT_LAB_URL = 'https://lab.qbraid.com';
|
|
98
|
+
exports.DEFAULT_QBOOK_URL = 'https://qbook.qbraid.com';
|
|
99
|
+
exports.DEFAULT_ACCOUNT_URL = 'https://account.qbraid.com/';
|
|
100
|
+
exports.DEFAULT_HUB_URL = 'https://lab.qbraid.com';
|
|
92
101
|
//# sourceMappingURL=context.js.map
|
package/dist/src/context.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/context.ts"],"names":[],"mappings":";AAAA,8CAA8C;AAC9C,uBAAuB
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/context.ts"],"names":[],"mappings":";AAAA,8CAA8C;AAC9C,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgDvB,sBAUC;AAQD,0CAMC;AAtED,uCAAyB;AACzB,2CAA6B;AAS7B;;GAEG;AACH,MAAM,gBAAgB;IACZ,OAAO,CAAU;IACjB,IAAI,CAAS;IACb,eAAe,CAAU;IAEjC,YAAY,OAAe,EAAE,eAAwB;QACnD,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC;QACpB,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;IACxC,CAAC;IAED,KAAK,CAAC,IAAI;QACR,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;YAClB,MAAM,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QAC1D,CAA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
|
|
1
1
|
{
|
|
2
2
|
"name": "@qbraid-core/base",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
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.",
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"homepage": "https://qbraid.github.io/qbraid-core-js/modules/base.html",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"axios": "^1.7.9",
|
|
32
|
+
"fs": "^0.0.1-security",
|
|
32
33
|
"ini": "^5.0.0"
|
|
33
34
|
},
|
|
34
35
|
"devDependencies": {
|