New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@plexus-interop/common

Package Overview
Dependencies
Maintainers
2
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@plexus-interop/common - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

8

dist/main/src/cache/Cache.d.ts
/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,3 +18,3 @@ * See the License for the specific language governing permissions and

*/
import { CacheEntry } from "./CacheEntry";
import { CacheEntry } from './CacheEntry';
export interface Cache {

@@ -21,0 +21,0 @@ set<T>(key: string, entry: CacheEntry<T>): Promise<void>;

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -15,0 +15,0 @@ * See the License for the specific language governing permissions and

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -14,3 +14,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -17,0 +17,0 @@ * See the License for the specific language governing permissions and

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,3 +18,3 @@ * See the License for the specific language governing permissions and

*/
import { CacheEntry } from "./CacheEntry";
import { CacheEntry } from './CacheEntry';
export declare class CacheEntryDescriptor<T> {

@@ -21,0 +21,0 @@ readonly entry: CacheEntry<T>;

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,4 +18,4 @@ * See the License for the specific language governing permissions and

*/
export * from "./Cache";
export * from "./CacheEntry";
export * from "./InMemoryCache";
export * from './Cache';
export * from './CacheEntry';
export * from './InMemoryCache';
/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,4 +18,4 @@ * See the License for the specific language governing permissions and

*/
import { Cache } from "./Cache";
import { CacheEntry } from "./CacheEntry";
import { Cache } from './Cache';
import { CacheEntry } from './CacheEntry';
export declare class InMemoryCache implements Cache {

@@ -22,0 +22,0 @@ private readonly log;

@@ -6,6 +6,6 @@ "use strict";

var logger_1 = require("../logger");
var globalObj = typeof window !== "undefined" ? window : global;
var globalObj = typeof window !== 'undefined' ? window : global;
var InMemoryCache = /** @class */ (function () {
function InMemoryCache() {
this.log = logger_1.LoggerFactory.getLogger("InMemoryCache");
this.log = logger_1.LoggerFactory.getLogger('InMemoryCache');
this.storage = new Map();

@@ -12,0 +12,0 @@ }

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,5 +18,5 @@ * See the License for the specific language governing permissions and

*/
export * from "./util";
export * from "./logger";
export * from "./rx";
export * from "./cache";
export * from './util';
export * from './logger';
export * from './rx';
export * from './cache';

@@ -5,6 +5,6 @@ "use strict";

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -16,3 +16,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -19,0 +19,0 @@ * See the License for the specific language governing permissions and

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,4 +18,4 @@ * See the License for the specific language governing permissions and

*/
import { LogLevel } from "./LoggerFactory";
import { Logger } from "./Logger";
import { LogLevel } from './LoggerFactory';
import { Logger } from './Logger';
export declare class DelegatingLogger implements Logger {

@@ -22,0 +22,0 @@ private mainLogger;

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,4 +18,4 @@ * See the License for the specific language governing permissions and

*/
export * from "./Logger";
export * from "./LoggerFactory";
export * from "./PrefixedLogger";
export * from './Logger';
export * from './LoggerFactory';
export * from './PrefixedLogger';
/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,3 +18,3 @@ * See the License for the specific language governing permissions and

*/
import { LogLevel } from "./LoggerFactory";
import { LogLevel } from './LoggerFactory';
export interface Logger {

@@ -21,0 +21,0 @@ debug(msg: string, ...args: any[]): void;

@@ -1,3 +0,3 @@

import { Logger, LoggerDelegate } from "./Logger";
import { LogLevel } from "./LoggerFactory";
import { Logger, LoggerDelegate } from './Logger';
import { LogLevel } from './LoggerFactory';
export declare class LoggerBase implements Logger, LoggerDelegate {

@@ -4,0 +4,0 @@ name: string;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -14,3 +14,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -17,0 +17,0 @@ * See the License for the specific language governing permissions and

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,4 +18,4 @@ * See the License for the specific language governing permissions and

*/
import { LoggerDelegate } from "./index";
import { Logger } from "./Logger";
import { LoggerDelegate } from './index';
import { Logger } from './Logger';
export declare enum LogLevel {

@@ -22,0 +22,0 @@ TRACE = 0,

@@ -6,3 +6,3 @@ "use strict";

var TimeUtils_1 = require("../util/time/TimeUtils");
var logPrefixer = require("loglevel-plugin-prefix");
var logPrefixer = require('loglevel-plugin-prefix');
var LogLevel;

@@ -28,3 +28,3 @@ (function (LogLevel) {

LoggerFactory.getLogger = function (name) {
if (name === void 0) { name = "Anonymous"; }
if (name === void 0) { name = 'Anonymous'; }
return new LoggerBase_1.LoggerBase(name, this.additionalRecipients);

@@ -36,3 +36,3 @@ };

logPrefixer.apply(log, {
template: "%t | [%l] ",
template: '%t | [%l] ',
timestampFormatter: function (date) { return TimeUtils_1.TimeUtils.format(date); }

@@ -39,0 +39,0 @@ });

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,3 +18,3 @@ * See the License for the specific language governing permissions and

*/
import { Logger, LogLevel } from ".";
import { Logger, LogLevel } from '.';
export declare class PrefixedLogger implements Logger {

@@ -21,0 +21,0 @@ private readonly base;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -14,3 +14,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -23,3 +23,3 @@ * See the License for the specific language governing permissions and

function PrefixedLogger(base, prefix) {
if (prefix === void 0) { prefix = ""; }
if (prefix === void 0) { prefix = ''; }
this.base = base;

@@ -26,0 +26,0 @@ this.prefix = prefix;

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,3 +18,3 @@ * See the License for the specific language governing permissions and

*/
import { Subscription } from "./Subscription";
import { Subscription } from './Subscription';
export declare class AnonymousSubscription implements Subscription {

@@ -21,0 +21,0 @@ readonly unsubscribe: () => void;

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,4 +18,4 @@ * See the License for the specific language governing permissions and

*/
import { Observer } from "./Observer";
import { Logger } from "../logger";
import { Observer } from './Observer';
import { Logger } from '../logger';
/**

@@ -22,0 +22,0 @@ * Saves interraction with Observer, until real Observer arrives

@@ -11,3 +11,3 @@ "use strict";

if (limit === void 0) { limit = 1024 * 10; }
if (log === void 0) { log = logger_1.LoggerFactory.getLogger("BufferedObserver"); }
if (log === void 0) { log = logger_1.LoggerFactory.getLogger('BufferedObserver'); }
this.limit = limit;

@@ -20,3 +20,3 @@ this.log = log;

if (this.baseObserver) {
throw new Error("Base observer already defined");
throw new Error('Base observer already defined');
}

@@ -23,0 +23,0 @@ this.baseObserver = observer;

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,3 +18,3 @@ * See the License for the specific language governing permissions and

*/
import { Observer } from "./Observer";
import { Observer } from './Observer';
export declare class ConversionObserver<S, D> implements Observer<D> {

@@ -21,0 +21,0 @@ protected readonly source: Observer<S>;

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,6 +18,6 @@ * See the License for the specific language governing permissions and

*/
export * from "./ConversionObserver";
export * from "./BufferedObserver";
export * from "./Observer";
export * from "./Subscription";
export * from "./AnonymousSubscription";
export * from './ConversionObserver';
export * from './BufferedObserver';
export * from './Observer';
export * from './Subscription';
export * from './AnonymousSubscription';

@@ -5,6 +5,6 @@ "use strict";

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -16,3 +16,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -19,0 +19,0 @@ * See the License for the specific language governing permissions and

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -15,0 +15,0 @@ * See the License for the specific language governing permissions and

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -15,0 +15,0 @@ * See the License for the specific language governing permissions and

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,3 +18,3 @@ * See the License for the specific language governing permissions and

*/
import { ExtendedMap } from "./collections/ExtendedMap";
import { ExtendedMap } from './collections/ExtendedMap';
export declare class Arrays {

@@ -21,0 +21,0 @@ static concatenateBuffers(...buffers: ArrayBuffer[]): ArrayBuffer;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -14,3 +14,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -45,3 +45,3 @@ * See the License for the specific language governing permissions and

function arrayBufferToString(buf) {
var binaryString = "";
var binaryString = '';
var bytes = new Uint8Array(buf);

@@ -48,0 +48,0 @@ var length = bytes.length;

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,3 +18,3 @@ * See the License for the specific language governing permissions and

*/
import { CancellationToken } from "./CancellationToken";
import { CancellationToken } from './CancellationToken';
export declare class AsyncHelper {

@@ -21,0 +21,0 @@ static readonly STATUS_CHECK_INTERVAL: number;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -14,3 +14,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -17,0 +17,0 @@ * See the License for the specific language governing permissions and

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,3 +18,3 @@ * See the License for the specific language governing permissions and

*/
import { ReadOnlyCancellationToken } from "./ReadOnlyCancellationToken";
import { ReadOnlyCancellationToken } from './ReadOnlyCancellationToken';
export declare class CancellationToken implements ReadOnlyCancellationToken {

@@ -21,0 +21,0 @@ private readonly baseToken;

@@ -7,3 +7,3 @@ "use strict";

this.cancelled = false;
this.reason = "Not defined";
this.reason = 'Not defined';
}

@@ -24,3 +24,3 @@ CancellationToken.prototype.throwIfCanceled = function () {

CancellationToken.prototype.cancel = function (reason) {
if (reason === void 0) { reason = "Operation cancelled"; }
if (reason === void 0) { reason = 'Operation cancelled'; }
if (!this.cancelled) {

@@ -27,0 +27,0 @@ this.reason = reason;

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,6 +18,6 @@ * See the License for the specific language governing permissions and

*/
export * from "./CancellationToken";
export * from "./ReadOnlyCancellationToken";
export * from "./ReadWriteCancellationToken";
export * from "./AsyncHelper";
export * from "./SequencedExecutor";
export * from './CancellationToken';
export * from './ReadOnlyCancellationToken';
export * from './ReadWriteCancellationToken';
export * from './AsyncHelper';
export * from './SequencedExecutor';

@@ -5,6 +5,6 @@ "use strict";

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -16,3 +16,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -19,0 +19,0 @@ * See the License for the specific language governing permissions and

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -15,0 +15,0 @@ * See the License for the specific language governing permissions and

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -14,3 +14,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -17,0 +17,0 @@ * See the License for the specific language governing permissions and

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,3 +18,3 @@ * See the License for the specific language governing permissions and

*/
import { CancellationToken } from "./CancellationToken";
import { CancellationToken } from './CancellationToken';
export declare class ReadWriteCancellationToken {

@@ -21,0 +21,0 @@ private readonly readToken;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -14,3 +14,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -29,7 +29,7 @@ * See the License for the specific language governing permissions and

ReadWriteCancellationToken.prototype.cancelRead = function (reason) {
if (reason === void 0) { reason = "Read cancelled"; }
if (reason === void 0) { reason = 'Read cancelled'; }
this.readToken.cancel(reason);
};
ReadWriteCancellationToken.prototype.cancelWrite = function (reason) {
if (reason === void 0) { reason = "Write cancelled"; }
if (reason === void 0) { reason = 'Write cancelled'; }
this.writeToken.cancel(reason);

@@ -39,3 +39,3 @@ };

if (this.isCancelled()) {
throw Error(this.readToken.getReason() || this.writeToken.getReason() || "Cancelled");
throw Error(this.readToken.getReason() || this.writeToken.getReason() || 'Cancelled');
}

@@ -47,3 +47,3 @@ };

ReadWriteCancellationToken.prototype.cancel = function (reason) {
if (reason === void 0) { reason = "Cancelled"; }
if (reason === void 0) { reason = 'Cancelled'; }
this.cancelRead(reason);

@@ -50,0 +50,0 @@ this.cancelWrite(reason);

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,3 +18,3 @@ * See the License for the specific language governing permissions and

*/
import { Logger } from "../../logger/Logger";
import { Logger } from '../../logger/Logger';
export declare class SequencedExecutor {

@@ -21,0 +21,0 @@ private readonly log;

@@ -9,3 +9,3 @@ "use strict";

function SequencedExecutor(log) {
if (log === void 0) { log = LoggerFactory_1.LoggerFactory.getLogger("SequencedExecutor"); }
if (log === void 0) { log = LoggerFactory_1.LoggerFactory.getLogger('SequencedExecutor'); }
this.log = log;

@@ -12,0 +12,0 @@ this.outQueue = new typescript_collections_1.Queue();

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,4 +18,4 @@ * See the License for the specific language governing permissions and

*/
import { Queue } from "typescript-collections";
import { CancellationToken } from "../async/CancellationToken";
import { Queue } from 'typescript-collections';
import { CancellationToken } from '../async/CancellationToken';
export declare abstract class BlockingQueue<T> {

@@ -22,0 +22,0 @@ abstract blockingDequeue(cancellationToken?: CancellationToken): Promise<T>;

@@ -5,6 +5,6 @@ "use strict";

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -16,3 +16,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -19,0 +19,0 @@ * See the License for the specific language governing permissions and

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,3 +18,3 @@ * See the License for the specific language governing permissions and

*/
import "core-js/es6/map";
import 'core-js/es6/map';
export declare class ExtendedMap<K, V> extends Map<K, V> {

@@ -21,0 +21,0 @@ private constructor();

@@ -5,6 +5,6 @@ "use strict";

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -16,3 +16,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -31,3 +31,3 @@ * See the License for the specific language governing permissions and

// tslint:disable-next-line:no-string-literal
instance["__proto__"] = ExtendedMap.prototype;
instance['__proto__'] = ExtendedMap.prototype;
return instance;

@@ -34,0 +34,0 @@ };

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,4 +18,4 @@ * See the License for the specific language governing permissions and

*/
export * from "./BlockingQueue";
export * from "./LimitedBufferQueue";
export * from "./ExtendedMap";
export * from './BlockingQueue';
export * from './LimitedBufferQueue';
export * from './ExtendedMap';

@@ -5,6 +5,6 @@ "use strict";

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -16,3 +16,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -19,0 +19,0 @@ * See the License for the specific language governing permissions and

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,3 +18,3 @@ * See the License for the specific language governing permissions and

*/
import { Queue } from "typescript-collections";
import { Queue } from 'typescript-collections';
export declare class LimitedBufferQueue<T> extends Queue<T> {

@@ -21,0 +21,0 @@ private readonly maxBufferSize;

@@ -5,6 +5,6 @@ "use strict";

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -16,3 +16,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -19,0 +19,0 @@ * See the License for the specific language governing permissions and

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -14,3 +14,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -26,3 +26,3 @@ * See the License for the specific language governing permissions and

return new Promise(function (resolve) {
iFrameElement.addEventListener("load", function () {
iFrameElement.addEventListener('load', function () {
resolve(iFrameElement);

@@ -39,6 +39,6 @@ }, false);

else {
iFrameElement = document.createElement("iframe");
iFrameElement.setAttribute("id", id);
iFrameElement.setAttribute("src", url);
iFrameElement.style.cssText = "position:absolute;width:1px;height:1px;left:-9999px;display:none";
iFrameElement = document.createElement('iframe');
iFrameElement.setAttribute('id', id);
iFrameElement.setAttribute('src', url);
iFrameElement.style.cssText = 'position:absolute;width:1px;height:1px;left:-9999px;display:none';
document.body.appendChild(iFrameElement);

@@ -49,8 +49,8 @@ }

DomUtils.getOrigin = function (url) {
if (url.startsWith("/")) {
if (url.startsWith('/')) {
return window.location.origin;
}
var parts = url.split("/");
if (parts.length > 2 && parts[0].indexOf("http") === 0) {
return parts[0] + "//" + parts[2];
var parts = url.split('/');
if (parts.length > 2 && parts[0].indexOf('http') === 0) {
return parts[0] + '//' + parts[2];
}

@@ -63,3 +63,3 @@ else {

var top = DomUtils.getTopWindow(window);
var value = (new RegExp("[?&]" + encodeURIComponent(name) + "=([^&]*)")).exec(top.location.search);
var value = (new RegExp('[?&]' + encodeURIComponent(name) + '=([^&]*)')).exec(top.location.search);
return value ? decodeURIComponent(value[1]) : undefined;

@@ -81,3 +81,3 @@ };

};
DomUtils.log = logger_1.LoggerFactory.getLogger("DomUtils");
DomUtils.log = logger_1.LoggerFactory.getLogger('DomUtils');
return DomUtils;

@@ -84,0 +84,0 @@ }());

@@ -1,2 +0,2 @@

import { ExtendedMap } from "./collections/ExtendedMap";
import { ExtendedMap } from './collections/ExtendedMap';
/**

@@ -3,0 +3,0 @@ * Provides few additional utility methods for array modification, immutable, all operations create new instance

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -14,3 +14,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -17,0 +17,0 @@ * See the License for the specific language governing permissions and

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -15,0 +15,0 @@ * See the License for the specific language governing permissions and

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -14,3 +14,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -26,6 +26,6 @@ * See the License for the specific language governing permissions and

var d = new Date().getTime();
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
var r = (d + Math.random() * 16) % 16 | 0;
d = Math.floor(d / 16);
return (c === "x" ? r : (r & 0x3 | 0x8)).toString(16);
return (c === 'x' ? r : (r & 0x3 | 0x8)).toString(16);
});

@@ -32,0 +32,0 @@ };

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,11 +18,11 @@ * See the License for the specific language governing permissions and

*/
export * from "./Arrays";
export * from "./ExtendedArray";
export * from "./GUID";
export * from "./collections";
export * from "./async";
export * from "./state";
export * from "./types";
export * from "./dom/DomUtils";
export * from "./time/TimeUtils";
export * from "./url/UrlParamsProvider";
export * from './Arrays';
export * from './ExtendedArray';
export * from './GUID';
export * from './collections';
export * from './async';
export * from './state';
export * from './types';
export * from './dom/DomUtils';
export * from './time/TimeUtils';
export * from './url/UrlParamsProvider';

@@ -5,6 +5,6 @@ "use strict";

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -16,3 +16,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -19,0 +19,0 @@ * See the License for the specific language governing permissions and

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,3 +18,3 @@ * See the License for the specific language governing permissions and

*/
export * from "./StateMaschine";
export * from "./StateMaschineBase";
export * from './StateMaschine';
export * from './StateMaschineBase';
/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -15,0 +15,0 @@ * See the License for the specific language governing permissions and

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,4 +18,4 @@ * See the License for the specific language governing permissions and

*/
import { Transitions, StateMaschine, Handlers } from "./StateMaschine";
import { Logger } from "../../logger/Logger";
import { Transitions, StateMaschine, Handlers } from './StateMaschine';
import { Logger } from '../../logger/Logger';
export declare class StateMaschineBase<T> implements StateMaschine<T> {

@@ -22,0 +22,0 @@ private current;

@@ -19,3 +19,3 @@ "use strict";

function StateMaschineBase(current, transitions, logger) {
if (logger === void 0) { logger = LoggerFactory_1.LoggerFactory.getLogger("StateMaschine"); }
if (logger === void 0) { logger = LoggerFactory_1.LoggerFactory.getLogger('StateMaschine'); }
var _this = this;

@@ -135,3 +135,3 @@ this.current = current;

if (!result) {
var error = "Current state is " + this.current + " not one of [" + states.join(",") + "]";
var error = "Current state is " + this.current + " not one of [" + states.join(',') + "]";
this.logError(error);

@@ -138,0 +138,0 @@ throw new Error(error);

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -15,0 +15,0 @@ * See the License for the specific language governing permissions and

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -14,3 +14,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -27,3 +27,3 @@ * See the License for the specific language governing permissions and

TimeUtils.format = function (date) {
return date.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/, "$1") + "." + ("000" + date.getMilliseconds()).slice(-3);
return date.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/, '$1') + "." + ('000' + date.getMilliseconds()).slice(-3);
};

@@ -30,0 +30,0 @@ return TimeUtils;

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -15,0 +15,0 @@ * See the License for the specific language governing permissions and

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -14,3 +14,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -21,5 +21,5 @@ * See the License for the specific language governing permissions and

function isString(value) {
return value && Object.prototype.toString.call(value) === "[object String]";
return value && Object.prototype.toString.call(value) === '[object String]';
}
exports.isString = isString;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvdXRpbC90eXBlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBOzs7Ozs7Ozs7Ozs7Ozs7R0FlRztBQUNILGtCQUF5QixLQUFVO0lBQy9CLE1BQU0sQ0FBQyxLQUFLLElBQUksTUFBTSxDQUFDLFNBQVMsQ0FBQyxRQUFRLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxLQUFLLGlCQUFpQixDQUFDO0FBQ2hGLENBQUM7QUFGRCw0QkFFQyJ9

@@ -7,3 +7,3 @@ "use strict";

UrlParamsProvider.getParam = function (name) {
if (typeof window === "undefined") {
if (typeof window === 'undefined') {
return undefined;

@@ -16,10 +16,10 @@ }

var queryString = {};
query = query.startsWith("?") ? query.substring(1) : query;
var vars = query.split("&");
query = query.startsWith('?') ? query.substring(1) : query;
var vars = query.split('&');
for (var i = 0; i < vars.length; i++) {
var pair = vars[i].split("=");
if (typeof queryString[pair[0]] === "undefined") {
var pair = vars[i].split('=');
if (typeof queryString[pair[0]] === 'undefined') {
queryString[pair[0]] = decodeURIComponent(pair[1]);
}
else if (typeof queryString[pair[0]] === "string") {
else if (typeof queryString[pair[0]] === 'string') {
var arr = [queryString[pair[0]], decodeURIComponent(pair[1])];

@@ -26,0 +26,0 @@ queryString[pair[0]] = arr;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -14,3 +14,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -23,8 +23,8 @@ * See the License for the specific language governing permissions and

var chai_1 = require("chai");
describe("InMemoryCache", function () {
var key = "key";
describe('InMemoryCache', function () {
var key = 'key';
var value = {
x: 10
};
it("It can store element without expiration", function (done) {
it('It can store element without expiration', function (done) {
var sut = new InMemoryCache_1.InMemoryCache();

@@ -37,3 +37,3 @@ sut.set(key, new CacheEntry_1.CacheEntry(value));

});
it("I evicts value on expiration time", function (done) {
it('I evicts value on expiration time', function (done) {
var sut = new InMemoryCache_1.InMemoryCache();

@@ -46,3 +46,3 @@ sut.set(key, new CacheEntry_1.CacheEntry(value, 1));

});
it("It calls callback on value eviction", function (done) {
it('It calls callback on value eviction', function (done) {
var sut = new InMemoryCache_1.InMemoryCache();

@@ -53,18 +53,18 @@ sut.set(key, new CacheEntry_1.CacheEntry(value, 5, function () {

});
it("It can check whether value exist or not", function () {
it('It can check whether value exist or not', function () {
var sut = new InMemoryCache_1.InMemoryCache();
sut.set(key, new CacheEntry_1.CacheEntry(value));
chai_1.expect(sut.has(key)).to.be.true;
chai_1.expect(sut.has("123")).to.be.false;
chai_1.expect(sut.has('123')).to.be.false;
});
it("It returns all not expired keys", function () {
it('It returns all not expired keys', function () {
var sut = new InMemoryCache_1.InMemoryCache();
var keys = ["k", "k2"];
var keys = ['k', 'k2'];
keys.forEach(function (k) { return sut.set(k, new CacheEntry_1.CacheEntry(value)); });
var receivedKeys = sut.keys();
chai_1.expect(receivedKeys.length).to.eq(2);
chai_1.expect(receivedKeys.indexOf("k") > -1).to.be.true;
chai_1.expect(receivedKeys.indexOf("k2") > -1).to.be.true;
chai_1.expect(receivedKeys.indexOf('k') > -1).to.be.true;
chai_1.expect(receivedKeys.indexOf('k2') > -1).to.be.true;
});
it("It can restart eviction timer with ttl reset", function (done) {
it('It can restart eviction timer with ttl reset', function (done) {
var sut = new InMemoryCache_1.InMemoryCache();

@@ -71,0 +71,0 @@ sut.set(key, new CacheEntry_1.CacheEntry(value, 150));

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -14,3 +14,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -21,4 +21,4 @@ * See the License for the specific language governing permissions and

var LoggerFactory_1 = require("../../src/logger/LoggerFactory");
describe("Logger Factory", function () {
it("Should be able to register additional logger implementations", function () {
describe('Logger Factory', function () {
it('Should be able to register additional logger implementations', function () {
var called = [];

@@ -28,7 +28,7 @@ LoggerFactory_1.LoggerFactory.registerDelegate({

});
var logger = LoggerFactory_1.LoggerFactory.getLogger("LoggerFactory.spec");
logger.error("test error", { arg: "arg" });
expect(called).toEqual([{ msg: "test error", args: [{ arg: "arg" }], logLevel: LoggerFactory_1.LogLevel.ERROR }]);
var logger = LoggerFactory_1.LoggerFactory.getLogger('LoggerFactory.spec');
logger.error('test error', { arg: 'arg' });
expect(called).toEqual([{ msg: 'test error', args: [{ arg: 'arg' }], logLevel: LoggerFactory_1.LogLevel.ERROR }]);
});
it("Should be able to removed registered logger implementations", function () {
it('Should be able to removed registered logger implementations', function () {
var called = [];

@@ -38,9 +38,9 @@ var unregisterObj = LoggerFactory_1.LoggerFactory.registerDelegate({

});
var logger = LoggerFactory_1.LoggerFactory.getLogger("LoggerFactory.spec");
logger.error("test error", { arg: "arg" });
var logger = LoggerFactory_1.LoggerFactory.getLogger('LoggerFactory.spec');
logger.error('test error', { arg: 'arg' });
unregisterObj.unregister();
logger.error("test error2", { arg: "arg2" });
expect(called).toEqual([{ msg: "test error", args: [{ arg: "arg" }], logLevel: LoggerFactory_1.LogLevel.ERROR }]);
logger.error('test error2', { arg: 'arg2' });
expect(called).toEqual([{ msg: 'test error', args: [{ arg: 'arg' }], logLevel: LoggerFactory_1.LogLevel.ERROR }]);
});
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTG9nZ2VyRmFjdG9yeS5zcGVjLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vdGVzdHMvbG9nZ2VyL0xvZ2dlckZhY3Rvcnkuc3BlYy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBOzs7Ozs7Ozs7Ozs7Ozs7R0FlRztBQUNILGdFQUF5RTtBQUV6RSxRQUFRLENBQUMsZ0JBQWdCLEVBQUU7SUFFdkIsRUFBRSxDQUFDLDhEQUE4RCxFQUFFO1FBQy9ELElBQUksTUFBTSxHQUFxRCxFQUFFLENBQUM7UUFFbEUsNkJBQWEsQ0FBQyxnQkFBZ0IsQ0FBQztZQUMzQixHQUFHLEVBQUUsVUFBQyxRQUFRLEVBQUUs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BSyxDQUFDLFlBQVksRUFBRSxFQUFFLEdBQUcsRUFBRSxLQUFLLEVBQUUsQ0FBQyxDQUFDO1FBRTNDLGFBQWEsQ0FBQyxVQUFVLEVBQUUsQ0FBQztRQUMzQixNQUFNLENBQUMsS0FBSyxDQUFDLGFBQWEsRUFBRSxFQUFFLEdBQUcsRUFBRSxNQUFNLEVBQUUsQ0FBQyxDQUFDO1FBRTdDLE1BQU0sQ0FBQyxNQUFNLENBQUMsQ0FBQyxPQUFPLENBQUMsQ0FBQyxFQUFFLEdBQUcsRUFBRSxZQUFZLEVBQUUsSUFBSSxFQUFFLENBQUMsRUFBRSxHQUFHLEVBQUUsS0FBSyxFQUFFLENBQUMsRUFBRSxRQUFRLEVBQUUsd0JBQVEsQ0FBQyxLQUFLLEVBQUUsQ0FBQyxDQUFDLENBQUM7SUFDdEcsQ0FBQyxDQUFDLENBQUM7QUFDUCxDQUFDLENBQUMsQ0FBQyJ9
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -14,3 +14,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -21,4 +21,4 @@ * See the License for the specific language governing permissions and

var Arrays_1 = require("../../src/util/Arrays");
describe("Arrays", function () {
it("Should contatenate two Array Buffers", function () {
describe('Arrays', function () {
it('Should contatenate two Array Buffers', function () {
var first = new Uint32Array([1, 2, 3]);

@@ -29,3 +29,3 @@ var second = new Uint32Array([5, 6, 7]);

});
it("Should convert array buffer to string and back", function () {
it('Should convert array buffer to string and back', function () {
var first = new Uint8Array([123, 231, 312]);

@@ -32,0 +32,0 @@ expect(first).toEqual(new Uint8Array(Arrays_1.stringToArrayBuffer(Arrays_1.arrayBufferToString(first.buffer))));

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -14,3 +14,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -22,14 +22,14 @@ * See the License for the specific language governing permissions and

var CancellationToken_1 = require("../../src/util/async/CancellationToken");
describe("Async Helper", function () {
it("Should fail if passed timeout passed", function (done) {
describe('Async Helper', function () {
it('Should fail if passed timeout passed', function (done) {
AsyncHelper_1.AsyncHelper.waitFor(function () { return false; }, new CancellationToken_1.CancellationToken(), 10, 1).catch(function () { return done(); });
});
it("Should fail if cancellation token cancelled", function (done) {
it('Should fail if cancellation token cancelled', function (done) {
var token = new CancellationToken_1.CancellationToken();
AsyncHelper_1.AsyncHelper.waitFor(function () { return false; }, token).catch(function () { return done(); });
token.cancel("Cancelled");
token.cancel('Cancelled');
});
it("Should not fail if cancellation token cancelled but condition is true", function (done) {
it('Should not fail if cancellation token cancelled but condition is true', function (done) {
var token = new CancellationToken_1.CancellationToken();
token.cancel("Cancelled");
token.cancel('Cancelled');
AsyncHelper_1.AsyncHelper.waitFor(function () { return true; }, token).then(function () { return done(); });

@@ -36,0 +36,0 @@ });

"use strict";
/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -13,3 +13,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -21,6 +21,6 @@ * See the License for the specific language governing permissions and

var BlockingQueue_1 = require("../../src/util/collections/BlockingQueue");
describe("BlockingQueue", function () {
describe('BlockingQueue', function () {
var sut = new BlockingQueue_1.BlockingQueueBase();
it("Should wait until element appears", function (done) {
var el = "test";
it('Should wait until element appears', function (done) {
var el = 'test';
sut.blockingDequeue().then(function (res) {

@@ -27,0 +27,0 @@ expect(res).toBe(el);

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -14,3 +14,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -22,11 +22,11 @@ * See the License for the specific language governing permissions and

var chai_1 = require("chai");
describe("ExtededArray", function () {
it("Returns distinct values by key", function () {
var result = ExtendedArray_1.ExtendedArray.of([{ a: "1", b: "x" }, { a: "1", b: "y" }])
describe('ExtededArray', function () {
it('Returns distinct values by key', function () {
var result = ExtendedArray_1.ExtendedArray.of([{ a: '1', b: 'x' }, { a: '1', b: 'y' }])
.distinct(function (x) { return x.a; })
.toArray();
chai_1.expect(result[0].a).eq("1");
chai_1.expect(result[0].a).eq('1');
chai_1.expect(result.length).eq(1);
});
it("Can join with other array", function () {
it('Can join with other array', function () {
var result = ExtendedArray_1.ExtendedArray.of([1, 2, 3])

@@ -38,3 +38,3 @@ .joinWith([4, 5, 6], function (x, y) { return x + y; }, function (x, y) { return x === 1 && y === 4; })

});
it("Can be converted to Map", function () {
it('Can be converted to Map', function () {
var map = ExtendedArray_1.ExtendedArray.of([1])

@@ -41,0 +41,0 @@ .toMap(function (x) { return x + 1; }, function (x) { return x + 2; });

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -14,3 +14,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -21,12 +21,12 @@ * See the License for the specific language governing permissions and

var LimitedBufferQueue_1 = require("../../src/util/collections/LimitedBufferQueue");
describe("LimitedBufferQueue", function () {
it("Should enqueue and dequeue element if buffer size is enough", function () {
describe('LimitedBufferQueue', function () {
it('Should enqueue and dequeue element if buffer size is enough', function () {
var sut = new LimitedBufferQueue_1.LimitedBufferQueue(1);
var el = "test";
var el = 'test';
sut.enqueue(el);
expect(sut.dequeue()).toEqual(el);
});
it("Should reject enqueue if buffer size is not enough", function (done) {
it('Should reject enqueue if buffer size is not enough', function (done) {
var sut = new LimitedBufferQueue_1.LimitedBufferQueue(0);
var el = "test";
var el = 'test';
try {

@@ -33,0 +33,0 @@ sut.enqueue(el);

@@ -6,6 +6,6 @@ "use strict";

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -17,3 +17,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -24,5 +24,5 @@ * See the License for the specific language governing permissions and

var SequencedExecutor_1 = require("../../src/util/async/SequencedExecutor");
describe("SequencedExecutor", function () {
describe('SequencedExecutor', function () {
var sut = new SequencedExecutor_1.SequencedExecutor();
it("Executus tasks in a row", function (done) {
it('Executus tasks in a row', function (done) {
var counter = 0;

@@ -44,6 +44,6 @@ sut.submit(function () { return tslib_1.__awaiter(_this, void 0, void 0, function () {

});
it("Executus tasks if previous failed", function (done) {
it('Executus tasks if previous failed', function (done) {
sut.submit(function () { return tslib_1.__awaiter(_this, void 0, void 0, function () {
return tslib_1.__generator(this, function (_a) {
throw new Error("Failed");
throw new Error('Failed');
});

@@ -50,0 +50,0 @@ }); }).catch(function (e) { });

@@ -6,6 +6,6 @@ "use strict";

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -17,3 +17,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -24,3 +24,3 @@ * See the License for the specific language governing permissions and

var state_1 = require("../../src/util/state");
describe("StateMaschineBase", function () {
describe('StateMaschineBase', function () {
var State;

@@ -32,3 +32,3 @@ (function (State) {

})(State || (State = {}));
it("Should switch states", function (done) {
it('Should switch states', function (done) {
var sut = new state_1.StateMaschineBase(State.OPEN, [

@@ -46,3 +46,3 @@ {

});
it("Should execute preHandler before switching the state", function (done) {
it('Should execute preHandler before switching the state', function (done) {
var called = false;

@@ -65,3 +65,3 @@ var sut = new state_1.StateMaschineBase(State.OPEN, [

});
it("Should execute both static and dynamic preHandlers before switching the state", function (done) {
it('Should execute both static and dynamic preHandlers before switching the state', function (done) {
var called = 0;

@@ -92,3 +92,3 @@ var sut = new state_1.StateMaschineBase(State.OPEN, [

});
it("Should execute both static and dynamic post handlers after switching the state", function (done) {
it('Should execute both static and dynamic post handlers after switching the state', function (done) {
var called = 0;

@@ -119,3 +119,3 @@ var sut = new state_1.StateMaschineBase(State.OPEN, [

});
it("Should execute postHandler after switching the state", function (done) {
it('Should execute postHandler after switching the state', function (done) {
var called = false;

@@ -138,3 +138,3 @@ var sut = new state_1.StateMaschineBase(State.OPEN, [

});
it("Should raise error if current status is not correct", function () {
it('Should raise error if current status is not correct', function () {
var sut = new state_1.StateMaschineBase(State.OPEN, [

@@ -147,3 +147,3 @@ {

});
it("Should raise error if none of statuses is correct", function () {
it('Should raise error if none of statuses is correct', function () {
var sut = new state_1.StateMaschineBase(State.OPEN, [

@@ -156,3 +156,3 @@ {

});
it("Should return true from 'one of' check if second state is correct", function (done) {
it('Should return true from one of check if second state is correct', function (done) {
var sut = new state_1.StateMaschineBase(State.OPEN, [

@@ -170,3 +170,3 @@ {

});
it("Should return false from 'one of' check if no correct states provided", function (done) {
it('Should return false from one of check if no correct states provided', function (done) {
var sut = new state_1.StateMaschineBase(State.OPEN, [

@@ -183,3 +183,3 @@ {

});
it("Should switch state synchronously", function () {
it('Should switch state synchronously', function () {
var sut = new state_1.StateMaschineBase(State.OPEN, [

@@ -193,3 +193,3 @@ {

});
it("Should execute pre handler for synchronous switch", function (done) {
it('Should execute pre handler for synchronous switch', function (done) {
var sut = new state_1.StateMaschineBase(State.OPEN, [

@@ -204,3 +204,3 @@ {

});
it("Should execute pre handler for synchronous switch", function (done) {
it('Should execute pre handler for synchronous switch', function (done) {
var sut = new state_1.StateMaschineBase(State.OPEN, [

@@ -216,2 +216,2 @@ {

});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU3RhdGVNYXNjaGluZUJhc2Uuc3BlYy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Rlc3RzL3V0aWwvU3RhdGVNYXNjaGluZUJhc2Uuc3BlYy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBZ0JBLGlCQXVLRzs7O0FBdkxIOzs7Ozs7Ozs7Ozs7Ozs7R0FlRztBQUNILDhDQUF5RDtBQUV6RCxRQUFRLENBQUMsbUJBQW1CLEVBQUU7SUFFMUIsSUFBSyxLQUErQjtJQUFwQyxXQUFLLEtBQUs7UUFBRyx1Q0FBTyxDQUFBO1FBQUUsaUNBQUksQ0FBQTtRQUFFLHFDQUFNLENBQUE7SUFBQyxDQUFDLEVBQS9CLEtBQUssS0FBTCxLQUFLLFFBQTBCO0lBRXBDLEVBQUUsQ0FBQyxzQkFBc0IsRUFBRSxVQUFDLElBQUk7UUFDNUIsSUFBTSxHQUFHLEdBQUcsSUFBSSx5QkFBaUIsQ0FBUSxLQUFLLENBQUMsSUFBSSxFQUFFO1lBQ2pEO2dCQUNJLElBQUksRUFBRSxLQUFLLENBQUMsSUFBSSxFQUFFLEVBQUUsRUFBRSxLQUFLLENBQUMsTUFBTTthQUNyQztTQUNKLENBQUMsQ0FBQztRQUNILE1BQU0sQ0FBQyxHQUFHLENBQUMsS0FBSyxDQUFDLEtBQUssQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDLFVBQVUsRUFBRSxDQUFDO1FBQzdDLEdBQUcsQ0FBQyxPQUFPLENBQUMsS0FBSyxDQUFDLE1BQU0sQ0FBQyxDQUFDLElBQUksQ0FBQztZQUMzQixNQUFNLENBQU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CQUFBLElBQUksRUFBRSxFQUFBO3lCQUFBO2FBQ3JFO1NBQ0osQ0FBQyxDQUFDO1FBQ0gsR0FBRyxDQUFDLEVBQUUsQ0FBQyxLQUFLLENBQUMsTUFBTSxDQUFDLENBQUM7SUFDekIsQ0FBQyxDQUFDLENBQUM7QUFFUCxDQUFDLENBQUMsQ0FBQyJ9
{
"name": "@plexus-interop/common",
"version": "0.2.2",
"version": "0.2.3",
"types": "dist/main/src/index.d.ts",

@@ -5,0 +5,0 @@ "main": "dist/main/src/index.js",

/*
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0

@@ -4,0 +4,0 @@ *

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,3 +18,3 @@ * See the License for the specific language governing permissions and

*/
import { CacheEntry } from "./CacheEntry";
import { CacheEntry } from './CacheEntry';

@@ -21,0 +21,0 @@ export interface Cache {

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -15,0 +15,0 @@ * See the License for the specific language governing permissions and

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,3 +18,3 @@ * See the License for the specific language governing permissions and

*/
import { CacheEntry } from "./CacheEntry";
import { CacheEntry } from './CacheEntry';

@@ -21,0 +21,0 @@ export class CacheEntryDescriptor<T> {

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,4 +18,4 @@ * See the License for the specific language governing permissions and

*/
export * from "./Cache";
export * from "./CacheEntry";
export * from "./InMemoryCache";
export * from './Cache';
export * from './CacheEntry';
export * from './InMemoryCache';
/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,12 +18,12 @@ * See the License for the specific language governing permissions and

*/
import { Cache } from "./Cache";
import { CacheEntry } from "./CacheEntry";
import { CacheEntryDescriptor } from "./CacheEntryDescriptor";
import { Logger, LoggerFactory } from "../logger";
import { Cache } from './Cache';
import { CacheEntry } from './CacheEntry';
import { CacheEntryDescriptor } from './CacheEntryDescriptor';
import { Logger, LoggerFactory } from '../logger';
let globalObj: any = typeof window !== "undefined" ? window : global;
let globalObj: any = typeof window !== 'undefined' ? window : global;
export class InMemoryCache implements Cache {
private readonly log: Logger = LoggerFactory.getLogger("InMemoryCache");
private readonly log: Logger = LoggerFactory.getLogger('InMemoryCache');

@@ -30,0 +30,0 @@ private storage: Map<string, CacheEntryDescriptor<any>> = new Map();

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,5 +18,5 @@ * See the License for the specific language governing permissions and

*/
export * from "./util";
export * from "./logger";
export * from "./rx";
export * from "./cache";
export * from './util';
export * from './logger';
export * from './rx';
export * from './cache';
/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,4 +18,4 @@ * See the License for the specific language governing permissions and

*/
import { LogLevel } from "./LoggerFactory";
import { Logger } from "./Logger";
import { LogLevel } from './LoggerFactory';
import { Logger } from './Logger';

@@ -22,0 +22,0 @@ export class DelegatingLogger implements Logger {

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,4 +18,4 @@ * See the License for the specific language governing permissions and

*/
export * from "./Logger";
export * from "./LoggerFactory";
export * from "./PrefixedLogger";
export * from './Logger';
export * from './LoggerFactory';
export * from './PrefixedLogger';
/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,3 +18,3 @@ * See the License for the specific language governing permissions and

*/
import { LogLevel } from "./LoggerFactory";
import { LogLevel } from './LoggerFactory';

@@ -21,0 +21,0 @@ export interface Logger {

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,5 +18,5 @@ * See the License for the specific language governing permissions and

*/
import * as log from "loglevel";
import { Logger, LoggerDelegate } from "./Logger";
import { LogLevel } from "./LoggerFactory";
import * as log from 'loglevel';
import { Logger, LoggerDelegate } from './Logger';
import { LogLevel } from './LoggerFactory';

@@ -23,0 +23,0 @@ export class LoggerBase implements Logger, LoggerDelegate {

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,8 +18,8 @@ * See the License for the specific language governing permissions and

*/
import { LoggerDelegate } from "./index";
import * as log from "loglevel";
import { Logger } from "./Logger";
import { LoggerBase } from "./LoggerBase";
import { TimeUtils } from "../util/time/TimeUtils";
const logPrefixer: any = require("loglevel-plugin-prefix");
import { LoggerDelegate } from './index';
import * as log from 'loglevel';
import { Logger } from './Logger';
import { LoggerBase } from './LoggerBase';
import { TimeUtils } from '../util/time/TimeUtils';
const logPrefixer: any = require('loglevel-plugin-prefix');

@@ -48,3 +48,3 @@ export enum LogLevel {

public static getLogger(name: string = "Anonymous"): Logger {
public static getLogger(name: string = 'Anonymous'): Logger {
return new LoggerBase(name, this.additionalRecipients);

@@ -57,3 +57,3 @@ }

logPrefixer.apply(log, {
template: "%t | [%l] ",
template: '%t | [%l] ',
timestampFormatter: (date: Date) => TimeUtils.format(date)

@@ -60,0 +60,0 @@ });

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,7 +18,7 @@ * See the License for the specific language governing permissions and

*/
import { Logger, LogLevel } from ".";
import { Logger, LogLevel } from '.';
export class PrefixedLogger implements Logger {
public constructor(private readonly base: Logger, private readonly prefix: string = "") { }
public constructor(private readonly base: Logger, private readonly prefix: string = '') { }

@@ -25,0 +25,0 @@ public trace(msg: string, ...args: any[]): void {

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,3 +18,3 @@ * See the License for the specific language governing permissions and

*/
import { Subscription } from "./Subscription";
import { Subscription } from './Subscription';

@@ -21,0 +21,0 @@ export class AnonymousSubscription implements Subscription {

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,6 +18,6 @@ * See the License for the specific language governing permissions and

*/
import { Observer } from "./Observer";
import { Queue } from "typescript-collections";
import { Logger, LoggerFactory } from "../logger";
import { LimitedBufferQueue } from "../util/collections/LimitedBufferQueue";
import { Observer } from './Observer';
import { Queue } from 'typescript-collections';
import { Logger, LoggerFactory } from '../logger';
import { LimitedBufferQueue } from '../util/collections/LimitedBufferQueue';

@@ -35,3 +35,3 @@ /**

constructor(readonly limit: number = 1024 * 10, private readonly log: Logger = LoggerFactory.getLogger("BufferedObserver")) {
constructor(readonly limit: number = 1024 * 10, private readonly log: Logger = LoggerFactory.getLogger('BufferedObserver')) {
this.buffer = new LimitedBufferQueue<T>(limit);

@@ -42,3 +42,3 @@ }

if (this.baseObserver) {
throw new Error("Base observer already defined");
throw new Error('Base observer already defined');
}

@@ -45,0 +45,0 @@ this.baseObserver = observer;

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,3 +18,3 @@ * See the License for the specific language governing permissions and

*/
import { Observer } from "./Observer";
import { Observer } from './Observer';

@@ -21,0 +21,0 @@ export class ConversionObserver<S, D> implements Observer<D> {

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,6 +18,6 @@ * See the License for the specific language governing permissions and

*/
export * from "./ConversionObserver";
export * from "./BufferedObserver";
export * from "./Observer";
export * from "./Subscription";
export * from "./AnonymousSubscription";
export * from './ConversionObserver';
export * from './BufferedObserver';
export * from './Observer';
export * from './Subscription';
export * from './AnonymousSubscription';
/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -15,0 +15,0 @@ * See the License for the specific language governing permissions and

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -15,0 +15,0 @@ * See the License for the specific language governing permissions and

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,3 +18,3 @@ * See the License for the specific language governing permissions and

*/
import { ExtendedMap } from "./collections/ExtendedMap";
import { ExtendedMap } from './collections/ExtendedMap';

@@ -41,3 +41,3 @@ export class Arrays {

export function arrayBufferToString(buf: ArrayBuffer): string {
let binaryString = "";
let binaryString = '';
let bytes = new Uint8Array(buf);

@@ -44,0 +44,0 @@ const length = bytes.length;

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,3 +18,3 @@ * See the License for the specific language governing permissions and

*/
import { CancellationToken } from "./CancellationToken";
import { CancellationToken } from './CancellationToken';

@@ -21,0 +21,0 @@ export class AsyncHelper {

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,3 +18,3 @@ * See the License for the specific language governing permissions and

*/
import { ReadOnlyCancellationToken } from "./ReadOnlyCancellationToken";
import { ReadOnlyCancellationToken } from './ReadOnlyCancellationToken';

@@ -24,3 +24,3 @@ export class CancellationToken implements ReadOnlyCancellationToken {

private cancelled: boolean = false;
private reason: string = "Not defined";
private reason: string = 'Not defined';

@@ -43,3 +43,3 @@ constructor(private readonly baseToken?: CancellationToken) {}

public cancel(reason: string = "Operation cancelled"): void {
public cancel(reason: string = 'Operation cancelled'): void {
if (!this.cancelled) {

@@ -46,0 +46,0 @@ this.reason = reason;

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,6 +18,6 @@ * See the License for the specific language governing permissions and

*/
export * from "./CancellationToken";
export * from "./ReadOnlyCancellationToken";
export * from "./ReadWriteCancellationToken";
export * from "./AsyncHelper";
export * from "./SequencedExecutor";
export * from './CancellationToken';
export * from './ReadOnlyCancellationToken';
export * from './ReadWriteCancellationToken';
export * from './AsyncHelper';
export * from './SequencedExecutor';
/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -15,0 +15,0 @@ * See the License for the specific language governing permissions and

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,3 +18,3 @@ * See the License for the specific language governing permissions and

*/
import { CancellationToken } from "./CancellationToken";
import { CancellationToken } from './CancellationToken';

@@ -28,7 +28,7 @@ export class ReadWriteCancellationToken {

public cancelRead(reason: string = "Read cancelled"): void {
public cancelRead(reason: string = 'Read cancelled'): void {
this.readToken.cancel(reason);
}
public cancelWrite(reason: string = "Write cancelled"): void {
public cancelWrite(reason: string = 'Write cancelled'): void {
this.writeToken.cancel(reason);

@@ -39,3 +39,3 @@ }

if (this.isCancelled()) {
throw Error(this.readToken.getReason() || this.writeToken.getReason() || "Cancelled");
throw Error(this.readToken.getReason() || this.writeToken.getReason() || 'Cancelled');
}

@@ -48,3 +48,3 @@ }

public cancel(reason: string = "Cancelled"): void {
public cancel(reason: string = 'Cancelled'): void {
this.cancelRead(reason);

@@ -51,0 +51,0 @@ this.cancelWrite(reason);

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,6 +18,6 @@ * See the License for the specific language governing permissions and

*/
import { Logger } from "../../logger/Logger";
import { Queue } from "typescript-collections";
import { AsyncHelper } from "./AsyncHelper";
import { LoggerFactory } from "../../logger/LoggerFactory";
import { Logger } from '../../logger/Logger';
import { Queue } from 'typescript-collections';
import { AsyncHelper } from './AsyncHelper';
import { LoggerFactory } from '../../logger/LoggerFactory';

@@ -35,3 +35,3 @@ type PendingTask = {

constructor(private readonly log: Logger = LoggerFactory.getLogger("SequencedExecutor")) { }
constructor(private readonly log: Logger = LoggerFactory.getLogger('SequencedExecutor')) { }

@@ -38,0 +38,0 @@ public async submit(task: () => Promise<void>): Promise<void> {

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,5 +18,5 @@ * See the License for the specific language governing permissions and

*/
import { Queue } from "typescript-collections";
import { CancellationToken } from "../async/CancellationToken";
import { AsyncHelper } from "../async/AsyncHelper";
import { Queue } from 'typescript-collections';
import { CancellationToken } from '../async/CancellationToken';
import { AsyncHelper } from '../async/AsyncHelper';

@@ -23,0 +23,0 @@ export abstract class BlockingQueue<T> {

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,3 +18,3 @@ * See the License for the specific language governing permissions and

*/
import "core-js/es6/map";
import 'core-js/es6/map';

@@ -30,3 +30,3 @@ export class ExtendedMap<K, V> extends Map<K, V> {

// tslint:disable-next-line:no-string-literal
instance["__proto__"] = ExtendedMap.prototype;
instance['__proto__'] = ExtendedMap.prototype;
return instance as ExtendedMap<K, V>;

@@ -33,0 +33,0 @@ }

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,4 +18,4 @@ * See the License for the specific language governing permissions and

*/
export * from "./BlockingQueue";
export * from "./LimitedBufferQueue";
export * from "./ExtendedMap";
export * from './BlockingQueue';
export * from './LimitedBufferQueue';
export * from './ExtendedMap';
/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,3 +18,3 @@ * See the License for the specific language governing permissions and

*/
import { Queue } from "typescript-collections";
import { Queue } from 'typescript-collections';

@@ -21,0 +21,0 @@ export class LimitedBufferQueue<T> extends Queue<T> {

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,11 +18,11 @@ * See the License for the specific language governing permissions and

*/
import { Logger, LoggerFactory } from "../../logger";
import { Logger, LoggerFactory } from '../../logger';
export class DomUtils {
private static log: Logger = LoggerFactory.getLogger("DomUtils");
private static log: Logger = LoggerFactory.getLogger('DomUtils');
public static iFrameLoaded(iFrameElement: HTMLIFrameElement): Promise<HTMLIFrameElement> {
return new Promise((resolve) => {
iFrameElement.addEventListener("load", () => {
iFrameElement.addEventListener('load', () => {
resolve(iFrameElement);

@@ -39,6 +39,6 @@ }, false);

} else {
iFrameElement = document.createElement("iframe");
iFrameElement.setAttribute("id", id);
iFrameElement.setAttribute("src", url);
iFrameElement.style.cssText = "position:absolute;width:1px;height:1px;left:-9999px;display:none";
iFrameElement = document.createElement('iframe');
iFrameElement.setAttribute('id', id);
iFrameElement.setAttribute('src', url);
iFrameElement.style.cssText = 'position:absolute;width:1px;height:1px;left:-9999px;display:none';
document.body.appendChild(iFrameElement);

@@ -50,8 +50,8 @@ }

public static getOrigin(url: string): string {
if (url.startsWith("/")) {
if (url.startsWith('/')) {
return window.location.origin;
}
const parts = url.split("/");
if (parts.length > 2 && parts[0].indexOf("http") === 0) {
return parts[0] + "//" + parts[2];
const parts = url.split('/');
if (parts.length > 2 && parts[0].indexOf('http') === 0) {
return parts[0] + '//' + parts[2];
} else {

@@ -64,3 +64,3 @@ throw new Error(`Couldn't get origin, unsupported URL - ${url}`);

const top = DomUtils.getTopWindow(window);
const value = (new RegExp("[?&]" + encodeURIComponent(name) + "=([^&]*)")).exec(top.location.search);
const value = (new RegExp('[?&]' + encodeURIComponent(name) + '=([^&]*)')).exec(top.location.search);
return value ? decodeURIComponent(value[1]) : undefined;

@@ -67,0 +67,0 @@ }

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,4 +18,4 @@ * See the License for the specific language governing permissions and

*/
import { join, distinct, toMap, concat } from "./Arrays";
import { ExtendedMap } from "./collections/ExtendedMap";
import { join, distinct, toMap, concat } from './Arrays';
import { ExtendedMap } from './collections/ExtendedMap';

@@ -22,0 +22,0 @@ /**

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -28,6 +28,6 @@ * See the License for the specific language governing permissions and

let d = new Date().getTime();
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {
let r = (d + Math.random() * 16) % 16 | 0;
d = Math.floor(d / 16);
return (c === "x" ? r : (r & 0x3 | 0x8)).toString(16);
return (c === 'x' ? r : (r & 0x3 | 0x8)).toString(16);
});

@@ -34,0 +34,0 @@ }

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,11 +18,11 @@ * See the License for the specific language governing permissions and

*/
export * from "./Arrays";
export * from "./ExtendedArray";
export * from "./GUID";
export * from "./collections";
export * from "./async";
export * from "./state";
export * from "./types";
export * from "./dom/DomUtils";
export * from "./time/TimeUtils";
export * from "./url/UrlParamsProvider";
export * from './Arrays';
export * from './ExtendedArray';
export * from './GUID';
export * from './collections';
export * from './async';
export * from './state';
export * from './types';
export * from './dom/DomUtils';
export * from './time/TimeUtils';
export * from './url/UrlParamsProvider';
/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,3 +18,3 @@ * See the License for the specific language governing permissions and

*/
export * from "./StateMaschine";
export * from "./StateMaschineBase";
export * from './StateMaschine';
export * from './StateMaschineBase';
/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -15,0 +15,0 @@ * See the License for the specific language governing permissions and

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,5 +18,5 @@ * See the License for the specific language governing permissions and

*/
import { Transition, Transitions, StateMaschine, Handlers } from "./StateMaschine";
import { Logger } from "../../logger/Logger";
import { LoggerFactory } from "../../logger/LoggerFactory";
import { Transition, Transitions, StateMaschine, Handlers } from './StateMaschine';
import { Logger } from '../../logger/Logger';
import { LoggerFactory } from '../../logger/LoggerFactory';

@@ -39,3 +39,3 @@ class StateDescriptor<T> {

constructor(private current: T, transitions: Transitions<T>, private logger: Logger = LoggerFactory.getLogger("StateMaschine")) {
constructor(private current: T, transitions: Transitions<T>, private logger: Logger = LoggerFactory.getLogger('StateMaschine')) {
transitions.forEach(transition => {

@@ -144,3 +144,3 @@ this.putIfAbsent(transition.from);

if (!result) {
const error = `Current state is ${this.current} not one of [${states.join(",")}]`;
const error = `Current state is ${this.current} not one of [${states.join(',')}]`;
this.logError(error);

@@ -147,0 +147,0 @@ throw new Error(error);

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -25,5 +25,5 @@ * See the License for the specific language governing permissions and

public static format(date: Date): string {
return `${date.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/, "$1")}.${("000" + date.getMilliseconds()).slice(-3)}`;
return `${date.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/, '$1')}.${('000' + date.getMilliseconds()).slice(-3)}`;
}
}
/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -19,3 +19,3 @@ * See the License for the specific language governing permissions and

export function isString(value: any): boolean {
return value && Object.prototype.toString.call(value) === "[object String]";
return value && Object.prototype.toString.call(value) === '[object String]';
}
/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -23,3 +23,3 @@ * See the License for the specific language governing permissions and

public static getParam(name: string): string | undefined {
if (typeof window === "undefined") {
if (typeof window === 'undefined') {
return undefined;

@@ -33,9 +33,9 @@ }

const queryString: any = {};
query = query.startsWith("?") ? query.substring(1) : query;
let vars = query.split("&");
query = query.startsWith('?') ? query.substring(1) : query;
let vars = query.split('&');
for (let i = 0; i < vars.length; i++) {
let pair = vars[i].split("=");
if (typeof queryString[pair[0]] === "undefined") {
let pair = vars[i].split('=');
if (typeof queryString[pair[0]] === 'undefined') {
queryString[pair[0]] = decodeURIComponent(pair[1]);
} else if (typeof queryString[pair[0]] === "string") {
} else if (typeof queryString[pair[0]] === 'string') {
let arr = [queryString[pair[0]], decodeURIComponent(pair[1])];

@@ -42,0 +42,0 @@ queryString[pair[0]] = arr;

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,9 +18,9 @@ * See the License for the specific language governing permissions and

*/
import { InMemoryCache } from "../../src/cache/InMemoryCache";
import { CacheEntry } from "../../src/cache/CacheEntry";
import { expect } from "chai";
import { InMemoryCache } from '../../src/cache/InMemoryCache';
import { CacheEntry } from '../../src/cache/CacheEntry';
import { expect } from 'chai';
describe("InMemoryCache", () => {
describe('InMemoryCache', () => {
const key = "key";
const key = 'key';
const value = {

@@ -30,3 +30,3 @@ x: 10

it("It can store element without expiration", (done) => {
it('It can store element without expiration', (done) => {
const sut = new InMemoryCache();

@@ -40,3 +40,3 @@ sut.set(key, new CacheEntry(value));

it("I evicts value on expiration time", (done) => {
it('I evicts value on expiration time', (done) => {
const sut = new InMemoryCache();

@@ -50,3 +50,3 @@ sut.set(key, new CacheEntry(value, 1));

it("It calls callback on value eviction", (done) => {
it('It calls callback on value eviction', (done) => {
const sut = new InMemoryCache();

@@ -58,13 +58,13 @@ sut.set(key, new CacheEntry(value, 5, () => {

it("It can check whether value exist or not", () => {
it('It can check whether value exist or not', () => {
const sut = new InMemoryCache();
sut.set(key, new CacheEntry(value));
expect(sut.has(key)).to.be.true;
expect(sut.has("123")).to.be.false;
expect(sut.has('123')).to.be.false;
});
it("It returns all not expired keys", () => {
it('It returns all not expired keys', () => {
const sut = new InMemoryCache();
const keys = ["k", "k2"];
const keys = ['k', 'k2'];

@@ -76,8 +76,8 @@ keys.forEach(k => sut.set(k, new CacheEntry(value)))

expect(receivedKeys.length).to.eq(2);
expect(receivedKeys.indexOf("k") > -1).to.be.true;
expect(receivedKeys.indexOf("k2") > -1).to.be.true;
expect(receivedKeys.indexOf('k') > -1).to.be.true;
expect(receivedKeys.indexOf('k2') > -1).to.be.true;
});
it("It can restart eviction timer with ttl reset", (done) => {
it('It can restart eviction timer with ttl reset', (done) => {
const sut = new InMemoryCache();

@@ -84,0 +84,0 @@ sut.set(key, new CacheEntry(value, 150));

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,7 +18,7 @@ * See the License for the specific language governing permissions and

*/
import { LoggerFactory, LogLevel } from "../../src/logger/LoggerFactory";
import { LoggerFactory, LogLevel } from '../../src/logger/LoggerFactory';
describe("Logger Factory", () => {
describe('Logger Factory', () => {
it("Should be able to register additional logger implementations", () => {
it('Should be able to register additional logger implementations', () => {
let called: { msg: string, args: any, logLevel: LogLevel }[] = [];

@@ -30,9 +30,9 @@

let logger = LoggerFactory.getLogger("LoggerFactory.spec");
logger.error("test error", { arg: "arg" });
let logger = LoggerFactory.getLogger('LoggerFactory.spec');
logger.error('test error', { arg: 'arg' });
expect(called).toEqual([{ msg: "test error", args: [{ arg: "arg" }], logLevel: LogLevel.ERROR }]);
expect(called).toEqual([{ msg: 'test error', args: [{ arg: 'arg' }], logLevel: LogLevel.ERROR }]);
});
it("Should be able to removed registered logger implementations", () => {
it('Should be able to removed registered logger implementations', () => {
let called: { msg: string, args: any, logLevel: LogLevel }[] = [];

@@ -44,10 +44,10 @@

let logger = LoggerFactory.getLogger("LoggerFactory.spec");
logger.error("test error", { arg: "arg" });
let logger = LoggerFactory.getLogger('LoggerFactory.spec');
logger.error('test error', { arg: 'arg' });
unregisterObj.unregister();
logger.error("test error2", { arg: "arg2" });
logger.error('test error2', { arg: 'arg2' });
expect(called).toEqual([{ msg: "test error", args: [{ arg: "arg" }], logLevel: LogLevel.ERROR }]);
expect(called).toEqual([{ msg: 'test error', args: [{ arg: 'arg' }], logLevel: LogLevel.ERROR }]);
});
});
/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,7 +18,7 @@ * See the License for the specific language governing permissions and

*/
import { Arrays, stringToArrayBuffer, arrayBufferToString } from "../../src/util/Arrays";
import { Arrays, stringToArrayBuffer, arrayBufferToString } from '../../src/util/Arrays';
describe("Arrays", () => {
describe('Arrays', () => {
it("Should contatenate two Array Buffers", () => {
it('Should contatenate two Array Buffers', () => {
const first = new Uint32Array([1, 2, 3]);

@@ -30,3 +30,3 @@ const second = new Uint32Array([5, 6, 7]);

it("Should convert array buffer to string and back", () => {
it('Should convert array buffer to string and back', () => {
const first = new Uint8Array([123, 231, 312]);

@@ -33,0 +33,0 @@ expect(first).toEqual(

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,21 +18,21 @@ * See the License for the specific language governing permissions and

*/
import { AsyncHelper } from "../../src/util/async/AsyncHelper";
import { CancellationToken } from "../../src/util/async/CancellationToken";
import { AsyncHelper } from '../../src/util/async/AsyncHelper';
import { CancellationToken } from '../../src/util/async/CancellationToken';
describe("Async Helper", () => {
describe('Async Helper', () => {
it("Should fail if passed timeout passed", (done) => {
it('Should fail if passed timeout passed', (done) => {
AsyncHelper.waitFor(() => false, new CancellationToken(), 10, 1).catch(() => done());
});
it("Should fail if cancellation token cancelled", (done) => {
it('Should fail if cancellation token cancelled', (done) => {
const token = new CancellationToken();
AsyncHelper.waitFor(() => false, token).catch(() => done());
token.cancel("Cancelled");
token.cancel('Cancelled');
});
it("Should not fail if cancellation token cancelled but condition is true", (done) => {
it('Should not fail if cancellation token cancelled but condition is true', (done) => {
const token = new CancellationToken();
token.cancel("Cancelled");
token.cancel('Cancelled');
AsyncHelper.waitFor(() => true, token).then(() => done());

@@ -39,0 +39,0 @@ });

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -19,10 +19,10 @@ * See the License for the specific language governing permissions and

import { BlockingQueueBase } from "../../src/util/collections/BlockingQueue";
import { BlockingQueueBase } from '../../src/util/collections/BlockingQueue';
describe("BlockingQueue", () => {
describe('BlockingQueue', () => {
const sut = new BlockingQueueBase();
it("Should wait until element appears", (done) => {
const el = "test";
it('Should wait until element appears', (done) => {
const el = 'test';
sut.blockingDequeue().then(res => {

@@ -29,0 +29,0 @@ expect(res).toBe(el);

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,16 +18,16 @@ * See the License for the specific language governing permissions and

*/
import { ExtendedArray } from "../../src/util/ExtendedArray";
import { expect } from "chai";
import { ExtendedArray } from '../../src/util/ExtendedArray';
import { expect } from 'chai';
describe("ExtededArray", () => {
describe('ExtededArray', () => {
it("Returns distinct values by key", () => {
const result = ExtendedArray.of([{ a: "1", b: "x" }, { a: "1", b: "y" }])
it('Returns distinct values by key', () => {
const result = ExtendedArray.of([{ a: '1', b: 'x' }, { a: '1', b: 'y' }])
.distinct(x => x.a)
.toArray();
expect(result[0].a).eq("1");
expect(result[0].a).eq('1');
expect(result.length).eq(1);
});
it("Can join with other array", () => {
it('Can join with other array', () => {
const result = ExtendedArray.of([1, 2, 3])

@@ -40,3 +40,3 @@ .joinWith([4, 5, 6], (x, y) => x + y, (x, y) => x === 1 && y === 4)

it("Can be converted to Map", () => {
it('Can be converted to Map', () => {
const map = ExtendedArray.of([1])

@@ -43,0 +43,0 @@ .toMap(x => x + 1, x => x + 2);

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,9 +18,9 @@ * See the License for the specific language governing permissions and

*/
import { LimitedBufferQueue } from "../../src/util/collections/LimitedBufferQueue";
import { LimitedBufferQueue } from '../../src/util/collections/LimitedBufferQueue';
describe("LimitedBufferQueue", () => {
describe('LimitedBufferQueue', () => {
it("Should enqueue and dequeue element if buffer size is enough", () => {
it('Should enqueue and dequeue element if buffer size is enough', () => {
const sut = new LimitedBufferQueue(1);
const el = "test";
const el = 'test';
sut.enqueue(el)

@@ -30,5 +30,5 @@ expect(sut.dequeue()).toEqual(el);

it("Should reject enqueue if buffer size is not enough", (done) => {
it('Should reject enqueue if buffer size is not enough', (done) => {
const sut = new LimitedBufferQueue(0);
const el = "test";
const el = 'test';
try {

@@ -35,0 +35,0 @@ sut.enqueue(el);

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,9 +18,9 @@ * See the License for the specific language governing permissions and

*/
import { SequencedExecutor } from "../../src/util/async/SequencedExecutor";
import { SequencedExecutor } from '../../src/util/async/SequencedExecutor';
describe("SequencedExecutor", () => {
describe('SequencedExecutor', () => {
const sut = new SequencedExecutor();
it("Executus tasks in a row", (done) => {
it('Executus tasks in a row', (done) => {
let counter = 0;

@@ -37,5 +37,5 @@ sut.submit(async () => {

it("Executus tasks if previous failed", (done) => {
it('Executus tasks if previous failed', (done) => {
sut.submit(async () => {
throw new Error("Failed");
throw new Error('Failed');
}).catch(e => {});

@@ -42,0 +42,0 @@ sut.submit(async () => done());

/**
* Copyright 2017 Plexus Interop Deutsche Bank AG
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.

@@ -12,3 +12,3 @@ * You may obtain a copy of the License at

* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

@@ -18,9 +18,9 @@ * See the License for the specific language governing permissions and

*/
import { StateMaschineBase } from "../../src/util/state";
import { StateMaschineBase } from '../../src/util/state';
describe("StateMaschineBase", () => {
describe('StateMaschineBase', () => {
enum State { CREATED, OPEN, CLOSED }
it("Should switch states", (done) => {
it('Should switch states', (done) => {
const sut = new StateMaschineBase<State>(State.OPEN, [

@@ -39,3 +39,3 @@ {

it("Should execute preHandler before switching the state", (done) => {
it('Should execute preHandler before switching the state', (done) => {
let called = false;

@@ -56,3 +56,3 @@ const sut = new StateMaschineBase<State>(State.OPEN, [

it("Should execute both static and dynamic preHandlers before switching the state", (done) => {
it('Should execute both static and dynamic preHandlers before switching the state', (done) => {
let called = 0;

@@ -78,3 +78,3 @@ const sut = new StateMaschineBase<State>(State.OPEN, [

it("Should execute both static and dynamic post handlers after switching the state", (done) => {
it('Should execute both static and dynamic post handlers after switching the state', (done) => {
let called = 0;

@@ -100,3 +100,3 @@ const sut = new StateMaschineBase<State>(State.OPEN, [

it("Should execute postHandler after switching the state", (done) => {
it('Should execute postHandler after switching the state', (done) => {
let called = false;

@@ -117,3 +117,3 @@ const sut = new StateMaschineBase<State>(State.OPEN, [

it("Should raise error if current status is not correct", () => {
it('Should raise error if current status is not correct', () => {
const sut = new StateMaschineBase<State>(State.OPEN, [

@@ -127,3 +127,3 @@ {

it("Should raise error if none of statuses is correct", () => {
it('Should raise error if none of statuses is correct', () => {
const sut = new StateMaschineBase<State>(State.OPEN, [

@@ -137,3 +137,3 @@ {

it("Should return true from 'one of' check if second state is correct", (done) => {
it('Should return true from one of check if second state is correct', (done) => {
const sut = new StateMaschineBase<State>(State.OPEN, [

@@ -152,3 +152,3 @@ {

it("Should return false from 'one of' check if no correct states provided", (done) => {
it('Should return false from one of check if no correct states provided', (done) => {
const sut = new StateMaschineBase<State>(State.OPEN, [

@@ -166,3 +166,3 @@ {

it("Should switch state synchronously", () => {
it('Should switch state synchronously', () => {
const sut = new StateMaschineBase<State>(State.OPEN, [

@@ -177,3 +177,3 @@ {

it("Should execute pre handler for synchronous switch", (done) => {
it('Should execute pre handler for synchronous switch', (done) => {
const sut = new StateMaschineBase<State>(State.OPEN, [

@@ -187,3 +187,3 @@ {

it("Should execute pre handler for synchronous switch", (done) => {
it('Should execute pre handler for synchronous switch', (done) => {
const sut = new StateMaschineBase<State>(State.OPEN, [

@@ -190,0 +190,0 @@ {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc