commit
stringlengths
40
40
old_file
stringlengths
4
150
new_file
stringlengths
4
150
old_contents
stringlengths
0
3.26k
new_contents
stringlengths
1
4.43k
subject
stringlengths
15
501
message
stringlengths
15
4.06k
lang
stringclasses
4 values
license
stringclasses
13 values
repos
stringlengths
5
91.5k
diff
stringlengths
0
4.35k
6f450d4d82c41258b862ce3147033bfb9701a36f
client/Settings/components/Toggle.tsx
client/Settings/components/Toggle.tsx
import { Field, FieldProps } from "formik"; import * as React from "react"; import { probablyUniqueString } from "../../../common/Toolbox"; interface ToggleProps { fieldName: string; } export class Toggle extends React.Component<ToggleProps> { private id: string; public componentWillMount() { this.id = `to...
import { Field, FieldProps } from "formik"; import * as React from "react"; import { probablyUniqueString } from "../../../common/Toolbox"; interface ToggleProps { fieldName: string; } export class Toggle extends React.Component<ToggleProps> { private id: string; public componentWillMount() { this.id = `to...
Move buttons to just include toggle icon
Move buttons to just include toggle icon
TypeScript
mit
cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative
--- +++ @@ -19,14 +19,21 @@ {(fieldProps: FieldProps) => { const stateString = fieldProps.field.value ? "on" : "off"; return ( - <button - type="button" - className="c-toggle" - onClick={() => this.toggle(fieldProps)} - > - ...
b46cf9c11eb9ec8efd6d05186e39fc44eb612ef8
test/common/db.ts
test/common/db.ts
import Future = require('sfuture'); import db = require('../../core/db'); export const TestCollectionName = 'beyondTestCollection'; export function connect(): Future<void> { return db.initialize('mongodb://localhost:27017/beyondTest'); } export function close(forceClose: boolean): Future<void> { return db.close...
import Future = require('sfuture'); import db = require('../../core/db'); export const TestCollectionName = 'beyondTestCollection'; export function connect(): Future<void> { return db.initialize('mongodb://localhost:27017/beyondTest'); } export function close(forceClose: boolean): Future<void> { return db.close...
Drop and recreate collection when flush collection.
Drop and recreate collection when flush collection. Currently, beyond.ts just remove all documents on test. But now we have to test index. So this patch makes recreate collection instead of just removing all documents.
TypeScript
apache-2.0
SollmoStudio/beyond.ts,sgkim126/beyond.ts,sgkim126/beyond.ts,SollmoStudio/beyond.ts,noraesae/beyond.ts,noraesae/beyond.ts
--- +++ @@ -14,8 +14,12 @@ export function cleanupCollection(): Future<void> { let mongoConnection = db.connection(); - let mongoCollection = mongoConnection.collection(TestCollectionName); - return Future.denodify<void>(mongoCollection.remove, mongoCollection, { }); + return Future.denodify<void>(mongoConne...
4d635068f05d68a2bf2c65af7e5edd81504ea637
test/src/index.ts
test/src/index.ts
// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. 'use strict'; import expect = require('expect.js'); describe('jupyter-js-editor', () => { describe('CodeMirrorWidget', () => { it('should pass', () => { }); }); });
// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. 'use strict'; import expect = require('expect.js'); import { EditorWidget, EditorModel } from '../../lib'; describe('jupyter-js-editor', () => { describe('CodeMirrorWidget', () => { it('should always pas...
Make sure the test actually imports the source
Make sure the test actually imports the source
TypeScript
bsd-3-clause
jupyter/jupyter-js-editor,jupyter/jupyter-js-editor,jupyter/jupyter-js-editor,jupyter/jupyter-js-editor
--- +++ @@ -4,13 +4,18 @@ import expect = require('expect.js'); +import { + EditorWidget, EditorModel +} from '../../lib'; + describe('jupyter-js-editor', () => { describe('CodeMirrorWidget', () => { - it('should pass', () => { - + it('should always pass', () => { + let model = new Editor...
d41df500b41f8fce63d3c193460f6444a2c7cca0
Configuration/Typoscript/setup.ts
Configuration/Typoscript/setup.ts
plugin.tx_tevfaqs { view { templateRootPath = {$plugin.tx_tevfaqs.view.templateRootPath} partialRootPath = {$plugin.tx_tevfaqs.view.partialRootPath} layoutRootPath = {$plugin.tx_tevfaqs.view.layoutRootPath} } }
plugin.tx_tevfaqs { view { templateRootPaths { 0 = {$plugin.tx_tevfaqs.view.templateRootPath} } partialRootPaths { 0 = {$plugin.tx_tevfaqs.view.partialRootPath} } layoutRootPaths { 0 = {$plugin.tx_tevfaqs.view.layoutRootPath} } ...
Allow template overrides via templateRootPaths
Allow template overrides via templateRootPaths
TypeScript
mit
3ev/tev_faqs,3ev/tev_faqs,3ev/tev_faqs
--- +++ @@ -1,7 +1,15 @@ plugin.tx_tevfaqs { view { - templateRootPath = {$plugin.tx_tevfaqs.view.templateRootPath} - partialRootPath = {$plugin.tx_tevfaqs.view.partialRootPath} - layoutRootPath = {$plugin.tx_tevfaqs.view.layoutRootPath} + templateRootPaths { + 0 = {$plugi...
9871b1ddab747725dec635db24b410c610742e2e
app/test/setup-test-framework.ts
app/test/setup-test-framework.ts
// set test timeout to 100s jest.setTimeout(100000) import 'jest-extended' import 'jest-localstorage-mock'
// set test timeout to 10s jest.setTimeout(10000) import 'jest-extended' import 'jest-localstorage-mock'
Revert setting Jest timeout to 100s
Revert setting Jest timeout to 100s
TypeScript
mit
j-f1/forked-desktop,artivilla/desktop,say25/desktop,artivilla/desktop,j-f1/forked-desktop,say25/desktop,desktop/desktop,say25/desktop,j-f1/forked-desktop,shiftkey/desktop,desktop/desktop,shiftkey/desktop,artivilla/desktop,shiftkey/desktop,artivilla/desktop,desktop/desktop,j-f1/forked-desktop,shiftkey/desktop,say25/desk...
--- +++ @@ -1,5 +1,5 @@ -// set test timeout to 100s -jest.setTimeout(100000) +// set test timeout to 10s +jest.setTimeout(10000) import 'jest-extended' import 'jest-localstorage-mock'
22cc16f5c83d6394003173f79c12ef56737db815
src/internal/pwnedpasswords/responses.ts
src/internal/pwnedpasswords/responses.ts
/** * Known potential responses from the remote API. * * https://haveibeenpwned.com/API/v2#PwnedPasswords * */ export interface PwnedPasswordsApiResponse { // eslint-disable-next-line no-restricted-globals status: number; data?: string; } /** @internal */ export const OK = { status: 200, }; /** @interna...
/** * Known potential responses from the remote API. * * https://haveibeenpwned.com/API/v2#PwnedPasswords * */ export interface PwnedPasswordsApiResponse { status: number; data?: string; } /** @internal */ export const OK = { status: 200, }; /** @internal */ export const BAD_REQUEST = { status: 400, d...
Remove unnecessary eslint line exclusion
Remove unnecessary eslint line exclusion
TypeScript
mit
wKovacs64/hibp,wKovacs64/hibp,wKovacs64/hibp
--- +++ @@ -6,7 +6,6 @@ */ export interface PwnedPasswordsApiResponse { - // eslint-disable-next-line no-restricted-globals status: number; data?: string; }
91a10b2565c17fe8d02117765060a1eae52cfcec
frontend/src/app/modules/result-selection/services/result-selection.service.ts
frontend/src/app/modules/result-selection/services/result-selection.service.ts
import {Injectable} from '@angular/core'; import {HttpClient, HttpParams} from "@angular/common/http"; import {EMPTY, Observable, OperatorFunction} from "rxjs"; import {catchError} from "rxjs/operators"; import {URL} from "../../../enums/url.enum"; import {Caller, ResultSelectionCommand} from "../models/result-selectio...
import {Injectable} from '@angular/core'; import {HttpClient, HttpParams} from "@angular/common/http"; import {EMPTY, Observable, OperatorFunction} from "rxjs"; import {catchError} from "rxjs/operators"; import {URL} from "../../../enums/url.enum"; import {Caller, ResultSelectionCommand} from "../models/result-selectio...
Set http request parameter for result selection only if available
[IT-2812] Set http request parameter for result selection only if available
TypeScript
apache-2.0
iteratec/OpenSpeedMonitor,iteratec/OpenSpeedMonitor,iteratec/OpenSpeedMonitor,iteratec/OpenSpeedMonitor,iteratec/OpenSpeedMonitor
--- +++ @@ -18,19 +18,19 @@ } private createParamsFromResultSelectionCommand(resultSelectionCommand: ResultSelectionCommand) { - let params = new HttpParams() - .set('from', resultSelectionCommand.from.toISOString()) - .set('to', resultSelectionCommand.to.toISOString()) - .set('caller', Call...
cfbfbe6c98c8a017f78a197d53dbc631b1b43569
packages/@sanity/field/src/validation/index.ts
packages/@sanity/field/src/validation/index.ts
import {SchemaType} from '../diff' export function getValueError(value: unknown, schemaType: SchemaType) { const {jsonType} = schemaType const valueType = typeof value if (value === null || valueType === 'undefined') { return undefined } if (Array.isArray(value) && jsonType !== 'array') { return {e...
import {SchemaType} from '../diff' export function getValueError(value: unknown, schemaType: SchemaType) { const {jsonType} = schemaType const valueType = Array.isArray(value) ? 'array' : typeof value if (value === null || valueType === 'undefined') { return undefined } if (valueType !== jsonType) { ...
Fix error in object/array matching on shapes
[field] Fix error in object/array matching on shapes
TypeScript
mit
sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity
--- +++ @@ -2,14 +2,10 @@ export function getValueError(value: unknown, schemaType: SchemaType) { const {jsonType} = schemaType - const valueType = typeof value + const valueType = Array.isArray(value) ? 'array' : typeof value if (value === null || valueType === 'undefined') { return undefined - } ...
c53acf9b59086a8c3b389c6aeff331292968d433
src/v2/Apps/Partner/Components/PartnerArtists/PartnerArtistListPlaceholder.tsx
src/v2/Apps/Partner/Components/PartnerArtists/PartnerArtistListPlaceholder.tsx
import React from "react" import { Box, Column, GridColumns, SkeletonBox, SkeletonText, } from "@artsy/palette" import { PartnerArtistListContainer } from "./PartnerArtistList" interface PartnerArtistListPlaceholderProps { done?: boolean } export const PartnerArtistListPlaceholder: React.FC<PartnerArtistL...
import React from "react" import { Box, Column, GridColumns, SkeletonText } from "@artsy/palette" import { PartnerArtistListContainer } from "./PartnerArtistList" interface PartnerArtistListPlaceholderProps { done?: boolean } const names = [ "xxxxxxxxxxxxxxx", "xxxxxxxxxx", "xxxxxxxxxxxxx", "xxxxxxxxxxxxxxx...
Add random width for the placeholder items
Add random width for the placeholder items
TypeScript
mit
artsy/force-public,joeyAghion/force,artsy/force,joeyAghion/force,artsy/force-public,joeyAghion/force,artsy/force,joeyAghion/force,artsy/force,artsy/force
--- +++ @@ -1,15 +1,30 @@ import React from "react" -import { - Box, - Column, - GridColumns, - SkeletonBox, - SkeletonText, -} from "@artsy/palette" +import { Box, Column, GridColumns, SkeletonText } from "@artsy/palette" import { PartnerArtistListContainer } from "./PartnerArtistList" interface PartnerArt...
b1e38df068abe54f85d2d269fe137d7d074e5bbb
src/contexts/index.ts
src/contexts/index.ts
import { context as unoContext } from './arduino-uno'; export interface Context { [x: string]: string; } interface IndexedContexts { [x: string]: Context; } const contexts = { 'arduino-uno': unoContext }; export const getContext = (key: string) => contexts[key];
import { context as unoContext } from './arduino-uno'; export interface Context { [x: string]: string; run_wrapper: string; run: string; } interface IndexedContexts { [x: string]: Context; } const contexts = { 'arduino-uno': unoContext }; export const getContext = (key: string) => contexts[key];
Add run and run_wrapper to context
Add run and run_wrapper to context
TypeScript
mit
AmnisIO/typewriter,AmnisIO/typewriter,AmnisIO/typewriter
--- +++ @@ -2,6 +2,8 @@ export interface Context { [x: string]: string; + run_wrapper: string; + run: string; } interface IndexedContexts {
40005659dc98f4eb44edabeacbc9b0c37570a6ae
src/extension/sdk/capabilities.ts
src/extension/sdk/capabilities.ts
import { versionIsAtLeast } from "../../shared/utils"; export class DartCapabilities { public static get empty() { return new DartCapabilities("0.0.0"); } public version: string; constructor(dartVersion: string) { this.version = dartVersion; } get supportsDevTools() { return versionIsAtLeast(this.version, "2...
import { versionIsAtLeast } from "../../shared/utils"; export class DartCapabilities { public static get empty() { return new DartCapabilities("0.0.0"); } public version: string; constructor(dartVersion: string) { this.version = dartVersion; } get supportsDevTools() { return versionIsAtLeast(this.version, "2...
Include dev builds in no-docs check
Include dev builds in no-docs check
TypeScript
mit
Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code
--- +++ @@ -12,7 +12,7 @@ get supportsDevTools() { return versionIsAtLeast(this.version, "2.1.0"); } get includesSourceForSdkLibs() { return versionIsAtLeast(this.version, "2.2.1"); } get handlesBreakpointsInPartFiles() { return versionIsAtLeast(this.version, "2.2.1-edge"); } - get hasDocumentationInCompletions...
e76257801f758a0ffc6d6ce1814aa6ee8cfac3d1
src/renderer/colors.ts
src/renderer/colors.ts
import { cyan } from 'material-ui/colors'; export const primary = cyan['500'];
import { red } from 'material-ui/colors'; export const primary = red['600'];
Change primary color to red
Change primary color to red
TypeScript
mit
subnomo/tubetop,subnomo/tubetop,subnomo/tubetop
--- +++ @@ -1,3 +1,3 @@ -import { cyan } from 'material-ui/colors'; +import { red } from 'material-ui/colors'; -export const primary = cyan['500']; +export const primary = red['600'];
a5f8b0b49f09e4399a8176d5cd06cc80c61b07d8
client/src/app/header/header.component.ts
client/src/app/header/header.component.ts
import { filter, map } from 'rxjs/operators' import { Component, OnInit } from '@angular/core' import { NavigationEnd, Router } from '@angular/router' import { getParameterByName } from '../shared/misc/utils' @Component({ selector: 'my-header', templateUrl: './header.component.html', styleUrls: [ './header.compo...
import { filter, first, map, tap } from 'rxjs/operators' import { Component, OnInit } from '@angular/core' import { NavigationEnd, Router } from '@angular/router' import { getParameterByName } from '../shared/misc/utils' import { AuthService } from '@app/core' import { of } from 'rxjs' @Component({ selector: 'my-hea...
Add language filter in header search
Add language filter in header search
TypeScript
agpl-3.0
Green-Star/PeerTube,Chocobozzz/PeerTube,Green-Star/PeerTube,Chocobozzz/PeerTube,Green-Star/PeerTube,Green-Star/PeerTube,Chocobozzz/PeerTube,Chocobozzz/PeerTube
--- +++ @@ -1,7 +1,9 @@ -import { filter, map } from 'rxjs/operators' +import { filter, first, map, tap } from 'rxjs/operators' import { Component, OnInit } from '@angular/core' import { NavigationEnd, Router } from '@angular/router' import { getParameterByName } from '../shared/misc/utils' +import { AuthService }...
f876a2f522d938d90b3f49be62ca4c54cb0458ad
app/app.component.ts
app/app.component.ts
import {Component} from '@angular/core'; @Component({ selector: 'my-app', template: '<h1>My First Angular 2 App</h1>' }) export class AppComponent { }
import {Component} from '@angular/core'; @Component({ selector: 'my-app', template: ` <h1>{{title}}</h1> <h2>{{hero.name}} details!</h2> <div><label>id: </label>{{hero.id}}</div> <div> <label>name: </label> <input [(ngModel)]="hero.name" placeholder="name...
Add hero class and two way data binding for name
Add hero class and two way data binding for name
TypeScript
mit
Teeohbee/tour_of_heroes,Teeohbee/tour_of_heroes,Teeohbee/tour_of_heroes
--- +++ @@ -2,6 +2,25 @@ @Component({ selector: 'my-app', - template: '<h1>My First Angular 2 App</h1>' + template: ` + <h1>{{title}}</h1> + <h2>{{hero.name}} details!</h2> + <div><label>id: </label>{{hero.id}}</div> + <div> + <label>name: </label> + <in...
acb0649708fb32388bfb27ee26f8e8b409ea03d9
app/app.component.ts
app/app.component.ts
import { Component } from '@angular/core'; export class Hero{ id:number; name:string; } @Component({ selector: 'my-app', template:` <h1>{{title}}</h1> <h2>{{hero.name}} details!</h2> <div><label>Id: </label>{{hero.id}}</div> <div><label>Name: </label>{{hero.name}}</div> ` }) export class AppComponent...
import { Component } from '@angular/core'; export class Hero{ id:number; name:string; } @Component({ selector: 'my-app', template:` <h1>{{title}}</h1> <h2>{{hero.name}} details!</h2> <div><label>id: </label>{{hero.id}}</div> <div> <label>name: </label> <input value = "{{hero.name}}"placeholder ...
Add hero name edit textbox
Add hero name edit textbox
TypeScript
mit
amalshehu/angular-tour-of-heroes,amalshehu/angular-tour-of-heroes,amalshehu/angular-tour-of-heroes
--- +++ @@ -9,8 +9,11 @@ template:` <h1>{{title}}</h1> <h2>{{hero.name}} details!</h2> - <div><label>Id: </label>{{hero.id}}</div> - <div><label>Name: </label>{{hero.name}}</div> + <div><label>id: </label>{{hero.id}}</div> + <div> + <label>name: </label> + <input value = "{{hero.name}}"placeholder ...
474072f6beb7b48023cab1f08e6fcacb314d7bda
app/test/fixture-helper.ts
app/test/fixture-helper.ts
import * as path from 'path' const fs = require('fs-extra') const temp = require('temp').track() /** * Set up the named fixture repository to be used in a test. * * @returns The path to the set up fixture repository. */ export function setupFixtureRepository(repositoryName: string): string { const testRepoFixtu...
import * as path from 'path' const fs = require('fs-extra') const temp = require('temp').track() import { Repository } from '../src/models/repository' import { GitProcess } from 'git-kitchen-sink' /** * Set up the named fixture repository to be used in a test. * * @returns The path to the set up fixture repositor...
Add test helper for creating empty git repos
Add test helper for creating empty git repos
TypeScript
mit
shiftkey/desktop,BugTesterTest/desktops,gengjiawen/desktop,hjobrien/desktop,BugTesterTest/desktops,shiftkey/desktop,artivilla/desktop,artivilla/desktop,desktop/desktop,BugTesterTest/desktops,say25/desktop,gengjiawen/desktop,desktop/desktop,desktop/desktop,artivilla/desktop,shiftkey/desktop,j-f1/forked-desktop,shiftkey/...
--- +++ @@ -2,6 +2,9 @@ const fs = require('fs-extra') const temp = require('temp').track() + +import { Repository } from '../src/models/repository' +import { GitProcess } from 'git-kitchen-sink' /** * Set up the named fixture repository to be used in a test. @@ -17,3 +20,13 @@ return testRepoPath } + ...
9e04d2718f7eec57b8dbe0ad7c5a0da3197db113
step-release-vis/src/app/app-routing.module.ts
step-release-vis/src/app/app-routing.module.ts
import {NgModule} from '@angular/core'; import {RouterModule, Routes} from '@angular/router'; import {HomeComponent} from './components/home/home'; import {SvgGridComponent} from './components/grid/svg/svg'; import {CanvasGridComponent} from './components/grid/canvas/canvas'; const routes: Routes = [ {path: '', comp...
import {NgModule} from '@angular/core'; import {RouterModule, Routes} from '@angular/router'; import {HomeComponent} from './components/home/home'; import {SvgGridComponent} from './components/grid/svg/svg'; import {CanvasGridComponent} from './components/grid/canvas/canvas'; import {EnvironmentComponent} from './compo...
Add routing path for EnvironmentComponent.
Add routing path for EnvironmentComponent.
TypeScript
apache-2.0
googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020
--- +++ @@ -3,11 +3,13 @@ import {HomeComponent} from './components/home/home'; import {SvgGridComponent} from './components/grid/svg/svg'; import {CanvasGridComponent} from './components/grid/canvas/canvas'; +import {EnvironmentComponent} from './components/environment/environment'; const routes: Routes = [ ...
86ab4917aadaebaa1de93c205e9700ed4d115b97
dashboard/src/app/workspaces/workspace-details/warnings/workspace-warnings.controller.ts
dashboard/src/app/workspaces/workspace-details/warnings/workspace-warnings.controller.ts
/* * Copyright (c) 2015-2018 Red Hat, Inc. * This program and the accompanying materials are made * available under the terms of the Eclipse Public License 2.0 * which is available at https://www.eclipse.org/legal/epl-2.0/ * * SPDX-License-Identifier: EPL-2.0 * * Contributors: * Red Hat, Inc. - initial API a...
/* * Copyright (c) 2015-2018 Red Hat, Inc. * This program and the accompanying materials are made * available under the terms of the Eclipse Public License 2.0 * which is available at https://www.eclipse.org/legal/epl-2.0/ * * SPDX-License-Identifier: EPL-2.0 * * Contributors: * Red Hat, Inc. - initial API a...
Fix empty warning on workspace details page
Fix empty warning on workspace details page Signed-off-by: Anna Shumilova <5c553f00a5672a7f42aa2b20985a042f7cf9d1c2@redhat.com>
TypeScript
epl-1.0
davidfestal/che,codenvy/che,davidfestal/che,davidfestal/che,codenvy/che,davidfestal/che,davidfestal/che,codenvy/che,davidfestal/che,codenvy/che,davidfestal/che,davidfestal/che,davidfestal/che,davidfestal/che
--- +++ @@ -32,7 +32,7 @@ constructor() { this.warnings = []; - if (this.workspace && this.workspace.runtime) { + if (this.workspace && this.workspace.runtime && this.workspace.runtime.warnings) { this.warnings = this.warnings.concat(this.workspace.runtime.warnings); } }
70de342a58a2adb26ae7728f75730be75c973b4a
src/renderer/app/store/overlay.ts
src/renderer/app/store/overlay.ts
import { observable, computed } from 'mobx'; import { Overlay } from '../components/Overlay'; import * as React from 'react'; import { ipcRenderer } from 'electron'; export class OverlayStore { public ref = React.createRef<Overlay>(); public scrollRef = React.createRef<HTMLDivElement>(); public bsRef: HTMLDivEle...
import { observable, computed } from 'mobx'; import { Overlay } from '../components/Overlay'; import * as React from 'react'; import { ipcRenderer } from 'electron'; import store from '.'; import { callBrowserViewMethod } from '~/shared/utils/browser-view'; export class OverlayStore { public ref = React.createRef<Ov...
Set input value to the current URL
Set input value to the current URL
TypeScript
apache-2.0
Nersent/Wexond,Nersent/Wexond
--- +++ @@ -2,6 +2,8 @@ import { Overlay } from '../components/Overlay'; import * as React from 'react'; import { ipcRenderer } from 'electron'; +import store from '.'; +import { callBrowserViewMethod } from '~/shared/utils/browser-view'; export class OverlayStore { public ref = React.createRef<Overlay>(); @...
ae574dfcb65ab670a18047e9fb73abacf966cb99
type/parse.d.ts
type/parse.d.ts
import {IncomingMessage} from "http" import Body from "./Body" export interface Options extends busboy.Options { castTypes?: boolean /** * @deprecated Use castTypes option instead */ restoreTypes?: boolean } /** * Promise-based wrapper around Busboy. Inspired by async-busboy. * You'll get exactly what...
import {IncomingMessage} from "http" import Body from "./Body" export interface Options extends busboy.Options { castTypes?: boolean /** * @deprecated Use castTypes option instead */ restoreTypes?: boolean } /** * Promise-based wrapper around Busboy. Inspired by async-busboy. * You'll get exactly what...
Make parse returning type parameter optional
Make parse returning type parameter optional
TypeScript
mit
octet-stream/then-busboy,octet-stream/then-busboy
--- +++ @@ -48,6 +48,6 @@ * export default multipart * ``` */ -export function parse<T extends Record<string, any>>(request: IncomingMessage, options?: Options): Promise<Body<T>> +export function parse<T extends Record<string, any> = Record<string, any>>(request: IncomingMessage, options?: Options): Promise<Bod...
0d6691747590ca1dbe338f00f75e81beb606c7f9
src/delir-core/src/index.ts
src/delir-core/src/index.ts
// @flow import * as Project from './project/index' import Renderer from './renderer/renderer' import * as Services from './services' import * as Exceptions from './exceptions' import Point2D from './values/point-2d' import Point3D from './values/point-3d' import Size2D from './values/size-2d' import Size3D from './va...
// @flow import * as Project from './project/index' import Renderer from './renderer/renderer' import * as Services from './services' import * as Exceptions from './exceptions' import * as Values from './values' import {ColorRGB, ColorRGBA} from './values' import Type, {TypeDescriptor, AnyParameterTypeDescriptor} from...
Fix modules incompatible .Values exporting on delir-core
Fix modules incompatible .Values exporting on delir-core
TypeScript
mit
Ragg-/Delir,Ragg-/Delir,Ragg-/Delir,Ragg-/Delir
--- +++ @@ -3,13 +3,8 @@ import Renderer from './renderer/renderer' import * as Services from './services' import * as Exceptions from './exceptions' - -import Point2D from './values/point-2d' -import Point3D from './values/point-3d' -import Size2D from './values/size-2d' -import Size3D from './values/size-3d' -im...
62a0bde9c22002a275c61963dcc743d189aa9622
types/azure-publish-settings.d.ts
types/azure-publish-settings.d.ts
export interface Settings { name: string; kudu: { website: string; username: string; password: string; }; } export function read( publishSettingsPath: string, callback: (err: any, settings: Settings) => void ): void; export function readAsync(publishSettingsPath: string): Promise<Settings>;
export interface Settings { name: string; kudu: { website: string; username: string; password: string; }; } export function read( publishSettingsPath: string, callback: (err: unknown, settings: Settings) => void ): void; export function readAsync(publishSettingsPath: string): Promise<Settings>;
Convert one more 'any' to 'unknown'
Convert one more 'any' to 'unknown'
TypeScript
mit
itsananderson/kudu-api,itsananderson/kudu-api
--- +++ @@ -9,6 +9,6 @@ export function read( publishSettingsPath: string, - callback: (err: any, settings: Settings) => void + callback: (err: unknown, settings: Settings) => void ): void; export function readAsync(publishSettingsPath: string): Promise<Settings>;
0ef53062f084740021d9d076cd68e3be0b26a834
frontend/src/app/troll-build/champions/champions.page.ts
frontend/src/app/troll-build/champions/champions.page.ts
import { Component, OnInit } from '@angular/core'; import { Observable } from 'rxjs'; import { Champion } from '@ltb-model/champion'; import { TitleService } from '@ltb-service/title.service'; import { ChampionsService } from './champions.service'; @Component({ selector: 'ltb-champions', templateUrl: './champion...
import { Component, OnInit } from '@angular/core'; import { Observable } from 'rxjs'; import { Champion } from '@ltb-model/champion'; import { TitleService } from '@ltb-service/title.service'; import { ChampionsService } from './champions.service'; @Component({ selector: 'ltb-champions', templateUrl: './champion...
Replace if else with ternary
Replace if else with ternary
TypeScript
mit
drumonii/LeagueTrollBuild,drumonii/LeagueTrollBuild,drumonii/LeagueTrollBuild,drumonii/LeagueTrollBuild
--- +++ @@ -39,11 +39,7 @@ } setChampionsFilterTag(selectedFilterTag: string): void { - if (this.championsFilterTag === selectedFilterTag) { - this.championsFilterTag = ''; - } else { - this.championsFilterTag = selectedFilterTag; - } + this.championsFilterTag = this.championsFilterTag =...
1ae9f4941dc2f3a929acf8baef2c869407d3d7b4
src/__tests__/database.spec.ts
src/__tests__/database.spec.ts
import { Database, DEFAULT_OPTIONS } from '../database'; import { Collection } from '../collection'; import { MockPersistor, MockPersistorFactory } from '../persistors/__mocks__/persistor.mock'; import { ICollection } from '../'; describe( 'Database', () => { describe( 'constructor', () => { it( 'should cr...
import { Database, DEFAULT_OPTIONS } from '../database'; import { Collection } from '../collection'; import { MockPersistor, MockPersistorFactory } from '../persistors/__mocks__/persistor.mock'; import { ICollection, IPersistorFactory } from '../'; describe( 'Database', () => { describe( 'constructor', () => { ...
Use interface type for mock factory
Use interface type for mock factory
TypeScript
mit
Cinergix/rxdata,Cinergix/rxdata
--- +++ @@ -1,7 +1,7 @@ import { Database, DEFAULT_OPTIONS } from '../database'; import { Collection } from '../collection'; import { MockPersistor, MockPersistorFactory } from '../persistors/__mocks__/persistor.mock'; -import { ICollection } from '../'; +import { ICollection, IPersistorFactory } from '../'; de...
36d254626906a89c0c7ba918df0eceb5a8ed8e1d
packages/lesswrong/components/tagging/EditTagsDialog.tsx
packages/lesswrong/components/tagging/EditTagsDialog.tsx
import React from 'react'; import { Components, registerComponent } from '../../lib/vulcan-lib'; import Dialog from '@material-ui/core/Dialog'; import DialogTitle from '@material-ui/core/DialogTitle'; import DialogContent from '@material-ui/core/DialogContent'; const EditTagsDialog = ({post, onClose }: { post: Post...
import React from 'react'; import { Components, registerComponent } from '../../lib/vulcan-lib'; import Dialog from '@material-ui/core/Dialog'; import DialogTitle from '@material-ui/core/DialogTitle'; import DialogContent from '@material-ui/core/DialogContent'; import { AnalyticsContext } from "../../lib/analyticsEvent...
Add contextTracking to EditTags dialog
Add contextTracking to EditTags dialog
TypeScript
mit
Discordius/Telescope,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Telescope
--- +++ @@ -3,17 +3,20 @@ import Dialog from '@material-ui/core/Dialog'; import DialogTitle from '@material-ui/core/DialogTitle'; import DialogContent from '@material-ui/core/DialogContent'; +import { AnalyticsContext } from "../../lib/analyticsEvents"; -const EditTagsDialog = ({post, onClose }: { - post: Post...
f4ad9916e6969cc89dd8d48be4b5850c7baf1b4a
test/helper/port-manager.ts
test/helper/port-manager.ts
import getPort, { makeRange } from 'get-port'; /** * For easier debugging, we increase the port each time * to ensure that no port is reused in the tests. */ let startPort = 18669; const PORT_MAX = 65535; /** * Returns an unused port. * Used to ensure that different tests * do not accidentiall use the same por...
import getPort, { makeRange } from 'get-port'; /** * For easier debugging, we increase the port each time * to ensure that no port is reused in the tests. */ let startPort = 18669; const PORT_MAX = 65535; /** * Returns an unused port. * Used to ensure that different tests * do not accidentiall use the same por...
FIX do not reuse port
FIX do not reuse port
TypeScript
apache-2.0
pubkey/rxdb,pubkey/rxdb,pubkey/rxdb,pubkey/rxdb,pubkey/rxdb
--- +++ @@ -14,11 +14,10 @@ * do not accidentiall use the same port. */ export async function nextPort(): Promise<number> { - startPort++; - const port = await getPort({ port: makeRange(startPort, PORT_MAX), host: '0.0.0.0', }); + startPort = port + 1; return port; }
331f79629e9eb17259a83ae5ef2e5ae64fc865ff
src/app/shared/services/auth.service.ts
src/app/shared/services/auth.service.ts
import {Injectable} from '@angular/core'; import {CanActivate, Router} from '@angular/router'; import {JwtHelperService} from '@auth0/angular-jwt'; import {ProfileService} from '@shared/services/profile.service'; @Injectable() export class AuthService implements CanActivate { helper = new JwtHelperService(); ...
import {Injectable} from '@angular/core'; import {CanActivate, Router} from '@angular/router'; import {JwtHelperService} from '@auth0/angular-jwt'; import {ProfileService} from '@shared/services/profile.service'; @Injectable() export class AuthService implements CanActivate { helper = new JwtHelperService(); ...
Fix auth not working with the old cache
Fix auth not working with the old cache
TypeScript
unknown
BD2K-DDI/ddi-web-app,OmicsDI/ddi-web-app,BD2K-DDI/ddi-web-app,OmicsDI/ddi-web-app,OmicsDI/ddi-web-app
--- +++ @@ -16,8 +16,9 @@ if (token != null) { const expired = this.helper.decodeToken(token).expires; const isNotExpired = new Date().getMilliseconds() < expired; - if (isNotExpired && this.profileService.getProfileFromLocal() == null) { - const profile = ...
fd65130784bc322ad5bd0ae4010f3de05ba0e90d
src/routeGeneration/tsoa-route.ts
src/routeGeneration/tsoa-route.ts
import { Tsoa } from './../metadataGeneration/tsoa'; /** * For Swagger, additionalProperties is implicitly allowed. So use this function to clarify that undefined should be associated with allowing additional properties * @param test if this is undefined then you should interpret it as a "yes" */ export function is...
import { Tsoa } from './../metadataGeneration/tsoa'; /** * For Swagger, additionalProperties is implicitly allowed. So use this function to clarify that undefined should be associated with allowing additional properties * @param test if this is undefined then you should interpret it as a "yes" */ export function is...
Convert tabs to spaces in ModelSchema
Convert tabs to spaces in ModelSchema
TypeScript
mit
lukeautry/tsoa,andreasrueedlinger/tsoa,andreasrueedlinger/tsoa,lukeautry/tsoa
--- +++ @@ -13,9 +13,9 @@ [name: string]: ModelSchema; } - export interface ModelSchema { - enums?: string[] | number[]; - properties?: { [name: string]: PropertySchema }; + export interface ModelSchema { + enums?: string[] | number[]; + properties?: { [name: string]: PropertySchema ...
96d2669bbbd4bbe4f39ea9f04c543fd823cae1bd
src/chrome/WarningEmployee.tsx
src/chrome/WarningEmployee.tsx
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ import {styled, FlexColumn, Text, Button, colors} from 'flipper'; import React from 'react'; const Container = sty...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ import {styled, FlexColumn, Text, Button, colors} from 'flipper'; import React from 'react'; const Container = sty...
Improve FB employee version warning
Improve FB employee version warning Summary: Wording was a bit strange. Reviewed By: passy Differential Revision: D18063264 fbshipit-source-id: 29fb6f16ba6246f307d956a0309dbd153878a251
TypeScript
mit
facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper
--- +++ @@ -46,9 +46,8 @@ <Container> <Box> <Warning> - You are using the open-source version of Flipper. You will get access - to more plugins. To use the internal version, please install it from - Managed Software Center + You are using the open-source versio...
6377170e30e76852731f38cb83ff27d85301e706
packages/cli/src/generate/generators/controller/create-controller.ts
packages/cli/src/generate/generators/controller/create-controller.ts
// std import { existsSync } from 'fs'; // FoalTS import { Generator, getNames } from '../../utils'; import { registerController } from './register-controller'; export type ControllerType = 'Empty'|'REST'; export function createController({ name, type, register }: { name: string, type: ControllerType, register: bool...
// std import { existsSync } from 'fs'; // FoalTS import { Generator, getNames } from '../../utils'; import { registerController } from './register-controller'; export type ControllerType = 'Empty'|'REST'|'GraphQL'|'Login'; export function createController({ name, type, register }: { name: string, type: ControllerTy...
Revert "[CLI] Remove legacy type"
Revert "[CLI] Remove legacy type" This reverts commit 4089ae79caf65c5014c75a9b43fe2229ea55b954.
TypeScript
mit
FoalTS/foal,FoalTS/foal,FoalTS/foal,FoalTS/foal
--- +++ @@ -5,7 +5,7 @@ import { Generator, getNames } from '../../utils'; import { registerController } from './register-controller'; -export type ControllerType = 'Empty'|'REST'; +export type ControllerType = 'Empty'|'REST'|'GraphQL'|'Login'; export function createController({ name, type, register }: { name:...
69508f4a0141f3326a17c3b1dc09c8ab4e35d4d1
src/server/helpers/check_has_credits.ts
src/server/helpers/check_has_credits.ts
import { NextFunction, Request, Response } from "express"; import { errors, PlanTypes } from "voluble-common"; import { OrgManager } from "../../org-manager"; import { ExpressMiddleware } from "./express_req_res_next"; export function checkHasCredits(credits_required: number): ExpressMiddleware { return async (re...
import { NextFunction, Request, Response } from "express"; import { errors, PlanTypes } from "voluble-common"; import { OrgManager } from "../../org-manager"; import { ExpressMiddleware } from "./express_req_res_next"; export function checkHasCredits(credits_required: number): ExpressMiddleware { return async (re...
Correct credit-checking behaviour on message send
Correct credit-checking behaviour on message send
TypeScript
mit
calmcl1/voluble,calmcl1/voluble
--- +++ @@ -13,10 +13,10 @@ try { const org = await OrgManager.getOrganizationById(req['user'].organization) - if (org.plan == PlanTypes.PAY_IN_ADVANCE && org.credits >= credits_required) { + if (org.plan == PlanTypes.PAYG && org.credits < credits_required...
ecfda7cccf6d09df0841ab7ed9005d380f1076d6
src/menu/bookmarks/components/TreeBar/styles.ts
src/menu/bookmarks/components/TreeBar/styles.ts
import styled from 'styled-components'; import opacity from '../../../../shared/defaults/opacity'; export const Root = styled.div` width: 100%; height: 56px; display: flex; align-items: center; padding-left: 32px; border-bottom: 1px solid rgba(0, 0, 0, ${opacity.light.dividers}); `;
import styled from 'styled-components'; import opacity from '../../../../shared/defaults/opacity'; export const Root = styled.div` width: 100%; height: 56px; display: flex; align-items: center; padding-left: 32px; border-bottom: 1px solid rgba(0, 0, 0, ${opacity.light.dividers}); overflow: hidden; `;
Fix text moving out of TreeBar in bookmarks
:sparkles: Fix text moving out of TreeBar in bookmarks
TypeScript
apache-2.0
Nersent/Wexond,Nersent/Wexond
--- +++ @@ -9,4 +9,5 @@ align-items: center; padding-left: 32px; border-bottom: 1px solid rgba(0, 0, 0, ${opacity.light.dividers}); + overflow: hidden; `;
9a3a59270adf9ee9acc292811637e73a92956039
app/app.module.ts
app/app.module.ts
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { FormsModule } from '@angular/forms' import { AppComponent } from './app.component'; @NgModule({ imports: [ BrowserModule, FormsModule], declarations: [ AppComponent ], bootstrap: [ App...
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { FormsModule } from '@angular/forms' import { AppComponent } from './app.component'; import { HeroDetailComponent } from './hero-detail.component'; @NgModule({ imports: [ BrowserModule, Forms...
Add HeroDetailComponent to the NgModule
Add HeroDetailComponent to the NgModule
TypeScript
mit
amalshehu/angular-tour-of-heroes,amalshehu/angular-tour-of-heroes,amalshehu/angular-tour-of-heroes
--- +++ @@ -2,9 +2,11 @@ import { BrowserModule } from '@angular/platform-browser'; import { FormsModule } from '@angular/forms' import { AppComponent } from './app.component'; +import { HeroDetailComponent } from './hero-detail.component'; + @NgModule({ imports: [ BrowserModule, FormsModule], - de...
010938faf45d48325259bc4662311d0d42b81ed1
app/vue/src/client/preview/types-6-0.ts
app/vue/src/client/preview/types-6-0.ts
import { Component, AsyncComponent } from 'vue'; import { Args as DefaultArgs, Annotations, BaseMeta, BaseStory } from '@storybook/addons'; import { StoryFnVueReturnType } from './types'; export { Args, ArgTypes, Parameters, StoryContext } from '@storybook/addons'; type VueComponent = Component<any, any, any, any> | ...
import { Component, AsyncComponent } from 'vue'; import { Args as DefaultArgs, Annotations, BaseMeta, BaseStory } from '@storybook/addons'; import { StoryFnVueReturnType } from './types'; export type { Args, ArgTypes, Parameters, StoryContext } from '@storybook/addons'; type VueComponent = Component<any, any, any, an...
Fix type export in vue types
Fix type export in vue types
TypeScript
mit
kadirahq/react-storybook,kadirahq/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook
--- +++ @@ -2,7 +2,7 @@ import { Args as DefaultArgs, Annotations, BaseMeta, BaseStory } from '@storybook/addons'; import { StoryFnVueReturnType } from './types'; -export { Args, ArgTypes, Parameters, StoryContext } from '@storybook/addons'; +export type { Args, ArgTypes, Parameters, StoryContext } from '@storybo...
4a1490453d45521f64e5b24cd1af61f61cce6902
test/site-tests.ts
test/site-tests.ts
require('mocha'); require('chai').should(); import { sites, SiteOptions } from '../'; describe('site', () => { it('can be retrieved after being created', async () => { let exists = await sites.exists('TestSite'); if (exists) { await sites.remove('TestSite'); } await sites.add({ name: 'TestSite', pro...
require('mocha'); require('chai').should(); import * as uuid from 'uuid'; import { sites, SiteOptions } from '../'; describe('site', () => { it('can be retrieved after being created', async () => { let siteName = uuid(); try { await sites.add({ name: siteName, protocol: 'http', host: siteName, ...
Make test cleanup after itself
Make test cleanup after itself
TypeScript
mit
ChristopherHaws/node-iis-manager
--- +++ @@ -1,25 +1,29 @@ require('mocha'); require('chai').should(); +import * as uuid from 'uuid'; import { sites, SiteOptions } from '../'; describe('site', () => { it('can be retrieved after being created', async () => { - let exists = await sites.exists('TestSite'); - if (exists) { - await sites.remo...
5c1541c31ac88a7f38a49e27eb5707756377386b
types/index.d.ts
types/index.d.ts
declare class OrderedMap<T = any> { private constructor(content: Array<string | T>) get(key: string): T | undefined update(key: string, value: T, newKey?: string): OrderedMap<T> remove(key: string): OrderedMap<T> addToStart(key: string, value: T): OrderedMap<T> addToEnd(key: string, value: T): OrderedM...
declare class OrderedMap<T = any> { private constructor(content: Array<string | T>) get(key: string): T | undefined update(key: string, value: T, newKey?: string): OrderedMap<T> remove(key: string): OrderedMap<T> addToStart(key: string, value: T): OrderedMap<T> addToEnd(key: string, value: T): OrderedM...
Use ES-style export in TypeScript file
Use ES-style export in TypeScript file
TypeScript
mit
marijnh/orderedmap
--- +++ @@ -28,4 +28,4 @@ type MapLike<T = any> = Record<string, T> | OrderedMap<T> -export = OrderedMap +export default OrderedMap
ec20ef1cf72c24b0e3e0bec29ab3630e900beefb
source/navigation/track.ts
source/navigation/track.ts
import * as Sentry from '@sentry/react-native' import type {NavigationState} from 'react-navigation' // gets the current screen from navigation state function getCurrentRouteName(navigationState: NavigationState): ?string { if (!navigationState) { return null } const route = navigationState.routes[navigationState...
import * as Sentry from '@sentry/react-native' import type {NavigationState} from 'react-navigation' // gets the current screen from navigation state function getCurrentRouteName(navigationState: NavigationState): ?string { if (!navigationState) { return null } const route = navigationState.routes[navigationState...
Add an explicit return type to module boundary function
navigation: Add an explicit return type to module boundary function Signed-off-by: Kristofer Rye <1ed31cfd0b53bc3d1689a6fee6dbfc9507dffd22@gmail.com>
TypeScript
agpl-3.0
StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native
--- +++ @@ -17,7 +17,7 @@ export function trackScreenChanges( prevState: NavigationState, currentState: NavigationState, -) { +): void { const currentScreen = getCurrentRouteName(currentState) const prevScreen = getCurrentRouteName(prevState)
e2d791cf867327681c0c1211c0967ef7e9683c45
src/script/player.ts
src/script/player.ts
export class Player { constructor(protected gameState: Server.GameState, protected client: Server.Client) { } get access() { return this.client.account.access; } get location() { return this.client.character.location; } warp(map: number, x: number, y: number) { this.gameState.managers.playe...
import Location = Odyssey.Location export class Player { constructor(protected gameState: Server.GameState, protected client: Server.Client) { } get access() { return this.client.account.access; } get location() { return this.client.character.location; } warp(location: Odyssey.Location); warp...
Set Script Warp to take Location or map,x,y
Set Script Warp to take Location or map,x,y
TypeScript
mit
OdysseyClassicHistoryBook/odyssey-2-server,OdysseyClassicHistoryBook/odyssey-2-server
--- +++ @@ -1,3 +1,4 @@ +import Location = Odyssey.Location export class Player { constructor(protected gameState: Server.GameState, protected client: Server.Client) { } @@ -10,7 +11,13 @@ return this.client.character.location; } - warp(map: number, x: number, y: number) { - this.gameState.manage...
ac8b2632d2e7adf848399cd8ce5935f963cfdeb6
src/functions/dPath.ts
src/functions/dPath.ts
import { Path } from '@/types' interface DebugColours { [key: string]: string } export interface SVGPath { d: string 'stroke-width'?: number stroke?: string } const debugColours: DebugColours = { debug0: "blue", debug1: "red", } export function makePaths ( paths: Path[], ): SVGPath[] { /** * Conv...
import { Path } from '@/types' interface DebugColours { [key: string]: string } export interface SVGPath { d: string 'stroke-width'?: number stroke?: string } const debugColours: DebugColours = { debug0: "blue", debug1: "red", debug2: "green", } export function makePaths ( paths: Path[], ): SVGPath[...
Add a third debug option
Add a third debug option
TypeScript
mit
rossjrw/gallifreyo,rossjrw/gallifreyo,rossjrw/gallifreyo
--- +++ @@ -13,6 +13,7 @@ const debugColours: DebugColours = { debug0: "blue", debug1: "red", + debug2: "green", } export function makePaths (
d221aa4d29fa4ce334844af2ed633407f56187f8
src/koa/controller.ts
src/koa/controller.ts
import 'reflect-metadata'; import * as _ from 'underscore'; import * as Router from 'koa-router'; import { compose } from './utils'; import { IMetadata, METADATA_KEY } from './declarations'; export class A7Controller { private $router: Router; get $koaRouter(): Router { if (this.$router != null) { re...
import 'reflect-metadata'; import * as _ from 'underscore'; import * as Router from 'koa-router'; import { compose } from './utils'; import { IMetadata, METADATA_KEY } from './declarations'; export class A7Controller { private $router: Router; get $koaRouter(): Router { if (this.$router != null) { re...
Use compose for class middlewares.
Use compose for class middlewares.
TypeScript
apache-2.0
nodeswork/sbase,nodeswork/sbase
--- +++ @@ -25,8 +25,8 @@ this.$router = new Router(meta.routerOptions); - for (const middleware of meta.middlewares) { - this.$router.use(middleware); + if (_.isEmpty(meta.middlewares)) { + this.$router.use(compose(meta.middlewares)); } for (const handler in meta.handlers) {
62c207bec8046e804f80dcbecfeb6cd0c5242ddf
src/slurm/actions.ts
src/slurm/actions.ts
import { gettext } from '@waldur/i18n'; import { ActionConfigurationRegistry } from '@waldur/resource/actions/action-configuration'; import { DEFAULT_EDIT_ACTION } from '@waldur/resource/actions/constants'; ActionConfigurationRegistry.register('SLURM.Allocation', { order: ['details', 'pull', 'edit', 'cancel', 'destr...
import { gettext } from '@waldur/i18n'; import { ActionConfigurationRegistry } from '@waldur/resource/actions/action-configuration'; import { DEFAULT_EDIT_ACTION } from '@waldur/resource/actions/constants'; ActionConfigurationRegistry.register('SLURM.Allocation', { order: ['details', 'pull', 'edit', 'cancel', 'destr...
Remove 'limits' fields from 'Edit' form for allocation
Remove 'limits' fields from 'Edit' form for allocation [WAL-3066]
TypeScript
mit
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
--- +++ @@ -19,26 +19,6 @@ edit: { ...DEFAULT_EDIT_ACTION, successMessage: gettext('Allocation has been updated.'), - fields: { - cpu_limit: { - type: 'integer', - label: gettext('CPU limit, minutes'), - required: true, - resource_default_value: true,...
906c2fbdbfeb2148db0649ed10d54e1e0ff9e83d
test-files/ts-pass.ts
test-files/ts-pass.ts
function getMaNumberFunction(value: number, ...rest: Array<number>) { return value + rest.reduce((acc: number, curr: number) => acc + curr); } getMaNumberFunction(3, 4, 2, 1);
function getMaNumberFunction(value: number, ...rest: Array<number>) { return value + rest.reduce((acc: number, curr: number) => acc + curr); } const bazz = { baz: 'baz', }; // eslint-disable-next-line @typescript-eslint/no-unused-vars const anObject = { ...bazz, foo: 'fo', bar: 'bat', }; getMaNumberFunctio...
Test for object rest operator
Test for object rest operator
TypeScript
bsd-3-clause
dabapps/eslint-config-dabapps,dabapps/eslint-config-dabapps,dabapps/eslint-config-dabapps
--- +++ @@ -2,4 +2,15 @@ return value + rest.reduce((acc: number, curr: number) => acc + curr); } +const bazz = { + baz: 'baz', +}; + +// eslint-disable-next-line @typescript-eslint/no-unused-vars +const anObject = { + ...bazz, + foo: 'fo', + bar: 'bat', +}; + getMaNumberFunction(3, 4, 2, 1);
e02d900bb2f87ec2d89695fc9498220b3de3f18b
src/client/src/ui/analytics/epics.ts
src/client/src/ui/analytics/epics.ts
import { ofType } from 'redux-observable' import { map, mergeMapTo, takeUntil, tap } from 'rxjs/operators' import { ApplicationEpic } from '../../ApplicationEpic' import { ACTION_TYPES as REF_ACTION_TYPES } from '../../referenceDataOperations' import { PositionUpdates } from '../../types' import { DISCONNECT_SERVICES }...
import { ofType } from 'redux-observable' import { map, mergeMapTo, takeUntil, tap } from 'rxjs/operators' import { ApplicationEpic } from '../../ApplicationEpic' import { ACTION_TYPES as REF_ACTION_TYPES } from '../../referenceDataOperations' import { PositionUpdates } from '../../types' import { DISCONNECT_SERVICES }...
Store renamed to state$ to show that it is a stream
Store renamed to state$ to show that it is a stream
TypeScript
apache-2.0
AdaptiveConsulting/ReactiveTraderCloud,AdaptiveConsulting/ReactiveTraderCloud,AdaptiveConsulting/ReactiveTraderCloud,AdaptiveConsulting/ReactiveTraderCloud
--- +++ @@ -8,7 +8,7 @@ const CURRENCY: string = 'USD' -export const analyticsServiceEpic: ApplicationEpic = (action$, store, { analyticsService, openFin }) => { +export const analyticsServiceEpic: ApplicationEpic = (action$, state$, { analyticsService, openFin }) => { return action$.pipe( ofType(REF_ACT...
6b1c627e23dec5622163ee29bf560d094978fdcf
node_modules/dimensions/datatypes/bitsbyte.ts
node_modules/dimensions/datatypes/bitsbyte.ts
class BitsByte extends Array { protected _value: number; constructor(value: number) { super(8); this._value = value; // Assign each flag to an index this[0] = (value & 1) == 1; this[1] = (value & 2) == 2; this[2] = (value & 4) == 4; this[3] = (va...
class BitsByte extends Array { protected _value: number; constructor(value: number) { super(8); this._value = value; // Assign each flag to an index this[0] = (value & 1) == 1; this[1] = (value & 2) == 2; this[2] = (value & 4) == 4; this[3] = (va...
Fix value not getting updated
Fix value not getting updated
TypeScript
mit
popstarfreas/Dimensions,popstarfreas/Dimensions,popstarfreas/Dimensions
--- +++ @@ -17,6 +17,14 @@ } public get value(): number { + this._value = this[0] ? this._value | 1 : this._value; + this._value = this[1] ? this._value | 2 : this._value; + this._value = this[2] ? this._value | 4 : this._value; + this._value = this[3] ? this._value | 8 : this....
ce64cb57f937b27a02a10b17c2a8e68a51f4ddab
src/app/pages/badges/badges.component.ts
src/app/pages/badges/badges.component.ts
import { Component, OnInit } from '@angular/core'; import { SeoService } from '../../seo.service'; @Component({ selector: 'store-badges', templateUrl: './badges.component.html', styleUrls: ['./badges.component.scss'] }) export class BadgesComponent implements OnInit { badgeExampleCode: string = "<a href='ht...
import { Component, OnInit } from '@angular/core'; import { SeoService } from '../../seo.service'; @Component({ selector: 'store-badges', templateUrl: './badges.component.html', styleUrls: ['./badges.component.scss'] }) export class BadgesComponent implements OnInit { badgeExampleCode: string = "<a href='ht...
Use em dash in badges page
Use em dash in badges page
TypeScript
apache-2.0
jgarciao/linux-store-frontend,jgarciao/linux-store-frontend,jgarciao/linux-store-frontend
--- +++ @@ -24,7 +24,7 @@ window.location.port + '/assets/badges/flathub-badge-en.png' this.seoService.setPageMetadata( - 'Flathub Official Badges - Flathub', + 'Flathub Official Badges—Flathub', 'Official badges to promote your application on Flathub', imageUrl); ...
d214211f0b43222f3f91f789d323c8de16facc50
src/commonPasswords.ts
src/commonPasswords.ts
export let commonPasswords = [ "123456", "password", "pikachu", "pokemon", "12345678", "qwerty", "123456789", "12345", "123456789", "letmein", "1234567", "iloveyou", "admin", "welcome", "monkey", "login", "abc123", "123123", "dragon", "passw0rd", "master", "hello", "freedom", "whatever", "qazwsx" ];
export let commonPasswords = [ "123456", "password", "pikachu", "pokemon" ];
Remove passwords to quell the login god
Remove passwords to quell the login god
TypeScript
agpl-3.0
shoedrip-unbound/dogars,shoedrip-unbound/dogars,shoedrip-unbound/dogars
--- +++ @@ -1,6 +1,3 @@ export let commonPasswords = [ - "123456", "password", "pikachu", "pokemon", "12345678", "qwerty", "123456789", - "12345", "123456789", "letmein", "1234567", "iloveyou", "admin", "welcome", - "monkey", "login", "abc123", "123123", "dragon", "passw0rd", "master", - "hello", "freedo...
e79cd56fd3b41233e28f064e4c60ed1c650b8563
src/generate/mathjax.ts
src/generate/mathjax.ts
/** * A script to generate `../shared/styles/mathjax.css`. * * Run using `npm run build:mathjax`. */ import fs from 'fs' import MathJax from 'mathjax-node' import path from 'path' const dest = path.join(__dirname, '..', 'shared', 'styles', 'mathjax.css') MathJax.typeset( { css: true }, result => { ...
/** * A script to generate `../shared/styles/mathjax.css`. * * Run using `npm run generate:mathjax`. */ import fs from 'fs' import MathJax from 'mathjax-node' import path from 'path' const dest = path.join(__dirname, '..', 'shared', 'styles', 'mathjax.css') MathJax.typeset( { css: true }, result => { ...
Update script reference to new name
docs(Comment): Update script reference to new name
TypeScript
apache-2.0
stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila
--- +++ @@ -1,7 +1,7 @@ /** * A script to generate `../shared/styles/mathjax.css`. * - * Run using `npm run build:mathjax`. + * Run using `npm run generate:mathjax`. */ import fs from 'fs'
0c93fe50c7d234b54d8ce2db4ba25b06bc143f45
templates/app/src/_name.ts
templates/app/src/_name.ts
import { <%= pAppName %>Config } from "./<%= hAppName %>.config"; import { <%= pAppName %>Run } from "./<%= hAppName %>.run"; angular.module("<%= appName %>", [ // Uncomment to use your app templates. // "<%= appName %>.tpls", "ui.router" ]) .config(<%= pAppName %>Config) .run(<%= pAppName %>Run);
import * as angular from "angular"; import { <%= pAppName %>Config } from "./<%= hAppName %>.config"; import { <%= pAppName %>Run } from "./<%= hAppName %>.run"; import { services } from "./services/services"; angular.module("<%= appName %>", [ // Uncomment to use your app templates. // "<%= appName %>.tpls", ...
Add services and angular reference
Add services and angular reference
TypeScript
mit
Kurtz1993/ngts-cli,Kurtz1993/ngts-cli,Kurtz1993/ngts-cli
--- +++ @@ -1,10 +1,13 @@ +import * as angular from "angular"; import { <%= pAppName %>Config } from "./<%= hAppName %>.config"; import { <%= pAppName %>Run } from "./<%= hAppName %>.run"; +import { services } from "./services/services"; angular.module("<%= appName %>", [ // Uncomment to use your app templa...
ef386b84e23d04d3aa25c352184168f5aee08436
src/components/QueueCard/QueueTimer.tsx
src/components/QueueCard/QueueTimer.tsx
import * as React from 'react'; import { Caption } from '@shopify/polaris'; import { formatSecondsAsHhMmSs } from '../../utils/dates'; interface Props { readonly timeLeftInSeconds: number; } interface State { readonly secondsLeft: number; } class QueueTimer extends React.PureComponent<Props, State> { private s...
import * as React from 'react'; import { Caption } from '@shopify/polaris'; import { formatSecondsAsHhMmSs } from '../../utils/dates'; interface Props { readonly timeLeftInSeconds: number; } interface State { readonly secondsLeft: number; } class QueueTimer extends React.PureComponent<Props, State> { private s...
Fix time left countdown for items in Queue not updating properly.
Fix time left countdown for items in Queue not updating properly.
TypeScript
mit
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
--- +++ @@ -20,12 +20,6 @@ this.state = { secondsLeft: props.timeLeftInSeconds }; } - static getDerivedStateFromProps(props: Props): Partial<State> { - return { - secondsLeft: props.timeLeftInSeconds - }; - } - componentDidMount() { this.startTimer(); } @@ -39,10 +33,11 @@ this....
cc9ea4af724c895606f99857416c1649720f9b70
TameGame/Input/GameInputBehavior.ts
TameGame/Input/GameInputBehavior.ts
/// <reference path="Interface.ts" /> /// <reference path="../Core/Interface.ts" /> /// <reference path="DefaultControlRouter.ts" /> /// <reference path="DefaultControlEvents.ts" /> module TameGame { // Extensions to the game interface to support input export interface Game { /** The main control route...
/// <reference path="Interface.ts" /> /// <reference path="../Core/Interface.ts" /> /// <reference path="DefaultControlRouter.ts" /> /// <reference path="DefaultControlEvents.ts" /> module TameGame { // Extensions to the game interface to support input export interface Game { /** The main control route...
Use the message dispatcher to dispatch input events to the game
Use the message dispatcher to dispatch input events to the game
TypeScript
apache-2.0
TameGame/Engine,TameGame/Engine,TameGame/Engine
--- +++ @@ -18,8 +18,33 @@ * * Input is dispatched through the default control router to the default control events object */ - export function defaultInputBehavior(game: Game) { + export function defaultInputBehavior(game: Game, dispatcher: WorkerMessageDispatcher) { + // Controls th...
7c43976bf5ea280b1060770f8ddd8f1ba9c9b47d
test/index.ts
test/index.ts
import * as bootstrap from './bootstrap'; // // PLEASE DO NOT MODIFY / DELETE UNLESS YOU KNOW WHAT YOU ARE DOING // // This file is providing the test runner to use when running extension tests. // By default the test runner in use is Mocha based. // // You can provide your own test runner if you want to override it b...
import * as bootstrap from './bootstrap'; // // PLEASE DO NOT MODIFY / DELETE UNLESS YOU KNOW WHAT YOU ARE DOING // // This file is providing the test runner to use when running extension tests. // By default the test runner in use is Mocha based. // // You can provide your own test runner if you want to override it b...
Send error back to runner
Send error back to runner
TypeScript
mit
neild3r/vscode-php-docblocker
--- +++ @@ -25,8 +25,8 @@ run: function(testsRoot:string, callback: (error:Error) => void) { testRunner.run(testsRoot, (e, failures) => { bootstrap.callback(); - callback(e); if (failures > 0) { + callback(new Error(failures + ' test(s) failed')); ...
31a069a5261f4e56c654c1d54efea811141fee1c
src/definitions/SkillContext.ts
src/definitions/SkillContext.ts
import {Callback, Context as LambdaContext} from "aws-lambda"; import {AlexaRequestBody} from "./AlexaService"; export class RequestContext { constructor(request: AlexaRequestBody, event: LambdaContext, callback: Callback) { this.request = request; this.event = event; this.callback = callba...
import {Callback, Context as LambdaContext} from "aws-lambda"; import {AlexaRequestBody} from "./AlexaService"; export class RequestContext { constructor(request: AlexaRequestBody, event: LambdaContext, callback: Callback) { this.request = request; this.event = event; this.callback = callba...
Add model attributes for frame management.
Add model attributes for frame management.
TypeScript
agpl-3.0
deegles/cookietime,deegles/cookietime
--- +++ @@ -34,17 +34,31 @@ export class Attributes { constructor(props?: any) { + this.FrameStack = []; + this.CookieCounter = "0"; + if (props) { Object.assign(this, props); } + + if (!this.CurrentFrame) { + this.CurrentFrame = "Start"; + ...
d7caf50a76ab9e5a6d42aeff661ab8d716bce95c
src/Test/Ast/EdgeCases/LinkifiedConvention.ts
src/Test/Ast/EdgeCases/LinkifiedConvention.ts
import { expect } from 'chai' import Up from '../../../index' import { insideDocumentAndParagraph } from '../Helpers' import { LinkNode } from '../../../SyntaxNodes/LinkNode' import { InlineSpoilerNode } from '../../../SyntaxNodes/InlineSpoilerNode' import { PlainTextNode } from '../../../SyntaxNodes/PlainTextNode' imp...
import { expect } from 'chai' import Up from '../../../index' import { insideDocumentAndParagraph } from '../Helpers' import { LinkNode } from '../../../SyntaxNodes/LinkNode' import { InlineSpoilerNode } from '../../../SyntaxNodes/InlineSpoilerNode' import { PlainTextNode } from '../../../SyntaxNodes/PlainTextNode' imp...
Fix test to match description
Fix test to match description
TypeScript
mit
start/up,start/up
--- +++ @@ -9,7 +9,7 @@ describe("An almost-linkified spoiler (with whitespace between its content and URL) terminated early due to a space in its URL", () => { it('can contain an unclosed square bracket without affecting a linkified spoiler with a square bracketed URL that follows it', () => { - expect(Up.t...
db42d0afd549251215587c8867940f2b65c86818
src/Test/Ast/OutlineSeparation.ts
src/Test/Ast/OutlineSeparation.ts
import { expect } from 'chai' import Up from '../../index' import { DocumentNode } from '../../SyntaxNodes/DocumentNode' import { PlainTextNode } from '../../SyntaxNodes/PlainTextNode' import { ParagraphNode } from '../../SyntaxNodes/ParagraphNode' describe('1 blank line between paragraphs', () => { it('simply prov...
import { expect } from 'chai' import Up from '../../index' import { DocumentNode } from '../../SyntaxNodes/DocumentNode' import { PlainTextNode } from '../../SyntaxNodes/PlainTextNode' import { ParagraphNode } from '../../SyntaxNodes/ParagraphNode' describe('1 blank line between paragraphs', () => { it('simply prov...
Improve 2 section separation tests
Improve 2 section separation tests
TypeScript
mit
start/up,start/up
--- +++ @@ -7,8 +7,9 @@ describe('1 blank line between paragraphs', () => { it('simply provides separation, producing no syntax node itself', () => { - const text = `Pokemon Moon has a Mew under a truck. - + const text = ` +Pokemon Moon has a Mew under a truck. + \t Pokemon Sun is a truck.` expect(U...
7f4bb8b30b7413cad4e5044fb3d07f305297aa89
src/checker.ts
src/checker.ts
import { deepEqual } from 'assert'; export default (_module: NodeModule, tester: (check: <T>(name: string, a: T, b: T) => void ) => void) => { const checkedCounts: { [key: string]: number } = {}; const stackRegex = new RegExp(`${_module.filename}:([0-9]+):[0-9]+`); let failedCount = 0; let passedCount = 0; ...
import { deepEqual } from 'assert'; export default (_module: NodeModule, tester: (check: <T>(name: string, a: T, b: T) => void ) => void) => { const checkedCounts: { [key: string]: number } = {}; const stackRegex = new RegExp(`${_module.filename}:([0-9]+):[0-9]+`); let failedCount = 0; let passedCount = 0; ...
Update scripts log assertion message
Update scripts log assertion message
TypeScript
mit
ikatyang/types-ramda,ikatyang/types-ramda
--- +++ @@ -15,11 +15,13 @@ try { deepEqual(a, b); passedCount++; - } catch (error) { + } catch (_error) { failedCount++; - const stack = (error as Error).stack as string; + const error = _error as Error; + const stack = error.stack as string; const linenum = (sta...
b34117ec84770d93c1ec2ec5a5e3f58eec502ed9
src/command.ts
src/command.ts
import * as shelljs from 'shelljs'; import * as path from 'path'; import * as fs from 'fs'; var packageDir = path.join(path.dirname(fs.realpathSync(__filename)), '../'); shelljs.cd(packageDir); shelljs.exec(path.join(packageDir, 'node_modules', '.bin', 'electron') + ' .');
import * as shelljs from 'shelljs'; import * as path from 'path'; import * as fs from 'fs'; let packageDir = path.join(path.dirname(fs.realpathSync(__filename)), '../'); shelljs.cd(packageDir); shelljs.exec(path.join(packageDir, 'node_modules', '.bin', 'electron') + ' .');
Use let instead of var
Use let instead of var
TypeScript
mit
AyaMorisawa/Disskey,AyaMorisawa/Disskey,AyaMorisawa/Disskey
--- +++ @@ -2,6 +2,6 @@ import * as path from 'path'; import * as fs from 'fs'; -var packageDir = path.join(path.dirname(fs.realpathSync(__filename)), '../'); +let packageDir = path.join(path.dirname(fs.realpathSync(__filename)), '../'); shelljs.cd(packageDir); shelljs.exec(path.join(packageDir, 'node_modules',...
7869eee8579a37a72a79a60af9046f7a125b1df0
client/app/components/survey-login.ts
client/app/components/survey-login.ts
import {Component} from '@angular/core'; import {MD_CARD_DIRECTIVES} from '@angular2-material/card'; import {MdButton} from '@angular2-material/button'; import {MD_LIST_DIRECTIVES} from '@angular2-material/list'; import {MD_INPUT_DIRECTIVES} from '@angular2-material/input'; import {MdIcon} from '@angular2-material/icon...
import {Component} from '@angular/core'; import {Router} from '@angular/router-deprecated'; import {MD_CARD_DIRECTIVES} from '@angular2-material/card'; import {MdButton} from '@angular2-material/button'; import {MD_LIST_DIRECTIVES} from '@angular2-material/list'; import {MD_INPUT_DIRECTIVES} from '@angular2-material/in...
Add login service to login component
Add login service to login component
TypeScript
mit
JSMike/Material2-Survey,JSMike/Material2-Survey,JSMike/Material2-Survey
--- +++ @@ -1,9 +1,16 @@ import {Component} from '@angular/core'; +import {Router} from '@angular/router-deprecated'; import {MD_CARD_DIRECTIVES} from '@angular2-material/card'; import {MdButton} from '@angular2-material/button'; import {MD_LIST_DIRECTIVES} from '@angular2-material/list'; import {MD_INPUT_DIRECT...
5af1bd8343bd7b1a0c6906e0dbb990f3b0e2999b
src/dscanner.ts
src/dscanner.ts
'use strict'; import * as cp from 'child_process'; import * as vsc from 'vscode'; export default class Dscanner { public static path: string; public static collection: vsc.DiagnosticCollection; public constructor(document: vsc.TextDocument) { let output = ''; let dscanner = cp.spawn(Dscan...
'use strict'; import * as cp from 'child_process'; import * as vsc from 'vscode'; export default class Dscanner { public static path: string; public static collection: vsc.DiagnosticCollection; public constructor(document: vsc.TextDocument) { let output = ''; let dscanner = cp.spawn(Dscan...
Remove logs that were not supposed to be here
Remove logs that were not supposed to be here
TypeScript
mit
mattiascibien/dlang-vscode,dlang-vscode/dlang-vscode
--- +++ @@ -11,21 +11,15 @@ let output = ''; let dscanner = cp.spawn(Dscanner.path + 'dscanner', ['--report']); - console.log(Dscanner.path + 'dscanner'); - dscanner.stdout.on('data', (data) => { - console.log('data', data.toString()); output += data; ...
25ecfa0dc8f32a120b094b12dd8649193baf00d4
src/Artsy/Relay/MockRelayRenderer.tsx
src/Artsy/Relay/MockRelayRenderer.tsx
import { createMockNetworkLayer } from "Artsy/Relay/createMockNetworkLayer" import React from "react" import { QueryRenderer } from "react-relay" import { Environment, RecordSource, Store } from "relay-runtime" export const MockRelayRenderer = ({ Component, query, mockResolvers, }: { Component: React.Component...
import { createMockNetworkLayer } from "Artsy/Relay/createMockNetworkLayer" import React from "react" import { QueryRenderer } from "react-relay" import { Environment, RecordSource, Store } from "relay-runtime" export const MockRelayRenderer = ({ Component, query, mockResolvers, }: { Component: React.Component...
Increase specificity of lint exception
Increase specificity of lint exception
TypeScript
mit
artsy/reaction,artsy/reaction,artsy/reaction-force,xtina-starr/reaction,artsy/reaction,xtina-starr/reaction,artsy/reaction-force,xtina-starr/reaction,xtina-starr/reaction
--- +++ @@ -25,7 +25,7 @@ return ( <QueryRenderer - // tslint:disable-next-line + // tslint:disable-next-line relay-operation-generics query={query} environment={environment} variables={{}}
ce2c0f5a70a7eaa022efc981f0e348f902dd924b
hooks/useUser/index.tsx
hooks/useUser/index.tsx
import { useLocalStorage } from 'react-use'; export const USERNAME_LOCAL_STORAGE_KEY = 'USERNAME'; interface User { username: string; } const useUser = () => { return useLocalStorage<User | undefined>(USERNAME_LOCAL_STORAGE_KEY); }; export default useUser;
import { useLocalStorage } from 'react-use'; export const USER_LOCAL_STORAGE_KEY = 'USER'; interface User { username: string; } const useUser = () => { return useLocalStorage<User | undefined>(USER_LOCAL_STORAGE_KEY); }; export default useUser;
Change user local storage key
Change user local storage key
TypeScript
mit
sheldarr/Votenger,sheldarr/Votenger
--- +++ @@ -1,13 +1,13 @@ import { useLocalStorage } from 'react-use'; -export const USERNAME_LOCAL_STORAGE_KEY = 'USERNAME'; +export const USER_LOCAL_STORAGE_KEY = 'USER'; interface User { username: string; } const useUser = () => { - return useLocalStorage<User | undefined>(USERNAME_LOCAL_STORAGE_KEY)...
1e136657ea137e0f63b5bf70ae38ec1e6da994be
ts/ports/context.ts
ts/ports/context.ts
import * as fs from 'fs'; import * as fileGatherer from '../util/file-gatherer'; import { ElmApp, Context } from '../domain'; function setup(app: ElmApp, directory: string) { app.ports.loadContext.subscribe(() => { const input = fileGatherer.gather(directory); var configuration; try { ...
import * as fs from 'fs'; import * as fileGatherer from '../util/file-gatherer'; import { ElmApp, Context } from '../domain'; import * as path from 'path'; function setup(app: ElmApp, directory: string) { app.ports.loadContext.subscribe(() => { const input = fileGatherer.gather(directory); var conf...
Read elm-analyse configuration from the directory where the elm.json is rather than the current working directory of the process. This helps with running in a multi-project structure where you may open "/project/" in an editor and have an elm project under "/project/web/".
Read elm-analyse configuration from the directory where the elm.json is rather than the current working directory of the process. This helps with running in a multi-project structure where you may open "/project/" in an editor and have an elm project under "/project/web/".
TypeScript
mit
stil4m/elm-analyse,stil4m/elm-analyse,stil4m/elm-analyse,stil4m/elm-analyse
--- +++ @@ -1,13 +1,14 @@ import * as fs from 'fs'; import * as fileGatherer from '../util/file-gatherer'; import { ElmApp, Context } from '../domain'; +import * as path from 'path'; function setup(app: ElmApp, directory: string) { app.ports.loadContext.subscribe(() => { const input = fileGatherer...
38ff21bbc0f64e805b75aa954fe2a748ad32e76f
src/log/index.ts
src/log/index.ts
// Copyright 2016 Joe Duffy. All rights reserved. "use strict"; import * as contract from '../contract'; export interface ILogger { infof(msg: string, ...args: any[]): void; errorf(msg: string, ...args: any[]): void; fatalf(msg: string, ...args: any[]): void; } let consoleLogger: ILogger = { infof: ...
// Copyright 2016 Joe Duffy. All rights reserved. "use strict"; import * as contract from '../contract'; export interface ILogger { infof(msg: string, ...args: any[]): void; errorf(msg: string, ...args: any[]): void; fatalf(msg: string, ...args: any[]): void; } let consoleLogger: ILogger = { infof: ...
Rename functions to be less obscure (and cased properly)
Rename functions to be less obscure (and cased properly)
TypeScript
mit
joeduffy/nodets
--- +++ @@ -27,21 +27,20 @@ fatalf: (msg: string, ...args: any[]) => {}, }; -export function Get(t?: number): ILogger { - if (!!t || t >= v) { +let loglevel: number = 0; + +export function configure(threshold: number): void { + loglevel = threshold; +} + +export function out(target?: number): ILogger { ...
d40540a3cefa62121b9c9e9240e780d08ecb8f0b
ui/src/shared/components/LineGraphColorSelector.tsx
ui/src/shared/components/LineGraphColorSelector.tsx
import React, {Component} from 'react' import {connect} from 'react-redux' import {bindActionCreators} from 'redux' import ColorScaleDropdown from 'src/shared/components/ColorScaleDropdown' import {updateLineColors} from 'src/dashboards/actions/cellEditorOverlay' import {ColorNumber} from 'src/types/colors' import {E...
import React, {Component} from 'react' import {connect} from 'react-redux' import {bindActionCreators} from 'redux' import ColorScaleDropdown from 'src/shared/components/ColorScaleDropdown' import {updateLineColors} from 'src/dashboards/actions/cellEditorOverlay' import {ColorNumber} from 'src/types/colors' import {E...
Add return type to function
Add return type to function
TypeScript
mit
influxdb/influxdb,influxdb/influxdb,influxdb/influxdb,nooproblem/influxdb,influxdata/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,nooproblem/influxdb,li-ang/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,nooproblem/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,influxdata/influxdb,mark-rushakoff/influxd...
--- +++ @@ -30,7 +30,7 @@ ) } - public handleSelectColors = colorScale => { + public handleSelectColors = (colorScale): void => { const {handleUpdateLineColors} = this.props const {colors} = colorScale
5de7af22754a1fcce14cd411d6f1cee40198afca
front_end/src/app/shared/models/new-parent.ts
front_end/src/app/shared/models/new-parent.ts
export class NewParent { private static GENDER = { MALE: 1, FEMALE: 2 }; FirstName: string; LastName: string; PhoneNumber: string; EmailAddress: string; GenderId: number = NewParent.GENDER.FEMALE; CongregationId: number; DuplicateEmail: string; HouseholdId: string; public static genderId...
export class NewParent { private static GENDER = { MALE: 1, FEMALE: 2 }; FirstName: string; LastName: string; PhoneNumber: string; EmailAddress: string; GenderId: number; CongregationId: number; DuplicateEmail: string; HouseholdId: string; public static genderIdMale(): number { retur...
Remove the requirment of gender.
Remove the requirment of gender.
TypeScript
bsd-2-clause
crdschurch/crds-signin-checkin,crdschurch/crds-signin-checkin,crdschurch/crds-signin-checkin,crdschurch/crds-signin-checkin
--- +++ @@ -9,7 +9,7 @@ LastName: string; PhoneNumber: string; EmailAddress: string; - GenderId: number = NewParent.GENDER.FEMALE; + GenderId: number; CongregationId: number; DuplicateEmail: string; HouseholdId: string;
324b533c9970942c442ed84f1e556cdd31e7bbb3
packages/json-mapper/src/index.ts
packages/json-mapper/src/index.ts
export * from "./components"; export * from "./decorators/jsonMapper"; export * from "./decorators/onDeserialize"; export * from "./decorators/onSerialize"; export * from "./domain/JsonMapperContext"; export * from "./domain/JsonMapperTypesContainer"; export * from "./interfaces/JsonMapperMethods"; export * from "./uti...
export * from "./components"; export * from "./decorators/jsonMapper"; export * from "./decorators/onDeserialize"; export * from "./decorators/onSerialize"; export * from "./decorators/afterDeserialize"; export * from "./decorators/beforeDeserialize"; export * from "./domain/JsonMapperContext"; export * from "./domain/...
Add missing exports for AfterDeserialize/BeforeDeserialize decorators
fix(json-mapper): Add missing exports for AfterDeserialize/BeforeDeserialize decorators
TypeScript
mit
Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators
--- +++ @@ -2,6 +2,8 @@ export * from "./decorators/jsonMapper"; export * from "./decorators/onDeserialize"; export * from "./decorators/onSerialize"; +export * from "./decorators/afterDeserialize"; +export * from "./decorators/beforeDeserialize"; export * from "./domain/JsonMapperContext"; export * from "./doma...
c5b6839c7bc14efe989e12351ce1816b97e1e70d
packages/react-day-picker/src/hooks/useModifiers/useModifiers.ts
packages/react-day-picker/src/hooks/useModifiers/useModifiers.ts
import { ModifierStatus } from '../../types'; import { useDayPicker } from '../useDayPicker'; import { useSelection } from '../useSelection'; import { getModifierStatus } from './utils/getModifierStatus'; /** Return the status for the modifiers given the specified date */ export function useModifiers(date: Date): Modi...
import { ModifierStatus } from '../../types'; import { useDayPicker } from '../useDayPicker'; import { useSelection } from '../useSelection'; import { getModifierStatus } from './utils/getModifierStatus'; /** Return the status for the modifiers given the specified date */ export function useModifiers(date: Date): Modi...
Fix for today modifier not being added
Fix for today modifier not being added
TypeScript
mit
gpbl/react-day-picker,gpbl/react-day-picker,gpbl/react-day-picker
--- +++ @@ -8,6 +8,8 @@ const context = useDayPicker(); const selection = useSelection(); const modifiers = Object.assign({}, context.modifiers); + + modifiers.today = context.today; if (context.mode !== 'uncontrolled') { const { single, multiple, range } = selection ?? {};
97411075f5eeb19eee057671bf69ae4d037ab720
src/subscribers/redis-subscriber.ts
src/subscribers/redis-subscriber.ts
var Redis = require('ioredis'); import { Log } from './../log'; import { Subscriber } from './subscriber'; export class RedisSubscriber implements Subscriber { /** * Redis pub/sub client. * * @type {object} */ private _redis: any; /** * * KeyPrefix for used in the redis Conne...
var Redis = require('ioredis'); import { Log } from './../log'; import { Subscriber } from './subscriber'; export class RedisSubscriber implements Subscriber { /** * Redis pub/sub client. * * @type {object} */ private _redis: any; /** * * KeyPrefix for used in the redis Conne...
Remove keyPrefix from the channel passed into the callback
Remove keyPrefix from the channel passed into the callback
TypeScript
mit
tlaverdure/laravel-echo-server,tlaverdure/laravel-echo-server
--- +++ @@ -45,7 +45,7 @@ Log.info("Event: " + message.event); } - callback(channel, message); + callback(channel.substring(0, this.keyPrefix.length), message); } catch (e) { if (this.options.de...
293a15b13bc581e8fc6c3807294f3d7af198fbca
loaders/LoaderEntriesCache.ts
loaders/LoaderEntriesCache.ts
import { Cache, CacheClass } from "memory-cache" export type EntriesReloader<Entry> = () => Promise<Entry[]> export class LoaderEntriesCache<Entry> { get entries(): Promise<Entry[]> { return this.getEntries() } readonly timeout: number private get cachedEntries(): Entry[] | null { return this.#cache...
import { Cache, CacheClass } from "memory-cache" export type EntriesReloader<Entry> = () => Promise<Entry[]> export class LoaderEntriesCache<Entry> { get entries(): Promise<Entry[]> { return this.getEntries() } readonly timeout: number private get cachedEntries(): Entry[] | null { return this.#cache...
Add debug logging for cache hit and miss
Add debug logging for cache hit and miss
TypeScript
mit
JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk
--- +++ @@ -44,8 +44,11 @@ private async getEntries(): Promise<Entry[]> { if (this.cachedEntries !== null) { + console.debug(`Cache hit for key ${this.#cacheKey}`) return this.cachedEntries } + + console.debug(`Cache miss for key ${this.#cacheKey}`) const entries = await this.entr...
f5c228dd7b5779dddd1ac2dea7dea813545e072e
angular/app/pages/about/about.component.ts
angular/app/pages/about/about.component.ts
import { Component } from '@angular/core'; @Component({ selector: 'avl-about', template: require('html!./about.component.html'), styles: [require('!raw!sass!./about.component.scss')] }) export class AboutComponent { constructor() { console.log('testdfsdfsdfsdfs'); } ngOnInit() { } ...
import { Component } from '@angular/core'; @Component({ selector: 'avl-about', template: require('html!./about.component.html'), styles: [require('!raw!sass!./about.component.scss')] }) export class AboutComponent { constructor() { } }
Remove console.log and unused method
Remove console.log and unused method
TypeScript
mit
jaesung2061/anvel,jaesung2061/anvel,jaesung2061/anvel
--- +++ @@ -7,9 +7,5 @@ }) export class AboutComponent { constructor() { - console.log('testdfsdfsdfsdfs'); - } - - ngOnInit() { } }
38c2fc47bf987b41ad8afd3fdc0fca494d6cc9fe
packages/compile-common/src/types.ts
packages/compile-common/src/types.ts
import { Abi, ImmutableReferences } from "@truffle/contract-schema/spec"; export type Compilation = { sourceIndexes: string[]; contracts: CompiledContract[]; compiler: { name: string | undefined; version: string | undefined; }; }; export interface CompilerResult { compilations: Compilation[]; } exp...
import { Abi, ImmutableReferences } from "@truffle/contract-schema/spec"; export type Compilation = { sourceIndexes: string[]; //note: doesnot include internal sources contracts: CompiledContract[]; compiler: { name: string | undefined; version: string | undefined; }; }; export interface CompilerResul...
Add comment stating that sourceIndexes does not contain internal sources
Add comment stating that sourceIndexes does not contain internal sources
TypeScript
mit
ConsenSys/truffle
--- +++ @@ -1,7 +1,7 @@ import { Abi, ImmutableReferences } from "@truffle/contract-schema/spec"; export type Compilation = { - sourceIndexes: string[]; + sourceIndexes: string[]; //note: doesnot include internal sources contracts: CompiledContract[]; compiler: { name: string | undefined;
e5f0b48547e0984afcebcd04ca3f961367bdb9a0
dashboard/src/components/attribute/scroll/che-automatic-scroll.directive.ts
dashboard/src/components/attribute/scroll/che-automatic-scroll.directive.ts
/* * Copyright (c) 2015-2017 Codenvy, S.A. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Coden...
/* * Copyright (c) 2015-2017 Codenvy, S.A. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Coden...
Allow auto-scroll to be used on array elements by watching internal changes
Allow auto-scroll to be used on array elements by watching internal changes Change-Id: I931d6c980794480c4a7453a46ffd3cf21f695910 Signed-off-by: Florent BENOIT <aed23c9e57d07943853fa5abcd82c7d7f632be43@codenvy.com>
TypeScript
epl-1.0
sudaraka94/che,davidfestal/che,Patricol/che,lehmanju/che,akervern/che,akervern/che,Patricol/che,snjeza/che,sleshchenko/che,sleshchenko/che,codenvy/che,jonahkichwacoders/che,sleshchenko/che,snjeza/che,cemalkilic/che,TypeFox/che,bartlomiej-laczkowski/che,bartlomiej-laczkowski/che,Patricol/che,Patricol/che,sunix/che,bartl...
--- +++ @@ -44,7 +44,7 @@ this.$timeout(() => { element[0].scrollTop = element[0].scrollHeight; }); - }); + }, true); } }
a4d1698e2e428801e86e7543f427aa917225e538
src/node/worker/node-worker-thread-factory.ts
src/node/worker/node-worker-thread-factory.ts
import {fork} from "child_process"; import {IWorkerThreadFactory} from "../../common/worker/worker-thread-factory"; import {DefaultWorkerThread} from "../../common/worker/default-worker-thread"; import {IWorkerThread} from "../../common/worker/worker-thread"; import {DynamicFunctionRegistry} from "../../common/functio...
import {fork} from "child_process"; import {IWorkerThreadFactory} from "../../common/worker/worker-thread-factory"; import {DefaultWorkerThread} from "../../common/worker/default-worker-thread"; import {IWorkerThread} from "../../common/worker/worker-thread"; import {DynamicFunctionRegistry} from "../../common/functio...
Fix module resolution for node slave
Fix module resolution for node slave
TypeScript
mit
DatenMetzgerX/parallel.es,DatenMetzgerX/parallel.es,MichaReiser/parallel.es,MichaReiser/parallel.es,DatenMetzgerX/parallel.es,MichaReiser/parallel.es
--- +++ @@ -23,10 +23,6 @@ * @returns {string} the file name of the slave */ private getSlaveFileName(): string { - /* tslint:disable:no-eval */ - const requireResolve = eval("require.resolve") as (moduleName: string) => string; - /* tslint:enable:no-eval */ - // TODO get ...
c9719c0e99347cf07389228b89f60c8808cd2ac2
app/src/lib/__tests__/tasks_xfail.ts
app/src/lib/__tests__/tasks_xfail.ts
import { ITask, tasksRepository } from "../tasks"; jest.mock("axios", () => ({ default: { get: (): Promise<any> => Promise.reject(new Error()), }, })); it("gets no task on error", async () => { expect.assertions(1); expect((await tasksRepository(false).get()).length).toBe(0); });
import { ITask, tasksRepository } from "../tasks"; jest.mock("axios", () => ({ default: { get: (): Promise<any> => Promise.reject({ code: "storage/object-not-found" }), }, })); it("gets no task on error", async () => { expect.assertions(1); expect((await tasksRepository(false).get()).length).t...
Fix xfail test of tasks repository
Fix xfail test of tasks repository
TypeScript
mit
raviqqe/code2d,raviqqe/code2d,raviqqe/code2d,raviqqe/code2d
--- +++ @@ -2,7 +2,7 @@ jest.mock("axios", () => ({ default: { - get: (): Promise<any> => Promise.reject(new Error()), + get: (): Promise<any> => Promise.reject({ code: "storage/object-not-found" }), }, }));
ba83cbf441c20bf1630b38ecbfaa3d1289b0c147
src/Components/ArtworkGrid/ArtworkGridEmptyState.tsx
src/Components/ArtworkGrid/ArtworkGridEmptyState.tsx
import { Message } from "@artsy/palette" import React from "react" import styled from "styled-components" interface ArtworkGridEmptyStateProps { onClearFilters?: () => void } export const ArtworkGridEmptyState: React.SFC<ArtworkGridEmptyStateProps> = props => ( <EmptyMessage> <span> There aren't any wor...
import { Message } from "@artsy/palette" import React from "react" import styled from "styled-components" interface ArtworkGridEmptyStateProps { onClearFilters?: () => void } export const ArtworkGridEmptyState: React.SFC<ArtworkGridEmptyStateProps> = props => ( <Message> <span> There aren't any works av...
Change reset link to be text instead of an anchor tag
[Filter] Change reset link to be text instead of an anchor tag
TypeScript
mit
artsy/reaction,artsy/reaction,artsy/reaction-force,artsy/reaction-force,artsy/reaction
--- +++ @@ -7,7 +7,7 @@ } export const ArtworkGridEmptyState: React.SFC<ArtworkGridEmptyStateProps> = props => ( - <EmptyMessage> + <Message> <span> There aren't any works available that meet the following criteria at this time. @@ -16,18 +16,16 @@ <span> {" "} Change...
8c591994a09eee5f4f89ca92a6a043e384c59b2c
src/security/Cookies.ts
src/security/Cookies.ts
import Test from '../Test'; class Cookies extends Test { protected request: RequestInterface; protected logger: LoggerInterface; constructor(request: RequestInterface, logger: LoggerInterface) { super(); this.request = request; this.logger = logger; } public async run(url: string): Promise<Res...
import Test from '../Test'; class Cookies extends Test { protected request: RequestInterface; protected logger: LoggerInterface; constructor(request: RequestInterface, logger: LoggerInterface) { super(); this.request = request; this.logger = logger; } public async run(url: string): Promise<Res...
Fix issue when page doesn't have any cookies
Fix issue when page doesn't have any cookies
TypeScript
mit
juffalow/pentest-tool-lite,juffalow/pentest-tool-lite
--- +++ @@ -14,7 +14,7 @@ public async run(url: string): Promise<ResultInterface> { this.logger.info('Starting Cookies test...'); const result = await this.request.get(url); - let subChecks = null; + let subChecks = []; if (result.response.headers.hasOwnProperty('set-cookie')) { const...
9dc850c2a4f9e9a0034bcd8e9ba5f9dd1a7c7ee1
examples/simple/index.ts
examples/simple/index.ts
import {Observable, map} from '../../src/Observable'; import {h} from '../../src/DOMBuilder'; import run from '../../src/run'; const app = (input$: Observable<string>) => { let inputOn; const DOM = h('div', [ h('label', ['Name: ']), h('br'), h('span', ['Hello ']), h('span', [input$]), h('h1', [ ...
import {Observable, map} from '../../src/Observable'; import {h} from '../../src/DOMBuilder'; import run from '../../src/run'; const app = (input$: Observable<string>) => { let inputOn; const DOM = h('div', [ h('span', ['Hello ']), h('span', [input$]), h('br'), h('label', ['Name: ']), {on: inputO...
Tweak DOM so input isn't inside h1
Tweak DOM so input isn't inside h1
TypeScript
mit
Funkia/hareactive,Funkia/hareactive,paldepind/hareactive,Funkia/hareactive,paldepind/hareactive,paldepind/hareactive
--- +++ @@ -7,13 +7,10 @@ let inputOn; const DOM = h('div', [ + h('span', ['Hello ']), h('span', [input$]), + h('br'), h('label', ['Name: ']), - h('br'), - h('span', ['Hello ']), h('span', [input$]), - h('h1', [ - {on: inputOn} = h('input'), - input$ - ]) + {on: inputOn} = ...
7107d2eecf7c96704a0f5361f7a3df23ef3acd29
src/transports/index.ts
src/transports/index.ts
import {EventEmitter} from 'nomatic-events'; import {LoggerEntry} from '../logger'; export interface TransportOptions { level?: string; [key: string]: any; } export abstract class Transport extends EventEmitter { public level: string; constructor(options: TransportOptions = {}) { super(); this.level ...
import {EventEmitter} from 'nomatic-events'; import {LoggerEntry} from '../../src'; export interface TransportOptions { level?: string; [key: string]: any; } export abstract class Transport extends EventEmitter { public level: string; constructor(options: TransportOptions = {}) { super(); this.level ...
Fix import of LoggerEntry interface
fix(Transport): Fix import of LoggerEntry interface
TypeScript
mit
bdfoster/nomatic-logging
--- +++ @@ -1,5 +1,5 @@ import {EventEmitter} from 'nomatic-events'; -import {LoggerEntry} from '../logger'; +import {LoggerEntry} from '../../src'; export interface TransportOptions { level?: string;
3ee8a3a64607749c03406fdfab678f941caf05f9
src/app/documents/fields-view.component.ts
src/app/documents/fields-view.component.ts
import {Component, OnInit, OnChanges, Input} from "@angular/core"; import {ConfigLoader} from "../configuration/config-loader"; import {Resource} from "../model/resource"; @Component({ selector: 'fields-view', moduleId: module.id, templateUrl: './fields-view.html' }) /** * Shows fields of a document. * ...
import {Component, OnChanges, Input} from "@angular/core"; import {ConfigLoader} from "../configuration/config-loader"; import {Resource} from "../model/resource"; @Component({ selector: 'fields-view', moduleId: module.id, templateUrl: './fields-view.html' }) /** * Shows fields of a document. * * @auth...
Fix where fields can appear twice.
Fix where fields can appear twice.
TypeScript
apache-2.0
dainst/idai-components-2,dainst/idai-components-2,dainst/idai-components-2
--- +++ @@ -1,4 +1,4 @@ -import {Component, OnInit, OnChanges, Input} from "@angular/core"; +import {Component, OnChanges, Input} from "@angular/core"; import {ConfigLoader} from "../configuration/config-loader"; import {Resource} from "../model/resource"; @@ -14,7 +14,7 @@ * @author Thomas Kleinke * @author ...
93e79bc88e9d21b29d4c988f80640c808ba633f3
src/util/useBrowserEffect.tsx
src/util/useBrowserEffect.tsx
import { DependencyList, EffectCallback, useLayoutEffect } from "react"; /** * Source: https://medium.com/@alexandereardon/uselayouteffect-and-ssr-192986cdcf7a */ function noOpEffect(effect: EffectCallback, deps?: DependencyList) { console.debug("No effect called", effect, deps); } const useBrowserEffect = t...
import { DependencyList, EffectCallback, useLayoutEffect } from "react"; /** * Source: https://medium.com/@alexandereardon/uselayouteffect-and-ssr-192986cdcf7a */ function noOpEffect(effect: EffectCallback, deps?: DependencyList) { // console.debug("No effect called", effect, deps); } const useBrowserEffect = ...
Stop with all the debug output
Stop with all the debug output
TypeScript
apache-2.0
saasquatch/saasquatch-docs,saasquatch/saasquatch-docs,saasquatch/saasquatch-docs
--- +++ @@ -4,9 +4,8 @@ * Source: https://medium.com/@alexandereardon/uselayouteffect-and-ssr-192986cdcf7a */ - function noOpEffect(effect: EffectCallback, deps?: DependencyList) { - console.debug("No effect called", effect, deps); + // console.debug("No effect called", effect, deps); } const useBrowser...
b3b3b9d470fecb7461657daa3dc45f2d746af190
src/app/settings/initial-settings.ts
src/app/settings/initial-settings.ts
import { defaultSettings, Settings as DimApiSettings } from '@destinyitemmanager/dim-api-types'; import { defaultLanguage } from 'app/i18n'; export const enum LoadoutSort { ByEditTime, ByName, } /** * We extend the settings interface so we can try out new settings before committing them to dim-api-types */ expo...
import { defaultSettings, Settings as DimApiSettings } from '@destinyitemmanager/dim-api-types'; import { defaultLanguage } from 'app/i18n'; export const enum LoadoutSort { ByEditTime, ByName, } /** * We extend the settings interface so we can try out new settings before committing them to dim-api-types */ expo...
Change hide tagged to default true
Change hide tagged to default true
TypeScript
mit
delphiactual/DIM,delphiactual/DIM,DestinyItemManager/DIM,DestinyItemManager/DIM,DestinyItemManager/DIM,delphiactual/DIM,DestinyItemManager/DIM,delphiactual/DIM
--- +++ @@ -25,6 +25,6 @@ inventoryClearSpaces: 1, perkList: true, loadoutSort: LoadoutSort.ByEditTime, - itemFeedHideTagged: false, + itemFeedHideTagged: true, itemFeedExpanded: false, };
7d0b51e497b130385527d3de80f2c2dd15335c50
src/client/app/soundcloud/soundcloud.service.ts
src/client/app/soundcloud/soundcloud.service.ts
import { Injectable } from '@angular/core'; import { Http, URLSearchParams } from '@angular/http'; @Injectable() export class SoundcloudService { public basePath: string = 'https://api.soundcloud.com/tracks'; private _clientId: string = '8159b4b99151c48d6aaf6770853bfd7a'; constructor(private _http: Http) { } ...
import { Injectable } from '@angular/core'; import { Http, URLSearchParams } from '@angular/http'; @Injectable() export class SoundcloudService { public basePath: string = 'https://api.soundcloud.com/tracks'; private _clientId: string = '8159b4b99151c48d6aaf6770853bfd7a'; constructor(private _http: Http) { } ...
Set search limit to 200
Set search limit to 200
TypeScript
mit
JavierPDev/SounderProject,JavierPDev/SounderRadio,JavierPDev/SounderRadio,JavierPDev/SounderRadio,JavierPDev/SounderProject,JavierPDev/SounderProject
--- +++ @@ -17,9 +17,11 @@ } public search(searchTerm: string) { + const LIMIT: number = 200; let params = new URLSearchParams(); params.set('client_id', this._clientId); params.set('q', searchTerm); + params.set('limit', LIMIT); return this._http.get(this.basePath, {search: params})...
3e6b7cf1a1832e97efa3289653d1db31f92ce743
server/src/actions/proxy.ts
server/src/actions/proxy.ts
import axios from 'axios'; import { Request, Response } from 'express'; interface ProxyRequest { body: string; headers: { [name: string]: string }; method: string; url: string; } export function proxy(req: Request, res: Response) { const content = req.body as ProxyRequest; const request = { ...
import axios from 'axios'; import { Request, Response } from 'express'; interface ProxyRequest { body: string; headers: { [name: string]: string }; method: string; url: string; } export function proxy(req: Request, res: Response) { const content = req.body as ProxyRequest; const request = { ...
Return data on error from the server
Return data on error from the server
TypeScript
apache-2.0
projectkudu/WebJobsPortal,projectkudu/AzureFunctions,projectkudu/AzureFunctions,projectkudu/AzureFunctions,projectkudu/AzureFunctions,projectkudu/WebJobsPortal,projectkudu/WebJobsPortal,projectkudu/WebJobsPortal
--- +++ @@ -20,7 +20,7 @@ .then(r => res.send(r.data)) .catch(e => { if (e.response && e.response.status) { - res.status(e.response.status).send(e.response); + res.status(e.response.status).send(e.response.data); } else if (e.request) { ...
69fe3050927856d6741e2f25e01660c051e074b6
src/Components/Artwork/Metadata.tsx
src/Components/Artwork/Metadata.tsx
import { Metadata_artwork } from "__generated__/Metadata_artwork.graphql" import { ContextConsumer } from "Artsy" import colors from "Assets/Colors" import { garamond } from "Assets/Fonts" import StyledTextLink from "Components/TextLink" import React from "react" import { createFragmentContainer, graphql } from "react-...
import { Metadata_artwork } from "__generated__/Metadata_artwork.graphql" import colors from "Assets/Colors" import { garamond } from "Assets/Fonts" import StyledTextLink from "Components/TextLink" import React from "react" import { createFragmentContainer, graphql } from "react-relay" import styled from "styled-compon...
Remove the SystemContext around an Artwork metadata because it wasn't being used
Remove the SystemContext around an Artwork metadata because it wasn't being used
TypeScript
mit
artsy/reaction,artsy/reaction-force,xtina-starr/reaction,artsy/reaction-force,artsy/reaction,xtina-starr/reaction,artsy/reaction,xtina-starr/reaction,xtina-starr/reaction
--- +++ @@ -1,5 +1,4 @@ import { Metadata_artwork } from "__generated__/Metadata_artwork.graphql" -import { ContextConsumer } from "Artsy" import colors from "Assets/Colors" import { garamond } from "Assets/Fonts" import StyledTextLink from "Components/TextLink" @@ -22,24 +21,15 @@ const { artwork, className...
8490eadf0cf82226eaafb1c31c0eda818fb5b905
src/UserProvidedSettings.ts
src/UserProvidedSettings.ts
export interface UserProvidedSettings { createSourceMap?: boolean renderUnsafeContent?: boolean idPrefix?: string ellipsis?: string defaultUrlScheme?: string baseForUrlsStartingWithSlash?: string baseForUrlsStartingWithHashMark?: string terms?: UserProvidedSettings.Terms } export namespace UserProvide...
export interface UserProvidedSettings { parsing: UserProvidedSettings.Parsing rendering: UserProvidedSettings.Rendering } export namespace UserProvidedSettings { export interface Parsing { createSourceMap?: boolean defaultUrlScheme?: string baseForUrlsStartingWithSlash?: string baseForUrlsStarti...
Change shape of user-provided settings
[Broken] Change shape of user-provided settings
TypeScript
mit
start/up,start/up
--- +++ @@ -1,47 +1,53 @@ export interface UserProvidedSettings { - createSourceMap?: boolean - renderUnsafeContent?: boolean - idPrefix?: string - ellipsis?: string - defaultUrlScheme?: string - baseForUrlsStartingWithSlash?: string - baseForUrlsStartingWithHashMark?: string - terms?: UserProvidedSettings.T...
36581a6dc0d8e8acfbbf0d34be7b94bf2bd7e7c1
src/console/DatabaseResetCommand.ts
src/console/DatabaseResetCommand.ts
import { Logger } from '../core/Logger'; import * as Knex from 'knex'; import { AbstractCommand } from './lib/AbstractCommand'; import * as options from './../../knexfile'; const log = new Logger(__filename); /** * DatabaseResetCommand rollback all current migrations and * then migrate to the latest one. * * @e...
import { Logger } from '../core/Logger'; import * as Knex from 'knex'; import { AbstractCommand } from './lib/AbstractCommand'; import * as options from './../../knexfile'; const log = new Logger(__filename); /** * DatabaseResetCommand rollback all current migrations and * then migrate to the latest one. * * @e...
Add type to reset database command
Add type to reset database command
TypeScript
mit
w3tecch/express-typescript-boilerplate,w3tecch/express-typescript-boilerplate,w3tecch/express-typescript-boilerplate
--- +++ @@ -20,7 +20,7 @@ public static description = 'Reverse all current migrations and migrate to latest.'; public async run(): Promise<void> { - const knex = Knex(options); + const knex = Knex(options as Knex.Config); const migrate: any = knex.migrate;
c033d0abc2ef2d03b68575339edd40802fd50875
client/src/app/data-services/base.service.ts
client/src/app/data-services/base.service.ts
import { HttpClient, HttpErrorResponse } from '@angular/common/http'; import { Injectable } from '@angular/core'; @Injectable() export class BaseService { constructor(public http: HttpClient) { } public catchHandler = (parameter: HttpErrorResponse): HttpErrorResponse => parameter; }
import { HttpClient, HttpErrorResponse } from '@angular/common/http'; import { Injectable } from '@angular/core'; @Injectable() export class BaseService { constructor(protected http: HttpClient) { } protected catchHandler = (parameter: HttpErrorResponse): HttpErrorResponse => parameter; }
Set BaseService's functions to 'protected'
Set BaseService's functions to 'protected'
TypeScript
mit
Ionaru/EVE-Track,Ionaru/EVE-Track,Ionaru/EVE-Track
--- +++ @@ -4,7 +4,7 @@ @Injectable() export class BaseService { - constructor(public http: HttpClient) { } + constructor(protected http: HttpClient) { } - public catchHandler = (parameter: HttpErrorResponse): HttpErrorResponse => parameter; + protected catchHandler = (parameter: HttpErrorResponse):...
ef25f68aa5e9345950a30a3f2933af0f207e8e4a
src/app/toggle-scroll.service.ts
src/app/toggle-scroll.service.ts
import { Inject, Injectable } from '@angular/core'; import { DOCUMENT } from '@angular/platform-browser'; @Injectable() export class ToggleScrollService { /** * Setting position fixed on body will prevent scroll, and setting overflow * to scroll ensures the scrollbar is always visible. * IE 11 requires an e...
import { Inject, Injectable } from '@angular/core'; import { DOCUMENT } from '@angular/platform-browser'; @Injectable() export class ToggleScrollService { /** * Setting position fixed on body will prevent scroll, and setting overflow * to scroll ensures the scrollbar is always visible. * IE 11 requires an e...
Check scrollTop in toggle scroll
Check scrollTop in toggle scroll
TypeScript
mit
EvictionLab/eviction-maps,EvictionLab/eviction-maps,EvictionLab/eviction-maps,EvictionLab/eviction-maps
--- +++ @@ -9,8 +9,9 @@ * IE 11 requires an empty string rather than null to unset styles. */ set allowScroll(val: boolean) { - this.document.body.style.position = val ? '' : 'fixed'; - this.document.body.style.overflowY = val ? '' : 'scroll'; + const changeScroll = !val && this.document.documentE...
bbd620d2a58bf66d089b53b171b39db37ccec8be
src/customer/types.ts
src/customer/types.ts
export type PhoneNumber = | string | { national_number: string; country_code: string; }; // Customer has only two mandatory fields: name and email, rest are optional. export interface Customer { url?: string; uuid?: string; email: string; name: string; display_name?: string; abbreviatio...
export type PhoneNumber = | string | { national_number: string; country_code: string; }; // Customer has only two mandatory fields: name and email, rest are optional. export interface Customer { url?: string; uuid?: string; email: string; name: string; display_name?: string; abbreviatio...
Remove leftover type field from customer interface.
Remove leftover type field from customer interface.
TypeScript
mit
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
--- +++ @@ -29,7 +29,6 @@ registration_code?: string; domain?: string; homepage?: string; - type?: string; vat_code?: string; image?: string; is_service_provider?: boolean;
90610b09eff6efa7bf18b84c9ec5ccc219293990
frontend/javascript/snippets/search.ts
frontend/javascript/snippets/search.ts
function applyToForm(searchForm: HTMLFormElement) { function submitForm() { searchForm.submit(); } const inputs = searchForm.querySelectorAll('select, input[type="date"]'); let i; for (i = 0; i < inputs.length; i += 1) { const selectInput = inputs[i]; selectInput.addEventListener("change", submitF...
function applyToForm(searchForm: HTMLFormElement) { function submitForm() { searchForm.submit(); } const inputs = searchForm.querySelectorAll('select, input[type="date"]'); let i; for (i = 0; i < inputs.length; i += 1) { const selectInput = inputs[i]; selectInput.addEventListener("change", submitF...
Fix global form typescript error
Fix global form typescript error
TypeScript
mit
fin/froide,stefanw/froide,fin/froide,fin/froide,stefanw/froide,stefanw/froide,fin/froide,stefanw/froide,stefanw/froide
--- +++ @@ -28,7 +28,7 @@ } } -let form = document.querySelector(".search-form") as HTMLFormElement; -if (form !== null) { - applyToForm(form); +let domSearchForm = document.querySelector(".search-form") as HTMLFormElement; +if (domSearchForm !== null) { + applyToForm(domSearchForm); }
a824cf00a62b4a8f68667270ec0635abf987eda3
src/utils/comments/index.ts
src/utils/comments/index.ts
import patternFromPresets from './patternFromPresets'; /** * Resolves difference in length from a string pattern. * The string pattern is how the string looks after being commented, where * `%s` replaces the string * @param {string} commentPattern pattern for the comment (i.e. `// %s`) * @return {number} differen...
import { window } from "vscode"; import patternFromPresets from "./patternFromPresets"; /** * Resolves difference in length from a string pattern. * The string pattern is how the string looks after being commented, where * `%s` replaces the string * @param {string} commentPattern pattern for the comment (i.e. `// ...
Add user prompt for defining comment pattern
Add user prompt for defining comment pattern
TypeScript
mit
guywald1/vscode-prismo
--- +++ @@ -1,4 +1,5 @@ -import patternFromPresets from './patternFromPresets'; +import { window } from "vscode"; +import patternFromPresets from "./patternFromPresets"; /** * Resolves difference in length from a string pattern. @@ -11,15 +12,29 @@ commentPattern: string ) => commentPattern.length - 2; -fu...
be560ac73ca772b8a6184f0364c788311237ce37
src/default-errors.ts
src/default-errors.ts
import {ErrorMessage} from "./Models/ErrorMessage"; export const DEFAULT_ERRORS: ErrorMessage[] = [ { error: 'required', format: label => `${label} is required` }, { error: 'pattern', format: label => `${label} is invalid` }, { error: 'minlength', format: (label, error) => `${label} m...
import {ErrorMessage} from "./Models/ErrorMessage"; export const DEFAULT_ERRORS: ErrorMessage[] = [ { error: 'required', format: label => `${label} is required` }, { error: 'pattern', format: label => `${label} is invalid` }, { error: 'minlength', format: (label, error) => `${label} m...
Add default errors for min and max
Add default errors for min and max
TypeScript
mit
third774/ng-bootstrap-form-validation,third774/ng-bootstrap-form-validation,third774/ng-bootstrap-form-validation
--- +++ @@ -24,5 +24,13 @@ { error: 'email', format: (label, error) => `Invalid email address` + }, + { + error: 'max', + format: (label, error) => `${label} must be no greater than ${error.max}` + }, + { + error: 'min', + format: (label, error) => `${label} must be no less than ${error.m...
b4ae6d7bb2ea21e037875b42fbb04932b0120ddf
source/tasks/startTaskScheduler.ts
source/tasks/startTaskScheduler.ts
import { MONGODB_URI, PERIL_WEBHOOK_SECRET, PUBLIC_FACING_API } from "../globals" import * as Agenda from "agenda" import db from "../db/getDB" import logger from "../logger" import { runTask } from "./runTask" export interface DangerFileTaskConfig { installationID: number taskName: string data: any } export l...
import { MONGODB_URI, PERIL_WEBHOOK_SECRET, PUBLIC_FACING_API } from "../globals" import * as Agenda from "agenda" import db from "../db/getDB" import logger from "../logger" import { runTask } from "./runTask" export interface DangerFileTaskConfig { installationID: number taskName: string data: any } export l...
Add some notes to the scheduler, and make it start
Add some notes to the scheduler, and make it start
TypeScript
mit
danger/peril,danger/peril,danger/peril,danger/peril,danger/peril
--- +++ @@ -16,9 +16,14 @@ export const startTaskScheduler = async () => { agenda = new Agenda({ db: { address: MONGODB_URI } }) + agenda.on("ready", () => { + logger.info("Task runner ready") + agenda.start() + }) agenda.define(runDangerfileTaskName, async (job, done) => { const data = job.at...
c74e5fb759a7f7bd01bfd4e10af0ea44d87ec131
services/api/src/resources/environment/sql.ts
services/api/src/resources/environment/sql.ts
const { knex } = require('../../util/db'); export const Sql = { updateEnvironment: ({ id, patch }: { id: number, patch: { [key: string]: any } }) => knex('environment') .where('id', '=', id) .update(patch) .toString(), selectEnvironmentById: (id: number) => knex('environment') .wher...
const { knex } = require('../../util/db'); export const Sql = { updateEnvironment: ({ id, patch }: { id: number, patch: { [key: string]: any } }) => { const updatePatch = { ...patch, updated: knex.fn.now(), }; return knex('environment') .where('id', '=', id) .update(updatePatch) ...
Fix updateEnvironment mutation not setting "updated" date
Fix updateEnvironment mutation not setting "updated" date
TypeScript
apache-2.0
amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon
--- +++ @@ -1,11 +1,17 @@ const { knex } = require('../../util/db'); export const Sql = { - updateEnvironment: ({ id, patch }: { id: number, patch: { [key: string]: any } }) => - knex('environment') - .where('id', '=', id) - .update(patch) - .toString(), + updateEnvironment: ({ id, patch }: { ...
b4b7dc9826c0981cedd0182d8b1fcb7f0bad964a
packages/lesswrong/server/intercomSetup.ts
packages/lesswrong/server/intercomSetup.ts
import Intercom from 'intercom-client'; import { DatabaseServerSetting } from './databaseSettings'; // Initiate Intercom on the server const intercomTokenSetting = new DatabaseServerSetting<string | null>("intercomToken", null) let intercomClient: any = null; export const getIntercomClient = () => { if (!intercomCl...
import { Client } from 'intercom-client'; import { DatabaseServerSetting } from './databaseSettings'; // Initiate Intercom on the server const intercomTokenSetting = new DatabaseServerSetting<string | null>("intercomToken", null) let intercomClient: any = null; export const getIntercomClient = () => { if (!intercom...
Fix crash due to importing Intercom in the wrong way
Fix crash due to importing Intercom in the wrong way
TypeScript
mit
Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2
--- +++ @@ -1,4 +1,4 @@ -import Intercom from 'intercom-client'; +import { Client } from 'intercom-client'; import { DatabaseServerSetting } from './databaseSettings'; // Initiate Intercom on the server @@ -7,7 +7,7 @@ let intercomClient: any = null; export const getIntercomClient = () => { if (!intercomClie...
15f0662e77a580c66676f3c73ce2fdd77f856d3b
src/components/progress-bar/progress-bar.tsx
src/components/progress-bar/progress-bar.tsx
import { Component, Prop, h } from '@stencil/core'; /** * @since 2.0 * @status stable * * @slot - A label to show inside the indicator. * * @part base - The component's base wrapper. * @part indicator - The progress bar indicator. * @part label - The progress bar label. */ @Component({ tag: 'sl-progress-ba...
import { Component, Prop, h } from '@stencil/core'; /** * @since 2.0 * @status stable * * @slot - A label to show inside the indicator. * * @part base - The component's base wrapper. * @part indicator - The progress bar indicator. * @part label - The progress bar label. */ @Component({ tag: 'sl-progress-ba...
Fix bug where progress bar had the wrong part name
Fix bug where progress bar had the wrong part name
TypeScript
mit
claviska/shoelace-css,shoelace-style/shoelace,claviska/shoelace-css,shoelace-style/shoelace,shoelace-style/shoelace
--- +++ @@ -31,7 +31,7 @@ aria-valuenow={this.percentage} > <div - part="base" + part="indicator" class="progress-bar__indicator" style={{ width: `${this.percentage}%`
d7a8fa91bf96d8ada70053179ac2100f7101fcf2
app/src/ui/updates/update-available.tsx
app/src/ui/updates/update-available.tsx
import * as React from 'react' import { LinkButton } from '../lib/link-button' import { Dispatcher } from '../../lib/dispatcher' import { updateStore } from '../lib/update-store' import { Octicon, OcticonSymbol } from '../octicons' interface IUpdateAvailableProps { readonly dispatcher: Dispatcher } /** * A compone...
import * as React from 'react' import { LinkButton } from '../lib/link-button' import { Dispatcher } from '../../lib/dispatcher' import { updateStore } from '../lib/update-store' import { Octicon, OcticonSymbol } from '../octicons' interface IUpdateAvailableProps { readonly dispatcher: Dispatcher } /** * A compone...
Move icons outside of text element
Move icons outside of text element
TypeScript
mit
hjobrien/desktop,hjobrien/desktop,desktop/desktop,say25/desktop,desktop/desktop,BugTesterTest/desktops,hjobrien/desktop,kactus-io/kactus,j-f1/forked-desktop,artivilla/desktop,j-f1/forked-desktop,shiftkey/desktop,say25/desktop,BugTesterTest/desktops,BugTesterTest/desktops,artivilla/desktop,say25/desktop,desktop/desktop,...
--- +++ @@ -19,14 +19,17 @@ id='update-available' onSubmit={this.updateNow} > + <Octicon symbol={OcticonSymbol.desktopDownload} /> + <span> - <Octicon symbol={OcticonSymbol.desktopDownload} /> An updated version of GitHub Desktop is avalble and will be inst...
1573be8e2f68cf480e2fa55a3fd91a51992ffdb2
src/Assets/Icons/ChevronIcon.tsx
src/Assets/Icons/ChevronIcon.tsx
import { color } from "@artsy/palette" import React from "react" export enum Direction { LEFT, RIGHT, } interface IconProps { /** default is RIGHT */ direction?: Direction /** default is black10 */ fill?: string } export const ChevronIcon = ({ direction, fill }: IconProps) => ( <svg xmlns="http://...
import { color } from "@artsy/palette" import React from "react" export enum Direction { LEFT = "rotate(0deg)", RIGHT = "rotate(180deg)", UP = "rotate(90deg)", DOWN = "rotate(270deg)", } interface IconProps { /** default is RIGHT */ direction?: Direction /** default is black10 */ fill?: string } exp...
Add the other two directions
Add the other two directions Use rotate instead of scale too. h/t @sepans
TypeScript
mit
xtina-starr/reaction,artsy/reaction,artsy/reaction-force,artsy/reaction,artsy/reaction,artsy/reaction-force,xtina-starr/reaction,xtina-starr/reaction,xtina-starr/reaction
--- +++ @@ -2,8 +2,10 @@ import React from "react" export enum Direction { - LEFT, - RIGHT, + LEFT = "rotate(0deg)", + RIGHT = "rotate(180deg)", + UP = "rotate(90deg)", + DOWN = "rotate(270deg)", } interface IconProps { @@ -20,7 +22,7 @@ viewBox="0 0 12 12" width="8px" height="8px" - t...
2d8cc9d0d173a99f4435696ea805b2925b53fc32
src/app/app.component.ts
src/app/app.component.ts
import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent { title = 'app works!'; }
import { Component, HostListener, ViewChild } from '@angular/core'; import { MdSidenav } from '@angular/material'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent { @ViewChild(MdSidenav) sidenav: MdSidenav; @HostListener...
Hide sidebar when viewport is too small
Hide sidebar when viewport is too small
TypeScript
mit
exequiel09/angular-lecture,exequiel09/angular-lecture,exequiel09/angular-lecture
--- +++ @@ -1,4 +1,5 @@ -import { Component } from '@angular/core'; +import { Component, HostListener, ViewChild } from '@angular/core'; +import { MdSidenav } from '@angular/material'; @Component({ selector: 'app-root', @@ -6,5 +7,16 @@ styleUrls: ['./app.component.css'] }) export class AppComponent { - t...
d81c02dab4357c4efe4ee99fa90f7d344538b3de
peril/compareReactionSchema.ts
peril/compareReactionSchema.ts
import { buildSchema } from "graphql" const { diff: schemaDiff } = require("@graphql-inspector/core") import fetch from "node-fetch" import { warn, danger } from "danger" // If there is a breaking change between the local schema, // and the current Reaction one, warn. export default async () => { const forcePackageJ...
import { buildSchema } from "graphql" const { diff: schemaDiff } = require("@graphql-inspector/core") import fetch from "node-fetch" import { warn, danger } from "danger" // If there is a breaking change between the local schema, // and the current Reaction one, warn. export default async () => { const forcePackageJ...
Tweak output of schema warning
[Peril] Tweak output of schema warning
TypeScript
mit
artsy/metaphysics,artsy/metaphysics,artsy/metaphysics
--- +++ @@ -7,7 +7,7 @@ // and the current Reaction one, warn. export default async () => { const forcePackageJSON = await (await fetch( - "https://raw.githubusercontent.com/artsy/force/release/package.json" + "https://raw.githubusercontent.com/artsy/force/master/package.json" )).json() const reactio...
89df763147d2a9e2de711ef807cc2a03a4a62e64
src/index.ts
src/index.ts
import Shuffler from "./shuffler"; new Shuffler().run();
#! /usr/bin/env node import Shuffler from "./shuffler"; new Shuffler().run();
Fix CLI usage to be executable
Fix CLI usage to be executable
TypeScript
mit
nickp10/shuffler,nickp10/shuffler
--- +++ @@ -1,3 +1,5 @@ +#! /usr/bin/env node + import Shuffler from "./shuffler"; new Shuffler().run();