@magda/authentication-plugin-sdk 1.2.1-alpha.0 → 2.0.0-alpha.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/index.d.ts +3 -2
- package/dist/index.js +2 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -134,11 +134,12 @@ declare function destroySession_2(req: express.Request): Promise<void>;
|
|
|
134
134
|
* @export
|
|
135
135
|
* @param {string} url
|
|
136
136
|
* @param {string} baseUrl
|
|
137
|
-
* @param {{ [key: string]:
|
|
137
|
+
* @param {{ [key: string]: any }} [optionalQueries] optional extra query parameters to add to the result url.
|
|
138
|
+
* All values supplied will be converted into string before encoded into the url.
|
|
138
139
|
* @returns
|
|
139
140
|
*/
|
|
140
141
|
export declare function getAbsoluteUrl(url: string, baseUrl: string, optionalQueries?: {
|
|
141
|
-
[key: string]:
|
|
142
|
+
[key: string]: any;
|
|
142
143
|
}): string;
|
|
143
144
|
|
|
144
145
|
export declare function getSessionId(req: express.Request, secret?: string): string;
|
package/dist/index.js
CHANGED
|
@@ -26948,7 +26948,8 @@ const urijs_1 = __importDefault(__webpack_require__(61));
|
|
|
26948
26948
|
* @export
|
|
26949
26949
|
* @param {string} url
|
|
26950
26950
|
* @param {string} baseUrl
|
|
26951
|
-
* @param {{ [key: string]:
|
|
26951
|
+
* @param {{ [key: string]: any }} [optionalQueries] optional extra query parameters to add to the result url.
|
|
26952
|
+
* All values supplied will be converted into string before encoded into the url.
|
|
26952
26953
|
* @returns
|
|
26953
26954
|
*/
|
|
26954
26955
|
function getAbsoluteUrl(url, baseUrl, optionalQueries) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magda/authentication-plugin-sdk",
|
|
3
3
|
"description": "MAGDA Authentication Plugin SDK",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "2.0.0-alpha.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prebuild": "rimraf dist tsconfig.tsbuildinfo",
|
|
7
7
|
"build": "webpack && api-extractor run -l",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"main": "dist/index.js",
|
|
13
13
|
"types": "dist/index.d.ts",
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@magda/auth-api-client": "^
|
|
16
|
-
"@magda/typescript-common": "^
|
|
15
|
+
"@magda/auth-api-client": "^2.0.0-alpha.0",
|
|
16
|
+
"@magda/typescript-common": "^2.0.0-alpha.0",
|
|
17
17
|
"@types/express": "^4.17.6",
|
|
18
18
|
"@types/express-session": "^1.15.15",
|
|
19
19
|
"@types/lodash": "^4.14.74",
|