1 | 'use strict';
|
2 |
|
3 | var _assign = require('babel-runtime/core-js/object/assign');
|
4 |
|
5 | var _assign2 = _interopRequireDefault(_assign);
|
6 |
|
7 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
8 |
|
9 | var FetchMock = require('./lib/index');
|
10 | var statusTextMap = require('./lib/status-text');
|
11 | var theGlobal = typeof window !== 'undefined' ? window : self;
|
12 |
|
13 | var _require = require('./lib/request-utils'),
|
14 | setUrlImplementation = _require.setUrlImplementation;
|
15 |
|
16 | setUrlImplementation(theGlobal.URL);
|
17 |
|
18 | FetchMock.global = theGlobal;
|
19 | FetchMock.statusTextMap = statusTextMap;
|
20 |
|
21 | FetchMock.config = (0, _assign2.default)(FetchMock.config, {
|
22 | Promise: theGlobal.Promise,
|
23 | Request: theGlobal.Request,
|
24 | Response: theGlobal.Response,
|
25 | Headers: theGlobal.Headers
|
26 | });
|
27 |
|
28 | module.exports = FetchMock.createInstance(); |
\ | No newline at end of file |