_.pull($scope.extensions[key], medium);
async _doActionDeleteApplication({ applicationName }) { const application = this._state.applications.find( a => a.name === applicationName ); if (!application) return; await this._ensureApplicationDown(application); _.pull(this._state.applications, application); await this._onStateChange(); this._broadcastStates(); this._broadcastMessage("Application deleted."); }
function adjustPlugin(slsConfig) { const serverlessConfig = Object.assign({}, slsConfig); const slsDomainManager = 'serverless-domain-manager'; const addDomainManager = _.get(serverlessConfig, 'custom.smConfig.build.addDomainManager', false); if (serverlessConfig.plugins) { if (!serverlessConfig.plugins.includes(slsDomainManager) && addDomainManager) { serverlessConfig.plugins.push(slsDomainManager); } _.pull(serverlessConfig.plugins, 'serverless-modular'); } else if (addDomainManager) { serverlessConfig.plugins = [slsDomainManager]; } return serverlessConfig; }
$.ajax({ url: self.base + '/translate', type: 'post', data: { ToLoad: models }, success: function(res) { for (var modelName in res) { if (!self.References[modelName]) self.References[modelName] = {}; self.References[modelName] = _.merge(self.References[modelName], res[modelName]); var Loaded = _.keys(res[modelName]); Loaded.forEach(function(L) { _.pull(self.InProgress, modelName + '_' + L); }) } return done(); } })
var promise = null; promise = processSinglePage(page) .then(() => _.pull( _pageTasks, promise)); _pageTasks.push(promise);
channels.push(payload.channel); } else if (payload.action === 'remove') { _.pull(channels, payload.channel);
compare = _.uniq(_.pull(compare, role)); compare.map(util.idToBson); submission.roles = compare;
const origKeys = Object.keys(data.pkgjson); json.name = data.libPkgName || data.pkgjson.name || 'TODO'; _.pull(origKeys, 'name'); json.description = data.pkgjson.description || 'TODO'; _.pull(origKeys, 'description'); json.version = data.pkgjson.version || '0.0.0'; _.pull(origKeys, 'version'); json.license = data.pkgjson.license || 'Apache-2.0'; _.pull(origKeys, 'license'); json.author = data.pkgjson.author || 'Google Inc.'; _.pull(origKeys, 'author'); json.engines = data.pkgjson.engines || {}; json.engines.node = data.pkgjson.engines ? data.pkgjson.engines.node : '>=4.0.0'; _.pull(origKeys, 'engines'); json.repository = data.pkgjson.repository || data.repository; _.pull(origKeys, 'repository'); json.main = data.pkgjson.main || 'src/index.js'; _.pull(origKeys, 'main'); _.pull(origKeys, 'scripts'); const depRe = /dependencies/i; const depKeys = origKeys.filter(x => depRe.test(x)); _.pull(origKeys, ...depKeys);
_.pull(this._sessions, session); this._broadcastStates(); });
channels.push(payload.channel); } else if (payload.action === 'remove') { _.pull(channels, payload.channel);