console.debug('MODEL SAVED INTO DynamDB TABLE: ', dataPut); } else if (!errPut) { console.warning('WITHOUT RESPONSE FROM "put" OPERATION');
const fetchRepositories = (params = {}) => ( dispatch => apiCalls.getRepositories(params) .then(response => response.json()) .then(repositories => dispatch(receiveRepositories(repositories.items))) .catch(error => console.warning('Fetch error in repositories')) )
function warn() { console.warning(_.toArray(arguments).join(' ').orange); }
function addDependencies (loader, paths, callback) { var remaining = paths.length if (remaining === 0) callback(null) paths.forEach(function (path) { fs.stat(path, function (error, stats) { if (error) { if (error.code === 'ENOENT') { callback(new Error('Could not find dependency "' + path + '"')) } else { callback(error) } } else { if (stats.isFile()) { loader.addDependency(path) } else if (stats.isDirectory()) { loader.addContextDependency(path) } else { console.warning( 'rails-erb-loader ignored dependency that was neither a file nor a directory' ) } remaining-- if (remaining === 0) callback(null) } }) }) }
/** * DEPRECATED: Flash the Tinker application to a device. Instead compile and flash the Tinker source code. * @param {Object} options Options for this API call * @param {String} options.deviceId Device ID or Name * @param {String} options.auth Access Token * @param {Object} [options.headers] Key/Value pairs like `{ 'X-FOO': 'foo', X-BAR: 'bar' }` to send as headers. * @param {Object} [options.context] Request context * @returns {Promise} A promise */ flashTinker({ deviceId, auth, headers, context }){ /* eslint-disable no-console */ if (console && console.warning){ console.warning('Particle.flashTinker is deprecated'); } /* eslint-enable no-console */ return this.put({ uri: `/v1/devices/${deviceId}`, headers, data: { app: 'tinker' }, auth, context }); }
oldWarning = window.console.warning; window.console.error = errorOrWarningSpy; window.console.warning = errorOrWarningSpy;
base64test = /[^A-Za-z0-9\+\/\=]/g; if (base64test.exec(input)) { console.warning('There were invalid base64 characters in the input text.\n' + 'Valid base64 characters are A-Z, a-z, 0-9, \'+\', \'/\',and \'=\'\n' + 'Expect errors in decoding.');
const fetchTopics = (params = {}) => ( dispatch => apiCalls.getTopics(params) .then(response => response.json()) .then(topics => dispatch(receiveTopics(topics.items))) .catch(error => console.warning('Fetch error in topics')) )
const fetchRepositories = (params = {}) => ( dispatch => apiCalls.getRepositories(params) .then(response => response.json()) .then(repositories => dispatch(receiveRepositories(repositories.items))) .catch(error => console.warning('Fetch error in repositories')) )
const fetchTopics = (params = {}) => ( dispatch => apiCalls.getTopics(params) .then(response => response.json()) .then(topics => dispatch(receiveTopics(topics.items))) .catch(error => console.warning('Fetch error in topics')) )
oldWarning = window.console.warning; window.console.error = errorOrWarningSpy; window.console.warning = errorOrWarningSpy;
base64test = /[^A-Za-z0-9\+\/\=]/g; if (base64test.exec(input)) { console.warning('There were invalid base64 characters in the input text.\n' + 'Valid base64 characters are A-Z, a-z, 0-9, \'+\', \'/\',and \'=\'\n' + 'Expect errors in decoding.');