How to use the tslib.__importStar function in tslib

To help you get started, we’ve selected a few tslib examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github loomnetwork / loom-js / dist / index.js View on Github external
exports.LocalAddress = address_1.LocalAddress;
var big_uint_1 = require("./big-uint");
exports.unmarshalBigUIntPB = big_uint_1.unmarshalBigUIntPB;
exports.marshalBigUIntPB = big_uint_1.marshalBigUIntPB;
var middleware_1 = require("./middleware");
exports.SignedTxMiddleware = middleware_1.SignedTxMiddleware;
exports.SignedEthTxMiddleware = middleware_1.SignedEthTxMiddleware;
exports.NonceTxMiddleware = middleware_1.NonceTxMiddleware;
exports.CachedNonceTxMiddleware = middleware_1.CachedNonceTxMiddleware;
exports.SpeculativeNonceTxMiddleware = middleware_1.SpeculativeNonceTxMiddleware;
exports.isInvalidTxNonceError = middleware_1.isInvalidTxNonceError;
var helpers_1 = require("./helpers");
exports.createDefaultTxMiddleware = helpers_1.createDefaultTxMiddleware;
var loom_provider_1 = require("./loom-provider");
exports.LoomProvider = loom_provider_1.LoomProvider;
var Contracts = tslib_1.__importStar(require("./contracts"));
exports.Contracts = Contracts;
var CryptoUtils = tslib_1.__importStar(require("./crypto-utils"));
exports.CryptoUtils = CryptoUtils;
var rpc_client_factory_1 = require("./rpc-client-factory");
exports.createJSONRPCClient = rpc_client_factory_1.createJSONRPCClient;
// The Plasma Cash client API should be considered experimental, interfaces are likely to change.
var dappchain_client_1 = require("./plasma-cash/dappchain-client");
exports.DAppChainPlasmaClient = dappchain_client_1.DAppChainPlasmaClient;
var ethereum_client_1 = require("./plasma-cash/ethereum-client");
exports.EthereumPlasmaClient = ethereum_client_1.EthereumPlasmaClient;
exports.PlasmaCoinState = ethereum_client_1.PlasmaCoinState;
exports.marshalChallengeEvent = ethereum_client_1.marshalChallengeEvent;
var plasma_cash_tx_1 = require("./plasma-cash/plasma-cash-tx");
exports.PlasmaCashTx = plasma_cash_tx_1.PlasmaCashTx;
var solidity_helpers_1 = require("./solidity-helpers");
exports.OfflineWeb3Signer = solidity_helpers_1.OfflineWeb3Signer;
github PedroGao / lin-cms-koa-braver / packages / core / lib / config / config.js View on Github external
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const path = tslib_1.__importStar(require("path"));
const lodash_1 = require("lodash");
/**
 * Config类的实现
 * 帮助应用从文件中读取配置,目前仅支持从js文件中读取配置,加入json,yml
 *
 * ```js
 * const config = new Config();
 * config.getConfigFromFile("path/file");
 * ```
 *
 * 当然也支持从object对象中获取配置
 * ```js
 * config.getConfigFromObj({...});
 * ```
 *
 * 获取配置项
github epiclabs-io / epic-video-comparator / dist / comparator.js View on Github external
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var epic_video_player_1 = require("@epiclabs/epic-video-player");
var models_1 = require("./models");
var pid_controller_1 = require("./pid-controller");
var screenfull = tslib_1.__importStar(require("screenfull"));
var Comparator = /** @class */ (function () {
    function Comparator(config, container) {
        var _this = this;
        this.config = config;
        this.container = container;
        this.leftPlayerData = {};
        this.rightPlayerData = {};
        this.isSplitterSticked = true;
        this.isFullScreen = false;
        this.statsInterval = undefined;
        this.onFullscreenChange = function () {
            _this.isFullScreen = !_this.isFullScreen;
            _this.toggleFullScreenClasses();
            _this.resizePlayers();
        };
        this.resizePlayers = function () {
github jeroenouw / liftr-tscov / lib / tscov / min-coverage.js View on Github external
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var fs = tslib_1.__importStar(require("fs"));
var util = tslib_1.__importStar(require("util"));
var path = tslib_1.__importStar(require("path"));
var inversify_1 = require("inversify");
var MinCoverage = /** @class */ (function () {
    function MinCoverage() {
        this.existsAsync = util.promisify(fs.stat);
        this.readFileAsync = util.promisify(fs.readFile);
    }
    MinCoverage.prototype.getMinCoverage = function (argv) {
        return tslib_1.__awaiter(this, void 0, void 0, function () {
            var minCoverage, packageJsonPath, currentPackageJson, _a, _b;
            return tslib_1.__generator(this, function (_c) {
                switch (_c.label) {
                    case 0:
                        packageJsonPath = path.resolve(process.cwd(), 'package.json');
                        return [4 /*yield*/, this.existsAsync(packageJsonPath)];
github IlanFrumer / BitMEX-nodejs / dist / index.js View on Github external
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const BITMEX = tslib_1.__importStar(require("./common/BitmexInterfaces"));
exports.BITMEX = BITMEX;
var BitmexAPI_1 = require("./api/BitmexAPI");
exports.BitmexAPI = BitmexAPI_1.BitmexAPI;
var BitmexSocket_1 = require("./socket/BitmexSocket");
exports.BitmexSocket = BitmexSocket_1.BitmexSocket;
github jeroenouw / liftr-tscov / lib / tscov / ts-config.js View on Github external
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
require("reflect-metadata");
var typescript_1 = tslib_1.__importDefault(require("typescript"));
var fs = tslib_1.__importStar(require("fs"));
var path = tslib_1.__importStar(require("path"));
var glob_1 = tslib_1.__importDefault(require("glob"));
var inversify_1 = require("inversify");
var TsConfig = /** @class */ (function () {
    function TsConfig() {
    }
    TsConfig.prototype.getTsConfigFilePath = function (project) {
        var configFilePath;
        var dirname;
        var projectStats = fs.statSync(project);
        if (projectStats.isDirectory()) {
            configFilePath = path.resolve(project, 'tsconfig.json');
            dirname = project;
        }
        else if (projectStats.isFile()) {
            configFilePath = project;
            dirname = path.dirname(project);
github jeroenouw / liftr-tscov / lib / tscov / tscov.js View on Github external
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
require("reflect-metadata");
var minimist_1 = tslib_1.__importDefault(require("minimist"));
var path = tslib_1.__importStar(require("path"));
var packageJson = tslib_1.__importStar(require("../../package.json"));
var kleur_1 = require("kleur");
var inversify_1 = require("inversify");
var check_types_1 = require("./check-types");
var options_1 = require("./options");
var min_coverage_1 = require("./min-coverage");
var figlet = require('figlet');
var Tscov = /** @class */ (function () {
    function Tscov(options, checkTypes, minCoverage) {
        var _this = this;
        this.options = options;
        this.checkTypes = checkTypes;
        this.minCoverage = minCoverage;
        this.suppressError = false;
        try {
            this.executeTscov().then(function () { return _this.showSpacesLog(); });