piral-adal 0.15.0-alpha.3804 → 0.15.0-alpha.3905
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/esm/create.d.ts +2 -2
- package/esm/types.d.ts +2 -2
- package/lib/create.d.ts +2 -2
- package/lib/types.d.ts +2 -2
- package/package.json +3 -3
- package/src/create.ts +2 -2
- package/src/types.ts +2 -2
package/esm/create.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PiralPlugin } from 'piral-core';
|
|
2
2
|
import { AdalClient } from './setup';
|
|
3
|
-
import {
|
|
3
|
+
import { PiletAdalApi } from './types';
|
|
4
4
|
/**
|
|
5
5
|
* Creates new Pilet API extensions for the integration of MSAL.
|
|
6
6
|
*/
|
|
7
|
-
export declare function createAdalApi(client: AdalClient): PiralPlugin<
|
|
7
|
+
export declare function createAdalApi(client: AdalClient): PiralPlugin<PiletAdalApi>;
|
package/esm/types.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
declare module 'piral-core/lib/types/custom' {
|
|
2
|
-
interface PiletCustomApi extends
|
|
2
|
+
interface PiletCustomApi extends PiletAdalApi {
|
|
3
3
|
}
|
|
4
4
|
}
|
|
5
|
-
export interface
|
|
5
|
+
export interface PiletAdalApi {
|
|
6
6
|
/**
|
|
7
7
|
* Gets the currently valid access token, if any.
|
|
8
8
|
*/
|
package/lib/create.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PiralPlugin } from 'piral-core';
|
|
2
2
|
import { AdalClient } from './setup';
|
|
3
|
-
import {
|
|
3
|
+
import { PiletAdalApi } from './types';
|
|
4
4
|
/**
|
|
5
5
|
* Creates new Pilet API extensions for the integration of MSAL.
|
|
6
6
|
*/
|
|
7
|
-
export declare function createAdalApi(client: AdalClient): PiralPlugin<
|
|
7
|
+
export declare function createAdalApi(client: AdalClient): PiralPlugin<PiletAdalApi>;
|
package/lib/types.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
declare module 'piral-core/lib/types/custom' {
|
|
2
|
-
interface PiletCustomApi extends
|
|
2
|
+
interface PiletCustomApi extends PiletAdalApi {
|
|
3
3
|
}
|
|
4
4
|
}
|
|
5
|
-
export interface
|
|
5
|
+
export interface PiletAdalApi {
|
|
6
6
|
/**
|
|
7
7
|
* Gets the currently valid access token, if any.
|
|
8
8
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "piral-adal",
|
|
3
|
-
"version": "0.15.0-alpha.
|
|
3
|
+
"version": "0.15.0-alpha.3905",
|
|
4
4
|
"description": "Plugin to integrate AAD authentication in Piral.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"piral",
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"msal": "^1.1.1"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"piral-core": "0.15.0-alpha.
|
|
53
|
+
"piral-core": "0.15.0-alpha.3905"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"piral-core": "0.14.x"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "533d09963cfd8c901df797958ca386dbae0286e1"
|
|
59
59
|
}
|
package/src/create.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { PiralPlugin } from 'piral-core';
|
|
2
2
|
import { AdalClient } from './setup';
|
|
3
|
-
import {
|
|
3
|
+
import { PiletAdalApi } from './types';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Creates new Pilet API extensions for the integration of MSAL.
|
|
7
7
|
*/
|
|
8
|
-
export function createAdalApi(client: AdalClient): PiralPlugin<
|
|
8
|
+
export function createAdalApi(client: AdalClient): PiralPlugin<PiletAdalApi> {
|
|
9
9
|
return (context) => {
|
|
10
10
|
context.on('before-fetch', client.extendHeaders);
|
|
11
11
|
|
package/src/types.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
declare module 'piral-core/lib/types/custom' {
|
|
2
|
-
interface PiletCustomApi extends
|
|
2
|
+
interface PiletCustomApi extends PiletAdalApi {}
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
-
export interface
|
|
5
|
+
export interface PiletAdalApi {
|
|
6
6
|
/**
|
|
7
7
|
* Gets the currently valid access token, if any.
|
|
8
8
|
*/
|