Expand license header (#48)

This commit is contained in:
Jaco Greeff
2018-01-15 21:48:22 +01:00
committed by GitHub
parent f49ff7ba3f
commit 671314f91d
37 changed files with 111 additions and 37 deletions
+3 -1
View File
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff // Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow // @flow
module.exports = function echo (value: mixed): mixed { module.exports = function echo (value: mixed): mixed {
+3 -1
View File
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff // Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
const echo = require('./echo'); const echo = require('./echo');
+3 -1
View File
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff // Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow // @flow
const formatInputs = require('./input'); const formatInputs = require('./input');
+3 -1
View File
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff // Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow // @flow
import type { InterfaceInputType } from '@polkadot/api-jsonrpc/types'; import type { InterfaceInputType } from '@polkadot/api-jsonrpc/types';
+3 -1
View File
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff // Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
const { formatInputs } = require('./index'); const { formatInputs } = require('./index');
+3 -1
View File
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff // Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow // @flow
import type { InterfaceOutputType } from '@polkadot/api-jsonrpc/types'; import type { InterfaceOutputType } from '@polkadot/api-jsonrpc/types';
+3 -1
View File
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff // Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
const BN = require('bn.js'); const BN = require('bn.js');
+3 -1
View File
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff // Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow // @flow
// flowlint-next-line unclear-type:off // flowlint-next-line unclear-type:off
+3 -1
View File
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff // Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow // @flow
import type { FormatInputType, FormatOutputType } from '@polkadot/api-jsonrpc/types'; import type { FormatInputType, FormatOutputType } from '@polkadot/api-jsonrpc/types';
+3 -1
View File
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff // Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
const { format, formatArray } = require('./util'); const { format, formatArray } = require('./util');
const echo = require('./echo'); const echo = require('./echo');
+3 -1
View File
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff // Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow // @flow
import type { InterfaceMethodDefinition } from '../types'; import type { InterfaceMethodDefinition } from '../types';
+3 -1
View File
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff // Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow // @flow
import type { InterfaceDefinition } from '../types'; import type { InterfaceDefinition } from '../types';
+3 -1
View File
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff // Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow // @flow
import type { InterfaceDefinition } from './types'; import type { InterfaceDefinition } from './types';
+3 -1
View File
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff // Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
const interfaces = require('./index'); const interfaces = require('./index');
+3 -1
View File
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff // Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow // @flow
import type { InterfaceMethodDefinition } from '../types'; import type { InterfaceMethodDefinition } from '../types';
+3 -1
View File
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff // Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow // @flow
import type { InterfaceMethodDefinition } from '../types'; import type { InterfaceMethodDefinition } from '../types';
+3 -1
View File
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff // Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow // @flow
import type { InterfaceDefinition } from '../types'; import type { InterfaceDefinition } from '../types';
+3 -1
View File
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff // Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow // @flow
export type FormatInputType = 'Address' | 'CallData' | 'H256' | 'HeaderHash' | 'String'; export type FormatInputType = 'Address' | 'CallData' | 'H256' | 'HeaderHash' | 'String';
+3 -1
View File
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff // Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow // @flow
import type { ProviderInterface } from '../types'; import type { ProviderInterface } from '../types';
+3 -1
View File
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff // Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
const { mockHttp, TEST_HTTP_URL } = require('../../test/mockHttp'); const { mockHttp, TEST_HTTP_URL } = require('../../test/mockHttp');
+3 -1
View File
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff // Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow // @flow
if (typeof fetch === 'undefined') { if (typeof fetch === 'undefined') {
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff // Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
describe('http/polyfill', () => { describe('http/polyfill', () => {
let origFetch; let origFetch;
+3 -1
View File
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff // Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow // @flow
const Http = require('./http'); const Http = require('./http');
+3 -1
View File
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff // Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow // @flow
import type { JsonRpcRequest, JsonRpcResponse } from './types'; import type { JsonRpcRequest, JsonRpcResponse } from './types';
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff // Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
const JsonRpcCoder = require('./jsonRpcCoder'); const JsonRpcCoder = require('./jsonRpcCoder');
+3 -1
View File
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff // Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow // @flow
export type JsonRpcObject = { export type JsonRpcObject = {
+3 -1
View File
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff // Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow // @flow
import type { JsonRpcResponse, ProviderInterface } from '../types'; import type { JsonRpcResponse, ProviderInterface } from '../types';
+3 -1
View File
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff // Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
const { mockWs, TEST_WS_URL } = require('../../test/mockWs'); const { mockWs, TEST_WS_URL } = require('../../test/mockWs');
+3 -1
View File
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff // Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow // @flow
if (typeof WebSocket === 'undefined') { if (typeof WebSocket === 'undefined') {
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff // Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
describe('ws/polyfill', () => { describe('ws/polyfill', () => {
let origWs; let origWs;
+3 -1
View File
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff // Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
const nock = require('nock'); const nock = require('nock');
+3 -1
View File
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff // Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
const { Server } = require('mock-socket'); const { Server } = require('mock-socket');
+3 -1
View File
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff // Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow // @flow
import type { ProviderInterface } from '@polkadot/api-provider/types'; import type { ProviderInterface } from '@polkadot/api-provider/types';
+3 -1
View File
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff // Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
const isFunction = require('@polkadot/util/is/function'); const isFunction = require('@polkadot/util/is/function');
+3 -1
View File
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff // Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow // @flow
const Api = require('./api'); const Api = require('./api');
+3 -1
View File
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff // Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
const Api = require('./index'); const Api = require('./index');
+3 -1
View File
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff // Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow // @flow
export type ApiInterface$Section = { export type ApiInterface$Section = {