Skip to content

Commit

Permalink
Add setImmediate polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
Davis Yi committed Oct 31, 2020
1 parent be97b29 commit de9bcb2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions libs/fetcher.client.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* Fetcher is a CRUD interface for your data.
* @module Fetcher
*/
require("setimmediate");
var REST = require('./util/http.client');
var debug = require('debug')('FetchrClient');
var lodash = {
Expand Down
2 changes: 1 addition & 1 deletion libs/fetcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright 2014, Yahoo! Inc.
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
*/

require("setimmediate");
var OP_READ = 'read';
var OP_CREATE = 'create';
var OP_UPDATE = 'update';
Expand Down
7 changes: 6 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fetchr",
"version": "0.5.38",
"version": "0.5.39",
"description": "Fetchr augments Flux applications by allowing Flux stores to be used on server and client to fetch data",
"main": "index.js",
"browser": "./libs/fetcher.client.js",
Expand All @@ -26,6 +26,7 @@
"fumble": "^0.1.0",
"lodash": "^4.17.15",
"object-assign": "^4.0.1",
"setimmediate": "^1.0.5",
"xhr": "^2.4.0"
},
"devDependencies": {
Expand Down

0 comments on commit de9bcb2

Please sign in to comment.