daystar-verify 1.0.2 → 1.0.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/config.d.ts +4 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +6 -1
- package/dist/config.js.map +1 -1
- package/package.json +5 -6
package/dist/config.d.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Configuration for the Daystar Verify package.
|
|
3
|
+
* This includes settings such as the base URL for the Daystar Portal API.
|
|
4
|
+
* The base URL can be set via the environment variable `DAYSTAR_PORTAL_URL`.
|
|
5
|
+
* If the environment variable is not set, it defaults to an empty string.
|
|
3
6
|
*/
|
|
4
7
|
export declare const config: {
|
|
5
|
-
baseUrl: string;
|
|
8
|
+
readonly baseUrl: string;
|
|
6
9
|
};
|
|
7
10
|
//# sourceMappingURL=config.d.ts.map
|
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,MAAM;;CAIlB,CAAC"}
|
package/dist/config.js
CHANGED
|
@@ -3,8 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.config = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Configuration for the Daystar Verify package.
|
|
6
|
+
* This includes settings such as the base URL for the Daystar Portal API.
|
|
7
|
+
* The base URL can be set via the environment variable `DAYSTAR_PORTAL_URL`.
|
|
8
|
+
* If the environment variable is not set, it defaults to an empty string.
|
|
6
9
|
*/
|
|
7
10
|
exports.config = {
|
|
8
|
-
baseUrl
|
|
11
|
+
get baseUrl() {
|
|
12
|
+
return process.env.DAYSTAR_PORTAL_URL ?? "";
|
|
13
|
+
},
|
|
9
14
|
};
|
|
10
15
|
//# sourceMappingURL=config.js.map
|
package/dist/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACU,QAAA,MAAM,GAAG;IACpB,IAAI,OAAO;QACT,OAAO,OAAO,CAAC,GAAG,CAAC,kBAAkB,IAAI,EAAE,CAAC;IAC9C,CAAC;CACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "daystar-verify",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "A library for verifying student status with Daystar University.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|
|
9
9
|
],
|
|
10
|
-
"scripts": {
|
|
11
|
-
"build": "tsc"
|
|
12
|
-
},
|
|
13
10
|
"keywords": [
|
|
14
11
|
"daystar",
|
|
15
12
|
"student",
|
|
@@ -17,11 +14,13 @@
|
|
|
17
14
|
],
|
|
18
15
|
"author": "victor musembi",
|
|
19
16
|
"license": "ISC",
|
|
20
|
-
"packageManager": "pnpm@10.18.2",
|
|
21
17
|
"devDependencies": {
|
|
22
18
|
"@types/node": "^25.5.2",
|
|
23
19
|
"dotenv": "^17.4.1",
|
|
24
20
|
"tsx": "^4.21.0",
|
|
25
21
|
"typescript": "^6.0.2"
|
|
22
|
+
},
|
|
23
|
+
"scripts": {
|
|
24
|
+
"build": "tsc"
|
|
26
25
|
}
|
|
27
|
-
}
|
|
26
|
+
}
|