mathml2omml
Advanced tools
Comparing version 0.3.0 to 0.3.1
{ | ||
"name": "mathml2omml", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "a MathML to OMML converter ", | ||
"main": "src/index.js", | ||
"main": "dist/index.js", | ||
"type": "module", | ||
"scripts": { | ||
"test": "node --experimental-vm-modules node_modules/.bin/jest", | ||
"lint": "eslint ." | ||
"lint": "eslint src/", | ||
"transpile": "rollup -c", | ||
"prepublishOnly": "npm run lint && npm run transpile" | ||
}, | ||
@@ -26,9 +28,4 @@ "repository": { | ||
"homepage": "https://github.com/fiduswriter/mathml2omml#readme", | ||
"dependencies": { | ||
"dom-serializer": "^2.0.0", | ||
"htmlparser2": "^8.0.1", | ||
"jest": "^28.1.0", | ||
"xml-formatter": "^2.6.1" | ||
}, | ||
"devDependencies": { | ||
"@rollup/plugin-node-resolve": "^13.3.0", | ||
"eslint": "^8.17.0", | ||
@@ -38,4 +35,9 @@ "eslint-config-standard": "^17.0.0", | ||
"eslint-plugin-n": "^15.2.2", | ||
"eslint-plugin-promise": "^6.0.0" | ||
"eslint-plugin-promise": "^6.0.0", | ||
"rollup": "^2.78.1", | ||
"dom-serializer": "^2.0.0", | ||
"htmlparser2": "^8.0.1", | ||
"jest": "^28.1.0", | ||
"xml-formatter": "^2.6.1" | ||
} | ||
} |
@@ -1,3 +0,3 @@ | ||
import * as htmlparser2 from "htmlparser2" | ||
import render from "dom-serializer" | ||
import * as htmlparser2 from 'htmlparser2' | ||
import render from 'dom-serializer' | ||
import { walker } from './walker.js' | ||
@@ -8,3 +8,2 @@ import { cleanText } from './helpers.js' | ||
constructor (mmlString) { | ||
this.inString = mmlString | ||
@@ -24,3 +23,3 @@ this.inXML = htmlparser2.parseDocument(mmlString) | ||
getResult () { | ||
this.outString = render([this.outXML], {xmlMode: true, encodeEntities: false, decodeEntities: false}) | ||
this.outString = render([this.outXML], { xmlMode: true, encodeEntities: false, decodeEntities: false }) | ||
return this.outString | ||
@@ -27,0 +26,0 @@ } |
@@ -22,3 +22,3 @@ export function menclose (element, targetParent, previousSibling, nextSibling, ancestors) { | ||
children: [ | ||
{ type: 'tag', name: 'm:degHide', attribs: { 'm:val': 'on' }, children: []} | ||
{ type: 'tag', name: 'm:degHide', attribs: { 'm:val': 'on' }, children: [] } | ||
] | ||
@@ -25,0 +25,0 @@ }, |
@@ -88,3 +88,2 @@ import { walker } from '../walker.js' | ||
type: 'tag', | ||
attribs: {}, | ||
name: 'm:e', | ||
@@ -91,0 +90,0 @@ attribs: {}, |
@@ -28,3 +28,3 @@ import { getTextContent } from '../helpers.js' | ||
children: [ | ||
{ type: 'tag', name: 'm:chr', attribs: { 'm:val': naryChar } , children: []}, | ||
{ type: 'tag', name: 'm:chr', attribs: { 'm:val': naryChar }, children: [] }, | ||
{ type: 'tag', name: 'm:limLoc', attribs: { 'm:val': type }, children: [] }, | ||
@@ -31,0 +31,0 @@ { type: 'tag', name: 'm:grow', attribs: { 'm:val': grow }, children: [] }, |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
854755
0
84
5988
11
1
- Removeddom-serializer@^2.0.0
- Removedhtmlparser2@^8.0.1
- Removedjest@^28.1.0
- Removedxml-formatter@^2.6.1
- Removed@ampproject/remapping@2.3.0(transitive)
- Removed@babel/code-frame@7.26.2(transitive)
- Removed@babel/compat-data@7.26.5(transitive)
- Removed@babel/core@7.26.0(transitive)
- Removed@babel/generator@7.26.5(transitive)
- Removed@babel/helper-compilation-targets@7.26.5(transitive)
- Removed@babel/helper-module-imports@7.25.9(transitive)
- Removed@babel/helper-module-transforms@7.26.0(transitive)
- Removed@babel/helper-plugin-utils@7.26.5(transitive)
- Removed@babel/helper-string-parser@7.25.9(transitive)
- Removed@babel/helper-validator-identifier@7.25.9(transitive)
- Removed@babel/helper-validator-option@7.25.9(transitive)
- Removed@babel/helpers@7.26.0(transitive)
- Removed@babel/parser@7.26.5(transitive)
- Removed@babel/plugin-syntax-async-generators@7.8.4(transitive)
- Removed@babel/plugin-syntax-bigint@7.8.3(transitive)
- Removed@babel/plugin-syntax-class-properties@7.12.13(transitive)
- Removed@babel/plugin-syntax-class-static-block@7.14.5(transitive)
- Removed@babel/plugin-syntax-import-attributes@7.26.0(transitive)
- Removed@babel/plugin-syntax-import-meta@7.10.4(transitive)
- Removed@babel/plugin-syntax-json-strings@7.8.3(transitive)
- Removed@babel/plugin-syntax-logical-assignment-operators@7.10.4(transitive)
- Removed@babel/plugin-syntax-nullish-coalescing-operator@7.8.3(transitive)
- Removed@babel/plugin-syntax-numeric-separator@7.10.4(transitive)
- Removed@babel/plugin-syntax-object-rest-spread@7.8.3(transitive)
- Removed@babel/plugin-syntax-optional-catch-binding@7.8.3(transitive)
- Removed@babel/plugin-syntax-optional-chaining@7.8.3(transitive)
- Removed@babel/plugin-syntax-private-property-in-object@7.14.5(transitive)
- Removed@babel/plugin-syntax-top-level-await@7.14.5(transitive)
- Removed@babel/plugin-syntax-typescript@7.25.9(transitive)
- Removed@babel/template@7.25.9(transitive)
- Removed@babel/traverse@7.26.5(transitive)
- Removed@babel/types@7.26.5(transitive)
- Removed@bcoe/v8-coverage@0.2.3(transitive)
- Removed@istanbuljs/load-nyc-config@1.1.0(transitive)
- Removed@istanbuljs/schema@0.1.3(transitive)
- Removed@jest/console@28.1.3(transitive)
- Removed@jest/core@28.1.3(transitive)
- Removed@jest/environment@28.1.3(transitive)
- Removed@jest/expect@28.1.3(transitive)
- Removed@jest/expect-utils@28.1.3(transitive)
- Removed@jest/fake-timers@28.1.3(transitive)
- Removed@jest/globals@28.1.3(transitive)
- Removed@jest/reporters@28.1.3(transitive)
- Removed@jest/schemas@28.1.3(transitive)
- Removed@jest/source-map@28.1.2(transitive)
- Removed@jest/test-result@28.1.3(transitive)
- Removed@jest/test-sequencer@28.1.3(transitive)
- Removed@jest/transform@28.1.3(transitive)
- Removed@jest/types@28.1.3(transitive)
- Removed@jridgewell/gen-mapping@0.3.8(transitive)
- Removed@jridgewell/resolve-uri@3.1.2(transitive)
- Removed@jridgewell/set-array@1.2.1(transitive)
- Removed@jridgewell/sourcemap-codec@1.5.0(transitive)
- Removed@jridgewell/trace-mapping@0.3.25(transitive)
- Removed@sinclair/typebox@0.24.51(transitive)
- Removed@sinonjs/commons@1.8.6(transitive)
- Removed@sinonjs/fake-timers@9.1.2(transitive)
- Removed@types/babel__core@7.20.5(transitive)
- Removed@types/babel__generator@7.6.8(transitive)
- Removed@types/babel__template@7.4.4(transitive)
- Removed@types/babel__traverse@7.20.6(transitive)
- Removed@types/graceful-fs@4.1.9(transitive)
- Removed@types/istanbul-lib-coverage@2.0.6(transitive)
- Removed@types/istanbul-lib-report@3.0.3(transitive)
- Removed@types/istanbul-reports@3.0.4(transitive)
- Removed@types/node@22.10.7(transitive)
- Removed@types/prettier@2.7.3(transitive)
- Removed@types/stack-utils@2.0.3(transitive)
- Removed@types/yargs@17.0.33(transitive)
- Removed@types/yargs-parser@21.0.3(transitive)
- Removedansi-escapes@4.3.2(transitive)
- Removedansi-regex@5.0.1(transitive)
- Removedansi-styles@4.3.05.2.0(transitive)
- Removedanymatch@3.1.3(transitive)
- Removedargparse@1.0.10(transitive)
- Removedbabel-jest@28.1.3(transitive)
- Removedbabel-plugin-istanbul@6.1.1(transitive)
- Removedbabel-plugin-jest-hoist@28.1.3(transitive)
- Removedbabel-preset-current-node-syntax@1.1.0(transitive)
- Removedbabel-preset-jest@28.1.3(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedbraces@3.0.3(transitive)
- Removedbrowserslist@4.24.4(transitive)
- Removedbser@2.1.1(transitive)
- Removedbuffer-from@1.1.2(transitive)
- Removedcallsites@3.1.0(transitive)
- Removedcamelcase@5.3.16.3.0(transitive)
- Removedcaniuse-lite@1.0.30001695(transitive)
- Removedchalk@4.1.2(transitive)
- Removedchar-regex@1.0.2(transitive)
- Removedci-info@3.9.0(transitive)
- Removedcjs-module-lexer@1.4.1(transitive)
- Removedcliui@8.0.1(transitive)
- Removedco@4.6.0(transitive)
- Removedcollect-v8-coverage@1.0.2(transitive)
- Removedcolor-convert@2.0.1(transitive)
- Removedcolor-name@1.1.4(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedconvert-source-map@1.9.02.0.0(transitive)
- Removedcross-spawn@7.0.6(transitive)
- Removeddebug@4.4.0(transitive)
- Removeddedent@0.7.0(transitive)
- Removeddeepmerge@4.3.1(transitive)
- Removeddetect-newline@3.1.0(transitive)
- Removeddiff-sequences@28.1.1(transitive)
- Removeddom-serializer@2.0.0(transitive)
- Removeddomelementtype@2.3.0(transitive)
- Removeddomhandler@5.0.3(transitive)
- Removeddomutils@3.2.2(transitive)
- Removedelectron-to-chromium@1.5.84(transitive)
- Removedemittery@0.10.2(transitive)
- Removedemoji-regex@8.0.0(transitive)
- Removedentities@4.5.0(transitive)
- Removederror-ex@1.3.2(transitive)
- Removedescalade@3.2.0(transitive)
- Removedescape-string-regexp@2.0.0(transitive)
- Removedesprima@4.0.1(transitive)
- Removedexeca@5.1.1(transitive)
- Removedexit@0.1.2(transitive)
- Removedexpect@28.1.3(transitive)
- Removedfast-json-stable-stringify@2.1.0(transitive)
- Removedfb-watchman@2.0.2(transitive)
- Removedfill-range@7.1.1(transitive)
- Removedfind-up@4.1.0(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedfsevents@2.3.3(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedgensync@1.0.0-beta.2(transitive)
- Removedget-caller-file@2.0.5(transitive)
- Removedget-package-type@0.1.0(transitive)
- Removedget-stream@6.0.1(transitive)
- Removedglob@7.2.3(transitive)
- Removedglobals@11.12.0(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedhas-flag@4.0.0(transitive)
- Removedhasown@2.0.2(transitive)
- Removedhtml-escaper@2.0.2(transitive)
- Removedhtmlparser2@8.0.2(transitive)
- Removedhuman-signals@2.1.0(transitive)
- Removedimport-local@3.2.0(transitive)
- Removedimurmurhash@0.1.4(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedis-arrayish@0.2.1(transitive)
- Removedis-core-module@2.16.1(transitive)
- Removedis-fullwidth-code-point@3.0.0(transitive)
- Removedis-generator-fn@2.1.0(transitive)
- Removedis-number@7.0.0(transitive)
- Removedis-stream@2.0.1(transitive)
- Removedisexe@2.0.0(transitive)
- Removedistanbul-lib-coverage@3.2.2(transitive)
- Removedistanbul-lib-instrument@5.2.1(transitive)
- Removedistanbul-lib-report@3.0.1(transitive)
- Removedistanbul-lib-source-maps@4.0.1(transitive)
- Removedistanbul-reports@3.1.7(transitive)
- Removedjest@28.1.3(transitive)
- Removedjest-changed-files@28.1.3(transitive)
- Removedjest-circus@28.1.3(transitive)
- Removedjest-cli@28.1.3(transitive)
- Removedjest-config@28.1.3(transitive)
- Removedjest-diff@28.1.3(transitive)
- Removedjest-docblock@28.1.1(transitive)
- Removedjest-each@28.1.3(transitive)
- Removedjest-environment-node@28.1.3(transitive)
- Removedjest-get-type@28.0.2(transitive)
- Removedjest-haste-map@28.1.3(transitive)
- Removedjest-leak-detector@28.1.3(transitive)
- Removedjest-matcher-utils@28.1.3(transitive)
- Removedjest-message-util@28.1.3(transitive)
- Removedjest-mock@28.1.3(transitive)
- Removedjest-pnp-resolver@1.2.3(transitive)
- Removedjest-regex-util@28.0.2(transitive)
- Removedjest-resolve@28.1.3(transitive)
- Removedjest-resolve-dependencies@28.1.3(transitive)
- Removedjest-runner@28.1.3(transitive)
- Removedjest-runtime@28.1.3(transitive)
- Removedjest-snapshot@28.1.3(transitive)
- Removedjest-util@28.1.3(transitive)
- Removedjest-validate@28.1.3(transitive)
- Removedjest-watcher@28.1.3(transitive)
- Removedjest-worker@28.1.3(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedjs-yaml@3.14.1(transitive)
- Removedjsesc@3.1.0(transitive)
- Removedjson-parse-even-better-errors@2.3.1(transitive)
- Removedjson5@2.2.3(transitive)
- Removedkleur@3.0.3(transitive)
- Removedleven@3.1.0(transitive)
- Removedlines-and-columns@1.2.4(transitive)
- Removedlocate-path@5.0.0(transitive)
- Removedlru-cache@5.1.1(transitive)
- Removedmake-dir@4.0.0(transitive)
- Removedmakeerror@1.0.12(transitive)
- Removedmerge-stream@2.0.0(transitive)
- Removedmicromatch@4.0.8(transitive)
- Removedmimic-fn@2.1.0(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedms@2.1.3(transitive)
- Removednatural-compare@1.4.0(transitive)
- Removednode-int64@0.4.0(transitive)
- Removednode-releases@2.0.19(transitive)
- Removednormalize-path@3.0.0(transitive)
- Removednpm-run-path@4.0.1(transitive)
- Removedonce@1.4.0(transitive)
- Removedonetime@5.1.2(transitive)
- Removedp-limit@2.3.03.1.0(transitive)
- Removedp-locate@4.1.0(transitive)
- Removedp-try@2.2.0(transitive)
- Removedparse-json@5.2.0(transitive)
- Removedpath-exists@4.0.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedpath-key@3.1.1(transitive)
- Removedpath-parse@1.0.7(transitive)
- Removedpicocolors@1.1.1(transitive)
- Removedpicomatch@2.3.1(transitive)
- Removedpirates@4.0.6(transitive)
- Removedpkg-dir@4.2.0(transitive)
- Removedpretty-format@28.1.3(transitive)
- Removedprompts@2.4.2(transitive)
- Removedreact-is@18.3.1(transitive)
- Removedrequire-directory@2.1.1(transitive)
- Removedresolve@1.22.10(transitive)
- Removedresolve-cwd@3.0.0(transitive)
- Removedresolve-from@5.0.0(transitive)
- Removedresolve.exports@1.1.1(transitive)
- Removedrimraf@3.0.2(transitive)
- Removedsemver@6.3.17.6.3(transitive)
- Removedshebang-command@2.0.0(transitive)
- Removedshebang-regex@3.0.0(transitive)
- Removedsignal-exit@3.0.7(transitive)
- Removedsisteransi@1.0.5(transitive)
- Removedslash@3.0.0(transitive)
- Removedsource-map@0.6.1(transitive)
- Removedsource-map-support@0.5.13(transitive)
- Removedsprintf-js@1.0.3(transitive)
- Removedstack-utils@2.0.6(transitive)
- Removedstring-length@4.0.2(transitive)
- Removedstring-width@4.2.3(transitive)
- Removedstrip-ansi@6.0.1(transitive)
- Removedstrip-bom@4.0.0(transitive)
- Removedstrip-final-newline@2.0.0(transitive)
- Removedstrip-json-comments@3.1.1(transitive)
- Removedsupports-color@7.2.08.1.1(transitive)
- Removedsupports-hyperlinks@2.3.0(transitive)
- Removedsupports-preserve-symlinks-flag@1.0.0(transitive)
- Removedterminal-link@2.1.1(transitive)
- Removedtest-exclude@6.0.0(transitive)
- Removedtmpl@1.0.5(transitive)
- Removedto-regex-range@5.0.1(transitive)
- Removedtype-detect@4.0.8(transitive)
- Removedtype-fest@0.21.3(transitive)
- Removedundici-types@6.20.0(transitive)
- Removedupdate-browserslist-db@1.1.2(transitive)
- Removedv8-to-istanbul@9.3.0(transitive)
- Removedwalker@1.0.8(transitive)
- Removedwhich@2.0.2(transitive)
- Removedwrap-ansi@7.0.0(transitive)
- Removedwrappy@1.0.2(transitive)
- Removedwrite-file-atomic@4.0.2(transitive)
- Removedxml-formatter@2.6.1(transitive)
- Removedxml-parser-xo@3.2.0(transitive)
- Removedy18n@5.0.8(transitive)
- Removedyallist@3.1.1(transitive)
- Removedyargs@17.7.2(transitive)
- Removedyargs-parser@21.1.1(transitive)
- Removedyocto-queue@0.1.0(transitive)