commit
stringlengths
40
40
subject
stringlengths
1
3.25k
old_file
stringlengths
4
311
new_file
stringlengths
4
311
old_contents
stringlengths
0
26.3k
lang
stringclasses
3 values
proba
float64
0
1
diff
stringlengths
0
7.82k
2bf040a4b1eb15f2ab6295a3d2546e1aa7d36a6b
Fix task runner
src/task.js
src/task.js
import { getLogger } from 'log4js'; import { build } from './builder'; const logger = getLogger('[TASK]'); const tasks = []; let working = false; /** * Run builder */ function runBuilder() { if (working || tasks.length === 0) return; working = true; const task = tasks.shift(); logger.info( ...
JavaScript
0.99998
@@ -511,16 +511,45 @@ () =%3E %7B%0A + working = false;%0A @@ -610,62 +610,8 @@ ();%0A - %7D else %7B%0A working = false;%0A @@ -935,12 +935,13 @@ Builder();%0A%7D +%0A
87441610a013e6dde0e70f7cc0e42d2c09b5e66b
add onLevelsAvailable configuration option
src/main.js
src/main.js
import { Events, Styler, UICorePlugin, template } from 'clappr' import pluginHtml from './public/level-selector.html' import pluginStyle from './public/style.scss' const AUTO = -1 export default class LevelSelector extends UICorePlugin { static get version() { return VERSION } get name() { return 'level_selecto...
JavaScript
0
@@ -3182,24 +3182,326 @@ nitialLevel%0A +%0A let onLevelsAvailable = this.core.options.levelSelectorConfig.onLevelsAvailable%0A if (onLevelsAvailable) %7B%0A if (typeof onLevelsAvailable === 'function')%0A levels = onLevelsAvailable(levels.slice())%0A else%0A throw new TypeError('onLevels...
7215559d91c7753591dd9c0043d74ac9a25f14cd
Tidy up code
src/main.js
src/main.js
var rev = "GITREF: __REVISION__"; function getGitref() { nw = window.open(""); nw.document.write(rev); return; } function leadingZero(number) { var retval = number; if (number < 10) { retval = '0' + number; } return retval; } function now() { var today = new Date(); retur...
JavaScript
0.000619
@@ -1,39 +1,4 @@ -var rev = %22GITREF: __REVISION__%22;%0A%0A func @@ -68,11 +68,30 @@ ite( -rev +%22GITREF: __REVISION__%22 );%0A @@ -99,16 +99,18 @@ return + 0 ;%0A%7D%0A%0Afun @@ -579,20 +579,41 @@ %0A%7D%0A%0A -var header = +function getHeader() %7B%0A return %22%3C! @@ -652,16 +652,20 @@ %3Cbody%3E%...
4abfa3b6af38add624ff55885c71d5c8f92c50c8
add back cap
src/main.js
src/main.js
import Vue from 'vue' import App from './App.vue' import router from './router' import store from './store' import Vuetify from 'vuetify'; require('../node_modules/vuetify/dist/vuetify.min.css'); Vue.config.productionTip = false Vue.use(Vuetify); new Vue({ router, store, render: h => h(App) }).$mount('#app')
JavaScript
0.000001
@@ -241,16 +241,171 @@ etify);%0A +Vue.filter('capitalize', function (value) %7B%0A if (!value) return ''%0A value = value.toString()%0A return value.charAt(0).toUpperCase() + value.slice(1)%0A%7D);%0A new Vue(
53bab58412552c1fc45ef34958534318a96ec545
remove outdated
src/main.js
src/main.js
var PIXI = require('pixi.js'); var World = require('./world'); import * as CoordinatesMapper from './CoordinatesMapper'; import {GameLoop} from './gameloop'; import {Network, NetworkListener} from './network'; import {Input} from './input'; import {Player} from './player'; const loop = new GameLoop(); const network ...
JavaScript
0.999997
@@ -713,33 +713,8 @@ %7D;%0A%0A -var keypressed = false;%0A%0A var @@ -1427,50 +1427,8 @@ ) %7B%0A -%09if (keypressed) %7B%0A%09%09//TODO do things%0A%09%7D%0A%0A %09//
055137e2f837574a15247af771b068e64473e3a7
fix async test typo
src/test.js
src/test.js
import defRules from './rules' import * as util from './util' const allDevices = Object.keys(util.devices).map(key => util.devices[key]) const severity = function (val) { switch (val) { case 0: case 'off': return 'off' case 1: case 'warn': return 'warn' case 2: case 'error': ...
JavaScript
0.008415
@@ -2501,16 +2501,17 @@ = await +p prev%0A
8d62f9370a2948002853a2f9b06a9ffea57849ea
Check if value is not null
src/type.js
src/type.js
export function isNumber(v) { return typeof v === "number"; } export function isString(v) { return typeof v === "string"; } export function isObject(v) { return typeof v === "object"; } export function isArray(v) { return Array.isArray(v); } export function isFunction(v) { return typeof v === "function"; ...
JavaScript
0.000553
@@ -183,16 +183,30 @@ %22object%22 + && v !== null ;%0A%7D%0A%0Aexp
329842d31c0ed28d762b0deaf664378bd9db050e
Optimize serialization of Objects to CSS strings to be about 5x faster (benchmark: https://esbench.com/bench/570daee0db965b9a009659f7)
src/util.js
src/util.js
import { NON_DIMENSION_PROPS } from './constants'; /** Copy own-properties from `props` onto `obj`. * @returns obj * @private */ export function extend(obj, props) { for (let i in props) if (hasOwnProperty.call(props, i)) { obj[i] = props[i]; } return obj; } /** Fast clone. Note: does not filter out non-own...
JavaScript
0.00013
@@ -1738,47 +1738,8 @@ ) %7B%0A -%09%09if (hasOwnProperty.call(s, prop)) %7B%0A%09 %09%09le @@ -1755,17 +1755,16 @@ %5Bprop%5D;%0A -%09 %09%09if (!e @@ -1777,16 +1777,39 @@ al)) %7B%0A%09 +%09%09if (str) str += ' ';%0A %09%09%09str + @@ -1825,17 +1825,16 @@ (prop);%0A -%09 %09%09%09str + @@ -1840,25 +1840,24 @@...
1e218371a2bdf969df17a57e69d90936e8b8f979
Allow logging with one argument
src/util.js
src/util.js
var fs = require('fs'); var log = require('util').log; var url = require('url'); var mode = process.env.NODE_ENV || 'development'; module.exports.mode = mode; function debugLog(label) { function toString(value) { if (typeof value === 'function') { return '[function]'; } return value.toString ? val...
JavaScript
0.000001
@@ -383,14 +383,48 @@ th %3E + 1) %7B%0A if (arguments.length %3E 2) %7B%0A + @@ -499,16 +499,18 @@ (' ');%0A + %7D else @@ -512,24 +512,26 @@ else %7B%0A + + string = toS @@ -553,18 +553,22 @@ %5B1%5D);%0A -%7D%0A + %7D%0A string @@ -601,24 +601,80 @@ '+ string;%0A + %7D else ...
f63e023d022fbf32a57c2fbce388f72149e3662c
switch over to using a class instead of style manipulation
src/show.js
src/show.js
import {AttachedBehavior, Property} from 'aurelia-templating'; export class Show { static annotations(){ return [ new AttachedBehavior('show'), new Property('value', 'valueChanged', 'show') ]; } static inject() { return [Element]; } constructor(element) { this.element = element; th...
JavaScript
0.000001
@@ -57,16 +57,207 @@ ting';%0A%0A +function addStyleString(str) %7B%0A var node = document.createElement('style');%0A node.innerHTML = str;%0A document.body.appendChild(node);%0A%7D%0A%0AaddStyleString('.aurelia-hide %7B display:none; %7D');%0A%0A export c @@ -502,55 +502,8 @@ nt;%0A - this.displayStyle = elem...
6883bf5e0e7e4d9c8a017ab636156156fdaeba09
fix immutable
src/util.js
src/util.js
import moment from 'moment-timezone'; import Range from './range'; export default class DateUtil { constructor(input, { format, timezone } = {}) { let mom; if (input instanceof DateUtil) mom = input.toMoment(); if (input instanceof Date) mom = moment(input); if (input instanceof moment) mom = input...
JavaScript
0.000131
@@ -803,56 +803,38 @@ -this.mom = moment(newDate);%0A%0A result = this +result = new DateUtil(newDate) ;%0A @@ -1101,47 +1101,37 @@ -this.mom = newMom;%0A%0A result = this +result = new DateUtil(newMom) ;%0A
de0e3ab6bffb8f06ca5c476a7cc9be3a0bf9684f
Update util.js
src/util.js
src/util.js
import React from 'react'; export function getValuePropValue(child) { const props = child.props; if ('value' in props) { return props.value; } if (child.key) { return child.key; } if (child.type && child.type.isSelectOptGroup && props.label) { return props.label; } throw new Error(`no key o...
JavaScript
0.000001
@@ -309,18 +309,31 @@ or(%60 -no +Need at least a key or valu @@ -328,16 +328,18 @@ key or +a value or @@ -339,21 +339,24 @@ alue or +a label + (only fo
fdf636771783982411eada648496e3a7b990051d
Add Vec2.zero
src/vec2.js
src/vec2.js
function Vec2(x, y) { this.x = x this.y = y } Vec2.prototype.add = function(p) { return new Vec2(this.x + p.x, this.y + p.y) } Vec2.prototype.sub = function(p) { return new Vec2(this.x - p.x, this.y - p.y) } Vec2.prototype.mul = function(p) { return new Vec2(this.x * p.x, this.y * p.y) } Vec2.prototype.min =...
JavaScript
0.999993
@@ -1555,16 +1555,43 @@ 2(0, 1)%0A +Vec2.zero = new Vec2(0, 0)%0A Vec2.one
c072c025b9321384805a92898b63c77cd2395e70
fix view setState bailout
src/view.js
src/view.js
import { Component, useState, useEffect, useMemo, memo } from 'react' import { observe, unobserve, raw, isObservable } from '@nx-js/observer-util' import { hasHooks } from './utils' export let isInsideFunctionComponent = false const COMPONENT = Symbol('owner component') const DUMMY_STATE = {} export default function ...
JavaScript
0
@@ -268,31 +268,8 @@ nt') -%0Aconst DUMMY_STATE = %7B%7D %0A%0Aex @@ -861,35 +861,26 @@ =%3E setState( -DUMMY_STATE +%7B%7D ),%0A @@ -2013,19 +2013,10 @@ ate( -DUMMY_STATE +%7B%7D ),%0A
33ba1d2e1e739076439e527fc1da4d9117e1719d
add setOctave method to note
src/note.js
src/note.js
var validation = require('./regex/note_name'), fifths = require('./primitives/fifths'), pitch_classes = require('./primitives/pitch_classes'), fifthsToPC = require('./convert/fifths_to_pc'), mtof = require('./convert/mtof'), transpose = require('./utilities/tran...
JavaScript
0
@@ -425,16 +425,396 @@ ss : 0,%0A + setOctave: function(octave) %7B%0A if (typeof octave !== 'number') %7B%0A throw new TypeError('Octave must be a number.');%0A %7D%0A this.octave = octave;%0A this.scientific = this.name + octave.toString(10);%0A ...
d393bbd15975244103b4458a0fec09607472e85f
Fix performance fixes when using lenses to multiple non-primitive props
src/model.js
src/model.js
import Kefir from "kefir" import Immutable from "immutable" const {fromJS} = Immutable const toJS = (val) => { if (val instanceof Immutable.Iterable || val instanceof Immutable.Map) { return val.toJS() } else { return val } } const splitPath = path => typeof path === "string" ? path.split(".") : path...
JavaScript
0.000001
@@ -765,33 +765,16 @@ cates()%0A - .map(toJS)%0A .t @@ -785,16 +785,16 @@ perty()%0A + %0A retur @@ -878,21 +878,23 @@ (state, -model +thisObs , emit, @@ -1033,21 +1033,23 @@ -model +thisObs %0A @@ -1070,37 +1070,27 @@ && -key in m ? m%5Bkey%5D : undefined +m.get && m.get(key) ...
92c0c3cdf964ecaa882e859f675a4818392c8979
use strict in src/panel.js.
src/panel.js
src/panel.js
const { Panel } = require("sdk/panel"); const tabs = require("sdk/tabs"); const { URL } = require("sdk/url"); const Pass = require("./pass"); let panel = module.exports = Panel({ contentURL: "./selector-panel.html", contentScriptFile: "./selector-panel.js", onShow: () => { panel.port.emit("about-to-select")...
JavaScript
0
@@ -1,16 +1,31 @@ +%22use strict%22;%0A%0A const %7B Panel %7D
baf82b910acbdd19b1f44ae4b628b7aad8a9ef3f
Remove log noise
src/tags.js
src/tags.js
/* jslint node:true */ 'use strict'; exports = module.exports = { init: init, get: get, del: del, update: update, cleanup: cleanup }; var MongoClient = require('mongodb').MongoClient, ObjectId = require('mongodb').ObjectID, async = require('async'), things = require('./things.js'), ...
JavaScript
0.000001
@@ -1302,42 +1302,8 @@ ) %7B%0A - console.log('Cleanup tags');%0A%0A @@ -1997,63 +1997,8 @@ r);%0A - else console.log('Tag cleanup done.');%0A
21c02e328a94d0a4125089405f393df50f45f2b6
Add tree.intersect.
src/tree.js
src/tree.js
import "heap"; function Tree(root) { this.root = root; } Tree.prototype = { leaves: tree_leaves, search: tree_search, filter: tree_filter }; function tree_leaves() { return this.filter(tree_true); } function tree_true() { return true; } function tree_filter(filter) { var leaves = [], node, ...
JavaScript
0.000001
@@ -140,16 +140,45 @@ e_filter +,%0A intersect: tree_intersect %0A%7D;%0A%0Afun @@ -635,24 +635,556 @@ leaves;%0A%7D%0A%0A +function tree_intersect(tree, intersect) %7B%0A var intersections = %5B%5D;%0A%0A (function intersectChild(A, B, depth) %7B%0A var a, b;%0A if (depth & 1) a = A, b = B;%0A else a =...
b1e7b35d514e6cf333540be899b62a561e3da08d
fix issue #1
src/util.js
src/util.js
/* * @Author: gbk * @Date: 2016-05-02 17:15:36 * @Last Modified by: gbk * @Last Modified time: 2016-06-30 15:26:50 */ 'use strict'; var fs = require('fs'); var os = require('os'); var path = require('path'); var cp = require('child_process'); var glob = require('glob'); var util = { // get absolute path to c...
JavaScript
0
@@ -102,21 +102,21 @@ 16-0 -6-30 15:26:50 +7-11 16:45:32 %0A*/%0A @@ -270,16 +270,48 @@ 'glob'); +%0Avar mkdirp = require('mkdirp'); %0A%0Avar ut @@ -2740,16 +2740,63 @@ pattern%0A + var baseDir = srcPattern.split('**')%5B0%5D;%0A gl @@ -3012,21 +3012,73 @@ ath. -basename(file +relative(baseDir, file)...
14202d50c88d94b618ef5f485ca98bb4d6672cc2
Use lodash utilities.
src/util.js
src/util.js
let util; util = {}; /** * Return direct children elements. * * @see http://stackoverflow.com/a/27102446/368691 * @param {HTMLElement} * @return {Array} */ util.elementChildren = (element) => { let childNodes, children, i; childNodes = element.childNodes; children = []; i = chil...
JavaScript
0
@@ -1,24 +1,92 @@ -let util;%0A%0Autil = %7B%7D +import assign from 'lodash/object/assign';%0A%0A%0Alet util;%0A%0Autil = %7B%7D;%0A%0Autil.assign = assign ;%0A%0A/ @@ -1018,16 +1018,18 @@ ts;%0A%7D;%0A%0A +%0A%0A export d
efcf34c7e505db2cf06c91cf76bbdd2b2bc008a9
fix lng lat order on translation
src/util.js
src/util.js
'use strict'; var mapboxgl = require('mapbox-gl'); module.exports.DOM = {}; /** * Captures mouse position * * @param {Object} e Mouse event * @param {Object} el Container element. * @returns {Point} */ module.exports.DOM.mousePos = function(e, el) { var rect = el.getBoundingClientRect(); return new mapboxg...
JavaScript
0.999934
@@ -3252,18 +3252,19 @@ %5B l -at +ong itude, l ongi @@ -3259,19 +3259,18 @@ itude, l -ong +at itude %5D%0A @@ -3645,9 +3645,9 @@ int%5B -1 +0 %5D, p @@ -3651,17 +3651,17 @@ , point%5B -0 +1 %5D %5D);%0A
c178bcd3e728dcddd6101f4d7c9412fa2950c024
fix typo causing headers to not get set
src/uxhr.js
src/uxhr.js
(function (root, factory) { if (typeof exports === 'object') { module.exports = factory(); } else if (typeof define === 'function' && define.amd) { define('uxhr', factory); } else { root.uxhr = factory(); } }(this, function () { return function (url, data, options) { data = data || ''; opt...
JavaScript
0.000001
@@ -1559,17 +1559,16 @@ s%5Bheader -s %5D);%0D%0A%09%09%7D
af824be551b23982a845e375d8e240865abf4af8
Add exit after sending
src/sales.js
src/sales.js
var mysql = require('mysql'); var nodemailer = require('nodemailer'); var db = require('../config/db'); var mail = require('../config/mail').error; var smtpConfig = require('../config/mail').smtpConfig; var parser = require('../lib/parser'); if(process.argv[2] !== 'individual' && process.argv[2] !== 'summary') { ret...
JavaScript
0.000001
@@ -1404,31 +1404,75 @@ ponse);%0A -return; +if(type == 'summary') %7B%0A process.exit();%0A %7D %0A %7D);%0A%7D%0A%0Afu
c161264a0aab887adf22b7f6a3ec9309479c2242
throw if timer already started
src/timer.js
src/timer.js
var Timer = function(interval) { this.interval = interval; this.eventHandlers = {}; }; Timer.prototype.on = function(event, handler) { var handlers = this.eventHandlers[event] || (this.eventHandlers[event] = []); handlers.push(handler); }; Timer.prototype.fire = function(event) { var args = Array.prototype....
JavaScript
0.000002
@@ -504,24 +504,102 @@ unction() %7B%0A + if (this._intervalId) %7B%0A throw new Error(%22Timer already started!%22);%0A %7D%0A%0A var self = @@ -769,16 +769,43 @@ valId);%0A + this._intervalId = null;%0A %7D;%0A%0Amodu
d30e5407e4e950514cbbe2d94a56ff3c1a290363
Remove dangerous URL paths when checking domain
src/utils.js
src/utils.js
'use strict'; (function () { var parseUrl = require('url-parse'); var parseDomain = require('parse-domain'); function error (message) { if (typeof process === 'object') { console.error(message); process.exit(1); // eslint-disable-line no-undef } else { throw new Error(message); } ...
JavaScript
0
@@ -414,45 +414,181 @@ -var urlInfo = parseUrl(url, parentUrl +// Remove path%0A parentUrlInfo = parseUrl('/', parentUrlInfo.href);%0A var urlInfo = parseUrl(url, parentUrl);%0A // Remove path%0A urlInfo = parseUrl('/', urlInfo.href );%0A%0A
2baa510463af66dd9dd2664af36a3bb019c79c01
Add images, gradients and colors support for sections backgrounds
src/utils.js
src/utils.js
export default { ksVueFpNav: { props: ['sections'], render (h, ctx) { const sections = this.sections return h( 'ul', { class: 'ksVueFpNav' }, sections.map((item, index) => h( 'item', { props: { item, index }, key: index } ) ...
JavaScript
0
@@ -1261,16 +1261,21 @@ ckground +Image : ctx.pr @@ -1288,16 +1288,85 @@ ckground +Image %7C%7C null,%0A backgroundColor: ctx.props.backgroundColor %7C%7C null
0bfbfb28431cc1835f40508bcc84b039f174fab1
add compare support
src/value.js
src/value.js
import React, {Component} from 'react' import fetch from './fetch' export class Value extends Component { componentDidMount () { const {api, id, file, freq, onPoll, prop} = this.props if (file || api) { fetch(file, api).then(res => { onPoll(id, res[prop]) }) // switch to setTimeou...
JavaScript
0
@@ -59,16 +59,50 @@ ./fetch' +%0Aimport %7BCompare%7D from './compare' %0A%0Aexport @@ -530,16 +530,25 @@ const %7B +compare, freq, id @@ -730,16 +730,71 @@ '%7D%3C/h2%3E%0A + %7Bcompare ? %3CCompare value=%7Bvalue%5Bid%5D%7D /%3E : ''%7D%0A %3C/
50ea8bd674896dea8c1548dc9d28aac61777ed84
Update stack.
stack/app.js
stack/app.js
// Create a stack object using psuedoclassical instantiation var Stack = function() { this.storage = []; this.len = 0; }; Stack.prototype.push = function(val) { this.storage.push(val); this.len++; }; Stack.prototype.pop = function() { this.len--; return this.storage.pop(); }; Stack.prototype.size = func...
JavaScript
0
@@ -178,18 +178,24 @@ rage -.push( +%5Bthis.len%5D = val -) ;%0A @@ -249,22 +249,8 @@ ) %7B%0A - this.len--;%0A re @@ -270,14 +270,20 @@ rage -.pop() +%5B--this.len%5D ;%0A%7D;
4ab0b40661b53f6d116518a7ad19788ea6c8e545
Prepare listener for handling whitelist & block buttons
stopflash.js
stopflash.js
/** * StopFlash * * https://github.com/JWhile/StopFlash * * stopflash.js */ // class StopFlashUI extends Builder function StopFlashUI() { this.super('div'); this.mainTab = new Builder('div'); this.content = new StopFlashTabs() .className('content') .addTab(this.mainTab) .add...
JavaScript
0
@@ -1737,32 +1737,58 @@ ngth %3E 0)%0A %7B%0A + var self = this;%0A%0A for(var @@ -2160,127 +2160,397 @@ er') -)%0A .append(new Builder('a')%0A .text(e.whitelist? '- Whitelist' : '+ Whitelist' +%0A .event('click', function()%0A ...
d41bd445e5c23ce6fbfac9c600dc176aa2ef30ad
Use Node.insertBefore() rather than domConstruct.place().
Container.js
Container.js
/** @module delite/Container */ define([ "dcl/dcl", "dojo/dom-construct", // domConstruct.place "./Widget" ], function (dcl, domConstruct, Widget) { /** * Widget that contains a set of Element children (either widgets or plain DOM nodes). * @mixin module:delite/Container * @augments module:delite/Widget */...
JavaScript
0
@@ -50,53 +50,8 @@ l%22,%0A -%09%22dojo/dom-construct%22, // domConstruct.place%0A %09%22./ @@ -79,22 +79,8 @@ dcl, - domConstruct, Wid @@ -552,17 +552,16 @@ s widget -s 's%0A%09%09 * @@ -857,305 +857,100 @@ %09// -I want to just call domConstruct.place(node, this.containerNode, insertIndex), but the counting...
8bd2ad8fa0c1d43faded463591e3664e8930e8d5
Make managers accessible only at core level
core/core.js
core/core.js
define([ 'd3', 'base/object', 'vizabi-config', <<<<<<< HEAD 'managers/events' ], function(d3, baseObject, config, events) { ======= 'managers/events/events', 'managers/layout/layout', 'managers/data/data', 'i18n' ], function(d3, baseObject, config, EventsManager, LayoutManager, DataMana...
JavaScript
0.000001
@@ -56,97 +56,8 @@ g',%0A -%3C%3C%3C%3C%3C%3C%3C HEAD%0A 'managers/events'%0A%5D, function(d3, baseObject, config, events) %7B%0A=======%0A @@ -248,567 +248,72 @@ ) %7B%0A - // Please remove me soon (when gruntfile is adjusted)%0A if (!window.d3) window.d3 = d3;%0A%3E%3E%3E%3E%3E%3E%3E 3710ae349918621d...
cdb9d2b9d07edd0364374837571bb3dbcf81a0ea
add custom protocol to the config (ie: https)
server/auth.js
server/auth.js
var passport = require("passport"), googleStrategy = require('passport-google-oauth').OAuth2Strategy; module.exports.init = function(config){ if (config.RequiresAuth) { if (config.AuthProviders.GoogleAuth) { var GOOGLE_CLIENT_ID = config.AuthProviders.GoogleAuth.GoogleClientId; var GOOGLE_CLIENT_...
JavaScript
0
@@ -384,33 +384,31 @@ var -googleCallbackURL +protocolSection = (conf @@ -422,27 +422,77 @@ nobP -ort) ? %22http://%22 + +rotocol) ? config.hobknobProtocol : %22http%22;%0A var portSection = ( conf @@ -501,22 +501,23 @@ .hobknob -Host + +Port) ? %22:%22 + c @@ -538,41 +538,63 @@ ort -+ %22/auth/ +:...
617f7af0fe3817bb0f9498794dcd4eb216155b34
switch to Date.now()
server/game.js
server/game.js
"use strict"; var Y = require('yui').YUI( { useSync: true }) .use ( 'oop' ); var mod_bw_util = require('./util.js'), game_cull_interval = 24 * 3600 * 1000, // 1 day (ms) game_count = 0; exports.init = function( /* map */ config) { var games = {}; setInterval(function() { var limit = new Dat...
JavaScript
0.000003
@@ -310,26 +310,16 @@ t = -new Date().getTime +Date.now () -
bd56ee581fc5fb607b195f2584272a6eb497d8a2
Update main.js
server/main.js
server/main.js
import { Meteor } from 'meteor/meteor'; import { HTTP } from 'meteor/http'; var config = require("./config.js"); var collection = require("../collection/collection.js"); var getinfoJS = require("./methods/getinfo.js"); var courseJS = require("./methods/course.js"); var Info = collection.info; var Course = collection.co...
JavaScript
0.000001
@@ -4506,32 +4506,76 @@ .getinfo(code);%0A + var openid = getinfoJS.getopenid(code);%0A var courseli @@ -4593,24 +4593,30 @@ JS.mycourse( +openid );%0A %0A %7D,
9801c2e267448341e2082a44eba337da2d8494b1
create route in express to save data
server/main.js
server/main.js
const express = require('express') const path = require('path') const webpack = require('webpack') const logger = require('../build/lib/logger') const webpackConfig = require('../build/webpack.config') const project = require('../project.config') const compress = require('compression') const app = express() app.use(co...
JavaScript
0
@@ -2569,16 +2569,75 @@ r)))%0A%7D%0A%0A +app.post('/save',function()%7B%0A console.log('saving');%0A%7D);%0A%0A module.e
9a1f6f984f7c6ffd72db01f922b97a9035e95839
Add IP address to state
src/server/stateManager.js
src/server/stateManager.js
'use strict'; const clientManager = require('./clientManager'); const dbg = require('debug')('anamorph:stateManager'); module.exports = new class StateManager { getState(id) { this.clientId = id; const client = clientManager.getClient(id); return client.authManager.getAuthData() .then(authData =>...
JavaScript
0
@@ -7,16 +7,41 @@ trict';%0A +const ip = require('ip'); %0Aconst c @@ -650,11 +650,11 @@ 0.1: -300 +808 0', @@ -897,16 +897,48 @@ %7D +,%0A localIp: ip.address(), %0A %7D
56c0970d7b6e0c5fcc6a48ae2be80cd72a12f46f
Add test to verify component registration
foundation-ui/mount/__tests__/MountService-test.js
foundation-ui/mount/__tests__/MountService-test.js
jest.dontMock('../MountPoint'); jest.dontMock('../MountService'); /* eslint-disable no-unused-vars */ const React = require('react'); /* eslint-enable no-unused-vars */ const MountService = require('../MountService'); describe('MountService', function () { class ReactComponent extends React.Component {}; const Fun...
JavaScript
0
@@ -392,24 +392,212 @@ ction () %7B%0A%0A + afterEach(function () %7B%0A MountService.unregisterComponent('register-test', ReactComponent);%0A MountService.unregisterComponent('register-test', FunctionalComponent);%0A %7D);%0A%0A it('shou @@ -1298,32 +1298,381 @@ row();%0A %7D);%0A%0A + it(...
4f6bfece5937cce8b827fddc61f056006753d6f0
add const FIELD_EXPLAINATION_SOURCE
src/main/helpers/csvProcessor.js
src/main/helpers/csvProcessor.js
import {uniq, isEmpty} from 'lodash'; import sortFolderContentFields from './sortFolderContentFields'; import DICTIONARY_LANGS from './../constants/dictionaryLangs'; const FIELD_PAGE_NUM = 'page-num'; const FIELD_EXPLAINATION_NOTE = 'explaination-note'; const RE_SOURCE_ENTRY = /^source-entry-(.+)$/; const RE_EXPLAINA...
JavaScript
0.000003
@@ -247,16 +247,73 @@ n-note'; +%0Aconst FIELD_EXPLAINATION_SOURCE = 'explaination-source'; %0A%0Aconst @@ -2529,37 +2529,41 @@ lse if ( -'explaination-source' +FIELD_EXPLAINATION_SOURCE === key @@ -2590,37 +2590,41 @@ ndex%5D = -'explaination-source' +FIELD_EXPLAINATION_SOURCE ;%0A @@ -5226,37 +5226,41 ...
ef2ff48aef52fb27ca841b24307912a4c8cf9b04
Make the "cancel" link lowercase, for extra de-emphasis
components/ContactForm.js
components/ContactForm.js
import React, { Component, PropTypes } from 'react' import { Link } from 'react-router' class ContactForm extends Component { /* const ContactForm = React.createClass({ getInitialState () { return { ...this.props.contact } } */ constructor(props, context) { super(props, context) this.state = { ......
JavaScript
0.003995
@@ -2899,17 +2899,17 @@ -right%22%3E -C +c ancel%3C/L
53ad7dc8f1095bd19754945bbf65d09d33716f6a
Use dom parser to create div element
capstone/src/main/webapp/dashboard-loader.js
capstone/src/main/webapp/dashboard-loader.js
document.body.prepend(dynamicButton); function createClassroom() { var auth2 = gapi.auth2.getAuthInstance(); var name = ""; var email = ""; if (auth2.isSignedIn.get()) { name = auth2.currentUser.get().getBasicProfile().getName(); email = auth2.currentUser.get().getBasicProfile().getEmai...
JavaScript
0
@@ -1208,218 +1208,68 @@ ing( -string, %22text/html%22);%0A%0A const divElement = document.createElement(%22div%22);%0A const h2Element = document.createElement(%22h2%22);%0A const aElement = document.createElement(%22a%22);%0A +%60%0A %3Cdiv class=%22classroom%22%3E%0A -%0A +%3...
126b621366eeda3bdd6e4171b7860a39e15bc7ee
Fix nodes maximum Y position when graph is drawing
components/Graph/Graph.js
components/Graph/Graph.js
import React, { Component, PropTypes } from 'react'; import ReactDOM from 'react-dom'; import d3 from 'd3'; import styles from './Graph.css' import NodeComponent from '../Node/Node'; import LinkComponent from '../Link/Link'; let Node = React.createFactory(NodeComponent); let Link = React.createFactory(LinkComponent);...
JavaScript
0.000001
@@ -472,24 +472,96 @@ inks %7C%7C %5B%5D;%0A + this.parentWidth = document.getElementById('root').clientWidth;%0A %7D%0A%0A c @@ -1561,16 +1561,42 @@ rops.x = + Math.min(%0A index * @@ -1638,16 +1638,57 @@ 0)) + 50 +,%0A this.parentWidth - 100) ;%0A
941bdea5028c995c9fe3de6de1aec2f947dcf55d
Fix colors for tangent space debugging
Source/Scene/createTangentSpaceDebugPrimitive.js
Source/Scene/createTangentSpaceDebugPrimitive.js
/*global define*/ define([ '../Core/DeveloperError', '../Core/Color', '../Core/ColorGeometryInstanceAttribute', '../Core/GeometryInstance', '../Core/GeometryPipeline', './Primitive', './PerInstanceColorAppearance' ], function( DeveloperError, C...
JavaScript
0.000002
@@ -58,33 +58,8 @@ r',%0A - '../Core/Color',%0A @@ -283,23 +283,8 @@ or,%0A - Color,%0A @@ -2356,26 +2356,16 @@ tribute( -new Color( 1.0, 0.0 @@ -2367,33 +2367,32 @@ , 0.0, 0.0, 1.0) -) %0A %7D @@ -2757,34 +2757,24 @@ ceAttribute( -new Color( 0.0, 1.0, 0. @@ -2772,33 +2772...
da5bc8ed0d3bcdb562df55f4519800c4f44194c2
add tag to notifications so that they dont flood
starwarspwa/static/starwarspwa/javascripts/service-worker.js
starwarspwa/static/starwarspwa/javascripts/service-worker.js
self.importScripts('/static/starwarspwa/javascripts/idb-helpers.js'); var cacheName = 'cache-one'; var urlsToCache = [ '/', '/offline/', '/static/starwarspwa/stylesheets/starwars.css', '/static/starwarspwa/javascripts/starwars.js', '/static/starwarspwa/javascripts/jquery.js', '/static/starwars...
JavaScript
0
@@ -2537,24 +2537,63 @@ on();%0A %7D%0A + notification.tag = 'transmission';%0A e.waitUn
3007fafc75145f638747413891b970c7971acf5d
Add Input field description
components/input/Input.js
components/input/Input.js
import React, { Component, createElement } from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import { IconChevronUpSmallOutline, IconChevronDownSmallOutline, IconWarningBadgedSmallFilled, } from '@teamleader/ui-icons'; import InputMetaPropTypes from './InputMetaPropTypes'; import Coun...
JavaScript
0.000002
@@ -599,24 +599,59 @@ Types.bool,%0A + description: PropTypes.string,%0A icon: Pr @@ -3061,32 +3061,248 @@ /%3E;%0A %7D%0A %7D%0A%0A + renderDescription () %7B%0A const %7B description, inverse %7D = this.props;%0A%0A if(description) %7B%0A return %3CTextSmall color=%7Binverse ? 'white' : 'ne...
e91f0d57a9145a883e1a6a607586b4477fa88180
Fix setBasename for LocalDirectory
glark/app/js/services/filesystem/LocalDirectory.js
glark/app/js/services/filesystem/LocalDirectory.js
/* Copyright 2013 Florent Galland & Luc Verdier This file is part of glark.io. glark.io is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or at your option) any later versio...
JavaScript
0.000001
@@ -3500,122 +3500,419 @@ -/* Set the directory basename.*/%0A LocalDirectory.prototype.setBasename = function (basename) %7B%0A +LocalDirectory.prototype.onReady = function (callback) %7B%0A this.readyPromise.then(callback);%0A %7D;%0A %0A /* Set the directory b...
838bc9b49a40e7ac7623963f46cb4533cb6be718
Fix build config
web/conf/webpack.config.js
web/conf/webpack.config.js
var path = require("path"); var webpack = require("webpack"); var ExtractTextPlugin = require("extract-text-webpack-plugin"); var Clean = require("clean-webpack-plugin"); var git = require('git-rev-sync') // BASE APP DIR var root_dir = path.resolve(__dirname, ".."); // FUNCTION TO EXTRACT CSS FOR PRODUCTION function ...
JavaScript
0.000001
@@ -3797,18 +3797,16 @@ -// alias: %7B lzma @@ -3801,20 +3801,26 @@ alias: %7B -lzma +bytebuffer : path.r @@ -3830,32 +3830,36 @@ lve(root_dir, %22. +./dl /node_modules/lz @@ -3860,24 +3860,18 @@ les/ -lzma/src/lzma.js +bytebuffer %22)%7D, @@ -4077,28 +4077,8 @@ les%22 -, %22bower_components%22 %5D,%0A ...
c7a0948921cacf00612ff7e28411c23058dfb062
fix event
web/extensions/treegrid.js
web/extensions/treegrid.js
define(['../override', '../jquery', '../datasources/synctreegriddatasource', '../datasources/defaulttreesource'], function(override, $, SyncTreeGridDataSource, DefaultTreeSource) { "use strict"; return { loadFirst: ['templating', 'grouping'], init: function(grid, pluginOptions) { ...
JavaScript
0.000698
@@ -1369,15 +1369,8 @@ ion( -event, ui)
65672f9374b92b706583d9c4d756262390850ef7
Add option to watch for changes in svg icons sources
grunt/bs-init.js
grunt/bs-init.js
// Configuration var browserSync = require('browser-sync'); // Init browserSync manually module.exports = function(grunt) { grunt.registerTask('bs-init', function () { var done = this.async(); browserSync({ server: 'src/', files: [ 'src/*.html', ...
JavaScript
0
@@ -301,16 +301,54 @@ .html',%0A + // 'src/icons/*.svg',%0A
5095fb626883829d355f9d31ae3e352397fe584f
Fix use-orders mixin
src/expression/mixin/use-orders.js
src/expression/mixin/use-orders.js
import mixin from './use-many' import { upperFirst } from 'lodash' /** * @param {String} field * @returns {Function} */ export default function (field = 'orders') { /** * @param {Class} parent * @returns {Class} */ return (parent) => class extends mixin(field)(parent) { /** * @param {Any} col...
JavaScript
0.000001
@@ -25,16 +25,49 @@ e-many'%0A +import Literal from '../literal'%0A import %7B @@ -634,22 +634,36 @@ ().push( +Literal.from( value) +) %0A r
161b47aeb7365fef7e8be03ffc33643d4eae842f
Add todo for java.
src/foam/build/DirCrawlModelDAO.js
src/foam/build/DirCrawlModelDAO.js
/** * @license * Copyright 2018 The FOAM Authors. All Rights Reserved. * http://www.apache.org/licenses/LICENSE-2.0 */ foam.CLASS({ package: 'foam.build', name: 'DirCrawlModelDAO', extends: 'foam.dao.PromisedDAO', requires: [ 'foam.build.Lib', 'foam.core.Script', 'foam.dao.EasyDAO', 'foam.d...
JavaScript
0
@@ -3811,37 +3811,194 @@ DO: -Do something with java +Add a JavaClass model for manually written java classes.%0A // Parse the package/name from the .java and then store them in the DAO as%0A // well. Also do the same for swift files -? +. %0A
a33bed1cb253e0251a9fbbfc52515cda4d3be2bc
Fix rare React component lifecycle error
subscribe.js
subscribe.js
var React = require('react') function isInclude (subscriptions, subscription) { return subscriptions.some(function (i) { return i[1] === subscription[1] }) } function getSubscriptions (subscriber, props) { var subscriptions = subscriber(props) if (!Array.isArray(subscriptions)) { subscriptions = [subs...
JavaScript
0.000011
@@ -4335,32 +4335,38 @@ is.subscriptions + %7C%7C %5B%5D )%0A this.las
051c1a8eec6c28b08e7fe9ea6dddfb5f3c5f458b
fix arrow links
navigation/directives.js
navigation/directives.js
'use strict'; angular.module('algorea') .directive('displayItem', ['itemService', 'pathService', '$rootScope', function (itemService, pathService, $rootScope) { return { restrict: 'EA', scope: false, template: function(element, attrs) { if (attrs.from == 'menu') { return '<sp...
JavaScript
0.000001
@@ -3284,16 +3284,34 @@ '+nextID +, null, null, null ), state @@ -3367,16 +3367,41 @@ '+nextID +, selr: null, viewr: null %7D%7D;%0A @@ -3666,16 +3666,34 @@ s.path-1 +, null, null, null ), state @@ -3769,16 +3769,41 @@ s.path-1 +, selr: null, viewr: null %7D%7D;%0A @@ -4056,16 +4056,34 @@ eviousID +, n...
9cdaf77344c288bba64dcc6369787dbbf0b9acdc
fix git commit-msg hook to work with git gui
tasks/lib/validate-commit-msg.js
tasks/lib/validate-commit-msg.js
#!/usr/bin/env node /** * Git COMMIT-MSG hook for validating commit message * See https://docs.google.com/document/d/1rk04jEuGfk9kYzfqCuOlPTSJw3hEDZJTBN5E5f1SALo/edit * * Installation: * >> cd <angular-repo> * >> ln -s ../../validate-commit-msg.js .git/hooks/commit-msg */ var fs = require('fs'); var util = requ...
JavaScript
0
@@ -326,16 +326,44 @@ util');%0A +var path = require('path');%0A %0A%0Avar MA @@ -2107,22 +2107,19 @@ e;%0A%0A -%0A // -hacky star +lame tes t if @@ -2133,183 +2133,177 @@ git -%0Avar commitMsgFile = process.argv%5B2%5D;%0Aif (commitMsgFile && commitMsgFile.indexOf('COMMIT_EDITMSG') !== -1) %7B%0A var incorrec...
313465e500939447820f805836dbe790a8318384
Remove 'Each theme has...' paragraph.
src/docs/design/Resources.js
src/docs/design/Resources.js
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import DocsArticle from '../../components/DocsArticle'; const ROOT = "https://github.com/grommet/grommet-design/raw/master"; export default class Resources extends Component { render () { return ( ...
JavaScript
0.000001
@@ -630,501 +630,8 @@ p%3E%0A%0A - %3Cp%3EThe following sections are divided by theme (Grommet,%0A Hewlett Packard Enterprise, and HP Inc). Each theme has all%0A the resources for each design%0A tool: %3Ca href=%22http://bohemiancoding.com/sketch/%22%3ESketch%3C/a%3E%0A ...
a1171d25cdb48c147b405e3173828a8de2dc735b
Fix @inquirer/confirm formatted output value (#918)
packages/confirm/index.js
packages/confirm/index.js
const chalk = require('chalk'); const { createPrompt, useState, useKeypress } = require('@inquirer/core/hooks'); const { isEnterKey } = require('@inquirer/core/lib/key'); const { usePrefix } = require('@inquirer/core/lib/prefix'); module.exports = createPrompt((config, done) => { const [status, setStatus] = useState...
JavaScript
0
@@ -789,31 +789,16 @@ an(value - ? 'yes' : 'no' );%0A %7D e
7fa1def78c9878697ee8154dbbf111df953fafcb
Refactor DisplayState to remove references to glyph specific objects
terminal.js
terminal.js
var Overprint = { Char: { NULL: ' ', SPACE: ' ' }, Color: { BLACK: '#000', WHITE: '#fff' }, Cell: { WIDTH: 14, HEIGHT: 14 } }; Overprint.Glyph = function(character, color, bgColor) { return { char: character || Overprint.Char.NULL, color: color || Overprint.Color.WHITE, bgColor: bgColor || Ov...
JavaScript
0
@@ -441,16 +441,66 @@ eight;%0A%0A +%09var cell = this._emptyCell = Overprint.Glyph();%0A%0A %09canvas. @@ -691,33 +691,27 @@ ate( -this._ width, -this._ height +, cell );%0A%7D @@ -1498,16 +1498,22 @@ , height +, cell ) %7B%0A%09fun @@ -1792,24 +1792,49 @@ ht = height; +%0A%09this._emptyCell = cell; %0A%0A%...
7b2b1125d158f7287c81ac6e497c5141f7aa1052
Add CSV generation facility to Analyze Tasks
src/mmw/js/src/analyze/models.js
src/mmw/js/src/analyze/models.js
"use strict"; var $ = require('jquery'), lodash = require('lodash'), Backbone = require('../../shim/backbone'), settings = require('../core/settings'), utils = require('../core/utils'), coreModels = require('../core/models'), turfArea = require('turf-area'); var LayerModel = Backbone.Model.ext...
JavaScript
0
@@ -39,22 +39,17 @@ '),%0A -lodash +_ = requi @@ -105,24 +105,105 @@ backbone'),%0A + turfArea = require('turf-area'),%0A toWKT = require('wellknown').stringify,%0A settings @@ -268,24 +268,24 @@ re/utils'),%0A + coreMode @@ -318,45 +318,8 @@ ls') -,%0A turfArea = require('turf-area') ;%0A...
bc64d3c5f4a96c7540697a7624addd7d563c0ed1
Add support for nested groups in log (Chrome console + browser).
test/run.js
test/run.js
(function() { var driver; if (typeof require !== "undefined") { driver = require("./driver.js"); require("./tests.js"); require("./tests-harmony.js"); } else { driver = window; } var htmlLog = typeof document === "object" && document.getElementById('log'); var htmlGroup; function group(...
JavaScript
0
@@ -293,18 +293,28 @@ tmlGroup + = htmlLog ;%0A - %0A funct @@ -347,14 +347,51 @@ html -Log) %7B +Group) %7B%0A var parentGroup = htmlGroup; %0A @@ -554,23 +554,27 @@ ;%0A -htmlLog +parentGroup .appendC @@ -717,25 +717,87 @@ -htmlGroup = null; +if (htmlGroup) %7B%0A htmlGroup = htmlGrou...
7f6fad87080ce0bf14f0ad7e7b45f066add519cd
Fix text and background color not applying
newtab/newtab.js
newtab/newtab.js
const tabSize = 8; const getRandomInArray = array => { return array[Math.floor(Math.random() * array.length)]; } const $ = (selector, from = document) => { return from.querySelector(selector); }; const $$ = (selector, from = document) => { return Array.from(from.querySelectorAll(selector)); }; const getRandomInFold...
JavaScript
0.000101
@@ -1373,16 +1373,58 @@ %0A%09%09%7D%0A%09%60; +%0A%09document.head.appendChild(styleElement); %0A%0A%09let c
a7e6fd8e49ed8b9cec85d3f3159c99964fd3a5dc
remove console.log
slack-oauth.js
slack-oauth.js
module.exports = function (req, res, next) { var request = require('request'); if ( req.query.code ) { console.log('Code URL Query Param: ' + req.query.code); request.post({url:'https://slack.com/api/oauth.access', form: { client_id: process.env.CLIENT_ID, client_secret: process.env.CLIENT_SEC...
JavaScript
0.000006
@@ -394,49 +394,8 @@ )%7B %0A - //console.log(httpResponse);%0A
f415314572a5b5eec521179ac953a5246363e228
Update str_replace.js
functions/strings/str_replace.js
functions/strings/str_replace.js
function str_replace(search, replace, subject, count) { // discuss at: http://phpjs.org/functions/str_replace/ // original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net) // improved by: Gabriel Paderni // improved by: Philip Peterson // improved by: Simon Willison (http://simonwillison.net) // imp...
JavaScript
0.000001
@@ -1146,16 +1146,172 @@ o, mars' +%0A // bugfixed by: Glen Arason (http://CanadianDomainRegistry.ca)%0A // example 3: str_replace(Array('S','F'),'x','ASDFASDF');%0A // returns 3: 'AxDxAxDx' %0A%0A var @@ -1604,16 +1604,318 @@ cat(s);%0A + %0A if(typeof(search) == 'object' && typeof(replace) == 'string' )...
0bc3fc71f343074cee825338eedd0ba3ba7ffcc2
Fix Unreachable Code (#643)
ui/raidboss/data/02-arr/raid/t13.js
ui/raidboss/data/02-arr/raid/t13.js
'use strict'; [{ zoneRegex: /The Final Coil Of Bahamut - Turn \(4\)/, timelineFile: 't13.txt', timelineTriggers: [ { id: 'T13 Dive Warning', regex: /Megaflare Dive/, beforeSeconds: 5, infoText: { en: 'Stack Center for Dives', }, }, ], triggers: [ { id: ...
JavaScript
0
@@ -1210,34 +1210,32 @@ s%5B1%5D == data.me) - %7B %0A retur @@ -1237,18 +1237,16 @@ return;%0A - @@ -1294,17 +1294,16 @@ 'BLU') %7B -%7D %0A
8c9e2cfb386386fbd699ee97d9357d1946b7b379
Allow ember-get-config conflict
config/dependency-lint.js
config/dependency-lint.js
/* eslint-env node */ 'use strict'; module.exports = { allowedVersions: { 'ember-get-config': '0.5.0 || ^1.0.0', }, };
JavaScript
0
@@ -99,19 +99,20 @@ ': ' -0.5 +%5E1.0 .0 %7C%7C %5E -1 +2 .0.0
e254bc2723e55d0c88668bb839d8ba4ad2d2f2df
Allow adding new connection from connection picker
client/src/queryEditor/ConnectionDropdown.js
client/src/queryEditor/ConnectionDropdown.js
import Select from 'antd/lib/select'; import React from 'react'; import { ConnectionsContext } from '../connections/ConnectionsStore'; const { Option } = Select; function ConnectionDropdown() { return ( <ConnectionsContext.Consumer> {context => ( <Select showSearch placeholder=...
JavaScript
0
@@ -42,13 +42,73 @@ ort -React +Icon from 'antd/lib/icon';%0Aimport React, %7B useContext, useState %7D fro @@ -192,136 +192,607 @@ e';%0A -%0Aconst %7B Option %7D = Select;%0A%0Afunction ConnectionDropdown() %7B%0A return (%0A %3CConnectionsContext.Consumer%3E%0A %7Bcontext =%3E (%0A +import Connection...
a412be1591bc236ea2bf5ce4492b9f603f93191c
Fix save username
src/js/pages/AnswerUsernamePage.js
src/js/pages/AnswerUsernamePage.js
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { SOCIAL_NETWORKS, SOCIAL_NETWORKS_NAMES, FACEBOOK_SCOPE } from '../constants/Constants'; import Input from '../components/ui/Input/Input.js'; import ErrorMessage from '../components/ui/ErrorMessage/ErrorMessage.js'; import translate f...
JavaScript
0
@@ -534,76 +534,8 @@ s';%0A -import RouterActionCreators from '../actions/RouterActionCreators';%0A impo @@ -2423,24 +2423,16 @@ ickSave( -username ) %7B%0A @@ -2439,135 +2439,229 @@ -let user = %7Busername: username%7D;%0A LoginActionCreators.preRegister(user).then(() =%3E %7B%0A +const %7Bvalidat...
b114af5c630f0c9157d1099303d4e99b5cb9d3ce
Refactor variable name
src/js/renderer/views/dirPicker.js
src/js/renderer/views/dirPicker.js
"use strict"; import DIR_PICKER_TEMPLATE from '../templates/dirPicker.html'; import _ from 'underscore'; import path from 'path'; import dirPickerAppStateModel from '../models/dirPickerAppState'; import {LayoutView} from 'backbone.marionette'; export default class DirPickerView extends LayoutView.extend( { classNam...
JavaScript
0.000004
@@ -148,21 +148,16 @@ AppState -Model from '. @@ -407,13 +407,8 @@ tate -Model ,%0A
dc9f3aed9c76b834f181201b3af9c9cd9eba73e7
edit mongodb
config/env/development.js
config/env/development.js
'use strict'; var defaultEnvConfig = require('./default'); module.exports = { db: { uri: process.env.MONGOHQ_URL || process.env.MONGOLAB_URI || 'mongodb://root:abc123@ds043002.mongolab.com:43002/yasuweb' + '/mean-dev', options: { user: '', pass: '' }, // Enable mongoose debug mode de...
JavaScript
0.000001
@@ -208,22 +208,8 @@ web' - + '/mean-dev' ,%0A
f6a46f4438895c06d0da05d0dece86e91de366c6
instructions change
config/example_secrets.js
config/example_secrets.js
// Copy this into secrets.js and add your own info. None of the auth routes are actually required, but the other stuff is essential. module.exports = { db: process.env.MONGODB || 'mongodb://localhost:27017/databaseName', sessionSecret: process.env.SESSION_SECRET || 'Your Session Secret goes here', server_script...
JavaScript
0.999992
@@ -1,19 +1,19 @@ // -Copy +Rename this -in to s
8c996a12376f601ddc471980136a2895e78543c1
Revert "Revert "[webpack] Drop graphql-js and relay network server from client bundles.""
webpack/envs/baseConfig.js
webpack/envs/baseConfig.js
// @ts-check const path = require("path") const webpack = require("webpack") const { getEntrypoints } = require("../utils/getEntrypoints") const { NODE_ENV, basePath, isCI } = require("../../src/lib/environment") exports.baseConfig = { mode: NODE_ENV, devtool: "cheap-module-source-map", stats: "errors-only", ...
JavaScript
0
@@ -140,16 +140,34 @@ %0Aconst %7B +%0A BUILD_SERVER,%0A NODE_EN @@ -168,16 +168,18 @@ ODE_ENV, +%0A basePat @@ -184,14 +184,17 @@ ath, +%0A isCI - +,%0A %7D = @@ -1570,16 +1570,59 @@ %7D),%0A + // Remove moment.js localization files%0A new @@ -1669,16 +1669,20 @@ ment$/), +%0A // Re...
594e7b219f88e9fb787477b0118860fff7b5fcdf
Add WeakMap to audit log
gruntfile.js
gruntfile.js
/* * Copyright 2013 The Polymer Authors. All rights reserved. * Use of this source code is governed by a BSD-style * license that can be found in the LICENSE file. */ module.exports = function(grunt) { var banner = [grunt.file.read('LICENSE'), '// @version ' + grunt.file.readJSON('package.json').version, ''].join...
JavaScript
0
@@ -2245,16 +2245,42 @@ tform',%0A + '../WeakMap',%0A
3d8ce95d7647d0c3f1edc397aa9cd34eed22318e
Load “release” task.
gruntfile.js
gruntfile.js
/*global module:true*/ (function() { "use strict"; var pkg, toConcat = [ "src/external/matchmedia.js", "src/picturefill.js" ], supportTypes = ""; module.exports = function(grunt) { // Project configuration. grunt.initConfig({ // Metadata. pkg: pkg = grunt.file.readJSON("picturefill.json"), ...
JavaScript
0
@@ -2913,16 +2913,57 @@ pages%22); +%0A grunt.loadNpmTasks(%22grunt-release%22); %0A%0A gr
32547bf5f8c576efde9c085da7e99a188227a5c4
Update Texts.js
example/src/components/Texts.js
example/src/components/Texts.js
import React from 'react'; import { connect } from 'react-redux'; import { Loc } from 'redux-react-i18n'; const mapStateToProps = ({ form: { countForm: {values: {count}} } }, ownProps ) => ({ count }); const Texts = ({ count }) => { return <div className='texts'> <p> <h3><L...
JavaScript
0.000001
@@ -18,17 +18,16 @@ 'react' -; %0Aimport @@ -56,17 +56,16 @@ t-redux' -; %0Aimport @@ -95,17 +95,16 @@ ct-i18n' -; %0A%0Aconst @@ -144,16 +144,17 @@ tForm: %7B + values: @@ -154,22 +154,25 @@ alues: %7B + count -%7D + %7D %7D %7D %7D, o @@ -185,16 +185,17 @@ s ) =%3E ( + %7B%0A co @@ -199,18 +1...
8d3159b142fdd5db636dbb5c43b3d32e197ca974
Update test case.
assets/js/modules/thank-with-google/components/setup/SetupMain.test.js
assets/js/modules/thank-with-google/components/setup/SetupMain.test.js
/** * SetupMain component tests. * * Site Kit by Google, Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0...
JavaScript
0
@@ -3695,160 +3695,121 @@ %0A%0A%09%09 -// TODO: Update this assertion to match the new UI.%0A%09%09expect( container ).toHaveTextContent(%0A%09%09%09'TODO: UI to create publication - SetupCreatePublication +expect( container ).toHaveTextContent(%0A%09%09%09'To get started, create an account. Currently available only ...
e34dc435e423f5e49b74529eeee6ae842bd3d63c
Define PlayDateCreate component
PuppyPlayDate/PlayDateCreate.js
PuppyPlayDate/PlayDateCreate.js
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, ListView, Navigator, Image, TouchableHighlight } from 'react-native'; class PlayDateCreate extends Component { render() { return ( <View style={styles.container}> <Text style={styles.text}> ...
JavaScript
0
@@ -143,16 +143,40 @@ ighlight +,%0A TextInput,%0A Picker, %0A%7D from @@ -233,16 +233,91 @@ onent %7B%0A + constructor(props) %7B%0A super(props);%0A this.state = %7B text: %22%22 %7D%0A %7D%0A render @@ -404,244 +404,1579 @@ les. -text%7D%3E%0A This is Dog Profile%0A %3C/Text%3E%0A ...
852d950867cb2c2949a13bd719a6b9d108708355
change controller error restriction
hint-controllers.js
hint-controllers.js
'use strict'; var nameToControllerMatch = {}, controllers = {}, hintLog = angular.hint = require('angular-hint-log'), MODULE_NAME = 'Controllers', SEVERITY_ERROR = 1, SEVERITY_WARNING = 2; /** * Decorates $controller with a patching function to * log a message if the controller is instantiated on the window...
JavaScript
0.000006
@@ -975,21 +975,19 @@ trl -! += == ' -function +string ') %7B
805f28145ba5b52e122a290abd44ca2a2fbcfb7f
Add CSS classes to DualView
src/foam/u2/view/DualView.js
src/foam/u2/view/DualView.js
/** * @license * Copyright 2016 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
JavaScript
0
@@ -1278,28 +1278,139 @@ this -.add(a).nbsp().add(b +%0A .start(a).addClass( this.myClass('viewa') ).end()%0A .nbsp()%0A .start(b).addClass( this.myClass('viewb') ).end( );%0A
2200db12cbc3c54cd4b10298e7ec2765924fa057
rename from $cordovaProgressIndicator --> $cordovaProgress be consistent with docs
src/plugins/progressIndicator.js
src/plugins/progressIndicator.js
// install : cordova plugin add org.pbernasconi.progressindicator // link : http://pbernasconi.github.io/cordova-progressIndicator/ angular.module('ngCordova.plugins.progressIndicator', []) .factory('$cordovaProgressIndicator', ['$q', function ($q) { return { showSimple: function (_dim) ...
JavaScript
0
@@ -226,33 +226,24 @@ dovaProgress -Indicator ', %5B'$q', fu @@ -2720,8 +2720,9 @@ %0A%0A %7D%5D); +%0A
fdaf1927dcdcd5eb058a8f118e26c9dd234f26bc
fix test.
test/artilces.controller.test.js
test/artilces.controller.test.js
var utils = require('./utils') , request = require('supertest') , should = require('should') , express = require('express') , mongoose = require('mongoose'); var app = require('../app.js'); var Article = mongoose.model('Article'); describe('Article API CURD tests', function (argument) { beforeEach(...
JavaScript
0.000001
@@ -1,12 +1,27 @@ +'use strict';%0A%0A var utils @@ -315,16 +315,39 @@ ent) %7B%0A%0A + var article = null;%0A%0A before
055809157709744b8492f4aeeba3a83a9d3f6485
update test assertion/reporters/spec change dependency name
test/assertion/reporters/spec.js
test/assertion/reporters/spec.js
var chalk = require('../../../src/util/colorz'); var diff = require('../variable-diff'); var figures = require('../../../src/string/figures'); var helper = require('../report-helper'); var INDENT = ' '; function indentLine(line) { return INDENT + ' ' + line; } function handleTest(test) { var text; var time ...
JavaScript
0
@@ -125,23 +125,23 @@ /string/ -figures +FIGURES ');%0Avar
df3ba798515f634c48e8ba7d432bc346eadeeede
Replace var to let declaration
addon/instance-initializers/flexberry-logging.js
addon/instance-initializers/flexberry-logging.js
/** @module ember-flexberry */ import Ember from 'ember'; /** Override methods handlers of `Ember.Logger` for save message into application log. @method initialize @for FlexberryLoggingService */ export function initialize(applicationInstance) { /** * flexberry-logging service for transmit error/warn...
JavaScript
0.000001
@@ -561,19 +561,19 @@ */%0A -var +let flexber @@ -1793,35 +1793,35 @@ nction () %7B%0A -var +let message = _merg @@ -2853,19 +2853,19 @@ ) %7B%0A -var +let ret = ' @@ -2876,19 +2876,19 @@ for ( -var +let i = 0; @@ -3017,19 +3017,19 @@ ) %7B%0A -var +let message @@ -3057,11 +3057,11 @...
153ab3087163fa56b458ad04aa27338b5da0f496
Fix relationship
admin/client/views/item.js
admin/client/views/item.js
/** * Item View * * This is the item view, it is rendered when users visit a page of a specific * item. This mainly renders the form to edit the item content in. */ import React from 'react'; import ReactDOM from 'react-dom'; import Lists from '../stores/Lists'; import CreateForm from '../components/Forms/CreateF...
JavaScript
0.000016
@@ -1963,26 +1963,8 @@ %09%7D,%0A -%09// TODO FIX THIS%0A %09ren @@ -2273,19 +2273,20 @@ ionship. -ref +path %5D;%0A%09%09%09%09%09 @@ -2292,16 +2292,24 @@ %09return +(%0A%09%09%09%09%09%09 %3CRelated @@ -2317,17 +2317,24 @@ temsList - +%0A%09%09%09%09%09%09%09 key=%7Brel @@ -2348,17 +2348,24 @@ ip.path%7D -...
404f815c7884c236aa3f2141343e7e3b78de1723
Remove unused var (clobbering another one)
services.js
services.js
define(function() { 'use strict'; var services; function Context(format, id) { this.format = format; this.id = id; } Context.prototype = { process: function(args, transferables) { var self = this; var worker = self.format.worker; return new Promise(function(resolve, reje...
JavaScript
0
@@ -3046,45 +3046,8 @@ ) %7B%0A - var format = new Format();%0A
0e19421a43f7328e81ef8ecc77bd108b80ec1928
Add update insurance reducer
src/reducers/InsuranceReducer.js
src/reducers/InsuranceReducer.js
/** * mSupply Mobile * Sustainable Solutions (NZ) Ltd. 2020 */ import { INSURANCE_ACTIONS } from '../actions/InsuranceActions'; const initialState = () => ({ currentPolicy: null, isEditing: false, isCreating: false, }); export const InsuranceReducer = (state = initialState(), action) => { const { type } =...
JavaScript
0
@@ -165,16 +165,25 @@ current +Insurance Policy: @@ -195,24 +195,39 @@ %0A isEditing +InsurancePolicy : false,%0A i @@ -235,23 +235,71 @@ Creating -: false +InsurancePolicy: false,%0A selectedInsurancePolicy: null ,%0A%7D);%0A%0Ae @@ -445,13 +445,12 @@ NS.C -ANCEL +LOSE : %7B%0A @@ -466,262 +466,1360 @@ u...
29592576139bae9f44c7c2cc55b246d4456cc92f
fix for custom icons
geotagging/static/js/app/Spot.js
geotagging/static/js/app/Spot.js
$$.Spot = Backbone.Model.extend({ layer: undefined, initialize: function (options) { _.bindAll(this, 'getLatLng'); return this; }, toOpenLayers: function () { return this.view.marker; }, getLatLng: function () { if (!this.latLng) { thi...
JavaScript
0
@@ -1953,16 +1953,65 @@ %22auto%22;%0A + this.feature.data.icon = this.getIcon();%0A
381aab3fd7a45c0eba3b50f5c4a68213cf452655
Put categorize() atom code inside else to make structure clearer.
tinylisp.js
tinylisp.js
;(function(exports) { var library = { first: function(x) { return x[0]; }, rest: function(x) { return x.slice(1); }, print: function(x) { console.log(x); return x; } }; var Ctx = function(scope, parent) { this.scope = scope; this.parent = parent; this.g...
JavaScript
0
@@ -1920,24 +1920,40 @@ %0A %7D else +%7B // atom%0A if (!isNaN(p @@ -1971,32 +1971,34 @@ nput))) %7B%0A + + return %7B type:'l @@ -2030,24 +2030,26 @@ t(input) %7D;%0A + %7D else i @@ -2094,24 +2094,26 @@ === '%22') %7B%0A + return @@ -2160,24 +2160,26 @@ -1) %7D;%0A + ...
ad729fa295a94984fc991e31ac012edadb2f0542
use environment variables for Twitter settings (for heroku deploys)
settings.js
settings.js
'use strict'; module.exports = { HOST: process.env.HOST || '0.0.0.0', PORT: process.env.PORT || 5000, CORS: true, // Register your Twitter application here: https://apps.twitter.com/app/new TWITTER_CONSUMER_KEY: '', TWITTER_CONSUMER_SECRET: '', TWITTER_ACCESS_TOKEN: '', TWITTER_ACCESS_TOKEN_SECRET: '...
JavaScript
0
@@ -222,101 +222,291 @@ EY: -'',%0A TWITTER_CONSUMER_SECRET: '',%0A TWITTER_ACCESS_TOKEN: '',%0A TWITTER_ACCESS_TOKEN_SECRET: +process.env.TWEET2DB_TWITTER_CONSUMER_KEY %7C%7C '',%0A TWITTER_CONSUMER_SECRET: process.env.TWEET2DB_TWITTER_CONSUMER_SECRET %7C%7C '',%0A TWITTER_ACCESS_TOKEN: process.env.TWEET2DB_TWI...
379f6a609deff88f83020cb101719cc2ebcdecce
Fix settings.js
settings.js
settings.js
modules.export = { "port": 3002 };
JavaScript
0.000001
@@ -3,16 +3,16 @@ dule -s .export +s = %7B
c747e240a239fc98bb20820371d0eb4586cb84c1
Add switch for byte size
client/click.template.js
client/click.template.js
Template.byte.helpers({ score: function () { return Session.get('score'); }, binary: function () { return Session.get('score').toString(2); } }); Template.byte.events({ 'click button': function () { Session.setPersistent('score', Session.get('score') + Session.get('clickrate')); } });
JavaScript
0.000001
@@ -147,16 +147,748 @@ ing(2);%0A + %7D,%0A text: function () %7B%0A var score = Session.get('score');%0A var conversionFactor, byteType;%0A if (score %3E= 1099511627776) %7B%0A conversionFactor = 1099511627776;%0A byteType = 'Terabyte(s)';%0A %7D else if (score %3E= 1073741824) %7B%0A con...
ddf29854c0828998d31aaa7fc0a3b77db87be3b8
Fix handling of batch event
to-array.js
to-array.js
'use strict'; var aFrom = require('es5-ext/array/from') , clear = require('es5-ext/array/#/clear') , eIndexOf = require('es5-ext/array/#/e-index-of') , isCopy = require('es5-ext/array/#/is-copy') , remove = require('es5-ext/array/#/remove') , invoke...
JavaScript
0.000002
@@ -488,24 +488,82 @@ lid-value')%0A + , toArray = require('es6-iterator/to-array')%0A , d @@ -3541,24 +3541,32 @@ ply(result, +toArray( event.delete @@ -3567,16 +3567,17 @@ deleted) +) ;%0A%09%09%09%09%09%09 @@ -3608,24 +3608,32 @@ ply(result, +toArray( event.added) @@ -3632,16 +3632,17 ...
f7e00afacab08017f4acf5faed5309d7ab65d3f2
Fix recompiling es/ and lib/ dirs if es/ is up-to-date but lib/ is not (#524)
tasks/js.js
tasks/js.js
const gulp = require('gulp'); const exec = require('child_process').exec; const relative = require('path').relative; const colors = require('gulp-util').colors; const log = require('gulp-util').log; const babel = require('gulp-babel'); const yaml = require('gulp-yaml'); const newer = require('gulp-newer'); const plumbe...
JavaScript
0
@@ -2115,25 +2115,31 @@ e(newer(dest -E +Commonj s))%0A .pip
fc25a1751e3f15f86cac67150380fdd1cf515186
Drop redundant _finishLine guard in _flush
hex_transform.js
hex_transform.js
"use strict"; var util = require('util'); var Transform = require('stream').Transform; function HexTransform(options) { if (!(this instanceof HexTransform)) { return new HexTransform(options); } options = options || {}; Transform.call(this, options); var self = this; self.options = opt...
JavaScript
0.000005
@@ -1814,40 +1814,8 @@ is;%0A - if (self.line.length) %7B%0A @@ -1834,22 +1834,16 @@ Line();%0A - %7D%0A done
e193fa5be5f128a7ee0fb83d877992ce9cfe9013
Make the indexeddb worker script work again
src/MatrixClientPeg.js
src/MatrixClientPeg.js
/* Copyright 2015, 2016 OpenMarket Ltd Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, sof...
JavaScript
0.000067
@@ -31,16 +31,53 @@ rket Ltd +%0ACopyright 2017 Vector Creations Ltd. %0A%0ALicens @@ -4344,16 +4344,44 @@ ent(opts +, this.indexedDbWorkerScript );%0A%0A
e96fe93b12601d1c43bff8b5696c56ffa7413953
Fix #3039
v3/src/scene/components/IsActive.js
v3/src/scene/components/IsActive.js
var IsActive = function (key) { var scene = this.getScene(key); return (scene && scene.sys.settings.active && this.active.indexOf(scene) !== -1); }; module.exports = IsActive;
JavaScript
0.000001
@@ -49,16 +49,22 @@ this.get +Active Scene(ke @@ -118,45 +118,8 @@ tive - && this.active.indexOf(scene) !== -1 );%0A%7D
9a3935cdbf5ba937f441cc22e8b36c20c40d3960
Fix to allow local filesystem testing.
src/main/webapp/js/Autocomplete.js
src/main/webapp/js/Autocomplete.js
/* Copyright 2009 University of Toronto Licensed under the Educational Community License (ECL), Version 2.0. ou may not use this file except in compliance with this License. You may obtain a copy of the ECL 2.0 License at https://source.collectionspace.org/collection-space/LICENSE.txt */ /*global jQuery, fluid_1_1*...
JavaScript
0
@@ -413,16 +413,20 @@ : %22Apple + pie %22, %22urn%22 @@ -520,28 +520,36 @@ on:name( -Peach)'Peach +Apple pie)'Apple+pie '%22%7D,%0A @@ -957,37 +957,35 @@ ation:name(B -anana)'Banana +erry)'Berry '%22%7D,%0A @@ -1151,16 +1151,24 @@ : %22Peach + cobbler %22, %22urn%22 @@ -1271,15 +1271,31 @@ each -)'P...
03b5b8e2c7234158fe24dbd30b09bc5a4f5b30ce
Fix date copying migration to deal with number strings
migrations/20151120164525_copy_text_date_columns_into_datetime_columns.js
migrations/20151120164525_copy_text_date_columns_into_datetime_columns.js
'use strict'; function getDateFromStr(dateStr, id, table, column) { var date; if (!dateStr) { return null; } try { date = new Date(dateStr); if (isNaN(date.valueOf())) { throw new Error('Date string is not valid'); } } catch (e) { console.error('Record with `id` ' + id + ' ' + ...
JavaScript
0.000002
@@ -8,16 +8,123 @@ rict';%0A%0A +function resolveType(dateStr) %7B%0A var num = parseInt(dateStr, 10);%0A return isNaN(num) ? dateStr : num;%0A%7D%0A%0A function @@ -226,24 +226,60 @@ %7D%0A%0A try %7B%0A + dateStr = resolveType(dateStr);%0A date = n @@ -1033,44 +1033,14 @@ -c re -ated = updated =...
69a06376f0ce6565c8f530d4781f227638d57516
use "waitForExist"
test/endtoend/url-plugin/test.js
test/endtoend/url-plugin/test.js
/* global browser, expect */ const testURL = 'http://localhost:4567/url-plugin' describe('File upload with URL plugin', () => { beforeEach(() => { browser.url(testURL) }) it('should import and upload a file completely with Url Plugin', () => { // select url plugin browser.click(`.uppy-DashboardTab...
JavaScript
0.000502
@@ -855,39 +855,37 @@ browser.waitFor -Visible +Exist ('.uppy-StatusBa
066ab235eaed163a678af512e9c089d8bc741b6a
Add a few test cases to cover the concatenation of hook properties
tests/integration/components/frost-list-item-content-test.js
tests/integration/components/frost-list-item-content-test.js
/** * Integration test for the frost-list-item-content component */ import {expect} from 'chai' import Ember from 'ember' import {$hook, initialize as initializeHook} from 'ember-hook' import wait from 'ember-test-helpers/wait' import {registerMockComponent, unregisterMockComponent} from 'ember-test-utils/test-suppo...
JavaScript
0.00001
@@ -812,16 +812,78 @@ t-item') +%0A registerMockComponent(this, 'mock-list-item-expansion') %0A%0A @@ -1321,24 +1321,87 @@ list-item')%0A + itemExpansion=(component 'mock-list-item-expansion')%0A %7D%7D%0A @@ -1515,24 +1515,88 @@ list-item')%0A + unregisterMockComponent(this, 'moc...
52c2417cb2028a2697dfc97c98488242d54fe3bd
Fix broken camera control buttons
public/js/app.js
public/js/app.js
const appPath = `${window.location}`; const socket = io(appPath); const client = feathers(); // Create the Feathers application with a `socketio` connection client.configure(feathers.socketio(socket)); // Get the services for our endpoints const positions = client.service('positions'); const videoinputs = client.serv...
JavaScript
0.000002
@@ -942,33 +942,38 @@ data) =%3E %7B%0A $(%60 -. +%5Bname= $%7Bbutton%7D button @@ -965,23 +965,17 @@ %7Bbutton%7D - button +%5D %60).bind(
316d46424285d410e9da441c8cad051d85e6a133
Update plugin to updated to-vfile API
tools/remark/plugins/remark-svg-equations/lib/transformer.js
tools/remark/plugins/remark-svg-equations/lib/transformer.js
'use strict'; // MODULES // var debug = require( 'debug' )( 'remark-svg-equations:transformer' ); var tex2svg = require( 'tex-equation-to-svg' ); var mkdirp = require( 'mkdirp' ); var visit = require( 'unist-util-visit' ); var resolve = require( 'path' ).resolve; var join = require( 'path' ).join; var writeFile = req...
JavaScript
0
@@ -1548,25 +1548,19 @@ e( file. -directory +cwd , opts.d @@ -2672,25 +2672,19 @@ e( file. -directory +cwd , fpath