Socket
Socket
Sign inDemoInstall

bpmn-js-bpmnlint

Package Overview
Dependencies
Maintainers
2
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bpmn-js-bpmnlint - npm Package Compare versions

Comparing version 0.13.1 to 0.14.0

4

CHANGELOG.md

@@ -9,2 +9,6 @@ # Changelog

## 0.14.0
* `FEAT`: add translation of reports
## 0.13.1

@@ -11,0 +15,0 @@

13

dist/index.esm.js

@@ -54,3 +54,4 @@ import { Linter } from 'bpmnlint';

eventBus,
overlays
overlays,
translate
) {

@@ -62,2 +63,3 @@ this._bpmnjs = bpmnjs;

this._overlays = overlays;
this._translate = translate;

@@ -359,3 +361,3 @@ this._issues = {};

var rule = entry.rule,
message = entry.message;
message = this._translate(entry.message);

@@ -396,3 +398,3 @@ var icon = stateToIcon[state];

var html = icon + '<span>' + errors + ' Errors, ' + warnings + ' Warnings</span>';
var html = icon + '<span>' + this._translate('{errors} Errors, {warnings} Warnings', { errors: errors.toString(), warnings: warnings.toString() }) + '</span>';

@@ -446,3 +448,3 @@ [

this._button = domify(
'<button class="bjsl-button bjsl-button-inactive" title="Toggle linting"></button>'
'<button class="bjsl-button bjsl-button-inactive" title="' + this._translate('Toggle linting') + '"></button>'
);

@@ -471,3 +473,4 @@

'eventBus',
'overlays'
'overlays',
'translate'
];

@@ -474,0 +477,0 @@

@@ -56,3 +56,4 @@ 'use strict';

eventBus,
overlays
overlays,
translate
) {

@@ -64,2 +65,3 @@ this._bpmnjs = bpmnjs;

this._overlays = overlays;
this._translate = translate;

@@ -361,3 +363,3 @@ this._issues = {};

var rule = entry.rule,
message = entry.message;
message = this._translate(entry.message);

@@ -398,3 +400,3 @@ var icon = stateToIcon[state];

var html = icon + '<span>' + errors + ' Errors, ' + warnings + ' Warnings</span>';
var html = icon + '<span>' + this._translate('{errors} Errors, {warnings} Warnings', { errors: errors.toString(), warnings: warnings.toString() }) + '</span>';

@@ -448,3 +450,3 @@ [

this._button = minDom.domify(
'<button class="bjsl-button bjsl-button-inactive" title="Toggle linting"></button>'
'<button class="bjsl-button bjsl-button-inactive" title="' + this._translate('Toggle linting') + '"></button>'
);

@@ -473,3 +475,4 @@

'eventBus',
'overlays'
'overlays',
'translate'
];

@@ -476,0 +479,0 @@

{
"name": "bpmn-js-bpmnlint",
"version": "0.13.1",
"version": "0.14.0",
"description": "bpmn-js integration for bpmnlint",

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

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