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

@monaco-editor/react

Package Overview
Dependencies
Maintainers
1
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@monaco-editor/react - npm Package Compare versions

Comparing version 3.4.0 to 3.4.1

5

CHANGELOG.md
### Versions
## 3.4.1
###### *July 3, 2020*
- editor: improve initialization error handling
## 3.4.0

@@ -4,0 +9,0 @@ ###### *June 28, 2020*

2

lib/DiffEditor/DiffEditor.js

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

}).catch(function (error) {
return console.error('An error occurred during initialization of Monaco:', error);
return (error === null || error === void 0 ? void 0 : error.type) !== 'cancelation' && console.error('Monaco initialization: error:', error);
});

@@ -69,0 +69,0 @@ return function (_) {

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

}).catch(function (error) {
return console.error('An error occurred during initialization of Monaco:', error);
return (error === null || error === void 0 ? void 0 : error.type) !== 'cancelation' && console.error('Monaco initialization: error:', error);
});

@@ -69,0 +69,0 @@ return function (_) {

@@ -8,3 +8,6 @@ "use strict";

// The source (has been changed) is https://github.com/facebook/react/issues/5465#issuecomment-157888325
var CANCELATION_MESSAGE = 'operation is manually canceled';
var CANCELATION_MESSAGE = {
type: 'cancelation',
msg: 'operation is manually canceled'
};

@@ -17,5 +20,3 @@ var makeCancelable = function makeCancelable(promise) {

});
promise.catch(function (error) {
return reject(error);
});
promise.catch(reject);
});

@@ -22,0 +23,0 @@ return wrappedPromise.cancel = function (_) {

{
"name": "@monaco-editor/react",
"version": "3.4.0",
"version": "3.4.1",
"description": "Monaco editor wrapper for easy/one-line integration with React applications (e.g. powered by create-react-app) without need of webpack configuration files",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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