Advertisement
bogdanbiv

Untitled

Feb 11th, 2021
1,542
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // const parser = fastXMLParser as typeof FastXMLParser;
  2. //
  3. // import { React, ReactDOM, PropTypes } from 'https://unpkg.com/es-react';
  4. // import throttle from 'https://unpkg.com/lodash@4.17.19/throttle.js';
  5. // https://unpkg.com/rxjs@6.6.3/Rx.js
  6. // @deno-types="https://unpkg.com/rxjs@6.6.3/index.d.ts"
  7. // import rxjs from 'https://unpkg.com/rxjs@6.6.3/_esm5/index.js';
  8. // import rxjs from 'https://unpkg.io/rxjs@6.6.3/_esm5/index.js';    
  9. // import rxjs from 'https://unpkg.com/rxjs@6.6.3/bundles/rxjs.umd.js';
  10. // import rxjs from 'https://unpkg.com/rxjs@6.6.3/_esm2015/index.js';
  11. // import rxjs from 'https://unpkg.io/rxjs@6.6.3/_esm2015/index.js';
  12. // import rxjs from 'https://unpkg.io/@reactivex/rxjs@6.6.3/dist/esm2015/index.js';
  13. // import rxjs from 'https://dev.jspm.io/npm:rxjs@6.6.3/';
  14. // import { rxjs } from 'https://dev.jspm.io/npm:rxjs@6.6.3/index.dew.js';
  15. // import { fromEvent } from 'https://dev.jspm.io/npm:rxjs@6.5.5/index.dew.js';
  16. // import rxjs from 'https://unpkg.io/@reactivex/rxjs@6.5.5/dist/esm2015/index.js'
  17. // import rxjs from 'https://dev.jspm.io/npm:rxjs@6.5.5/dist/esm2015/index.js';
  18. import rxjs from 'https://dev.jspm.io/npm:rxjs@6.5.5/index.js';
  19. import { dew } from 'https://dev.jspm.io/npm:rxjs@6.5.5/internal/Observable.dew.js';
  20.  
  21. const observable = new dew().Observable((subscriber: any) => {
  22.     subscriber.next(1);
  23.     subscriber.complete();
  24. });
  25.    
  26. console.log('just before subscribe');
  27. observable.subscribe({
  28.     next(x: any) { console.log('got value ' + x); },
  29.     error(err: any) { console.error('something wrong occurred: ' + err); },
  30.     complete() { console.log('done'); }
  31. });
  32. console.log('just after subscribe');
  33.  
  34. //*
  35. ➜  junk deno run ~/Projects/denmo/hello.ts
  36. Download https://unpkg.io/@reactivex/rxjs@6.5.5/dist/esm2015/index.js
  37. Download https://unpkg.io/@reactivex/rxjs@6.5.5/dist/esm2015/internal/scheduled/scheduled
  38. Download https://unpkg.io/@reactivex/rxjs@6.5.5/dist/esm2015/internal/observable/from
  39. /// ... after 20 imports later:
  40. error: Import 'https://unpkg.io/@reactivex/rxjs@6.6.3/dist/esm2015/internal/Subject' failed: 500 Internal Server Error
  41.     at https://unpkg.io/@reactivex/rxjs@6.6.3/dist/esm2015/index.js:5:0
  42. //
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement