New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@laserfiche/lf-api-client-core

Package Overview
Dependencies
Maintainers
0
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@laserfiche/lf-api-client-core - npm Package Compare versions

Comparing version

to
1.1.14--preview-11388830834

3

dist/index.d.ts

@@ -6,3 +6,2 @@ import { GetAccessTokenResponse } from './lib/OAuth/GetAccessTokenResponse.js';

import { JWK } from './lib/OAuth/JWK.js';
import { OAuthClientCustomTokenCredentialsHandler } from './lib/HttpHandlers/OAuthClientCustomTokenCredentialsHandler.js';
import { OAuthClientCredentialsHandler } from './lib/HttpHandlers/OAuthClientCredentialsHandler.js';

@@ -16,3 +15,3 @@ import { UsernamePasswordHandler } from './lib/HttpHandlers/UsernamePasswordHandler.js';

import { BeforeFetchResult } from './lib/HttpHandlers/BeforeFetchResult.js';
export { GetAccessTokenResponse, CreateConnectionRequest, SessionKeyInfo, createFromBase64EncodedAccessKey, createClientCredentialsAuthorizationJwt as createClientCredentials, AccessKey, JWK, OAuthClientCredentialsHandler, OAuthClientCustomTokenCredentialsHandler, UsernamePasswordHandler, HttpRequestHandler, BeforeFetchResult };
export { GetAccessTokenResponse, CreateConnectionRequest, SessionKeyInfo, createFromBase64EncodedAccessKey, createClientCredentialsAuthorizationJwt as createClientCredentials, AccessKey, JWK, OAuthClientCredentialsHandler, UsernamePasswordHandler, HttpRequestHandler, BeforeFetchResult };
export * as JwtUtils from './lib/utils/JwtUtils.js';

@@ -19,0 +18,0 @@ export * as DomainUtils from './lib/utils/DomainUtils.js';

import { createFromBase64EncodedAccessKey, createClientCredentialsAuthorizationJwt } from './lib/OAuth/AccessKey.js';
import { OAuthClientCustomTokenCredentialsHandler } from './lib/HttpHandlers/OAuthClientCustomTokenCredentialsHandler.js';
import { OAuthClientCredentialsHandler } from './lib/HttpHandlers/OAuthClientCredentialsHandler.js';

@@ -9,3 +8,3 @@ import { UsernamePasswordHandler } from './lib/HttpHandlers/UsernamePasswordHandler.js';

import { ApiException } from './lib/ApiException.js';
export { createFromBase64EncodedAccessKey, createClientCredentialsAuthorizationJwt as createClientCredentials, OAuthClientCredentialsHandler, OAuthClientCustomTokenCredentialsHandler, UsernamePasswordHandler };
export { createFromBase64EncodedAccessKey, createClientCredentialsAuthorizationJwt as createClientCredentials, OAuthClientCredentialsHandler, UsernamePasswordHandler };
import * as JwtUtils_1 from './lib/utils/JwtUtils.js';

@@ -12,0 +11,0 @@ export { JwtUtils_1 as JwtUtils };

@@ -40,17 +40,2 @@ /**

/**
* Returns Laserfiche domain from Laserfiche jwt claims
* @param lfJwt
* @returns
* @example
* ```typescript
* const jwt : AccessTokenUtils.JWT = {
* header: { 'typ': 'JWT'},
* payload: {'aud' : 'test_aud'},
* signature: '_signature'
* }
* getDomainFromLfJWT(jwt); // 'test_aud';
* ```
*/
export declare function getAudFromLfJWT(lfJwt: JWT): string;
/**
* Returns Laserfiche trustee id (user id) from Laserfiche jwt claims

@@ -57,0 +42,0 @@ * @param lfJwt

@@ -36,19 +36,2 @@ /**

/**
* Returns Laserfiche domain from Laserfiche jwt claims
* @param lfJwt
* @returns
* @example
* ```typescript
* const jwt : AccessTokenUtils.JWT = {
* header: { 'typ': 'JWT'},
* payload: {'aud' : 'test_aud'},
* signature: '_signature'
* }
* getDomainFromLfJWT(jwt); // 'test_aud';
* ```
*/
export function getAudFromLfJWT(lfJwt) {
return lfJwt.payload['aud'];
}
/**
* Returns Laserfiche trustee id (user id) from Laserfiche jwt claims

@@ -55,0 +38,0 @@ * @param lfJwt

{
"name": "@laserfiche/lf-api-client-core",
"version": "1.1.14--preview-11298261816",
"version": "1.1.14--preview-11388830834",
"description": "",

@@ -28,3 +28,3 @@ "main": "dist/index.js",

"@types/jwk-to-pem": "^2.0.1",
"@types/node": "^20.16.6",
"@types/node": "^16.18.105",
"babel-jest": "^28.1.3",

@@ -31,0 +31,0 @@ "isomorphic-fetch": "^3.0.0",

@@ -20,2 +20,2 @@ # Laserfiche API Client Core Library

See the [.github/workflows/main.yml](https://github.com/Laserfiche/lf-api-js/blob/HEAD/.github/workflows/main.yml).
See the [.github/workflows/lf-api-client-core.yml](https://github.com/Laserfiche/lf-api-js/blob/HEAD/.github/workflows/lf-api-client-core.yml).

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet