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

dmn-js-shared

Package Overview
Dependencies
Maintainers
1
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dmn-js-shared - npm Package Compare versions

Comparing version 2.0.0-alpha6 to 2.0.0-alpha7

21

lib/base/Manager.js

@@ -5,14 +5,15 @@ import EventBus from 'diagram-js/lib/core/EventBus';

import domify from 'min-dom/lib/domify';
import {
domify,
query as domQuery,
remove as domRemove
} from 'min-dom';
import domQuery from 'min-dom/lib/query';
import domRemove from 'min-dom/lib/remove';
import {
assign,
debounce,
isNumber
} from 'min-dash';
import debounce from 'lodash/function/debounce';
import isNumber from 'lodash/lang/isNumber';
import assign from 'lodash/object/assign';
const DEFAULT_CONTAINER_OPTIONS = {

@@ -292,3 +293,3 @@ width: '100%',

_viewsChanged() {
_viewsChanged = () => {
this._emit('views.changed', {

@@ -295,0 +296,0 @@ views: this._views,

@@ -1,3 +0,5 @@

import isFunction from 'lodash/lang/isFunction';
import isNumber from 'lodash/lang/isNumber';
import {
isFunction,
isNumber
} from 'min-dash';

@@ -4,0 +6,0 @@ const DEFAULT_PRIORITY = 1000;

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

import di from 'didi';
import { Injector } from 'didi';

@@ -98,3 +98,3 @@ import core from './core';

var injector = new di.Injector(modules);
var injector = new Injector(modules);

@@ -101,0 +101,0 @@ components.forEach(function(c) {

import { Component } from 'inferno';
import { groupBy } from 'min-dash/lib/collection';
import { groupBy } from 'min-dash';

@@ -5,0 +5,0 @@ const RADIO = 'radio';

@@ -1,3 +0,5 @@

import { debounce } from 'min-dash/lib/fn';
import { isNumber } from 'min-dash/lib/lang';
import {
debounce,
isNumber
} from 'min-dash';

@@ -4,0 +6,0 @@ const DEFAULT_DEBOUNCE_TIME = 300;

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

import { forEach } from 'min-dash/lib/collection';
import { forEach } from 'min-dash';

@@ -3,0 +3,0 @@ import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor';

@@ -1,7 +0,6 @@

import { reduce } from 'min-dash/lib/collection';
import {
isObject,
isDefined
} from 'min-dash/lib/lang';
isDefined,
reduce
} from 'min-dash';

@@ -8,0 +7,0 @@ import {

@@ -1,3 +0,5 @@

import find from 'lodash/collection/find';
import some from 'lodash/collection/some';
import {
find,
some
} from 'min-dash';

@@ -4,0 +6,0 @@ import { is } from './ModelUtil';

'use strict';
var any = require('lodash/collection/any');
import { some } from 'min-dash';

@@ -13,3 +13,3 @@ /**

*/
function is(element, type) {
export function is(element, type) {
var bo = getBusinessObject(element);

@@ -20,19 +20,20 @@

module.exports.is = is;
function isInput(element) {
export function isInput(element) {
return is(element, 'dmn:InputClause');
}
module.exports.isInput = isInput;
function isOutput(element) {
export function isOutput(element) {
return is(element, 'dmn:OutputClause');
}
module.exports.isOutput = isOutput;
function isRule(element) {
return is(element, 'dmn:DecisionRule');
}
module.exports.isRule = isRule;
/**

@@ -45,16 +46,12 @@ * Return the business object for a given element.

*/
function getBusinessObject(element) {
export function getBusinessObject(element) {
return (element && element.businessObject) || element;
}
module.exports.getBusinessObject = getBusinessObject;
function getName(element) {
export function getName(element) {
return getBusinessObject(element).name;
}
module.exports.getName = getName;
/**

@@ -68,8 +65,6 @@ * Return true if element has any of the given types.

*/
function isAny(element, types) {
return any(types, function(t) {
export function isAny(element, types) {
return some(types, function(t) {
return is(element, t);
});
}
module.exports.isAny = isAny;
{
"name": "dmn-js-shared",
"description": "Shared components used by dmn-js",
"version": "2.0.0-alpha6",
"version": "2.0.0-alpha7",
"scripts": {

@@ -15,8 +15,9 @@ "test": "karma start",

"dependencies": {
"diagram-js": "^0.28.2",
"didi": "^0.1.1",
"dmn-moddle": "^2.0.3",
"diagram-js": "^0.29.0",
"didi": "^3.0.0",
"dmn-moddle": "^3.0.0",
"ids": "^0.2.0",
"inferno": "^4.0.0",
"min-dash": "^1.1.0",
"min-dash": "^2.2.0",
"min-dom": "^2.0.0",
"selection-ranges": "^1.2.3",

@@ -23,0 +24,0 @@ "selection-update": "^0.1.2"

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