conflict_resolution
stringlengths
27
16k
<<<<<<< ======= hotPort: { type: 'string', }, host: { type: 'string', alias: 'h' }, open: { type: 'boolean', alias: 'o', default: true }, outDir: { type: 'string', alias: 'd' }, outFile: { type: 'string', }, html: { ...
<<<<<<< ======= if (bashProfileExists) { >>>>>>> <<<<<<< if (!bashProfileIncludesText) { console.log("Bash profile did not include text, adding it to profile"); await fsp.appendFile(process.env['HOME'] + '/.bash_profile', textToInsert) ======= if (!bashIncludesText) { c...
<<<<<<< <ActionButton clickHandler={setAWSCredentials} buttonText={`Submit`} /> <HelpInfoButton clickHandler={displayInfoHandler} /> ======= <ActionButton id={'home_form_buttom'} clickHandler={props.setAWSCredentials} buttonText={`Submit`} /> <HelpInfoButton clickHandle...
<<<<<<< creatingCluster={creatingCluster} ======= getAndDisplayClusterData={this.getAndDisplayClusterData} >>>>>>> creatingCluster={creatingCluster} getAndDisplayClusterData={this.getAndDisplayClusterData}
<<<<<<< test('x-forwarded-for with unknown first ip', function(t) { t.plan(1); var options = { url: '', headers: { 'x-forwarded-for': 'unknown, 93.186.30.120' } }; // create new server for each test so we can easily close it after the test is done // prevents test...
<<<<<<< js = falafel(js, parseOptions, function(node) { ======= var patternReplacement = unwrapNodes(pattern, replacement); pattern = patternReplacement[0]; replacement = patternReplacement[1]; return falafel(js, parseOptions, function(node) { >>>>>>> var patternReplacement = unwrapNodes(pattern, repla...
<<<<<<< function isRestWildcard(node) { return node.type == "SpreadElement" && isWildcard(node.argument); } function matchPartial(wildcards, patterns, nodes) { ======= // Exposes the "meat" of the node function unwrapNode(node) { // If the program is only one expression/statement // assume we want to match th...
<<<<<<< import React, { useEffect, useState } from "react"; import { useSelector, useDispatch } from "react-redux"; import * as actions from "../actions/actions"; import { BrowserRouter as Router, Switch, Route, Link } from "react-router-dom"; import Metrics from "./tabs/Metrics"; import Images from "./tabs/Images"; im...
<<<<<<< console.log("I am here6") console.log(stdout); ======= >>>>>>> <<<<<<< console.log(convertedValue) ======= console.log(convertedValue); >>>>>>> console.log(convertedValue); <<<<<<< console.log("I am here 7") console.log("newList.length", newList.length); ======= console.log(newList.l...
<<<<<<< console.log('*** Rendered Settings ***'); const [tempPhoneNumber, setTempPhoneNumber] = useState(''); // styling ======= const [tempPhoneNumber, setTempPhoneNumber] = useState(""); >>>>>>> const [tempPhoneNumber, setTempPhoneNumber] = useState('');
<<<<<<< ======= useEffect(() => { helper.writeToDb(); helper.displayNetwork(getComposeYmlFiles); helper.setDbSessionTimeZone(); }, []); >>>>>>>
<<<<<<< ======= case types.ADD_RUNNING_CONTAINERS: const newRunningList = state.runningList.slice(); for (let container of action.payload) { newRunningList.push(container); } return { ...state, runningList: newRunningList }; case types.ADD_PHONE_NUMBER: return { ...
<<<<<<< import React, { Component, Fragment } from "react"; ======= import React, { Component, Fragment } from 'react'; import PropTypes from 'prop-types'; >>>>>>> import React, { Component, Fragment } from 'react';
<<<<<<< const parser = new DOMParser(); // eslint-disable-line let xml = $scope.xmlCodeBox.getValue(); xml = xml.replace(/..xml.+\?>/,''); ======= const text = $scope.xmlCodeBox.getValue(); const xml = replaceIllegalXML(text); >>>>>>> const text = $scope.xm...
<<<<<<< import prepError from 'plugins/wazuh/services/prep-error'; import chrome from 'ui/chrome'; import * as modules from 'ui/modules' ======= /* * Wazuh app - Generic request service * Copyright (C) 2018 Wazuh, Inc. * * This program is free software; you can redistribute it and/or modify * it under t...
<<<<<<< }; this.visualizeProps = { selectedTab: this.tab, updateRootScope: (prop, value) => { this.$rootScope[prop] = value; this.$rootScope.$applyAsync(); }, cardReqs: {} }; ======= }; >>>>>>> }; <<<<<<< if ( newTab !== 'pci' && newTab !=...
<<<<<<< export default err => { ======= /* * Wazuh app - Module for error messages * Copyright (C) 2018 Wazuh, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of ...
<<<<<<< import './wz-config-item/wz-config-item.less'; import './wz-tag-filter/wz-tag-filter'; import './wz-tag-filter/wz-tag-filter.less'; ======= import './wz-config-item/wz-config-item.less'; import './wz-config-viewer/wz-config-viewer'; >>>>>>> import './wz-config-item/wz-config-item.less'; import './wz-tag-filt...
<<<<<<< this.$scope.lookingAssessment = false; ======= this.$scope.expandArray = [ false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false ]; >>>>>>> ...
<<<<<<< ======= if($scope.tab !== 'configuration' && $scope.tab !== 'welcome') tabHistory.push($scope.tab) >>>>>>> <<<<<<< if(tab !== 'welcome' && tab !== 'configuration') tabHistory.push(tab); if (tabHistory.length > 2) tabHistory = tabHistory.slice(-2); ======= if(tab !== 'configurat...
<<<<<<< const targetSubTab = (this.targetLocation && typeof this.targetLocation === 'object' ? this.targetLocation.subTab: 'panels'); if (this.$scope.tab === 'configuration') { this.firstLoad(); } else { ======= if (this.$scope.tab !== 'configuration') { >>>>>>> const targetSubTab = (this....
<<<<<<< import cron from 'node-cron' import needle from 'needle' import getPath from'../util/get-path' import colors from 'ansicolors' import log from './logger' import ElasticWrapper from './lib/elastic-wrapper' import monitoringTemplate from './integ...
<<<<<<< import ErrorResponse from './error-response' ======= import { Parser } from 'json2csv'; >>>>>>> import ErrorResponse from './error-response' import { Parser } from 'json2csv';
<<<<<<< const loadSyscollector = async id => { try { const data = await Promise.all([ apiReq.request('GET', `/syscollector/${id}/hardware`, {}), apiReq.request('GET', `/syscollector/${id}/os`, {}), apiReq.request('GET', `/syscollector/${id}/netiface`, {}), apiRe...
<<<<<<< app.controller('agentsPreviewController', function ($scope, DataFactory, Notifier, errlog, genericReq, Agents, apiReq) { ======= app.controller('agentsPreviewController', function ($scope, $mdDialog, DataFactory, Notifier, errlog, genericReq, Agents, apiReq) { >>>>>>> app.controller('agentsPreviewController'...
<<<<<<< import * as modules from 'ui/modules' const app = modules.get('app/wazuh', []); ======= /* * Wazuh app - Dynamic directive * Copyright (C) 2018 Wazuh, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by *...
<<<<<<< import ElasticWrapper from '../lib/elastic-wrapper'; import fs from 'fs'; import yml from 'js-yaml'; import path from 'path'; ======= /* * Wazuh app - Class for Wazuh-Elastic functions * Copyright (C) 2018 Wazuh, Inc. * * This program is free software; you ...
<<<<<<< import * as modules from 'ui/modules' const app = modules.get('app/wazuh', []); ======= /* * Wazuh app - Manager controllers * Copyright (C) 2018 Wazuh, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by *...
<<<<<<< import {Text} from './text/text'; ======= import {Sprites} from './sprites/sprites'; >>>>>>> import {Sprites} from './sprites/sprites'; import {Text} from './text/text'; <<<<<<< StyleManager.register(Points); StyleManager.register(Text); ======= StyleManager.register(Points); StyleManager.register(Sprites...
<<<<<<< import { WzFilterBar } from '../../../components/wz-filter-bar/wz-filter-bar'; import { CheckUpgrade } from './checkUpgrade'; import { toastNotifications } from 'ui/notify'; import { WzRequest } from '../../../react-services/wz-request'; import { ActionAgents } from '../../../react-services/action-agents'; ===...
<<<<<<< app.controller('rulesController', function ($scope, $rootScope, Rules, RulesAutoComplete, errorHandler, genericReq, csvReq, appState) { ======= app.controller('rulesController', function ($scope, $rootScope, Rules, RulesRelated, RulesAutoComplete, errorHandler, genericReq, appState) { >>>>>>> app.controller(...
<<<<<<< import Utils from '../utils/utils'; import hashString from '../utils/hash'; // TODO: support high-density `@2x`-style filenames for raster tiles and geo-referenced images ======= import log from '../utils/log'; >>>>>>> import Utils from '../utils/utils'; import hashString from '../utils/hash'; import log fr...
<<<<<<< $scope.agentOSVersionFilter = function (osVersion) { if (osVersion == 'all') { DataFactory.filters.unset(objectsArray['/agents'], 'os.version'); } else { DataFactory.filters.set(objectsArray['/agents'], 'os.version', osVersion); } DataFactory.setOffset(object...
<<<<<<< console.log(result.data) return (((result || {}).data || {}).data || {}).affected_items; ======= return (((result || {}).data || {}).data || {}).items; >>>>>>> return (((result || {}).data || {}).data || {}).affected_items; <<<<<<< console.log(result.data) ret...
<<<<<<< this.setState({isLoading: true}); const rawData = await WzRequest.apiReq('GET', '/agents', { params: this.buildFilter() } ); const data = (((rawData || {}).data || {}).data || {}).affected_items; const totalItems = (((rawData || {}).data || {}).data || {}).total_affected_items; ======= ...
<<<<<<< export default [ ======= /* * Wazuh app - Module for Agents/OSCAP visualizations * Copyright (C) 2018 Wazuh, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version...
<<<<<<< .value('Logtest', Logtest) .value('ToolsWelcomeCards', ToolsWelcomeCards) .value('TestConfiguration', TestConfiguration) .value('EuiSwitch', EuiSwitch); ======= .value('EuiSwitch', EuiSwitch) .value('EuiSpacer',EuiSpacer); >>>>>>> .value('Logtest', Logtest) .value('ToolsWelcomeCards', ToolsWe...
<<<<<<< assignFilters($scope.tab, $scope.agent.id, localChange); $rootScope.$emit('changeTabView',{tabView:subtab}); ======= assignFilters($scope.tab, $scope.agent.id, localChange || preserveDiscover); $rootScope.$emit('changeTabView',{tabView:subtab}) ...
<<<<<<< import { RulesetHandler } from './ruleset-handler'; ======= import { SaveConfig } from './save-config'; >>>>>>> import { RulesetHandler } from './ruleset-handler'; import { SaveConfig } from './save-config'; <<<<<<< .service('groupHandler', GroupHandler) .service('rulesetHandler', RulesetHandler); ====...
<<<<<<< export default { ======= /* * Wazuh app - Module for monitoring template * Copyright (C) 2018 Wazuh, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of th...
<<<<<<< import { WAZUH_ALERTS_PATTERN } from '../../../../util/constants'; ======= import { AppState } from '../../../react-services/app-state'; >>>>>>> import { WAZUH_ALERTS_PATTERN } from '../../../../util/constants'; import { AppState } from '../../../react-services/app-state'; <<<<<<< "index": WAZUH_ALE...
<<<<<<< import React, { Component, Fragment } from "react"; ======= import React, { Component, Fragment } from 'react'; import PropTypes from 'prop-types'; import {} from '@elastic/eui'; >>>>>>> import React, { Component, Fragment } from 'react';
<<<<<<< import * as modules from 'ui/modules' const app = modules.get('app/wazuh', []); ======= /* * Wazuh app - Ruleset controllers * Copyright (C) 2018 Wazuh, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by *...
<<<<<<< Tile.buildGeometry(tile, self.layers, self.rules, self.styles).then(keys => { resolve(WorkerBroker.returnWithTransferables({ tile: Tile.slice(tile, keys) })); ======= Tile.buildGeometry(tile, self.config, self.rules, self.styles).then...
<<<<<<< this.$scope.getAgentStatusClass = agentStatus => agentStatus === 'active' ? 'teal' : 'red'; ======= this.$scope.getAgentStatusClass = agentStatus => agentStatus === 'Active' ? 'teal' : 'red'; >>>>>>> this.$scope.getAgentStatusClass = agentStatus => agentStatus === 'active' ? 'te...
<<<<<<< export default [ ======= /* * Wazuh app - Module for Agents/Audit visualizations * Copyright (C) 2018 Wazuh, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version...
<<<<<<< ======= onTimeChange = (datePicker) => { const {start:from, end:to} = datePicker; this.setState({datePicker: {from, to}}); } getOptions(){ return [ { value: 'pci', text: 'PCI DSS' }, { value: 'gdpr', text: 'GDPR' }, { value: 'nist', text: 'NIST 800-53' }, { value: 'h...
<<<<<<< this.$scope.agentsCoverity = (active / total) * 100; this.$scope.daemons = daemons; this.$scope.managerInfo = managerInfo; this.$scope.totalRules = totalRules.totalItems; this.$scope.totalDecoders = totalDecoders.totalItems; ...
<<<<<<< /** * This set an API entry as default * @param {Object} req * @param {Object} reply * Request response or ErrorResponse */ async setAPIEntryDefault(req, reply) { try { // Searching for previous default const data = await this.wzWrapper.searchActiveDocumentsWazuhIndex(req); ...
<<<<<<< import React, { Component, Fragment } from "react"; ======= import React, { Component, Fragment } from 'react'; import PropTypes from 'prop-types'; >>>>>>> import React, { Component, Fragment } from 'react';
<<<<<<< import React, { Component, Fragment } from "react"; ======= import React, { Component, Fragment } from 'react'; import PropTypes from 'prop-types'; >>>>>>> import React, { Component, Fragment } from 'react';
<<<<<<< app.controller('rulesController', function ($scope, $rootScope, $sce, Rules, RulesRelated, RulesAutoComplete, errorHandler, genericReq, appState, csvReq) { ======= app.controller('rulesController', function ($timeout, $scope, $rootScope, Rules, RulesRelated, RulesAutoComplete, errorHandler, genericReq, appSta...
<<<<<<< import knownFields from '../integration-files/known-fields'; ======= /* * Wazuh app - Class for the Elastic wrapper * Copyright (C) 2018 Wazuh, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free ...
<<<<<<< import * as modules from 'ui/modules' const app = modules.get('app/wazuh', []); ======= /* * Wazuh app - Error handler service * Copyright (C) 2018 Wazuh, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by ...
<<<<<<< $scope.isPolicyMonitoring = () => { return instance.path.includes('configuration-assessment') && instance.path.includes('/checks') } $scope.expandPolicyMonitoringCheck = item => { if (item.expanded) item.expanded = false; else { $scope.pagedItems[$scope.curr...
<<<<<<< import { getServices } from 'plugins/kibana/discover/kibana_services'; import { WAZUH_ALERTS_PATTERN } from '../../../util/constants'; ======= import { getServices } from '../../../../../src/plugins/discover/public/kibana_services'; import { AppState } from '../../react-services/app-state'; >>>>>>> import { ...
<<<<<<< icon_type: (St.IconType.SYMBOLIC), style_class: 'system-status-icon' ======= icon_type: (St.IconType.FULLCOLOR), // TODO: shouldn't be necessary style_class: 'popup-menu-icon', gicon: gicon >>>>>>> icon_type: (St.IconType.SYMBOLIC), style_class: 'system-status-icon' gicon: gicon <<<<...
<<<<<<< handle('set-layout-tiled-horizontal', function() { self.change_layout(true); }); handle('set-layout-floating', function() { self.change_layout(false); }); // move a window's borders // to resize it handle('increase-main-split', function() { self.current_layout().adjust_main_wind...
<<<<<<< _mapped: {}, ======= >>>>>>> _mapped: {}, <<<<<<< if (this.options.autocomplete === 'bootstrap') { this.element.typeahead({ source: function(query, process) { self._mapped = {}; var response = function(results) { ...
<<<<<<< ======= var paused = startPaused || false; var readable = false; // convert to an old-style stream. stream.readable = true; stream.pipe = Stream.prototype.pipe; stream.on = stream.addListener = Stream.prototype.on; stream.on('readable', function() { readable = true; var c; while ...
<<<<<<< nonHostChars = ['%', '/', '?', ';', '#'].concat(autoEscape), nonAuthChars = ['/', '@', '?', '#'].concat(delims), ======= nonHostChars = ['%', '/', '?', ';', '#'] .concat(unwise).concat(autoEscape), hostEndingChars = ['/', '?', '#'], >>>>>>> nonHostChars = ['%', '/', '?', ';', '#'].c...
<<<<<<< (util.isFunction(list.listener) && list.listener === listener)) { this._events[type] = undefined; ======= (typeof list.listener === 'function' && list.listener === listener)) { delete this._events[type]; >>>>>>> (util.isFunction(list.listener) && list.listener === listener)) { d...
<<<<<<< assert.equal(0, Buffer('hello').slice(0, 0).length); // test hex toString console.log('Create hex string from buffer'); var hexb = new Buffer(256); for (var i = 0; i < 256; i ++) { hexb[i] = i; } var hexStr = hexb.toString('hex'); assert.equal(hexStr, '000102030405060708090a0b0c0d0e0f'+ ...
<<<<<<< EventEmitter.prototype.setMaxListeners = function(n) { if (!util.isNumber(n) || n < 0 || isNaN(n)) ======= var defaultMaxListeners = 10; EventEmitter.prototype.setMaxListeners = function setMaxListeners(n) { if (typeof n !== 'number' || n < 0 || isNaN(n)) >>>>>>> EventEmitter.prototype.setMaxListeners = ...
<<<<<<< // #243 Test write() with maxLength var buf = new Buffer(4); buf.fill(0xFF); var written = buf.write('abcd', 1, 2, 'utf8'); console.log(buf); assert.equal(written, 2); assert.equal(buf[0], 0xFF); assert.equal(buf[1], 0x61); assert.equal(buf[2], 0x62); assert.equal(buf[3], 0xFF); buf.fill(0xFF); written = buf....
<<<<<<< testPBKDF2('password', 'salt', 2, 20, '\xea\x6c\x01\x4d\xc7\x2d\x6f\x8c\xcd\x1e\xd9\x2a' + '\xce\x1d\x41\xf0\xd8\xde\x89\x57'); testPBKDF2('password', 'salt', 4096, 20, '\x4b\x00\x79\x01\xb7\x65\x48\x9a\xbe\xad\x49\xd9\x26' + '\xf7\x21\xd0\x65\xa4\x29\xc1'); testPBK...
<<<<<<< 'lua', ======= 'ocaml', 'perl', >>>>>>> 'lua', 'ocaml', 'perl',
<<<<<<< //var tmpRecord, i; //var timeNow = Date.now(); var beforeCounts = [ Object.size(this._raw.ship), Object.size(this._raw.slotitem) ]; ======= var tmpRecord, i; var timeNow = Date.now(); var beforeCounts = [ Object.size(this._ship), Object.size(this._slotitem) ]; var newCounts = [0/*ships*/...
<<<<<<< // Ship-only, non abyssal $(".tab_mstship .shipInfo .stats").html(""); $(".tab_mstship .shipInfo .intro").html( shipData.api_getmes ); ======= // Ship-only, non abyssal $(".tab_mstship .shipInfo .stats").html(""); $(".tab_mstship .shipInfo .intro").html( shipData.api_getmes )...
<<<<<<< // each alignment needs to be rendered separately for (let align in info.align) { this.drawText(lines, info.align[align].texture_position, info.size, { stroke: text_settings.stroke, transform: text_settings.trans...
<<<<<<< var self = this, shipData = KC3Master.ship(ship_id), saltState = function(){ return ConfigManager.info_salt && shipData.kc3_bship && ConfigManager.salt_list.indexOf(shipData.kc3_bship)>=0; }, denyTerm = function(){ return ["MasterShipSalt","Un","Check"].filter(function(str,i){ ...
<<<<<<< KC3Network.trigger("HQ"); ======= KC3Network.trigger("Quests"); >>>>>>> KC3Network.trigger("HQ"); KC3Network.trigger("Quests"); <<<<<<< KC3Network.trigger("HQ"); ======= KC3Network.trigger("Quests"); >>>>>>> KC3Network.trigger("HQ"); KC3Network.trigger("Quests");
<<<<<<< KC3Network.nextBlockCheck(); ======= if(response.api_data.api_m2 > 0) { KC3Network.trigger("DebuffNotify", response.api_data); } >>>>>>> if(response.api_data.api_m2 > 0) { KC3Network.trigger("DebuffNotify", response.api_data); } KC3Network.nextBlockCheck();
<<<<<<< saltClassUpdate(); ======= var statBox; >>>>>>> saltClassUpdate(); var statBox;
<<<<<<< info: { type: 'resource', label: 'Info', title: 'Article Info', icon: 'icon-info-sign', references: ['contributor_reference'], renderer: ResourceRenderer }, ======= >>>>>>> info: { type: 'resource', label: 'Info', title: 'Article Info', icon: 'icon-info-sign', ...
<<<<<<< it('Method "clearSelection" should clear selection.', function () { $('#multiselect-container input[value="value-1"]').click(); $('#multiselect-container input[value="value-2"]').click(); ======= it('Method "clearSelection" should clear selection.', function() { ...
<<<<<<< `find did not return ${this.selector}, cannot call attributes() on empty Wrapper` ======= `find did not return ${buildSelectorString( this.selector )}, cannot call attributes() on empty Wrapper` >>>>>>> `find did not return ${buildSelectorString( this.selector )}...
<<<<<<< import { DA_Translaticiarum_list_get } from '../../data/da/ToDo'; import CompendiumsConnection from "./CompendiumsConnection"; ======= import NodeInterface from "../interface/NodeInterface"; >>>>>>> import { DA_Translaticiarum_list_get } from '../../data/da/ToDo'; import NodeInterface from "../interface/Nod...
<<<<<<< import classNames from 'classnames'; ======= import moment from 'moment'; import _get from 'lodash/get'; >>>>>>> import moment from 'moment'; import classNames from 'classnames'; <<<<<<< import PostListItemActions from './post-list-item-actions'; ======= import PostListItemAuthor from './post-list-item-au...
<<<<<<< return gulp.src(SOURCES) .pipe(uniffe()) ======= var sources = [ // Component handler 'src/mdlComponentHandler.js', // Polyfills/dependencies 'src/third_party/**/*.js', // Base components 'src/button/button.js', 'src/checkbox/checkbox.js', 'src/icon-toggle/icon-toggle.j...
<<<<<<< ======= return ( <Box flexDirection="row" width="100%" height="100%" alignItems="center" justifyContent="center"> <Box> {state.depthbox.map((props, index) => ( <DepthLayerCard key={index} {...props} boxWidth={boxWidth} boxHeight={boxHeight} map={textures[index]} /> ))} ...
<<<<<<< this.get('Content-Type') || this.set('Content-Type', 'application/json'); ======= if (!this.get('Content-Type')) { this.charset = 'utf-8'; this.set('X-Content-Type-Options', 'nosniff'); this.set('Content-Type', 'application/json'); } >>>>>>> if (!this.get('Content-Type')) { this.set('...
<<<<<<< ======= /*! * express * Copyright(c) 2009-2013 TJ Holowaychuk * Copyright(c) 2014-2015 Douglas Christopher Wilson * MIT Licensed */ >>>>>>> /*! * express * Copyright(c) 2009-2013 TJ Holowaychuk * Copyright(c) 2014-2015 Douglas Christopher Wilson * MIT Licensed */ <<<<<<< var contentDisposition =...
<<<<<<< var mime = require('send').mime; var crc32 = require('buffer-crc32'); var basename = require('path').basename; var deprecate = require('util').deprecate; ======= var mime = require('connect').mime , deprecate = require('util').deprecate , proxyaddr = require('proxy-addr') , crc32 = require('buffer-crc32...
<<<<<<< res.send = function send(body) { var chunk = body; ======= res.send = function(body){ var req = this.req; var type; >>>>>>> res.send = function send(body) { var chunk = body; <<<<<<< // method check var isHead = req.method === 'HEAD'; // ETag support if (len !== undefined && (isHead || req....
<<<<<<< var mixin = require('utils-merge'); var escapeHtml = require('escape-html'); var Router = require('./router'); var methods = require('methods'); var middleware = require('./middleware/init'); var query = require('./middleware/query'); var debug = require('debug')('express:application'); var View = require('./vi...
<<<<<<< it('should only call once per request', function(done) { var app = express(); var called = 0; var count = 0; app.param('user', function(req, res, next, user) { called++; req.user = user; next(); }); app.get('/foo/:user', function(req, res, next) ...
<<<<<<< var mime = require('send').mime; var crc32 = require('buffer-crc32'); var basename = require('path').basename; var deprecate = require('util').deprecate; var proxyaddr = require('proxy-addr'); ======= var mime = require('connect').mime , deprecate = require('util').deprecate , proxyaddr = require('proxy-a...
<<<<<<< app.use(function(req, res){ var str = Array(1000).join('-'); ======= app.use(function (req, res) { var str = Array(1024 * 2).join('-'); >>>>>>> app.use(function (req, res) { var str = Array(1000).join('-'); <<<<<<< .expect('ETag', 'W/"3e7-8084ccd1"') .en...
<<<<<<< var http = require('http'); var path = require('path'); var mixin = require('utils-merge'); var escapeHtml = require('escape-html'); var sign = require('cookie-signature').sign; var normalizeType = require('./utils').normalizeType; var normalizeTypes = require('./utils').normalizeTypes; var setCharset = require...
<<<<<<< it('should accept headers option', function(done){ var app = express(); var headers = { 'x-success': 'sent', 'x-other': 'done' }; app.use(function(req, res){ res.sendfile('test/fixtures/user.html', { headers: headers }); }); request(app) ...
<<<<<<< 'auditLogResource', 'invoiceResource', 'settingsResource', 'paymentResource', 'shipmentResource', 'paymentGatewayProviderResource', 'orderResource', 'invoiceHelper', 'dialogDataFactory', 'merchelloTabsFactory', 'addressDisplayBuilder', 'salesHistoryDisplayBuilder', ======= ...
<<<<<<< it('correctly sets the value of the tile source', () => { assert.equal(subject.tile_source, sampleScene.tileSource); }); it('correctly sets the value of the layers object', () => { assert.equal(subject.layer_source, sampleScene.layers); }); it('...
<<<<<<< // FIXME: We should check for errors here? // Perform backward tick on rounds // WARNING: DB_WRITE modules.rounds.backwardTick(oldLastBlock, previousBlock, function () { // Delete last block from blockchain // WARNING: Db_WRITE ======= if (err) { // Fatal error, memory ...
<<<<<<< // ----------- Make the server listening ----------- server.listen(port, function () { // Activate the pool requests Request.activate() logger.info('Seeded all the videos') logger.info('Server listening on port %d', port) app.emit('ready') ======= // Run the migration scripts if nee...
<<<<<<< const config = require('config') const createTorrent = require('create-torrent') ======= const eachLimit = require('async/eachLimit') >>>>>>> const config = require('config') const createTorrent = require('create-torrent') <<<<<<< const http = config.get('webserver.https') === true ? 'https' : 'http' const ...
<<<<<<< var prevFile, parts, file, lineno, result = ""; ======= var lastFile = null, parts, file, lineno; >>>>>>> var prevFile = null, parts, file, lineno, result = ""; <<<<<<< ++count; file = encodeURI(options.uri + Util.rtrim(parts.shift().replace(baseP...
<<<<<<< import DS from 'ember-data'; moment.locale("zh-cn"); ======= >>>>>>>
<<<<<<< var css$1 = "#wildcard-container table.htCore {\r\n font-size: 18px;\r\n}\r\n\r\n#wildcard-container {\r\n border-top: solid thin #ddd;\r\n position: fixed;\r\n overflow: hidden;\r\n background-color: white;\r\n font-size: 14px;\r\n height: 250px;\r\n width: 100%;\r\n z-index: 3000;\r\n bottom: 0;\r\...
<<<<<<< const app = electron.app; const Menu = electron.Menu; const createMenuTemplate = require('./menutemplate'); const BrowserWindow = electron.BrowserWindow; ======= const { app, Menu, BrowserWindow, dialog } = electron; const menuTemplate = require('./menutemplate'); >>>>>>> const { app, Menu, BrowserWindow, di...