Cherry pick promise-polyfill

pull/13587/head
Ivan Malagon 7 years ago committed by elenatorro
parent 64d2e9b401
commit fdf6a5b7ef

@ -4,6 +4,7 @@ if (ACTIVE_LOCALE !== 'en') {
}
var Locale = require('locale/index');
var Polyglot = require('node-polyglot');
require('promise-polyfill');
var polyglot = new Polyglot({
locale: ACTIVE_LOCALE, // Needed for pluralize behaviour
phrases: Locale[ACTIVE_LOCALE]

@ -4,6 +4,7 @@ if (ACTIVE_LOCALE !== 'en') {
}
var Locale = require('locale/index');
var Polyglot = require('node-polyglot');
require('promise-polyfill');
var polyglot = new Polyglot({
locale: ACTIVE_LOCALE, // Needed for pluralize behaviour
phrases: Locale[ACTIVE_LOCALE]

@ -3,7 +3,7 @@
* if necessary
*/
module.exports = function (params, callback) {
module.exports = function (params) {
if (!params) throw new Error('all query objects are required');
if (!params.querySchemaModel) throw new Error('querySchemaModel is required');
if (!params.queryGeometryModel) throw new Error('queryGeometryModel is required');

@ -1,4 +1,5 @@
require('whatwg-fetch');
require('promise-polyfill');
var FastClick = require('fastclick');
FastClick.attach(document.body);

@ -45,7 +45,6 @@ var fs = require('fs-extra');
var colors = require('colors');
var recursive = require('recursive-readdir');
var minimist = require('minimist');
var Promise = require('bluebird');
var _ = require('underscore');
var FileTrie = require('./fileTrie');

@ -1,6 +1,5 @@
var fs = require('fs-extra');
var path = require('path');
var Promise = require('bluebird');
var config = require('./fetchRequires.config.js');
function checkConfig () {

@ -2,7 +2,6 @@ var child = require('child_process');
var path = require('path');
var fs = require('fs');
var recursive = require('recursive-readdir');
var Promise = require('bluebird');
var _ = require('underscore');
/**

@ -42,6 +42,7 @@
"postcss": "5.0.19",
"postcss-scss": "0.4.0",
"postcss-strip-inline-comments": "0.1.5",
"promise-polyfill": "https://registry.npmjs.org/promise-polyfill/-/promise-polyfill-6.1.0.tgz",
"queue-async": "1.2.1",
"rangeslider.js": "2.3.0",
"tinycolor2": "^1.4.1",

Loading…
Cancel
Save