Skip to content

Commit

Permalink
add prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
rinick committed Nov 15, 2019
1 parent 9755a5c commit 7fcfdff
Show file tree
Hide file tree
Showing 112 changed files with 1,375 additions and 1,523 deletions.
9 changes: 9 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"tabWidth": 2,
"printWidth": 120,
"semi": true,
"singleQuote": true,
"bracketSpacing": false,
"arrowParens": "always",
"quoteProps": "consistent"
}
20 changes: 10 additions & 10 deletions js/node.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
export { HttpClientLink } from "./src/nodejs/client-link";
export { DSLink } from "./src/nodejs/cli-link-wrapper";
export { Table, TableColumn } from "./src/common/table";
export { BaseLocalNode } from "./src/responder/base-local-node";
export { RootNode } from "./src/responder/node/root-node";
export { ValueNode } from "./src/responder/node/value-node";
export { ActionNode } from "./src/responder/node/action-node";
export { Permission } from "./src/common/permission";
export { DsError } from "./src/common/interfaces";
export { Logger, logger } from "./src/utils/logger";
export { HttpClientLink } from './src/nodejs/client-link';
export { DSLink } from './src/nodejs/cli-link-wrapper';
export { Table, TableColumn } from './src/common/table';
export { BaseLocalNode } from './src/responder/base-local-node';
export { RootNode } from './src/responder/node/root-node';
export { ValueNode } from './src/responder/node/value-node';
export { ActionNode } from './src/responder/node/action-node';
export { Permission } from './src/common/permission';
export { DsError } from './src/common/interfaces';
export { Logger, logger } from './src/utils/logger';
10 changes: 5 additions & 5 deletions js/src/browser/browser-user-link.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { ClientLink, ECDH } from "../common/interfaces";
import { Completer } from "../utils/async";
import { Requester } from "../requester/requester";
import { PrivateKey } from "../crypto/pk";
import { WebSocketConnection } from "./browser-ws-conn";
import { ClientLink, ECDH } from '../common/interfaces';
import { Completer } from '../utils/async';
import { Requester } from '../requester/requester';
import { PrivateKey } from '../crypto/pk';
import { WebSocketConnection } from './browser-ws-conn';
export declare class BrowserUserLink extends ClientLink {
/** @ignore */
_onRequesterReadyCompleter: Completer<Requester>;
Expand Down
10 changes: 6 additions & 4 deletions js/src/browser/browser-user-link.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions js/src/browser/browser-ws-conn.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ClientLink, Connection, ConnectionChannel } from "../common/interfaces";
import { PassiveChannel } from "../common/connection-channel";
import { Completer } from "../utils/async";
import { DsCodec } from "../utils/codec";
import { ClientLink, Connection, ConnectionChannel } from '../common/interfaces';
import { PassiveChannel } from '../common/connection-channel';
import { Completer } from '../utils/async';
import { DsCodec } from '../utils/codec';
export declare class WebSocketConnection extends Connection {
_responderChannel: PassiveChannel;
readonly responderChannel: ConnectionChannel;
Expand Down
55 changes: 27 additions & 28 deletions js/src/browser/browser-ws-conn.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions js/src/common/connection-channel.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Completer, Stream } from "../utils/async";
import { Connection, ConnectionChannel, ProcessorResult } from "./interfaces";
import { ConnectionHandler } from "./connection-handler";
import { Completer, Stream } from '../utils/async';
import { Connection, ConnectionChannel, ProcessorResult } from './interfaces';
import { ConnectionHandler } from './connection-handler';
export declare class PassiveChannel implements ConnectionChannel {
onReceive: Stream<any[]>;
_processors: Function[];
Expand Down
4 changes: 2 additions & 2 deletions js/src/common/connection-handler.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ConnectionChannel, ConnectionProcessor, ProcessorResult } from "./interfaces";
import { StreamSubscription } from "../utils/async";
import { ConnectionChannel, ConnectionProcessor, ProcessorResult } from './interfaces';
import { StreamSubscription } from '../utils/async';
export declare const DSA_CONFIG: {
ackWaitCount: number;
defaultCacheSize: number;
Expand Down
2 changes: 1 addition & 1 deletion js/src/common/connection-handler.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 15 additions & 15 deletions js/src/common/default-defs.d.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
export declare const defaultProfileMap: {
"node": {};
"static": {};
"getHistory": {
"$invokable": string;
"$result": string;
"$params": ({
"name": string;
"type": string;
"editor": string;
node: {};
static: {};
getHistory: {
$invokable: string;
$result: string;
$params: ({
name: string;
type: string;
editor: string;
} | {
"name": string;
"type": string;
"editor"?: undefined;
name: string;
type: string;
editor?: undefined;
})[];
"$columns": {
"name": string;
"type": string;
$columns: {
name: string;
type: string;
}[];
};
};
87 changes: 38 additions & 49 deletions js/src/common/default-defs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7fcfdff

Please sign in to comment.