This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Fetch, Utils } from 'teambition-sdk' | |
import { Observable } from 'rxjs/Observable' | |
import { Subject } from 'rxjs/Subject' | |
import { ReplaySubject } from 'rxjs/ReplaySubject' | |
import { AjaxResponse } from 'rxjs/observable/dom/AjaxObservable' | |
import { Subscriber } from 'rxjs/Subscriber' | |
import * as config from 'config' | |
export interface ChunkMeta { | |
fileType: string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Q = require("q"); | |
var Set = require("collections/set"); // https://npmjs.org/package/collections | |
window.outstandingPromises = new Set(); | |
var originalDefer = Q.defer; | |
Q.defer = function () { | |
console.error("Deferred created"); | |
var deferred = originalDefer(); | |
deferred.stack = new Error("").stack; | |
window.outstandingPromises.add(deferred); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{name: 'Afghanistan', code: 'AF'}, | |
{name: 'Åland Islands', code: 'AX'}, | |
{name: 'Albania', code: 'AL'}, | |
{name: 'Algeria', code: 'DZ'}, | |
{name: 'American Samoa', code: 'AS'}, | |
{name: 'AndorrA', code: 'AD'}, | |
{name: 'Angola', code: 'AO'}, | |
{name: 'Anguilla', code: 'AI'}, | |
{name: 'Antarctica', code: 'AQ'}, |