Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
@philippfromme/moddle-helpers
Advanced tools
Helpers for [moddle](https://github.com/bpmn-io/moddle).
Helpers for moddle.
getPath
import { getPath } from '@philippfromme/moddle-helpers';
// global
getPath(moddleElement); // [ 'rootElements', 0, 'flowElements', 0, 'extensionElements', 'values', 0 ]
// local
getPath(moddleElement, parentModdleElement); // [ 'extensionElements', 'values', 0 ]
// $parent === undefined
const task = moddle.create('bpmn:Task');
getPath(task); // null
// null
getPath(null); // null
pathConcat
import { pathConcat } from '@philippfromme/moddle-helpers';
pathConcat([ 'foo', 'bar' ], 'baz'); // [ 'foo', 'bar', 'baz' ]
// null
pathConcat([ 'foo', 'bar' ], null); // null
pathEquals
import { pathEquals } from '@philippfromme/moddle-helpers';
// default separator
pathEquals('extensionElements.values.0.type', 'extensionElements.values.0.type'); // true
pathEquals([ 'extensionElements', 'values', 0 ], [ 'extensionElements', 'values', 0 ]); // true
// custom separator
pathEquals('extensionElements-values-0-type', 'extensionElements-values-0-type', '-'); // true
// null
pathEquals(null, [ 'foo' ]); // false
parsePath
import { parsePath } from '@philippfromme/moddle-helpers';
// default separator
parsePath('rootElements.0.flowElements.0.extensionElements.values.0.type'); // [ 'rootElements', 0, 'flowElements', 0, 'extensionElements', 'values', 0 ]
// custom separator
parsePath('rootElements-0-flowElements-0-extensionElements-values-0-type', '-'); // [ 'rootElements', 0, 'flowElements', 0, 'extensionElements', 'values', 0 ]
// null
parsePath(null); // null
stringifyPath
import { stringifyPath } from '@philippfromme/moddle-helpers';
// default separator
stringifyPath([ 'rootElements', 0, 'flowElements', 0, 'extensionElements', 'values', 0 ]); // 'rootElements.0.flowElements.0.extensionElements.values.0.type'
// custom separator
stringifyPath([ 'rootElements', 0, 'flowElements', 0, 'extensionElements', 'values', 0 ], '-'); // 'rootElements-0-flowElements-0-extensionElements-values-0-type'
// null
stringifyPath(null); // null
MIT
FAQs
Helpers for [moddle](https://github.com/bpmn-io/moddle).
We found that @philippfromme/moddle-helpers demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.