Skip to content

Commit 552ed8c

Browse files
committed
Update client-side build
1 parent 622442e commit 552ed8c

File tree

127 files changed

+1134
-1967
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+1134
-1967
lines changed

client-side/common.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import assert from '../lib/assert'
2-
import Type from '../types/type'
32

43
assert(typeof ArrayBuffer !== 'undefined', 'ArrayBuffer not supported')
54
assert(typeof fetch !== 'undefined', 'fetch() not supported')
@@ -11,5 +10,4 @@ assert(typeof WeakMap !== 'undefined', 'WeakMap not supported')
1110

1211
export * from '../types'
1312
export * from '../recursive-registry'
14-
export {assert}
15-
export {Type}
13+
export {assert}

compiled/download.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compiled/upload-download.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compiled/upload.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/io.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/// <reference types="node" />
22
import * as http from 'http';
33
import { Readable, Writable } from 'stream';
4-
import Type from './types/type';
4+
import { Type } from './types';
55
export interface WriteParams<E> {
66
type: Type<E>;
77
outStream: Writable;

dist/lib/read-util.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ exports.NOT_LONG_ENOUGH = 'Buffer is not long enough';
2323
*/
2424
function makeBaseValue(readType, count) {
2525
switch (readType.constructor) {
26-
case array_1.default: return new Array(count);
27-
case tuple_1.default: return new Array(readType.length);
28-
case map_1.default: return new Map;
29-
case set_1.default: return new Set;
30-
case struct_1.default: return {};
26+
case array_1.ArrayType: return new Array(count);
27+
case tuple_1.TupleType: return new Array(readType.length);
28+
case map_1.MapType: return new Map;
29+
case set_1.SetType: return new Set;
30+
case struct_1.StructType: return {};
3131
/*istanbul ignore next*/
3232
default: throw new Error('Invalid type for base value: ' + util_inspect_1.inspect(readType));
3333
}

dist/lib/write-iterable.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import AppendableBuffer from './appendable';
2-
import Type from '../types/type';
2+
import { Type } from '../types';
33
export interface IterableWriteParams<E> {
44
type: Type<E>;
55
buffer: AppendableBuffer;

dist/recursive-registry.js

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
"use strict";
22
Object.defineProperty(exports, "__esModule", { value: true });
33
const assert_1 = require("./lib/assert");
4-
const array_1 = require("./types/array");
5-
const map_1 = require("./types/map");
6-
const set_1 = require("./types/set");
7-
const struct_1 = require("./types/struct");
8-
const tuple_1 = require("./types/tuple");
4+
const types_1 = require("./types");
95
//A map of names of recursive types to their types
106
const registeredTypes = new Map();
117
/**
@@ -54,11 +50,11 @@ const registeredTypes = new Map();
5450
*/
5551
function registerType({ type, name }) {
5652
assert_1.default.instanceOf(type, [
57-
array_1.default,
58-
map_1.default,
59-
set_1.default,
60-
struct_1.default,
61-
tuple_1.default
53+
types_1.ArrayType,
54+
types_1.MapType,
55+
types_1.SetType,
56+
types_1.StructType,
57+
types_1.TupleType
6258
]);
6359
assert_1.default.instanceOf(name, String);
6460
assert_1.default(!isRegistered(name), `"${name}" is already a registered type`);

dist/types/abstract.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import AppendableBuffer from '../lib/appendable';
22
import { ReadResult } from '../lib/read-util';
3-
import Type from './type';
3+
import { Type } from './type';
44
/**
55
* The superclass of all [[Type]] classes
66
* in this package

dist/types/array.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import AppendableBuffer from '../lib/appendable';
22
import { ReadResult } from '../lib/read-util';
33
import AbsoluteType from './absolute';
4-
import Type from './type';
4+
import { Type } from './type';
55
/**
66
* A type storing a variable-length array of values of the same type
77
*
@@ -26,7 +26,7 @@ import Type from './type';
2626
* @param READ_E The type of each element
2727
* in the read array
2828
*/
29-
export default class ArrayType<E, READ_E extends E = E> extends AbsoluteType<E[], READ_E[]> {
29+
export declare class ArrayType<E, READ_E extends E = E> extends AbsoluteType<E[], READ_E[]> {
3030
static readonly _value: number;
3131
/**
3232
* The [[Type]] passed into the constructor

0 commit comments

Comments
 (0)