Joeri Exelmans 1 year ago
parent
commit
aee2d05518
2 changed files with 3 additions and 8 deletions
  1. 3 1
      README.md
  2. 0 7
      lib/mock_node_util.ts

+ 3 - 1
README.md

@@ -7,4 +7,6 @@ Defines:
  * A mutable "GraphState" class, for executing deltas.
  * A "Version" class, for graph embedding, branching and merging.
 
-Currently depends on these NodeJS polyfills for browser: 'buffer', 'crypto' and 'stream'. This is only to compute hashes by means of synchronous function call (Web Crypto API only supports async).
+Currently depends on these NodeJS libraries: 'buffer', 'crypto' and 'stream'. This is only to compute hashes by means of synchronous function call (Web Crypto API only supports async). You can use polyfills to make this library work in the browser.
+
+Typescript is a dependency of this package (not a 'devDependency') because otherwise the 'postinstall' script (which is automatically run by (p)npm after cloning this repo) fails. This may be a bug in (p)npm. I don't have time to investigate.

+ 0 - 7
lib/mock_node_util.ts

@@ -1,7 +0,0 @@
-// When building the 'onion' library for browser, the 'util' NodeJS library will not be found.
-// A real polyfill would be overkill, so we just provide this 'mock'.
-// The polyfill configuration is in 'webpack.config.js'.
-
-export const inspect = {
-  custom: Symbol(),
-};