diff --git a/package-lock.json b/package-lock.json index b9fa743..17a5920 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3765,13 +3765,18 @@ "optional": true }, "binary-parser-encoder": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/binary-parser-encoder/-/binary-parser-encoder-1.5.2.tgz", - "integrity": "sha512-bZKR5Qo+pujq+Pvye/ZR94aRbYJx+7WijKAD7RcFi6qgtNJ4kHqAbDaH588VM2N4HylWp08Pm2l0buXqh2t5kw==", + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/binary-parser-encoder/-/binary-parser-encoder-1.5.3.tgz", + "integrity": "sha512-yu3tdLBYqPIwGRaXyswLoLrhaffkuZkNuXveq/jYoyBHQbFMjamHCWPFOmI2Qz+Go0Rh6wE9f6tt0EAvsgDD0g==", "requires": { "smart-buffer": "^4.1.0" } }, + "bitset": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/bitset/-/bitset-5.1.1.tgz", + "integrity": "sha512-oKaRp6mzXedJ1Npo86PKhWfDelI6HxxJo+it9nAcBB0HLVvYVp+5i6yj6DT5hfFgo+TS5T57MRWtw8zhwdTs3g==" + }, "bluebird": { "version": "3.7.2", "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", diff --git a/package.json b/package.json index 08c756e..1ce9d4c 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,8 @@ "@testing-library/jest-dom": "^4.2.4", "@testing-library/react": "^9.5.0", "@testing-library/user-event": "^7.2.1", - "binary-parser-encoder": "^1.5.2", + "binary-parser-encoder": "^1.5.3", + "bitset": "^5.1.1", "rc-slider": "^9.6.3", "react": "^17.0.1", "react-dom": "^17.0.1", diff --git a/patches/binary-parser-encoder+1.5.3.patch b/patches/binary-parser-encoder+1.5.3.patch new file mode 100644 index 0000000..7c7c548 --- /dev/null +++ b/patches/binary-parser-encoder+1.5.3.patch @@ -0,0 +1,13 @@ +diff --git a/node_modules/binary-parser-encoder/dist/binary_parser.js b/node_modules/binary-parser-encoder/dist/binary_parser.js +index ee49a70..ef0ac58 100644 +--- a/node_modules/binary-parser-encoder/dist/binary_parser.js ++++ b/node_modules/binary-parser-encoder/dist/binary_parser.js +@@ -551,7 +551,7 @@ var Parser = /** @class */ (function () { + Parser.prototype.compile = function () { + var importPath = 'imports'; + var ctx = this.getContext(importPath); +- this.compiled = new Function(importPath, 'TextDecoder', "return function (buffer, constructorFn) { " + ctx.code + " };")(ctx.imports, typeof TextDecoder === 'undefined' ++ this.compiled = new Function(importPath, 'TextDecoder', "return function (buffer, constructorFn) { ' + ctx.code + ' };")(ctx.imports, typeof TextDecoder === 'undefined' + ? require('util').TextDecoder + : TextDecoder); + }; diff --git a/public/index.html b/public/index.html index 1dbdca6..51f0ffa 100644 --- a/public/index.html +++ b/public/index.html @@ -10,6 +10,11 @@ content="Web site created using create-react-app" /> + +