Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@azure/msal-common

Package Overview
Dependencies
Maintainers
3
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@azure/msal-common - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

dist/src/cache/entities/ThrottlingEntity.d.ts

73

CHANGELOG.json

@@ -5,2 +5,75 @@ {

{
"date": "Thu, 17 Sep 2020 23:16:22 GMT",
"tag": "@azure/msal-common_v1.3.0",
"version": "1.3.0",
"comments": {
"patch": [
{
"comment": "Add name field to AccountInfo (#2288)",
"author": "jamckenn@microsoft.com",
"commit": "d917d6a91987522f1c4390817966945ce18fa099",
"package": "@azure/msal-common"
},
{
"comment": "Realm should fallback to an empty string for non AAD scenarios",
"author": "sameera.gajjarapu@microsoft.com",
"commit": "d4c4b1f53e919c226b19e3fa72f42f02baa394da",
"package": "@azure/msal-common"
},
{
"comment": "Add default scopes in all requests and ignore in cache lookups (#2267)",
"author": "thomas.norling@microsoft.com",
"commit": "3a18b100f38149a35c01cc491a9de78ea505d771",
"package": "@azure/msal-common"
},
{
"comment": "Move refreshToken API to RefreshTokenClient (#2264)",
"author": "thomas.norling@microsoft.com",
"commit": "6923e66fc9ca44c460489b41ff6a4d104ebde864",
"package": "@azure/msal-common"
},
{
"comment": "Track Suberrors in Telemetry (#1921)",
"author": "thomas.norling@microsoft.com",
"commit": "1872900d149b60436ef59fd41ab542c58c32e8f1",
"package": "@azure/msal-common"
},
{
"comment": "Separate cache lookup from token refresh (#2189)",
"author": "thomas.norling@microsoft.com",
"commit": "b452afeac6bf3fc5df0535c22433709a06921b33",
"package": "@azure/msal-common"
}
],
"none": [
{
"comment": "Update core, browser, common to use central eslint configuration",
"author": "janutter@microsoft.com",
"commit": "fc49c6f16b3f7a62a67d249107fc484272133305",
"package": "@azure/msal-common"
}
],
"minor": [
{
"comment": "Add support for On-behalf-of flow",
"author": "sagonzal@microsoft.com",
"commit": "53c018c8ea0d1877c12641fc1a749e6d66e7ff78",
"package": "@azure/msal-common"
},
{
"comment": "ValidCacheType adds ServerTelemetryEntity",
"author": "sameera.gajjarapu@microsoft.com",
"commit": "9760b6ff6c0ad403ac1b26968cb10d3d7e72a6fd",
"package": "@azure/msal-common"
},
{
"comment": "Added client-side throttling to enhance server stability (#1907)",
"author": "jamckenn@microsoft.com",
"commit": "91a1dba29dbfb8f6fc329c0381767d6b6f661281",
"package": "@azure/msal-common"
}
]
}
},
{
"date": "Tue, 25 Aug 2020 00:40:45 GMT",

@@ -7,0 +80,0 @@ "tag": "@azure/msal-common_v1.2.0",

21

changelog.md
# Change Log - @azure/msal-common
This log was last generated on Tue, 25 Aug 2020 00:40:45 GMT and should not be manually modified.
This log was last generated on Thu, 17 Sep 2020 23:16:22 GMT and should not be manually modified.
<!-- Start content -->
## 1.3.0
Thu, 17 Sep 2020 23:16:22 GMT
### Minor changes
- Add support for On-behalf-of flow (sagonzal@microsoft.com)
- ValidCacheType adds ServerTelemetryEntity (sameera.gajjarapu@microsoft.com)
- Added client-side throttling to enhance server stability (#1907) (jamckenn@microsoft.com)
### Patches
- Add name field to AccountInfo (#2288) (jamckenn@microsoft.com)
- Realm should fallback to an empty string for non AAD scenarios (sameera.gajjarapu@microsoft.com)
- Add default scopes in all requests and ignore in cache lookups (#2267) (thomas.norling@microsoft.com)
- Move refreshToken API to RefreshTokenClient (#2264) (thomas.norling@microsoft.com)
- Track Suberrors in Telemetry (#1921) (thomas.norling@microsoft.com)
- Separate cache lookup from token refresh (#2189) (thomas.norling@microsoft.com)
## 1.2.0

@@ -8,0 +27,0 @@

@@ -7,2 +7,3 @@ /**

* - username - preferred_username claim of the id_token that represents this account
* - name - Full name for the account, including given name and family name
*/

@@ -14,2 +15,3 @@ export declare type AccountInfo = {

username: string;
name?: string;
};
import { AccountCache, AccountFilter, CredentialFilter, CredentialCache } from "./utils/CacheTypes";
import { CacheRecord } from "./entities/CacheRecord";
import { CredentialEntity } from "./entities/CredentialEntity";
import { ScopeSet } from "../request/ScopeSet";
import { AccountEntity } from "./entities/AccountEntity";
import { AccessTokenEntity } from "./entities/AccessTokenEntity";
import { IdTokenEntity } from "./entities/IdTokenEntity";
import { RefreshTokenEntity } from "./entities/RefreshTokenEntity";
import { ICacheManager } from "./interface/ICacheManager";

@@ -49,2 +53,3 @@ import { AccountInfo } from "../account/AccountInfo";

saveCacheRecord(cacheRecord: CacheRecord): void;
getCacheRecord(account: AccountInfo, clientId: string, scopes: ScopeSet): CacheRecord;
/**

@@ -74,4 +79,25 @@ * saves account into cache

*/
getCredential(key: string): CredentialEntity;
getCredential(key: string): CredentialEntity | null;
/**
* Helper function to retrieve IdTokenEntity from cache
* @param clientId
* @param account
* @param inputRealm
*/
getIdTokenEntity(clientId: string, account: AccountInfo): IdTokenEntity | null;
/**
* Helper function to retrieve AccessTokenEntity from cache
* @param clientId
* @param account
* @param scopes
* @param inputRealm
*/
getAccessTokenEntity(clientId: string, account: AccountInfo, scopes: ScopeSet): AccessTokenEntity | null;
/**
* Helper function to retrieve RefreshTokenEntity from cache
* @param clientId
* @param account
*/
getRefreshTokenEntity(clientId: string, account: AccountInfo): RefreshTokenEntity | null;
/**
* retrieve accounts matching all provided filters; if no filter is set, get all accounts

@@ -142,2 +168,7 @@ * not checking for casing as keys are all generated in lower case, remember to convert to lower case if object properties are compared

/**
* @param value
* @param oboAssertion
*/
private matchOboAssertion;
/**
*

@@ -144,0 +175,0 @@ * @param value

2

dist/src/cache/entities/AccessTokenEntity.d.ts

@@ -46,3 +46,3 @@ import { CredentialEntity } from "./CredentialEntity";

*/
static createAccessTokenEntity(homeAccountId: string, environment: string, accessToken: string, clientId: string, tenantId: string, scopes: string, expiresOn: number, extExpiresOn: number): AccessTokenEntity;
static createAccessTokenEntity(homeAccountId: string, environment: string, accessToken: string, clientId: string, tenantId: string, scopes: string, expiresOn: number, extExpiresOn: number, oboAssertion?: string): AccessTokenEntity;
/**

@@ -49,0 +49,0 @@ * Validates an entity: checks for all expected params

@@ -24,2 +24,3 @@ import { Authority } from "../../authority/Authority";

* lastModificationApp:
* oboAssertion: access token passed in as part of OBO request
* }

@@ -38,2 +39,3 @@ */

lastModificationApp?: string;
oboAssertion?: string;
/**

@@ -67,3 +69,3 @@ * Generate Account Id key component as per the schema: <home_account_id>-<environment>

*/
static createAccount(clientInfo: string, authority: Authority, idToken: IdToken, crypto: ICrypto): AccountEntity;
static createAccount(clientInfo: string, authority: Authority, idToken: IdToken, crypto: ICrypto, oboAssertion?: string): AccountEntity;
/**

@@ -74,3 +76,3 @@ * Build ADFS account type

*/
static createADFSAccount(authority: Authority, idToken: IdToken): AccountEntity;
static createADFSAccount(authority: Authority, idToken: IdToken, oboAssertion?: string): AccountEntity;
/**

@@ -77,0 +79,0 @@ * Validates an entity: checks for all expected params

@@ -19,2 +19,3 @@ import { CredentialType } from "../../utils/Constants";

* target: Permissions that are included in the token, or for refresh tokens, the resource identifier.
* oboAssertion: access token passed in as part of OBO request
* }

@@ -31,2 +32,3 @@ */

target?: string;
oboAssertion?: string;
/**

@@ -33,0 +35,0 @@ * Generate Account Id key component as per the schema: <home_account_id>-<environment>

@@ -28,3 +28,3 @@ import { CredentialEntity } from "./CredentialEntity";

*/
static createIdTokenEntity(homeAccountId: string, environment: string, idToken: string, clientId: string, tenantId: string): IdTokenEntity;
static createIdTokenEntity(homeAccountId: string, environment: string, idToken: string, clientId: string, tenantId: string, oboAssertion?: string): IdTokenEntity;
/**

@@ -31,0 +31,0 @@ * Validates an entity: checks for all expected params

@@ -30,3 +30,3 @@ import { CredentialEntity } from "./CredentialEntity";

*/
static createRefreshTokenEntity(homeAccountId: string, environment: string, refreshToken: string, clientId: string, familyId?: string): RefreshTokenEntity;
static createRefreshTokenEntity(homeAccountId: string, environment: string, refreshToken: string, clientId: string, familyId?: string, oboAssertion?: string): RefreshTokenEntity;
/**

@@ -33,0 +33,0 @@ * Validates an entity: checks for all expected params

@@ -6,2 +6,4 @@ import { AccountEntity } from "../entities/AccountEntity";

import { AppMetadataEntity } from "../entities/AppMetadataEntity";
import { ServerTelemetryEntity } from "../entities/ServerTelemetryEntity";
import { ThrottlingEntity } from "../entities/ThrottlingEntity";
export declare type AccountCache = Record<string, AccountEntity>;

@@ -17,2 +19,3 @@ export declare type IdTokenCache = Record<string, IdTokenEntity>;

};
export declare type ValidCacheType = AccountEntity | IdTokenEntity | AccessTokenEntity | RefreshTokenEntity | AppMetadataEntity | ServerTelemetryEntity | ThrottlingEntity | string;
/**

@@ -36,2 +39,3 @@ * Account: <home_account_id>-<environment>-<realm*>

target?: string;
oboAssertion?: string;
};
import { ClientConfiguration } from "../config/ClientConfiguration";
import { INetworkModule } from "../network/INetworkModule";
import { NetworkManager, NetworkResponse } from "../network/NetworkManager";
import { ICrypto } from "../crypto/ICrypto";
import { Authority } from "../authority/Authority";
import { Logger } from "../logger/Logger";
import { NetworkResponse } from "../network/NetworkManager";
import { ServerAuthorizationTokenResponse } from "../response/ServerAuthorizationTokenResponse";
import { CacheManager } from "../cache/CacheManager";
import { ServerTelemetryManager } from "../telemetry/server/ServerTelemetryManager";
import { RequestThumbprint } from "../network/RequestThumbprint";
/**

@@ -20,2 +21,3 @@ * Base application class which will construct requests to send to and handle responses from the Microsoft STS using the authorization code flow.

protected serverTelemetryManager: ServerTelemetryManager;
protected networkManager: NetworkManager;
protected authority: Authority;

@@ -36,4 +38,5 @@ protected constructor(configuration: ClientConfiguration);

* @param headers
* @param thumbprint
*/
protected executePostToTokenEndpoint(tokenEndpoint: string, queryString: string, headers: Record<string, string>): Promise<NetworkResponse<ServerAuthorizationTokenResponse>>;
protected executePostToTokenEndpoint(tokenEndpoint: string, queryString: string, headers: Record<string, string>, thumbprint: RequestThumbprint): Promise<NetworkResponse<ServerAuthorizationTokenResponse>>;
}

@@ -5,2 +5,3 @@ import { ClientConfiguration } from "../config/ClientConfiguration";

import { AuthenticationResult } from "../response/AuthenticationResult";
import { SilentFlowRequest } from "../request/SilentFlowRequest";
/**

@@ -12,4 +13,9 @@ * OAuth2.0 refresh token client

acquireToken(request: RefreshTokenRequest): Promise<AuthenticationResult>;
/**
* Gets cached refresh token and attaches to request, then calls acquireToken API
* @param request
*/
acquireTokenByRefreshToken(request: SilentFlowRequest): Promise<AuthenticationResult>;
private executeTokenRequest;
private createTokenRequestBody;
}

@@ -13,19 +13,18 @@ import { BaseClient } from "./BaseClient";

acquireToken(request: SilentFlowRequest): Promise<AuthenticationResult>;
private isRefreshRequired;
/**
* fetches idToken from cache if present
* Retrieves token from cache or throws an error if it must be refreshed.
* @param request
*/
private readIdTokenFromCache;
acquireCachedToken(request: SilentFlowRequest): AuthenticationResult;
/**
* fetches accessToken from cache if present
* @param request
* @param scopes
* Helper function to build response object from the CacheRecord
* @param cacheRecord
*/
private readAccessTokenFromCache;
private generateResultFromCacheRecord;
/**
* fetches refreshToken from cache if present
* Given a request object and an accessTokenEntity determine if the accessToken needs to be refreshed
* @param request
* @param cachedAccessToken
*/
private readRefreshTokenFromCache;
private isRefreshRequired;
}

@@ -16,3 +16,4 @@ /**

errorMessage: string;
constructor(errorCode: string, errorMessage?: string);
suberror: string;
constructor(errorCode: string, errorMessage?: string, suberror?: string);
/**

@@ -19,0 +20,0 @@ * Creates an error that is thrown when something unexpected happens in the library.

@@ -152,2 +152,6 @@ import { AuthError } from "./AuthError";

};
tokenRefreshRequired: {
code: string;
desc: string;
};
};

@@ -231,3 +235,3 @@ /**

*/
static createMultipleMatchingTokensInCacheError(scope: string): ClientAuthError;
static createMultipleMatchingTokensInCacheError(): ClientAuthError;
/**

@@ -296,21 +300,25 @@ * Throws error when multiple tokens are in cache for the given scope.

/**
* Throws error if cache type is invalid.
*/
* Throws error if cache type is invalid.
*/
static createInvalidCacheTypeError(): ClientAuthError;
/**
* Throws error if unexpected account type.
*/
* Throws error if unexpected account type.
*/
static createUnexpectedAccountTypeError(): ClientAuthError;
/**
* Throws error if unexpected credential type.
*/
* Throws error if unexpected credential type.
*/
static createUnexpectedCredentialTypeError(): ClientAuthError;
/**
* Throws error if client assertion is not valid.
*/
* Throws error if client assertion is not valid.
*/
static createInvalidAssertionError(): ClientAuthError;
/**
* Throws error if client assertion is not valid.
*/
* Throws error if client assertion is not valid.
*/
static createInvalidCredentialError(): ClientAuthError;
/**
* Throws error if token cannot be retrieved from cache due to refresh being required.
*/
static createRefreshRequiredError(): ClientAuthError;
}

@@ -5,2 +5,3 @@ export { AuthorizationCodeClient } from "./client/AuthorizationCodeClient";

export { ClientCredentialClient } from "./client/ClientCredentialClient";
export { OnBehalfOfClient } from "./client/OnBehalfOfClient";
export { SilentFlowClient } from "./client/SilentFlowClient";

@@ -18,3 +19,3 @@ export { AuthOptions, SystemOptions, LoggerOptions, DEFAULT_SYSTEM_OPTIONS } from "./config/ClientConfiguration";

export { CacheManager } from "./cache/CacheManager";
export { AccountCache, AccessTokenCache, IdTokenCache, RefreshTokenCache, AppMetadataCache } from "./cache/utils/CacheTypes";
export { AccountCache, AccessTokenCache, IdTokenCache, RefreshTokenCache, AppMetadataCache, ValidCacheType } from "./cache/utils/CacheTypes";
export { CredentialEntity } from "./cache/entities/CredentialEntity";

@@ -26,4 +27,7 @@ export { AppMetadataEntity } from "./cache/entities/AppMetadataEntity";

export { RefreshTokenEntity } from "./cache/entities/RefreshTokenEntity";
export { ThrottlingEntity } from "./cache/entities/ThrottlingEntity";
export { INetworkModule, NetworkRequestOptions } from "./network/INetworkModule";
export { NetworkResponse } from "./network/NetworkManager";
export { NetworkManager, NetworkResponse } from "./network/NetworkManager";
export { ThrottlingUtils } from "./network/ThrottlingUtils";
export { RequestThumbprint } from "./network/RequestThumbprint";
export { IUri } from "./url/IUri";

@@ -37,2 +41,3 @@ export { UrlString } from "./url/UrlString";

export { ClientCredentialRequest } from "./request/ClientCredentialRequest";
export { OnBehalfOfRequest } from "./request/OnBehalfOfRequest";
export { SilentFlowRequest } from "./request/SilentFlowRequest";

@@ -49,3 +54,3 @@ export { DeviceCodeRequest } from "./request/DeviceCodeRequest";

export { ClientConfigurationError, ClientConfigurationErrorMessage } from "./error/ClientConfigurationError";
export { Constants, PromptValue, PersistentCacheKeys, ResponseMode, CacheSchemaType, CredentialType } from "./utils/Constants";
export { Constants, PromptValue, PersistentCacheKeys, ResponseMode, CacheSchemaType, CredentialType, CacheType } from "./utils/Constants";
export { StringUtils } from "./utils/StringUtils";

@@ -52,0 +57,0 @@ export { StringDict } from "./utils/MsalTypes";

@@ -0,1 +1,4 @@

import { INetworkModule, NetworkRequestOptions } from "./INetworkModule";
import { RequestThumbprint } from "./RequestThumbprint";
import { CacheManager } from "../cache/CacheManager";
export declare type NetworkResponse<T> = {

@@ -7,2 +10,12 @@ headers: Record<string, string>;

export declare class NetworkManager {
private networkClient;
private cacheManager;
constructor(networkClient: INetworkModule, cacheManager: CacheManager);
/**
* Wraps sendPostRequestAsync with necessary preflight and postflight logic
* @param thumbprint
* @param tokenEndpoint
* @param options
*/
sendPostRequest<T>(thumbprint: RequestThumbprint, tokenEndpoint: string, options: NetworkRequestOptions): Promise<NetworkResponse<T>>;
}
import { ResponseMode } from "../utils/Constants";
import { StringDict } from "../utils/MsalTypes";
import { BaseAuthRequest } from "./BaseAuthRequest";
import { AccountInfo } from "../account/AccountInfo";
/**

@@ -22,2 +23,3 @@ * Request object passed by user to retrieve a Code from the server (first leg of authorization code grant flow)

* select_account: will interrupt single sign-=on providing account selection experience listing all the accounts in session or any remembered accounts or an option to choose to use a different account
* - account - AccountInfo obtained from a getAccount API. Will be used in certain scenarios to generate login_hint if both loginHint and sid params are not provided.
* - loginHint - Can be used to pre-fill the username/email address field of the sign-in page for the user, if you know the username/email address ahead of time. Often apps use this parameter during re-authentication, having already extracted the username from a previous sign-in using the preferred_username claim.

@@ -37,2 +39,3 @@ * - sid - Session ID, unique identifier for the session. Available as an optional claim on ID tokens.

prompt?: string;
account?: AccountInfo;
loginHint?: string;

@@ -39,0 +42,0 @@ domainHint?: string;

import { ResponseMode } from "../utils/Constants";
import { ScopeSet } from "./ScopeSet";
import { StringDict } from "../utils/MsalTypes";

@@ -18,6 +17,7 @@ import { LibraryInfo } from "../config/ClientConfiguration";

/**
* add scopes
* add scopes. set addOidcScopes to false to prevent default scopes in non-user scenarios
* @param scopeSet
* @param addOidcScopes
*/
addScopes(scopeSet: ScopeSet): void;
addScopes(scopes: string[], addOidcScopes?: boolean): void;
/**

@@ -121,5 +121,15 @@ * add clientId

/**
* add OBO assertion for confidential client flows
* @param clientAssertion
*/
addOboAssertion(oboAssertion: string): void;
/**
* add grant type
* @param grantType
*/
addRequestTokenUse(tokenUse: string): void;
/**
* add grant type
* @param grantType
*/
addGrantType(grantType: string): void;

@@ -126,0 +136,0 @@ /**

@@ -14,3 +14,3 @@ /**

* @param scopesRequired
*/
*/
static fromString(inputScopeString: string): ScopeSet;

@@ -21,3 +21,3 @@ /**

* @param {boolean} scopesRequired - Boolean indicating whether the scopes array is required or not
*/
*/
private validateInputScopes;

@@ -35,2 +35,6 @@ /**

/**
* Check if set of scopes contains only the defaults
*/
containsOnlyDefaultScopes(): boolean;
/**
* Appends single scope if passed

@@ -51,2 +55,7 @@ * @param newScope

/**
* Removes default scopes from set of scopes
* Primarily used to prevent cache misses if the default scopes are not returned from the server
*/
removeDefaultScopes(): void;
/**
* Combines an array of scopes with the current set of scopes.

@@ -53,0 +62,0 @@ * @param otherScopes

@@ -39,3 +39,3 @@ import { ServerAuthorizationTokenResponse } from "./ServerAuthorizationTokenResponse";

*/
handleServerTokenResponse(serverTokenResponse: ServerAuthorizationTokenResponse, authority: Authority, cachedNonce?: string, cachedState?: string, requestScopes?: string[]): AuthenticationResult;
handleServerTokenResponse(serverTokenResponse: ServerAuthorizationTokenResponse, authority: Authority, cachedNonce?: string, cachedState?: string, requestScopes?: string[], oboAssertion?: string): AuthenticationResult;
/**

@@ -42,0 +42,0 @@ * Generates CacheRecord

@@ -31,3 +31,6 @@ export declare const Constants: {

X_CLIENT_CURR_TELEM = "x-client-current-telemetry",
X_CLIENT_LAST_TELEM = "x-client-last-telemetry"
X_CLIENT_LAST_TELEM = "x-client-last-telemetry",
RETRY_AFTER = "Retry-After",
X_MS_LIB_CAPABILITY = "x-ms-lib-capability",
X_MS_LIB_CAPABILITY_VALUE = "retry-after, h429"
}

@@ -87,3 +90,6 @@ /**

CLIENT_ASSERTION = "client_assertion",
CLIENT_ASSERTION_TYPE = "client_assertion_type"
CLIENT_ASSERTION_TYPE = "client_assertion_type",
OBO_ASSERTION = "assertion",
REQUESTED_TOKEN_USE = "requested_token_use",
ON_BEHALF_OF = "on_behalf_of"
}

@@ -170,3 +176,4 @@ /**

REFRESH_TOKEN_GRANT = "refresh_token",
DEVICE_CODE_GRANT = "device_code"
DEVICE_CODE_GRANT = "device_code",
JWT_BEARER = "urn:ietf:params:oauth:grant-type:jwt-bearer"
}

@@ -190,3 +197,3 @@ /**

/**
* Credentail Type stored in the cache
* Credential Type stored in the cache
*/

@@ -199,3 +206,3 @@ export declare enum CredentialType {

/**
* Credentail Type stored in the cache
* Credential Type stored in the cache
*/

@@ -205,5 +212,10 @@ export declare enum CacheSchemaType {

CREDENTIAL = "Credential",
ID_TOKEN = "IdToken",
ACCESS_TOKEN = "AccessToken",
REFRESH_TOKEN = "RefreshToken",
APP_METADATA = "AppMetadata",
TEMPORARY = "TempCache",
TELEMETRY = "Telemetry"
TELEMETRY = "Telemetry",
UNDEFINED = "Undefined",
THROTTLING = "Throttling"
}

@@ -221,3 +233,4 @@ /**

ID_TOKEN = 2003,
APP_METADATA = 3001
APP_METADATA = 3001,
UNDEFINED = 9999
}

@@ -236,1 +249,9 @@ /**

};
/**
* Constants related to throttling
*/
export declare const ThrottlingConstants: {
DEFAULT_THROTTLE_TIME_SECONDS: number;
DEFAULT_MAX_THROTTLE_TIME_SECONDS: number;
THROTTLING_PREFIX: string;
};

@@ -37,2 +37,7 @@ import { DecodedJwt } from "../account/DecodedJwt";

static removeEmptyStringsFromArray(arr: Array<string>): Array<string>;
/**
* Attempts to parse a string into JSON
* @param str
*/
static jsonParseHelper<T>(str: string): T;
}

@@ -13,3 +13,3 @@ {

},
"version": "1.2.0",
"version": "1.3.0",
"description": "Microsoft Authentication Library for js",

@@ -49,3 +49,4 @@ "keywords": [

"doc:deploy": "gh-pages -d ref -a -e ref/msal-common",
"lint": "eslint src --ext .ts",
"lint": "cd ../../ && npm run lint:common",
"lint:fix": "npm run lint -- -- --fix",
"test": "mocha",

@@ -56,3 +57,3 @@ "test:coverage": "nyc --reporter=text mocha --exit",

"build:modules:watch": "rollup -cw",
"build": "npm run clean && npm run lint && npm run build:modules",
"build": "npm run clean && npm run build:modules",
"prepack": "npm run build"

@@ -75,5 +76,2 @@ },

"@types/sinon": "^7.5.0",
"@typescript-eslint/eslint-plugin": "^2.4.0",
"@typescript-eslint/eslint-plugin-tslint": "^2.4.0",
"@typescript-eslint/parser": "^2.4.0",
"babel-plugin-istanbul": "^5.2.0",

@@ -83,3 +81,2 @@ "beachball": "^1.32.2",

"chai-as-promised": "^7.1.1",
"eslint": "^6.5.1",
"gh-pages": "^3.1.0",

@@ -86,0 +83,0 @@ "husky": "^3.0.9",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc