radmigtmp.js 727 B

12345678910111213141516171819202122
  1. module.exports = function(r){
  2. var Radix = require('./radix');
  3. r.find('a', function(){
  4. var l = [];
  5. Radix.map(r.list, function(v,f){
  6. if(!(f.indexOf('%1B') + 1)){ return }
  7. if(!v){ return }
  8. l.push([f,v]);
  9. });
  10. if(l.length){
  11. console.log("\n! ! ! WARNING ! ! !\nRAD v0.2020.x has detected OLD v0.2019.x data & automatically migrating. Automatic migration will be turned OFF in future versions! If you are just developing/testing, we recommend you reset your data. Please contact us if you have any concerns.\nThis message should only log once.")
  12. }
  13. var f, v;
  14. l.forEach(function(a){
  15. f = a[0]; v = a[1];
  16. r.list(decodeURIComponent(f), v);
  17. r.list(f, 0);
  18. });
  19. if(!f){ return }
  20. r.find.bad(f);
  21. })
  22. };