mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-02-15 02:17:35 +00:00
deps: replace inherits with inherits-browser
This increase the safety of our build; external consumers do no longer need to account for the `browser` field to bundle bpmn-js (or otherwise bundle a Node shim, unintentionally).
This commit is contained in:
parent
e02fd6138d
commit
7478388070
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import Ids from 'ids';
|
||||
|
||||
|
@ -25,7 +25,7 @@ import {
|
||||
import Diagram from 'diagram-js';
|
||||
import BpmnModdle from 'bpmn-moddle';
|
||||
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import {
|
||||
importBpmnDiagram
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import BaseModeler from './BaseModeler';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import Viewer from './Viewer';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import CoreModule from './core';
|
||||
import TranslateModule from 'diagram-js/lib/i18n/translate';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import {
|
||||
isObject,
|
||||
|
@ -1,6 +1,6 @@
|
||||
import AutoResize from 'diagram-js/lib/features/auto-resize/AutoResize';
|
||||
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import { is } from '../../util/ModelUtil';
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { is } from '../../util/ModelUtil';
|
||||
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import { forEach } from 'min-dash';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor';
|
||||
import { is } from '../../util/ModelUtil';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import EditorActions from 'diagram-js/lib/features/editor-actions/EditorActions';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import KeyboardBindings from 'diagram-js/lib/features/keyboard/KeyboardBindings';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import {
|
||||
assign
|
||||
|
@ -3,7 +3,7 @@ import {
|
||||
forEach
|
||||
} from 'min-dash';
|
||||
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import {
|
||||
remove as collectionRemove,
|
||||
|
@ -4,7 +4,7 @@ import {
|
||||
isObject
|
||||
} from 'min-dash';
|
||||
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import {
|
||||
getBusinessObject,
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import BaseModeling from 'diagram-js/lib/features/modeling/Modeling';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import {
|
||||
getOrientation,
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import { is } from '../../../util/ModelUtil';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import { is } from '../../../util/ModelUtil';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import { is } from '../../../util/ModelUtil';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import {
|
||||
assign,
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor';
|
||||
|
||||
|
@ -2,7 +2,7 @@ import {
|
||||
assign
|
||||
} from 'min-dash';
|
||||
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import {
|
||||
is,
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import { is } from '../../../util/ModelUtil';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor';
|
||||
|
||||
|
@ -4,7 +4,7 @@ import {
|
||||
matchPattern
|
||||
} from 'min-dash';
|
||||
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import { forEach } from 'min-dash';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import {
|
||||
find,
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor';
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import OrderingProvider from 'diagram-js/lib/features/ordering/OrderingProvider';
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor';
|
||||
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import cssEscape from 'css.escape';
|
||||
|
||||
|
@ -5,7 +5,7 @@ import {
|
||||
some
|
||||
} from 'min-dash';
|
||||
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import {
|
||||
is,
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import CreateMoveSnapping from 'diagram-js/lib/features/snapping/CreateMoveSnapping';
|
||||
|
||||
|
7
package-lock.json
generated
7
package-lock.json
generated
@ -5997,6 +5997,11 @@
|
||||
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
|
||||
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
|
||||
},
|
||||
"inherits-browser": {
|
||||
"version": "0.0.1",
|
||||
"resolved": "https://registry.npmjs.org/inherits-browser/-/inherits-browser-0.0.1.tgz",
|
||||
"integrity": "sha512-kaDA3DkCdCpvrKIo/1T/3yVn+qpFUHLjYtSHmTYewb+QfjfaQy6FGQ7LwBu7st0tG9UvYad/XAlqQmdIh6CICw=="
|
||||
},
|
||||
"ini": {
|
||||
"version": "1.3.8",
|
||||
"resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz",
|
||||
@ -6627,7 +6632,7 @@
|
||||
},
|
||||
"json5": {
|
||||
"version": "0.5.1",
|
||||
"resolved": "https://registry.npmjs.org/json5/-/json5-0.5.1.tgz",
|
||||
"resolved": "http://registry.npmjs.org/json5/-/json5-0.5.1.tgz",
|
||||
"integrity": "sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE=",
|
||||
"dev": true
|
||||
},
|
||||
|
@ -103,7 +103,7 @@
|
||||
"diagram-js": "^8.3.0",
|
||||
"diagram-js-direct-editing": "^1.6.3",
|
||||
"ids": "^1.0.0",
|
||||
"inherits": "^2.0.4",
|
||||
"inherits-browser": "0.0.1",
|
||||
"min-dash": "^3.5.2",
|
||||
"min-dom": "^3.2.0",
|
||||
"object-refs": "^0.3.0",
|
||||
|
@ -97,13 +97,7 @@ function pgl(plugins=[], env='production') {
|
||||
replace({
|
||||
'process.env.NODE_ENV': JSON.stringify(env)
|
||||
}),
|
||||
nodeResolve({
|
||||
mainFields: [
|
||||
'browser',
|
||||
'module',
|
||||
'main'
|
||||
]
|
||||
}),
|
||||
nodeResolve(),
|
||||
commonjs(),
|
||||
json(),
|
||||
...plugins
|
||||
|
@ -83,7 +83,6 @@ module.exports = function(karma) {
|
||||
resolve: {
|
||||
mainFields: [
|
||||
'dev:module',
|
||||
'browser',
|
||||
'module',
|
||||
'main'
|
||||
],
|
||||
|
@ -2,7 +2,7 @@ import {
|
||||
assign
|
||||
} from 'min-dash';
|
||||
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import BpmnElementFactory from 'lib/features/modeling/ElementFactory';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import BaseRenderer from 'diagram-js/lib/draw/BaseRenderer';
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { forEach } from 'min-dash';
|
||||
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import RuleProvider from 'diagram-js/lib/features/rules/RuleProvider';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import {
|
||||
is as isBpmn
|
||||
|
@ -6,7 +6,7 @@ import ViewerDefaultExport from '../../';
|
||||
|
||||
import Viewer from 'lib/Viewer';
|
||||
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import {
|
||||
createViewer
|
||||
|
@ -4,7 +4,7 @@ import {
|
||||
getOrientation
|
||||
} from 'diagram-js/lib/layout/LayoutUtil';
|
||||
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
|
||||
export default function LoggingCroppingConnectionDocking(injector) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import inherits from 'inherits';
|
||||
import inherits from 'inherits-browser';
|
||||
|
||||
import RuleProvider from 'diagram-js/lib/features/rules/RuleProvider';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user