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

@aws/language-server-runtimes

Package Overview
Dependencies
Maintainers
0
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws/language-server-runtimes - npm Package Compare versions

Comparing version 0.2.18 to 0.2.19

8

package.json
{
"name": "@aws/language-server-runtimes",
"version": "0.2.18",
"version": "0.2.19",
"description": "Runtimes to host Language Servers for AWS",

@@ -37,3 +37,3 @@ "files": [

"@aws/language-server-runtimes-types": "^0.0.6",
"jose": "^5.8.0",
"jose": "^5.9.3",
"rxjs": "^7.8.1",

@@ -45,7 +45,7 @@ "vscode-languageserver": "^9.0.1",

"@types/mocha": "^10.0.8",
"@types/node": "^22.5.0",
"@types/node": "^22.7.4",
"assert": "^2.0.0",
"husky": "^9.1.6",
"prettier": "3.3.3",
"sinon": "^18.0.0",
"sinon": "^19.0.2",
"ts-mocha": "^10.0.0",

@@ -52,0 +52,0 @@ "ts-sinon": "^2.0.2",

@@ -1,2 +0,2 @@

import { ProtocolNotificationType, ProtocolRequestType } from './lsp';
import { ProtocolNotificationType, ProtocolRequestType, ResponseError } from './lsp';
export type E_UNKNOWN = 'E_UNKNOWN';

@@ -11,13 +11,39 @@ export type E_TIMEOUT = 'E_TIMEOUT';

export type E_PROFILE_NOT_FOUND = 'E_PROFILE_NOT_FOUND';
export type E_CANNOT_CREATE_PROFILE = 'E_CANNOT_CREATE_PROFILE';
export type E_CANNOT_OVERWRITE_PROFILE = 'E_CANNOT_OVERWRITE_PROFILE';
export type E_INVALID_PROFILE = 'E_INVALID_PROFILE';
export type E_SSO_SESSION_NOT_FOUND = 'E_SSO_SESSION_NOT_FOUND';
export type E_CANNOT_CREATE_SSO_SESSION = 'E_CANNOT_CREATE_SSO_SESSION';
export type E_CANNOT_OVERWRITE_SSO_SESSION = 'E_CANNOT_OVERWRITE_SSO_SESSION';
export type E_INVALID_SSO_SESSION = 'E_INVALID_SSO_SESSION';
export type E_INVALID_TOKEN = 'E_INVALID_TOKEN';
export type ListProfilesParams = {};
export type SsoTokenProfileKind = 'SsoToken';
export type ProfileKind = SsoTokenProfileKind;
export declare const AwsErrorCodes: {
readonly E_UNKNOWN: "E_UNKNOWN";
readonly E_TIMEOUT: "E_TIMEOUT";
readonly E_RUNTIME_NOT_SUPPORTED: "E_RUNTIME_NOT_SUPPORTED";
readonly E_ENCRYPTION_REQUIRED: "E_ENCRYPTION_REQUIRED";
readonly E_CANNOT_READ_SHARED_CONFIG: "E_CANNOT_READ_SHARED_CONFIG";
readonly E_CANNOT_WRITE_SHARED_CONFIG: "E_CANNOT_WRITE_SHARED_CONFIG";
readonly E_CANNOT_READ_SSO_CACHE: "E_CANNOT_READ_SSO_CACHE";
readonly E_CANNOT_WRITE_SSO_CACHE: "E_CANNOT_WRITE_SSO_CACHE";
readonly E_PROFILE_NOT_FOUND: "E_PROFILE_NOT_FOUND";
readonly E_CANNOT_CREATE_PROFILE: "E_CANNOT_CREATE_PROFILE";
readonly E_CANNOT_OVERWRITE_PROFILE: "E_CANNOT_OVERWRITE_PROFILE";
readonly E_INVALID_PROFILE: "E_INVALID_PROFILE";
readonly E_SSO_SESSION_NOT_FOUND: "E_SSO_SESSION_NOT_FOUND";
readonly E_CANNOT_CREATE_SSO_SESSION: "E_CANNOT_CREATE_SSO_SESSION";
readonly E_CANNOT_OVERWRITE_SSO_SESSION: "E_CANNOT_OVERWRITE_SSO_SESSION";
readonly E_INVALID_SSO_SESSION: "E_INVALID_SSO_SESSION";
readonly E_INVALID_TOKEN: "E_INVALID_TOKEN";
};
export interface AwsResponseErrorData {
awsErrorCode: string;
}
export declare class AwsResponseError<D extends AwsResponseErrorData> extends ResponseError<D> {
constructor(messageOrError: unknown, data: D, code?: number);
}
export type ProfileKind = 'Unknown' | 'SsoTokenProfile';
export declare const ProfileKind: {
readonly SsoToken: "SsoToken";
readonly SsoTokenProfile: "SsoTokenProfile";
readonly Unknown: "Unknown";
};

@@ -27,22 +53,29 @@ export interface Section {

}
export interface Profile extends Section {
readonly kind: ProfileKind;
region?: string;
export interface Profile {
kind: ProfileKind;
name: string;
settings: {
region?: string;
sso_session?: string;
};
}
export interface SsoTokenProfile extends Profile {
readonly kind: SsoTokenProfileKind;
ssoSessionName: string;
export interface SsoSession {
name: string;
settings: {
sso_start_url: string;
sso_region: string;
sso_registration_scopes?: string[];
};
}
export interface SsoSession extends Section {
ssoStartUrl: string;
ssoRegion: string;
ssoRegistrationScopes?: string[];
}
export type ListProfilesParams = {};
export interface ListProfilesResult {
profiles?: (Profile | SsoTokenProfile)[];
ssoSessions?: SsoSession[];
profiles: Profile[];
ssoSessions: SsoSession[];
}
export interface ListProfilesError {
errorCode: E_UNKNOWN | E_TIMEOUT | E_RUNTIME_NOT_SUPPORTED | E_CANNOT_READ_SHARED_CONFIG;
export interface ListProfilesErrorData extends AwsResponseErrorData {
awsErrorCode: E_UNKNOWN | E_TIMEOUT | E_RUNTIME_NOT_SUPPORTED | E_CANNOT_READ_SHARED_CONFIG;
}
export declare class ListProfilesError extends AwsResponseError<ListProfilesErrorData> {
constructor(messageOrError: unknown, data: ListProfilesErrorData, code?: number);
}
export declare const listProfilesRequestType: ProtocolRequestType<ListProfilesParams, ListProfilesResult, never, ListProfilesError, void>;

@@ -54,4 +87,9 @@ export interface UpdateProfileOptions {

}
export declare const updateProfileOptionsDefaults: {
createNonexistentProfile: true;
createNonexistentSsoSession: true;
updateSharedSsoSession: false;
};
export interface UpdateProfileParams {
profile: SsoTokenProfile;
profile: Profile;
ssoSession?: SsoSession;

@@ -62,6 +100,9 @@ options?: UpdateProfileOptions;

}
export interface UpdateProfileError {
errorCode: E_UNKNOWN | E_TIMEOUT | E_RUNTIME_NOT_SUPPORTED | E_CANNOT_READ_SHARED_CONFIG | E_CANNOT_WRITE_SHARED_CONFIG | E_CANNOT_OVERWRITE_PROFILE | E_CANNOT_OVERWRITE_SSO_SESSION | E_INVALID_PROFILE | E_INVALID_SSO_SESSION;
export interface UpdateProfileErrorData extends AwsResponseErrorData {
awsErrorCode: E_UNKNOWN | E_TIMEOUT | E_RUNTIME_NOT_SUPPORTED | E_CANNOT_READ_SHARED_CONFIG | E_CANNOT_WRITE_SHARED_CONFIG | E_CANNOT_CREATE_PROFILE | E_CANNOT_OVERWRITE_PROFILE | E_CANNOT_CREATE_SSO_SESSION | E_CANNOT_OVERWRITE_SSO_SESSION | E_INVALID_PROFILE | E_INVALID_SSO_SESSION;
}
export declare const updateProfilesRequestType: ProtocolRequestType<UpdateProfileParams, UpdateProfileResult, never, UpdateProfileError, void>;
export declare class UpdateProfileError extends AwsResponseError<UpdateProfileErrorData> {
constructor(messageOrError: unknown, data: UpdateProfileErrorData, code?: number);
}
export declare const updateProfileRequestType: ProtocolRequestType<UpdateProfileParams, UpdateProfileResult, never, UpdateProfileError, void>;
export type SsoTokenId = string;

@@ -68,0 +109,0 @@ export type IamIdentityCenterSsoTokenSourceKind = 'IamIdentityCenter';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ssoTokenChangedRequestType = exports.SsoTokenChangedKind = exports.updateSsoTokenManagementRequestType = exports.invalidateSsoTokenRequestType = exports.getSsoTokenRequestType = exports.SsoTokenSourceKind = exports.updateProfilesRequestType = exports.listProfilesRequestType = exports.ProfileKind = void 0;
exports.ssoTokenChangedRequestType = exports.SsoTokenChangedKind = exports.updateSsoTokenManagementRequestType = exports.invalidateSsoTokenRequestType = exports.getSsoTokenRequestType = exports.SsoTokenSourceKind = exports.updateProfileRequestType = exports.UpdateProfileError = exports.updateProfileOptionsDefaults = exports.listProfilesRequestType = exports.ListProfilesError = exports.ProfileKind = exports.AwsResponseError = exports.AwsErrorCodes = void 0;
const lsp_1 = require("./lsp");
exports.AwsErrorCodes = {
E_UNKNOWN: 'E_UNKNOWN',
E_TIMEOUT: 'E_TIMEOUT',
E_RUNTIME_NOT_SUPPORTED: 'E_RUNTIME_NOT_SUPPORTED',
E_ENCRYPTION_REQUIRED: 'E_ENCRYPTION_REQUIRED',
E_CANNOT_READ_SHARED_CONFIG: 'E_CANNOT_READ_SHARED_CONFIG',
E_CANNOT_WRITE_SHARED_CONFIG: 'E_CANNOT_WRITE_SHARED_CONFIG',
E_CANNOT_READ_SSO_CACHE: 'E_CANNOT_READ_SSO_CACHE',
E_CANNOT_WRITE_SSO_CACHE: 'E_CANNOT_WRITE_SSO_CACHE',
E_PROFILE_NOT_FOUND: 'E_PROFILE_NOT_FOUND',
E_CANNOT_CREATE_PROFILE: 'E_CANNOT_CREATE_PROFILE',
E_CANNOT_OVERWRITE_PROFILE: 'E_CANNOT_OVERWRITE_PROFILE',
E_INVALID_PROFILE: 'E_INVALID_PROFILE',
E_SSO_SESSION_NOT_FOUND: 'E_SSO_SESSION_NOT_FOUND',
E_CANNOT_CREATE_SSO_SESSION: 'E_CANNOT_CREATE_SSO_SESSION',
E_CANNOT_OVERWRITE_SSO_SESSION: 'E_CANNOT_OVERWRITE_SSO_SESSION',
E_INVALID_SSO_SESSION: 'E_INVALID_SSO_SESSION',
E_INVALID_TOKEN: 'E_INVALID_TOKEN',
};
class AwsResponseError extends lsp_1.ResponseError {
constructor(messageOrError, data, code = lsp_1.LSPErrorCodes.RequestFailed) {
super(code, messageOrError === null || messageOrError === void 0 ? void 0 : messageOrError.toString(), data);
}
}
exports.AwsResponseError = AwsResponseError;
exports.ProfileKind = {
SsoToken: 'SsoToken',
SsoTokenProfile: 'SsoTokenProfile',
Unknown: 'Unknown',
};
class ListProfilesError extends AwsResponseError {
constructor(messageOrError, data, code = lsp_1.LSPErrorCodes.RequestFailed) {
super(messageOrError, data, code);
Object.setPrototypeOf(this, new.target.prototype);
}
}
exports.ListProfilesError = ListProfilesError;
exports.listProfilesRequestType = new lsp_1.ProtocolRequestType('aws/identity/listProfiles');
exports.updateProfilesRequestType = new lsp_1.ProtocolRequestType('aws/identity/updateProfile');
exports.updateProfileOptionsDefaults = {
createNonexistentProfile: true,
createNonexistentSsoSession: true,
updateSharedSsoSession: false,
};
class UpdateProfileError extends AwsResponseError {
constructor(messageOrError, data, code = lsp_1.LSPErrorCodes.RequestFailed) {
super(messageOrError, data, code);
Object.setPrototypeOf(this, new.target.prototype);
}
}
exports.UpdateProfileError = UpdateProfileError;
exports.updateProfileRequestType = new lsp_1.ProtocolRequestType('aws/identity/updateProfile');
exports.SsoTokenSourceKind = {

@@ -11,0 +56,0 @@ IamIdentityCenter: 'IamIdentityCenter',

@@ -6,1 +6,2 @@ export * from './lsp';

export * from './getConfigurationFromServer';
export * from './identity-management';

@@ -22,2 +22,3 @@ "use strict";

__exportStar(require("./getConfigurationFromServer"), exports);
__exportStar(require("./identity-management"), exports);
//# sourceMappingURL=index.js.map

@@ -230,3 +230,3 @@ "use strict";

onListProfiles: handler => lspConnection.onRequest(identity_management_1.listProfilesRequestType, handler),
onUpdateProfile: handler => lspConnection.onRequest(identity_management_1.updateProfilesRequestType, handler),
onUpdateProfile: handler => lspConnection.onRequest(identity_management_1.updateProfileRequestType, handler),
onGetSsoToken: handler => lspConnection.onRequest(identity_management_1.getSsoTokenRequestType, handler),

@@ -233,0 +233,0 @@ onInvalidateSsoToken: handler => lspConnection.onRequest(identity_management_1.invalidateSsoTokenRequestType, handler),

@@ -121,3 +121,3 @@ "use strict";

onListProfiles: handler => lspConnection.onRequest(identity_management_1.listProfilesRequestType, handler),
onUpdateProfile: handler => lspConnection.onRequest(identity_management_1.updateProfilesRequestType, handler),
onUpdateProfile: handler => lspConnection.onRequest(identity_management_1.updateProfileRequestType, handler),
onGetSsoToken: handler => lspConnection.onRequest(identity_management_1.getSsoTokenRequestType, handler),

@@ -124,0 +124,0 @@ onInvalidateSsoToken: handler => lspConnection.onRequest(identity_management_1.invalidateSsoTokenRequestType, handler),

import { GetSsoTokenError, GetSsoTokenParams, GetSsoTokenResult, InvalidateSsoTokenError, InvalidateSsoTokenParams, InvalidateSsoTokenResult, ListProfilesError, ListProfilesParams, ListProfilesResult, SsoTokenChangedParams, UpdateProfileError, UpdateProfileParams, UpdateProfileResult, UpdateSsoTokenManagementError, UpdateSsoTokenManagementParams, UpdateSsoTokenManagementResult } from '../protocol/identity-management';
import { RequestHandler } from '../protocol';
export * from '../protocol/identity-management';
export type IdentityManagement = {

@@ -4,0 +5,0 @@ onListProfiles: (handler: RequestHandler<ListProfilesParams, ListProfilesResult | undefined | null, ListProfilesError>) => void;

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("../protocol/identity-management"), exports);
//# sourceMappingURL=identity-management.js.map

@@ -9,1 +9,2 @@ export { Server } from './server';

export * from './runtime';
export * from './identity-management';

@@ -21,2 +21,3 @@ "use strict";

__exportStar(require("./runtime"), exports);
__exportStar(require("./identity-management"), exports);
//# sourceMappingURL=index.js.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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