a zip code crypto-currency system good for red ONLY

NodeMainTemplateAsync.runtime.js 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. MIT License http://www.opensource.org/licenses/mit-license.php
  3. Author Tobias Koppers @sokra
  4. */
  5. /*global installedChunks $hotChunkFilename$ $require$ hotAddUpdateChunk $hotMainFilename$ */
  6. module.exports = function() {
  7. function hotDownloadUpdateChunk(chunkId) { // eslint-disable-line no-unused-vars
  8. var filename = require("path").join(__dirname, $hotChunkFilename$);
  9. require("fs").readFile(filename, "utf-8", function(err, content) {
  10. if(err) {
  11. if($require$.onError)
  12. return $require$.oe(err);
  13. else
  14. throw err;
  15. }
  16. var chunk = {};
  17. require("vm").runInThisContext("(function(exports) {" + content + "\n})", filename)(chunk);
  18. hotAddUpdateChunk(chunk.id, chunk.modules);
  19. });
  20. }
  21. function hotDownloadManifest() { // eslint-disable-line no-unused-vars
  22. var filename = require("path").join(__dirname, $hotMainFilename$);
  23. return new Promise(function(resolve, reject) {
  24. require("fs").readFile(filename, "utf-8", function(err, content) {
  25. if(err) return resolve();
  26. try {
  27. var update = JSON.parse(content);
  28. } catch(e) {
  29. return reject(e);
  30. }
  31. resolve(update);
  32. });
  33. });
  34. }
  35. function hotDisposeChunk(chunkId) { //eslint-disable-line no-unused-vars
  36. delete installedChunks[chunkId];
  37. }
  38. };