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

@codingame/monaco-languageclient-react

Package Overview
Dependencies
Maintainers
4
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codingame/monaco-languageclient-react - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

8

dist/LanguageClient.d.ts
import { ReactElement } from 'react';
import { LanguageServerConfig, StatusChangeEvent } from '@codingame/monaco-languageclient-wrapper';
import { StatusChangeEvent } from '@codingame/monaco-languageclient-wrapper';
export interface LanguageClientProps {
languageServerConfig: LanguageServerConfig;
id: string;
sessionId?: string;
languageServerUrl: string;

@@ -10,5 +11,4 @@ getSecurityToken: () => Promise<string>;

onDidChangeStatus?: (status: StatusChangeEvent) => void;
configuration?: any;
}
declare function LanguageClient({ languageServerConfig, languageServerUrl, getSecurityToken, libraryUrls, onError, onDidChangeStatus, configuration }: LanguageClientProps): ReactElement | null;
declare function LanguageClient({ id, sessionId, languageServerUrl, getSecurityToken, libraryUrls, onError, onDidChangeStatus }: LanguageClientProps): ReactElement | null;
export default LanguageClient;

@@ -5,3 +5,3 @@ import { useEffect, useRef } from 'react';

function LanguageClient(_a) {
var languageServerConfig = _a.languageServerConfig, languageServerUrl = _a.languageServerUrl, getSecurityToken = _a.getSecurityToken, _b = _a.libraryUrls, libraryUrls = _b === void 0 ? defaultLibraryUrls : _b, onError = _a.onError, onDidChangeStatus = _a.onDidChangeStatus, configuration = _a.configuration;
var id = _a.id, sessionId = _a.sessionId, languageServerUrl = _a.languageServerUrl, getSecurityToken = _a.getSecurityToken, _b = _a.libraryUrls, libraryUrls = _b === void 0 ? defaultLibraryUrls : _b, onError = _a.onError, onDidChangeStatus = _a.onDidChangeStatus;
var onErrorRef = useRef();

@@ -11,4 +11,4 @@ var onDidChangeStatusRef = useRef();

useEffect(function () {
console.info("Starting language server for language " + languageServerConfig.language);
var languageClient = createLanguageClientManager(languageServerUrl, getSecurityToken, languageServerConfig, libraryUrls);
console.info("Starting language server for language ".concat(id));
var languageClient = createLanguageClientManager(id, sessionId, languageServerUrl, getSecurityToken, libraryUrls);
languageClientRef.current = languageClient;

@@ -37,9 +37,4 @@ var errorDisposable = languageClient.onError(function (error) {

};
}, [getSecurityToken, languageServerConfig, languageServerUrl, libraryUrls]);
}, [getSecurityToken, id, languageServerUrl, libraryUrls]);
useEffect(function () {
if (configuration != null) {
languageClientRef.current.updateConfiguration(configuration);
}
}, [configuration]);
useEffect(function () {
onErrorRef.current = onError;

@@ -46,0 +41,0 @@ }, [onError]);

{
"name": "@codingame/monaco-languageclient-react",
"version": "1.0.2",
"version": "1.1.0",
"description": "Monaco Editor React component",

@@ -20,19 +20,19 @@ "scripts": {

"dependencies": {
"@codingame/monaco-languageclient-wrapper": "^1.0.1",
"@codingame/monaco-languageclient-wrapper": "^1.1.0",
"react": ">=16.0.0"
},
"devDependencies": {
"@babel/core": "7.16.0",
"@babel/plugin-proposal-class-properties": "7.16.0",
"@babel/plugin-proposal-optional-chaining": "7.16.0",
"@babel/preset-env": "7.16.0",
"@babel/preset-react": "7.16.0",
"@babel/preset-typescript": "7.16.0",
"@babel/runtime": "7.16.3",
"@babel/core": "7.16.5",
"@babel/plugin-proposal-class-properties": "7.16.5",
"@babel/plugin-proposal-optional-chaining": "7.16.5",
"@babel/preset-env": "7.16.5",
"@babel/preset-react": "7.16.5",
"@babel/preset-typescript": "7.16.5",
"@babel/runtime": "7.16.5",
"@types/deep-equal": "^1.0.1",
"@types/react": "17.0.34",
"@typescript-eslint/eslint-plugin": "5.3.1",
"@typescript-eslint/parser": "5.3.1",
"@types/react": "17.0.37",
"@typescript-eslint/eslint-plugin": "5.8.0",
"@typescript-eslint/parser": "5.8.0",
"babel-eslint": "10.1.0",
"eslint": "8.2.0",
"eslint": "8.5.0",
"eslint-config-standard": "16.0.3",

@@ -42,8 +42,8 @@ "eslint-config-standard-jsx": "10.0.0",

"eslint-plugin-node": "11.1.0",
"eslint-plugin-promise": "5.1.1",
"eslint-plugin-react": "7.27.0",
"eslint-plugin-promise": "6.0.0",
"eslint-plugin-react": "7.27.1",
"eslint-plugin-react-hooks": "4.3.0",
"eslint-plugin-standard": "5.0.0",
"eslint-plugin-unused-imports": "2.0.0",
"typescript": "4.4.4"
"typescript": "4.5.4"
},

@@ -50,0 +50,0 @@ "browserslist": [

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