diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9360876..8b576a0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,33 +3,39 @@ image: hosttoday/ht-docker-node:npmci cache: paths: - - .yarn/ + - .npmci_cache/ key: "$CI_BUILD_STAGE" stages: -- mirror - security - test - release -- trigger -- pages +- metadata +# ==================== +# security stage +# ==================== mirror: - stage: mirror + stage: security script: - npmci git mirror tags: - docker + - notpriv -security: +snyk: stage: security script: - - npmci command yarn global add snyk - - npmci command yarn install --ignore-scripts + - npmci command npm install -g snyk + - npmci command npm install --ignore-scripts - npmci command snyk test tags: - docker + - notpriv +# ==================== +# test stage +# ==================== testLEGACY: stage: test script: @@ -39,6 +45,7 @@ testLEGACY: coverage: /\d+.?\d+?\%\s*coverage/ tags: - docker + - notpriv allow_failure: true testLTS: @@ -50,6 +57,7 @@ testLTS: coverage: /\d+.?\d+?\%\s*coverage/ tags: - docker + - notpriv testSTABLE: stage: test @@ -60,37 +68,74 @@ testSTABLE: coverage: /\d+.?\d+?\%\s*coverage/ tags: - docker + - notpriv release: stage: release script: - - npmci npm prepare + - npmci node install stable - npmci npm publish only: - tags tags: - docker + - notpriv + +# ==================== +# metadata stage +# ==================== +codequality: + stage: metadata + image: docker:stable + allow_failure: true + services: + - docker:stable-dind + script: + - export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/') + - docker run + --env SOURCE_CODE="$PWD" + --volume "$PWD":/code + --volume /var/run/docker.sock:/var/run/docker.sock + "registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code + artifacts: + paths: [codeclimate.json] + tags: + - docker + - priv trigger: - stage: trigger + stage: metadata script: - npmci trigger only: - tags tags: - docker + - notpriv pages: image: hosttoday/ht-docker-node:npmci - stage: pages + stage: metadata script: - - npmci command yarn global add npmpage + - npmci command npm install -g npmpage - npmci command npmpage tags: - docker + - notpriv only: - tags artifacts: expire_in: 1 week paths: - public + allow_failure: true + +windowsCompatibility: + image: stefanscherer/node-windows:10-build-tools + stage: metadata + script: + - npm install & npm test + coverage: /\d+.?\d+?\%\s*coverage/ + tags: + - windows + allow_failure: true diff --git a/README.md b/README.md index 807236d..045357c 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ Use TypeScript for best in class instellisense. ```javascript // import any tool that you need from lik -import { Stringmap, Objectmap, Observablemap } from "lik"; +import { Stringmap, Objectmap, Observablemap } from 'lik'; ``` ### class Stringmap diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 9e5cdf3..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export * from "./lik.looptracker"; -export * from "./lik.objectmap"; -export * from "./lik.stringmap"; -export * from "./lik.limitedarray"; -export * from "./lik.tree"; diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index cd78223..0000000 --- a/dist/index.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -function __export(m) { - for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; -} -Object.defineProperty(exports, "__esModule", { value: true }); -// import modules -__export(require("./lik.looptracker")); -__export(require("./lik.objectmap")); -__export(require("./lik.stringmap")); -__export(require("./lik.limitedarray")); -__export(require("./lik.tree")); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUVBLGlCQUFpQjtBQUVqQix1Q0FBa0M7QUFDbEMscUNBQWdDO0FBQ2hDLHFDQUFnQztBQUNoQyx3Q0FBbUM7QUFDbkMsZ0NBQTJCIn0= \ No newline at end of file diff --git a/dist/lik.limitedarray.d.ts b/dist/lik.limitedarray.d.ts deleted file mode 100644 index d3c95d8..0000000 --- a/dist/lik.limitedarray.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -export declare class LimitedArray { - array: T[]; - arrayLimit: number; - constructor(limitArg: number); - addOne(objectArg: T): void; - addMany(objectArrayArg: T[]): void; - setLimit(limitArg: number): void; - getAverage(): number; -} diff --git a/dist/lik.limitedarray.js b/dist/lik.limitedarray.js deleted file mode 100644 index 898093f..0000000 --- a/dist/lik.limitedarray.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -class LimitedArray { - constructor(limitArg) { - this.array = []; - this.arrayLimit = limitArg; - } - addOne(objectArg) { - this.array.unshift(objectArg); - if (this.array.length > this.arrayLimit) { - this.array.length = this.arrayLimit; - } - } - addMany(objectArrayArg) { - for (let objectArg of objectArrayArg) { - this.addOne(objectArg); - } - } - setLimit(limitArg) { - this.arrayLimit = limitArg; - if (this.array.length > this.arrayLimit) { - this.array.length = this.arrayLimit; - } - } - getAverage() { - if (typeof this.array[0] === "number") { - let sum = 0; - for (let localNumber of this.array) { - let localNumberAny = localNumber; - sum = sum + localNumberAny; - } - return sum / this.array.length; - } - else { - return null; - } - } -} -exports.LimitedArray = LimitedArray; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlrLmxpbWl0ZWRhcnJheS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL2xpay5saW1pdGVkYXJyYXkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFFQTtJQUdFLFlBQVksUUFBZ0I7UUFGNUIsVUFBSyxHQUFRLEVBQUUsQ0FBQztRQUdkLElBQUksQ0FBQyxVQUFVLEdBQUcsUUFBUSxDQUFDO0lBQzdCLENBQUM7SUFFRCxNQUFNLENBQUMsU0FBWTtRQUNqQixJQUFJLENBQUMsS0FBSyxDQUFDLE9BQU8sQ0FBQyxTQUFTLENBQUMsQ0FBQztRQUM5QixFQUFFLENBQUMsQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLE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FBTSxDQUFDO1FBQ2pDLENBQUM7UUFBQyxJQUFJLENBQUMsQ0FBQztZQUNOLE1BQU0sQ0FBQyxJQUFJLENBQUM7UUFDZCxDQUFDO0lBQ0gsQ0FBQztDQUNGO0FBdkNELG9DQXVDQyJ9 \ No newline at end of file diff --git a/dist/lik.looptracker.d.ts b/dist/lik.looptracker.d.ts deleted file mode 100644 index 3bd21aa..0000000 --- a/dist/lik.looptracker.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Objectmap } from "./lik.objectmap"; -export declare class LoopTracker { - referenceObjectMap: Objectmap; - constructor(); - /** - * checks and tracks an object - * @param objectArg - */ - checkAndTrack(objectArg: T): boolean; -} diff --git a/dist/lik.looptracker.js b/dist/lik.looptracker.js deleted file mode 100644 index 4c8ae26..0000000 --- a/dist/lik.looptracker.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const lik_objectmap_1 = require("./lik.objectmap"); -class LoopTracker { - constructor() { - this.referenceObjectMap = new lik_objectmap_1.Objectmap(); - // nothing here - } - /** - * checks and tracks an object - * @param objectArg - */ - checkAndTrack(objectArg) { - return this.referenceObjectMap.add(objectArg); - } -} -exports.LoopTracker = LoopTracker; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlrLmxvb3B0cmFja2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvbGlrLmxvb3B0cmFja2VyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBRUEsbURBQTRDO0FBRTVDO0lBRUU7UUFEQSx1QkFBa0IsR0FBRyxJQUFJLHlCQUFTLEVBQU8sQ0FBQztRQUV4QyxlQUFlO0lBQ2pCLENBQUM7SUFFRDs7O09BR0c7SUFDSCxhQUFhLENBQUMsU0FBWTtRQUN4QixNQUFNLENBQUMsSUFBSSxDQUFDLGtCQUFrQixDQUFDLEdBQUcsQ0FBQyxTQUFTLENBQUMsQ0FBQztJQUNoRCxDQUFDO0NBQ0Y7QUFiRCxrQ0FhQyJ9 \ No newline at end of file diff --git a/dist/lik.objectmap.d.ts b/dist/lik.objectmap.d.ts deleted file mode 100644 index 2de15a9..0000000 --- a/dist/lik.objectmap.d.ts +++ /dev/null @@ -1,62 +0,0 @@ -export interface IObjectmapForEachFunction { - (itemArg: T): void; -} -export interface IObjectmapFindFunction { - (itemArg: T): boolean; -} -/** - * allows keeping track of objects - */ -export declare class Objectmap { - private objectArray; - /** - * returns a new instance - */ - constructor(); - /** - * add object to Objectmap - * returns false if the object is already in the map - * returns true if the object was added successfully - */ - add(objectArg: T): boolean; - /** - * like .add but adds an whole array of objects - */ - addArray(objectArrayArg: T[]): void; - /** - * check if object is in Objectmap - */ - checkForObject(objectArg: T): boolean; - /** - * find object - */ - find(findFunction: IObjectmapFindFunction): T; - /** - * finds a specific element and then removes it - */ - findOneAndRemove(findFunction: IObjectmapFindFunction): T; - /** - * run function for each item in Objectmap - */ - forEach(functionArg: IObjectmapForEachFunction): Promise; - /** - * gets an object in the Observablemap and removes it, so it can't be retrieved again - */ - getOneAndRemove(): T; - /** - * returns a cloned array of all the objects currently in the Objectmap - */ - getArray(): T[]; - /** - * check if Objectmap ist empty - */ - isEmpty(): boolean; - /** - * remove object from Objectmap - */ - remove(objectArg: T): void; - /** - * wipe Objectmap - */ - wipe(): void; -} diff --git a/dist/lik.objectmap.js b/dist/lik.objectmap.js deleted file mode 100644 index 1f40d7d..0000000 --- a/dist/lik.objectmap.js +++ /dev/null @@ -1,128 +0,0 @@ -"use strict"; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const plugins = require("./lik.plugins"); -/** - * allows keeping track of objects - */ -class Objectmap { - /** - * returns a new instance - */ - constructor() { - this.objectArray = []; - // nothing here - } - /** - * add object to Objectmap - * returns false if the object is already in the map - * returns true if the object was added successfully - */ - add(objectArg) { - if (this.checkForObject(objectArg)) { - // the object is already in the objectmap - return false; - } - else { - // the object is not yet in the objectmap - this.objectArray.push(objectArg); - return true; - } - } - /** - * like .add but adds an whole array of objects - */ - addArray(objectArrayArg) { - for (let item of objectArrayArg) { - this.add(item); - } - } - /** - * check if object is in Objectmap - */ - checkForObject(objectArg) { - return this.objectArray.indexOf(objectArg) !== -1; - } - /** - * find object - */ - find(findFunction) { - let resultArray = this.objectArray.filter(findFunction); - if (resultArray.length > 0) { - return resultArray[0]; - } - else { - return null; - } - } - /** - * finds a specific element and then removes it - */ - findOneAndRemove(findFunction) { - let foundElement = this.find(findFunction); - if (foundElement) { - this.remove(foundElement); - } - return foundElement; - } - /** - * run function for each item in Objectmap - */ - forEach(functionArg) { - return __awaiter(this, void 0, void 0, function* () { - for (let object of this.objectArray) { - yield functionArg(object); - } - }); - } - /** - * gets an object in the Observablemap and removes it, so it can't be retrieved again - */ - getOneAndRemove() { - return this.objectArray.shift(); - } - /** - * returns a cloned array of all the objects currently in the Objectmap - */ - getArray() { - return plugins.lodash.cloneDeep(this.objectArray); - } - /** - * check if Objectmap ist empty - */ - isEmpty() { - if (this.objectArray.length === 0) { - return true; - } - else { - return false; - } - } - /** - * remove object from Objectmap - */ - remove(objectArg) { - let replacementArray = []; - for (let item of this.objectArray) { - if (item !== objectArg) { - replacementArray.push(item); - } - } - this.objectArray = replacementArray; - } - /** - * wipe Objectmap - */ - wipe() { - this.objectArray = []; - } -} -exports.Objectmap = Objectmap; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlrLm9iamVjdG1hcC5qcyIsInNvdXJj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FDSCxPQUFPO1FBQ0wsRUFBRSxDQUFDLENBQUMsSUFBSSxDQUFDLFdBQVcsQ0FBQyxNQUFNLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBQztZQUNsQyxNQUFNLENBQUMsSUFBSSxDQUFDO1FBQ2QsQ0FBQztRQUFDLElBQUksQ0FBQyxDQUFDO1lBQ04sTUFBTSxDQUFDLEtBQUssQ0FBQztRQUNmLENBQUM7SUFDSCxDQUFDO0lBRUQ7O09BRUc7SUFDSCxNQUFNLENBQUMsU0FBWTtRQUNqQixJQUFJLGdCQUFnQixHQUFHLEVBQUUsQ0FBQztRQUMxQixHQUFHLENBQUMsQ0FBQyxJQUFJLElBQUksSUFBSSxJQUFJLENBQUMsV0FBVyxDQUFDLENBQUMsQ0FBQztZQUNsQyxFQUFFLENBQUMsQ0FBQyxJQUFJLEtBQUssU0FBUyxDQUFDLENBQUMsQ0FBQztnQkFDdkIsZ0JBQWdCLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDO1lBQzlCLENBQUM7UUFDSCxDQUFDO1FBQ0QsSUFBSSxDQUFDLFdBQVcsR0FBRyxnQkFBZ0IsQ0FBQztJQUN0QyxDQUFDO0lBRUQ7O09BRUc7SUFDSCxJQUFJO1FBQ0YsSUFBSSxDQUFDLFdBQVcsR0FBRyxFQUFFLENBQUM7SUFDeEIsQ0FBQztDQUNGO0FBdEhELDhCQXNIQyJ9 \ No newline at end of file diff --git a/dist/lik.plugins.d.ts b/dist/lik.plugins.d.ts deleted file mode 100644 index e342e89..0000000 --- a/dist/lik.plugins.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import * as events from "events"; -import * as lodash from "lodash"; -import * as minimatch from "minimatch"; -import * as smartq from "smartq"; -declare const symbolTree: any; -export { events, lodash, minimatch, smartq, symbolTree }; diff --git a/dist/lik.plugins.js b/dist/lik.plugins.js deleted file mode 100644 index 1a598ce..0000000 --- a/dist/lik.plugins.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const events = require("events"); -exports.events = events; -const lodash = require("lodash"); -exports.lodash = lodash; -const minimatch = require("minimatch"); -exports.minimatch = minimatch; -const smartq = require("smartq"); -exports.smartq = smartq; -const symbolTree = require("symbol-tree"); -exports.symbolTree = symbolTree; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlrLnBsdWdpbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9saWsucGx1Z2lucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGlDQUFpQztBQU14Qix3QkFBTTtBQUxmLGlDQUFpQztBQUtoQix3QkFBTTtBQUp2Qix1Q0FBdUM7QUFJZCw4QkFBUztBQUhsQyxpQ0FBaUM7QUFHRyx3QkFBTTtBQUYxQyxNQUFNLFVBQVUsR0FBRyxPQUFPLENBQUMsYUFBYSxDQUFDLENBQUM7QUFFRSxnQ0FBVSJ9 \ No newline at end of file diff --git a/dist/lik.stringmap.d.ts b/dist/lik.stringmap.d.ts deleted file mode 100644 index 86d8a29..0000000 --- a/dist/lik.stringmap.d.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * allows you to easily keep track of a bunch of strings - */ -export interface ITriggerFunction { - (): boolean; -} -export declare class Stringmap { - private _stringArray; - private _triggerUntilTrueFunctionArray; - constructor(); - /** - * add a string to the Stringmap - */ - addString(stringArg: string): void; - /** - * like addString, but accepts an array of strings - */ - addStringArray(stringArrayArg: string[]): void; - /** - * removes a string from Stringmap - */ - removeString(stringArg: string): void; - /** - * wipes the Stringmap - */ - wipe(): void; - /** - * check if string is in Stringmap - */ - checkString(stringArg: string): boolean; - /** - * checks stringPresence with minimatch - */ - checkMinimatch(miniMatchStringArg: string): boolean; - /** - * checks if the Stringmap is empty - */ - checkIsEmpty(): boolean; - /** - * gets a cloned copy of the current string Array - */ - getStringArray(): string[]; - /** - * register a new trigger - */ - registerUntilTrue(functionArg: ITriggerFunction, doFunctionArg: any): void; - /** - * notifies triggers - */ - private notifyTrigger(); -} diff --git a/dist/lik.stringmap.js b/dist/lik.stringmap.js deleted file mode 100644 index 96ba142..0000000 --- a/dist/lik.stringmap.js +++ /dev/null @@ -1,97 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const plugins = require("./lik.plugins"); -class Stringmap { - constructor() { - this._stringArray = []; - this._triggerUntilTrueFunctionArray = []; - } - /** - * add a string to the Stringmap - */ - addString(stringArg) { - this._stringArray.push(stringArg); - this.notifyTrigger(); - } - /** - * like addString, but accepts an array of strings - */ - addStringArray(stringArrayArg) { - for (let stringItem of stringArrayArg) { - this.addString(stringItem); - } - } - /** - * removes a string from Stringmap - */ - removeString(stringArg) { - for (let keyArg in this._stringArray) { - if (this._stringArray[keyArg] === stringArg) { - this._stringArray.splice(parseInt(keyArg), 1); - } - } - this.notifyTrigger(); - } - /** - * wipes the Stringmap - */ - wipe() { - this._stringArray = []; - this.notifyTrigger(); - } - /** - * check if string is in Stringmap - */ - checkString(stringArg) { - return this._stringArray.indexOf(stringArg) !== -1; - } - /** - * checks stringPresence with minimatch - */ - checkMinimatch(miniMatchStringArg) { - let foundMatch = false; - for (let stringItem of this._stringArray) { - if (plugins.minimatch(stringItem, miniMatchStringArg)) { - foundMatch = true; - } - } - return foundMatch; - } - /** - * checks if the Stringmap is empty - */ - checkIsEmpty() { - return this._stringArray.length === 0; - } - /** - * gets a cloned copy of the current string Array - */ - getStringArray() { - return plugins.lodash.cloneDeep(this._stringArray); - } - // trigger registering - /** - * register a new trigger - */ - registerUntilTrue(functionArg, doFunctionArg) { - this._triggerUntilTrueFunctionArray.push(() => { - let result = functionArg(); - if (result === true) { - doFunctionArg(); - } - return result; - }); - this.notifyTrigger(); - } - /** - * notifies triggers - */ - notifyTrigger() { - let filteredArray = this._triggerUntilTrueFunctionArray.filter(functionArg => { - return !functionArg(); - }); - this._triggerUntilTrueFunctionArray = filteredArray;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ZCLEVBQUUsYUFBYTtRQUM1RCxJQUFJLENBQUMsOEJBQThCLENBQUMsSUFBSSxDQUFDLEdBQUcsRUFBRTtZQUM1QyxJQUFJLE1BQU0sR0FBRyxXQUFXLEVBQUUsQ0FBQztZQUMzQixFQUFFLENBQUMsQ0FBQyxNQUFNLEtBQUssSUFBSSxDQUFDLENBQUMsQ0FBQztnQkFDcEIsYUFBYSxFQUFFLENBQUM7WUFDbEIsQ0FBQztZQUNELE1BQU0sQ0FBQyxNQUFNLENBQUM7UUFDaEIsQ0FBQyxDQUFDLENBQUM7UUFDSCxJQUFJLENBQUMsYUFBYSxFQUFFLENBQUM7SUFDdkIsQ0FBQztJQUVEOztPQUVHO0lBQ0ssYUFBYTtRQUNuQixJQUFJLGFBQWEsR0FBRyxJQUFJLENBQUMsOEJBQThCLENBQUMsTUFBTSxDQUM1RCxXQUFXLENBQUMsRUFBRTtZQUNaLE1BQU0sQ0FBQyxDQUFDLFdBQVcsRUFBRSxDQUFDO1FBQ3hCLENBQUMsQ0FDRixDQUFDO1FBQ0YsSUFBSSxDQUFDLDhCQUE4QixHQUFHLGFBQWEsQ0FBQztJQUN0RCxDQUFDO0NBQ0Y7QUF0R0QsOEJBc0dDIn0= \ No newline at end of file diff --git a/dist/lik.tree.d.ts b/dist/lik.tree.d.ts deleted file mode 100644 index b8e7888..0000000 --- a/dist/lik.tree.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -export declare class Tree { - symbolTree: any; - constructor(); - /** - * - * @param objectArg - */ - initialize(objectArg: T): T; - hasChildren(objectArg: T): boolean; - firstChild(objectArg: T): T; - lastChild(objectArg: T): T; - previousSibling(objectArg: T): T; - nextSibling(objectArg: T): T; - parent(objectArg: T): T; - lastInclusiveDescendant(objectArg: T): T; - preceding(objectArg: T, optionsArg?: any): T; - following(object: T, optionsArg: any): any; - childrenToArray(parentArg: T, optionsArg: any): T[]; - ancestorsToArray(objectArg: T, optionsArg: any): T[]; - treeToArray(rootArg: any, optionsArg: any): T[]; - childrenIterator(parentArg: T, optionsArg: any): T; - previousSiblingsIterator(objectArg: any): T; - nextSiblingsIterator(objectArg: T): any; - ancestorsIterator(objectArg: any): void; - treeIterator(rootArg: T, optionsArg: any): T; - index(childArg: T): number; - childrenCount(parentArg: T): number; - compareTreePosition(leftArg: T, rightArg: T): number; - remove(removeObjectArg: T): T; - insertBefore(referenceObjectArg: T, newObjectArg: T): T; - insertAfter(referenceObject: T, newObjectArg: T): any; - prependChild(referenceObjectArg: T, newObjectArg: T): T; - appendChild(referenceObjectArg: any, newObjectArg: any): any; -} diff --git a/dist/lik.tree.js b/dist/lik.tree.js deleted file mode 100644 index 25f8353..0000000 --- a/dist/lik.tree.js +++ /dev/null @@ -1,92 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const plugins = require("./lik.plugins"); -class Tree { - constructor() { - this.symbolTree = new plugins.symbolTree(); - } - /** - * - * @param objectArg - */ - initialize(objectArg) { - return this.symbolTree.initialize(objectArg); - } - hasChildren(objectArg) { - return this.symbolTree.hasChildren(objectArg); - } - firstChild(objectArg) { - return this.symbolTree.firstChild(objectArg); - } - lastChild(objectArg) { - return this.symbolTree.lastChild(objectArg); - } - previousSibling(objectArg) { - return this.symbolTree.previousSibling(objectArg); - } - nextSibling(objectArg) { - return this.symbolTree.nextSibling(objectArg); - } - parent(objectArg) { - return this.symbolTree.parent(objectArg); - } - lastInclusiveDescendant(objectArg) { - return this.symbolTree.lastInclusiveDescendant(objectArg); - } - preceding(objectArg, optionsArg) { - return this.symbolTree.preceding(objectArg, optionsArg); - } - following(object, optionsArg) { - return this.symbolTree.following(object, optionsArg); - } - childrenToArray(parentArg, optionsArg) { - return this.symbolTree.childrenToArray(parent, optionsArg); - } - ancestorsToArray(objectArg, optionsArg) { - return this.symbolTree.ancestorsToArray(objectArg, optionsArg); - } - treeToArray(rootArg, optionsArg) { - return this.symbolTree.treeToArray(rootArg, optionsArg); - } - childrenIterator(parentArg, optionsArg) { - return this.symbolTree.childrenIterator(parentArg, optionsArg); - } - previousSiblingsIterator(objectArg) { - return this.symbolTree.previousSiblingsIterator(objectArg); - } - nextSiblingsIterator(objectArg) { - return this.symbolTree.nextSiblingsIterator(); - } - ancestorsIterator(objectArg) { - this.symbolTree.ancestorsIterator(); - } - treeIterator(rootArg, optionsArg) { - return this.symbolTree.treeIterator(rootArg); - } - index(childArg) { - return this.symbolTree.index(childArg); - } - childrenCount(parentArg) { - return this.symbolTree.childrenCount(parentArg); - } - compareTreePosition(leftArg, rightArg) { - return this.compareTreePosition(leftArg, rightArg); - } - remove(removeObjectArg) { - return this.symbolTree.remove(removeObjectArg); - } - insertBefore(referenceObjectArg, newObjectArg) { - return this.symbolTree.insertBefore(referenceObjectArg, newObjectArg); - } - insertAfter(referenceObject, newObjectArg) { - return this.symbolTree.insertAfter(referenceObject, newObjectArg); - } - prependChild(referenceObjectArg, newObjectArg) { - return this.symbolTree.prependChild(referenceObjectArg, newObjectArg); - } - appendChild(referenceObjectArg, newObjectArg) { - return this.symbolTree.appendChild(referenceObjectArg, newObjectArg); - } -} -exports.Tree = Tree; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlrLnRyZWUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9saWsudHJlZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHlDQUF5QztBQUV6QztJQUVFO1FBQ0UsSUFBSSxDQUFDLFVBQVUsR0FBRyxJQUFJLE9BQU8sQ0FBQyxVQUFVLEVBQUUsQ0FBQztJQUM3QyxDQUFDO0lBRUQ7OztPQUdHO0lBQ0gsVUFBVSxDQUFDLFNBQVk7UUFDckIsTUFBTSxDQUFDLElBQUksQ0FBQyxVQUFVLENBQUMsVUFBVSxDQUFDLFNBQVMsQ0FBQyxDQUFDO0lBQy9DLENBQUM7SUFFRCxXQUFXLENBQUMsU0FBWTtRQUN0QixNQUFNLENBQUMsSUFBSSx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0FBQyxrQkFBa0IsRUFBRSxZQUFZLENBQUMsQ0FBQztJQUN4RSxDQUFDO0lBRUQsV0FBVyxDQUFDLGtCQUFrQixFQUFFLFlBQVk7UUFDMUMsTUFBTSxDQUFDLElBQUksQ0FBQyxVQUFVLENBQUMsV0FBVyxDQUFDLGtCQUFrQixFQUFFLFlBQVksQ0FBQyxDQUFDO0lBQ3ZFLENBQUM7Q0FDRjtBQWpIRCxvQkFpSEMifQ== \ No newline at end of file diff --git a/docs/index.md b/docs/index.md index 457fbc6..4cd9437 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,13 +1,16 @@ # lik + light little helpers for node ## Availabililty + [![npm](https://pushrocks.gitlab.io/assets/repo-button-npm.svg)](https://www.npmjs.com/package/lik) [![git](https://pushrocks.gitlab.io/assets/repo-button-git.svg)](https://GitLab.com/pushrocks/lik) [![git](https://pushrocks.gitlab.io/assets/repo-button-mirror.svg)](https://github.com/pushrocks/lik) [![docs](https://pushrocks.gitlab.io/assets/repo-button-docs.svg)](https://pushrocks.gitlab.io/lik/) ## Status for master + [![build status](https://GitLab.com/pushrocks/lik/badges/master/build.svg)](https://GitLab.com/pushrocks/lik/commits/master) [![coverage report](https://GitLab.com/pushrocks/lik/badges/master/coverage.svg)](https://GitLab.com/pushrocks/lik/commits/master) [![npm downloads per month](https://img.shields.io/npm/dm/lik.svg)](https://www.npmjs.com/package/lik) @@ -19,22 +22,25 @@ light little helpers for node [![JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/) ## Usage + Use TypeScript for best in class instellisense. ```javascript // import any tool that you need from lik -import { Stringmap, Objectmap, Observablemap } from "lik"; +import { Stringmap, Objectmap, Observablemap } from 'lik'; ``` ### class Stringmap + Stringmap allows you to keep track of strings. It allows you to register triggers for certain events like when a certain string is removed or added to the map ### class Objectmap + Sometimes you need to keep track of objects, but implementing logic for removing, finding or updating is tedious. Objectmap takes care of keeping track of objects for you. > MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh) -| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html) +> | By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html) [![repo-footer](https://pushrocks.gitlab.io/assets/repo-footer.svg)](https://push.rocks) diff --git a/npmextra.json b/npmextra.json index 6a27936..2f42c5f 100644 --- a/npmextra.json +++ b/npmextra.json @@ -2,7 +2,8 @@ "npmci": { "npmGlobalTools": [ "npmts" - ] + ], + "npmAccessLevel": "public" }, "npmts": { "coverageTreshold": 40, diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..cd6eeed --- /dev/null +++ b/package-lock.json @@ -0,0 +1,870 @@ +{ + "name": "@pushrocks/lik", + "version": "2.0.5", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "@airbnb/node-memwatch": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@airbnb/node-memwatch/-/node-memwatch-1.0.2.tgz", + "integrity": "sha512-2R+MEEMSTUdKwQ6NFWkyA/UNoSjL1tMldZqJbZpgXSwNMBzlNlkUWEXKu9RqTTMkDqJRfGJ2VDs8gPlPK2APDQ==", + "dev": true, + "requires": { + "bindings": "^1.3.0", + "nan": "^2.9.2" + } + }, + "@gitzone/tsrun": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/@gitzone/tsrun/-/tsrun-1.1.9.tgz", + "integrity": "sha512-MbCLj4hSK5nY6cMqT0OxY0BrXffmiC1Rjbzan8CmEpB8OttaAJT+zsJErJWhI+pk4s75Te73PyhHYaJAXUoJhw==", + "dev": true, + "requires": { + "@pushrocks/smartfile": "^6.0.3", + "ts-node": "^7.0.0", + "typescript": "^2.9.1" + } + }, + "@pushrocks/smartdelay": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@pushrocks/smartdelay/-/smartdelay-2.0.1.tgz", + "integrity": "sha512-olWwh2/JWfhmYdgqrR5RdSsgv1GlXBnbP+XKUrdKVk3dcCzkoqDx9lRE9NfpoCg1cUM2VMxbTVgTW9PWyexEuw==", + "dev": true, + "requires": { + "@pushrocks/smartpromise": "^2.0.5" + } + }, + "@pushrocks/smartfile": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/@pushrocks/smartfile/-/smartfile-6.0.3.tgz", + "integrity": "sha512-oYnLQzY/R6kVNerbWY4WwnPvdxXldrzMPWcB9j0aAdSDSqGwBEO1/ZFTQuNzN5MmPopoYmJrc06ZmI6dm4OJmw==", + "dev": true, + "requires": { + "@pushrocks/smartpromise": "^2.0.5", + "@pushrocks/smartrequest": "^1.0.15", + "@types/fs-extra": "^5.0.3", + "@types/vinyl": "^2.0.2", + "fs-extra": "^6.0.1", + "glob": "^7.1.2", + "js-yaml": "^3.10.0", + "smartpath": "^3.2.8", + "vinyl-file": "^3.0.0" + } + }, + "@pushrocks/smartpromise": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@pushrocks/smartpromise/-/smartpromise-2.0.5.tgz", + "integrity": "sha512-9j/chLtIiNkR0MDw7Mpxg9slxAVvAQwUZuiaPYX5KpHdKxQaHLI1VZ8IN0vPhwlfgNO4i4vGXV0wB8BvSDj03g==" + }, + "@pushrocks/smartrequest": { + "version": "1.0.15", + "resolved": "https://registry.npmjs.org/@pushrocks/smartrequest/-/smartrequest-1.0.15.tgz", + "integrity": "sha512-nM+ctwMOs3gPJvw3cGouBimKQxCM93bnmv2+Jk9cbT29/UVVI/UjIdAU3OnUYFpzq496/QUAQD0kNsmYNkqmhQ==", + "dev": true, + "requires": { + "smartq": "^1.1.1" + } + }, + "@pushrocks/tapbundle": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@pushrocks/tapbundle/-/tapbundle-3.0.1.tgz", + "integrity": "sha512-QWVz5EwB3sjjqHTMa22xuw78TBgVTyqKTF5H6HT9d/rvxL5Ag4ZrTuoadMPcU9hRBx9gtPsKbWq4lEwOHdCmLA==", + "dev": true, + "requires": { + "@pushrocks/smartdelay": "^2.0.1", + "@pushrocks/smartpromise": "^2.0.5", + "early": "^2.1.1", + "leakage": "^0.4.0", + "smartchai": "^2.0.1" + } + }, + "@types/chai": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.1.4.tgz", + "integrity": "sha512-h6+VEw2Vr3ORiFCyyJmcho2zALnUq9cvdB/IO8Xs9itrJVCenC7o26A6+m7D0ihTTr65eS259H5/Ghl/VjYs6g==", + "dev": true + }, + "@types/chai-as-promised": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@types/chai-as-promised/-/chai-as-promised-7.1.0.tgz", + "integrity": "sha512-MFiW54UOSt+f2bRw8J7LgQeIvE/9b4oGvwU7XW30S9QGAiHGnU/fmiOprsyMkdmH2rl8xSPc0/yrQw8juXU6bQ==", + "dev": true, + "requires": { + "@types/chai": "*" + } + }, + "@types/chai-string": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/@types/chai-string/-/chai-string-1.4.1.tgz", + "integrity": "sha512-aRNMs6TKgjgPlCHwDfq/YNy5VtRR2hJ4AUWByddrT0TRVVD8eX4MiHW6/iHvmQHRlVuuPZcwnTUE7b4yFt7bEA==", + "dev": true, + "requires": { + "@types/chai": "*" + } + }, + "@types/fs-extra": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-5.0.4.tgz", + "integrity": "sha512-DsknoBvD8s+RFfSGjmERJ7ZOP1HI0UZRA3FSI+Zakhrc/Gy26YQsLI+m5V5DHxroHRJqCDLKJp7Hixn8zyaF7g==", + "dev": true, + "requires": { + "@types/node": "*" + } + }, + "@types/lodash": { + "version": "4.14.112", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.112.tgz", + "integrity": "sha512-jDD7sendv3V7iwyRXSlECOR8HCtMN2faVA9ngLdHHihSVIwY7nbfsKl2kA6fimUDU1i5l/zgpG3aevwWnN3zCQ==" + }, + "@types/minimatch": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.3.tgz", + "integrity": "sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA==" + }, + "@types/node": { + "version": "10.5.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-10.5.2.tgz", + "integrity": "sha512-m9zXmifkZsMHZBOyxZWilMwmTlpC8x5Ty360JKTiXvlXZfBWYpsg9ZZvP/Ye+iZUh+Q+MxDLjItVTWIsfwz+8Q==", + "dev": true + }, + "@types/vinyl": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@types/vinyl/-/vinyl-2.0.2.tgz", + "integrity": "sha512-2iYpNuOl98SrLPBZfEN9Mh2JCJ2EI9HU35SfgBEb51DcmaHkhp8cKMblYeBqMQiwXMgAD3W60DbQ4i/UdLiXhw==", + "dev": true, + "requires": { + "@types/node": "*" + } + }, + "ansi-256-colors": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/ansi-256-colors/-/ansi-256-colors-1.1.0.tgz", + "integrity": "sha1-kQ3lDvzHwJ49gvL4er1rcAwYgYo=", + "dev": true + }, + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "arrify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", + "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", + "dev": true + }, + "assertion-error": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", + "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", + "dev": true + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" + }, + "beautycolor": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/beautycolor/-/beautycolor-1.0.11.tgz", + "integrity": "sha512-Uxl/39+2uqixPzsrV+0NOHf0sJlWmsKnRTV0oz8+bfwnHPA/E+SZuh3Upn3OXobv0W7LZg5BVoLj1nkMj7m5jA==", + "dev": true, + "requires": { + "ansi-256-colors": "^1.1.0", + "typings-global": "^1.0.14" + } + }, + "bindings": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.3.0.tgz", + "integrity": "sha512-DpLh5EzMR2kzvX1KIlVC0VkC3iZtHKTgdtZ0a3pglBZdaQFjt5S9g9xd1lE+YvXyfd6mtCeRnrUfOLYiTMlNSw==", + "dev": true + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "buffer-from": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.0.tgz", + "integrity": "sha512-c5mRlguI/Pe2dSZmpER62rSCu0ryKmWddzRYsuXc50U2/g8jMOulc31VZMa4mYx31U5xsmSOpDCgH88Vl9cDGQ==", + "dev": true + }, + "chai": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chai/-/chai-4.1.2.tgz", + "integrity": "sha1-D2RYS6ZC8PKs4oBiefTwbKI61zw=", + "dev": true, + "requires": { + "assertion-error": "^1.0.1", + "check-error": "^1.0.1", + "deep-eql": "^3.0.0", + "get-func-name": "^2.0.0", + "pathval": "^1.0.0", + "type-detect": "^4.0.0" + } + }, + "chai-as-promised": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/chai-as-promised/-/chai-as-promised-7.1.1.tgz", + "integrity": "sha512-azL6xMoi+uxu6z4rhWQ1jbdUhOMhis2PvscD/xjLqNMkv3BPPp2JyyuTHOrf9BOosGpNQ11v6BKv/g57RXbiaA==", + "dev": true, + "requires": { + "check-error": "^1.0.2" + } + }, + "chai-string": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/chai-string/-/chai-string-1.4.0.tgz", + "integrity": "sha1-NZFAwFHTak5LGl/GuRAVL0OKjUk=", + "dev": true + }, + "check-error": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz", + "integrity": "sha1-V00xLt2Iu13YkS6Sht1sCu1KrII=", + "dev": true + }, + "clone": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.1.tgz", + "integrity": "sha1-0hfR6WERjjrJpLi7oyhVU79kfNs=", + "dev": true + }, + "clone-buffer": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/clone-buffer/-/clone-buffer-1.0.0.tgz", + "integrity": "sha1-4+JbIHrE5wGvch4staFnksrD3Fg=", + "dev": true + }, + "clone-stats": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/clone-stats/-/clone-stats-1.0.0.tgz", + "integrity": "sha1-s3gt/4u1R04Yuba/D9/ngvh3doA=", + "dev": true + }, + "cloneable-readable": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/cloneable-readable/-/cloneable-readable-1.1.2.tgz", + "integrity": "sha512-Bq6+4t+lbM8vhTs/Bef5c5AdEMtapp/iFb6+s4/Hh9MVTt8OLKH7ZOOZSCT+Ys7hsHvqv0GuMPJ1lnQJVHvxpg==", + "dev": true, + "requires": { + "inherits": "^2.0.1", + "process-nextick-args": "^2.0.0", + "readable-stream": "^2.3.5" + } + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" + }, + "core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", + "dev": true + }, + "deep-eql": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-3.0.1.tgz", + "integrity": "sha512-+QeIQyN5ZuO+3Uk5DYh6/1eKO0m0YmJFGNmFHGACpf1ClL1nmlV/p4gNgbl2pJGxgXb4faqo6UE+M5ACEMyVcw==", + "dev": true, + "requires": { + "type-detect": "^4.0.0" + } + }, + "define-properties": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.2.tgz", + "integrity": "sha1-g6c/L+pWmJj7c3GTyPhzyvbUXJQ=", + "dev": true, + "requires": { + "foreach": "^2.0.5", + "object-keys": "^1.0.8" + } + }, + "diff": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", + "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", + "dev": true + }, + "early": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/early/-/early-2.1.1.tgz", + "integrity": "sha1-hB4jJU6l3FTYr67ugvWrZcAO4jw=", + "dev": true, + "requires": { + "beautycolor": "^1.0.7", + "smartq": "^1.1.1", + "typings-global": "^1.0.16" + } + }, + "es-abstract": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.12.0.tgz", + "integrity": "sha512-C8Fx/0jFmV5IPoMOFPA9P9G5NtqW+4cOPit3MIuvR2t7Ag2K15EJTpxnHAYTzL+aYQJIESYeXZmDBfOBE1HcpA==", + "dev": true, + "requires": { + "es-to-primitive": "^1.1.1", + "function-bind": "^1.1.1", + "has": "^1.0.1", + "is-callable": "^1.1.3", + "is-regex": "^1.0.4" + } + }, + "es-to-primitive": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.1.1.tgz", + "integrity": "sha1-RTVSSKiJeQNLZ5Lhm7gfK3l13Q0=", + "dev": true, + "requires": { + "is-callable": "^1.1.1", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.1" + } + }, + "es6-error": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz", + "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==", + "dev": true + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true + }, + "first-chunk-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/first-chunk-stream/-/first-chunk-stream-2.0.0.tgz", + "integrity": "sha1-G97NuOCDwGZLkZRVgVd6Q6nzHXA=", + "dev": true, + "requires": { + "readable-stream": "^2.0.2" + } + }, + "foreach": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/foreach/-/foreach-2.0.5.tgz", + "integrity": "sha1-C+4AUBiusmDQo6865ljdATbsG5k=", + "dev": true + }, + "fs-extra": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz", + "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true + }, + "get-func-name": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz", + "integrity": "sha1-6td0q+5y4gQJQzoGY2YCPdaIekE=", + "dev": true + }, + "glob": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", + "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "dependencies": { + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + } + } + }, + "graceful-fs": { + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", + "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", + "dev": true + }, + "has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dev": true, + "requires": { + "function-bind": "^1.1.1" + } + }, + "home": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/home/-/home-1.0.1.tgz", + "integrity": "sha1-lqQjzrSbmDeP9e886uBZpVf53TU=", + "dev": true, + "requires": { + "os-homedir": "^1.0.1" + } + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", + "dev": true + }, + "is-callable": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.4.tgz", + "integrity": "sha512-r5p9sxJjYnArLjObpjA4xu5EKI3CuKHkJXMhT7kwbpUyIFD1n5PMAsoPvWnvtZiNz7LjkYDRZhd7FlI0eMijEA==", + "dev": true + }, + "is-date-object": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.1.tgz", + "integrity": "sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY=", + "dev": true + }, + "is-regex": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.4.tgz", + "integrity": "sha1-VRdIm1RwkbCTDglWVM7SXul+lJE=", + "dev": true, + "requires": { + "has": "^1.0.1" + } + }, + "is-symbol": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.1.tgz", + "integrity": "sha1-PMWfAAJRlLarLjjbrmaJJWtmBXI=", + "dev": true + }, + "is-utf8": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz", + "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=", + "dev": true + }, + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "js-yaml": { + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.12.0.tgz", + "integrity": "sha512-PIt2cnwmPfL4hKNwqeiuz4bKfnzHTBv6HyVgjahA6mPLwPDzjDWrplJBMjHUFxku/N3FlmrbyPclad+I+4mJ3A==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", + "dev": true, + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "leakage": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/leakage/-/leakage-0.4.0.tgz", + "integrity": "sha512-x7gYK5n5dPkHDZWJ2Kh8Ag1hZNzUh+HtXn8Bv1aDdN6o6ONPCJ8sOfFq+kxcULJFp3lXaCjXb3iXOLmQRbBLwA==", + "dev": true, + "requires": { + "@airbnb/node-memwatch": "^1.0.2", + "es6-error": "^4.0.2", + "left-pad": "^1.1.3", + "minimist": "^1.2.0", + "pretty-bytes": "^4.0.2" + } + }, + "left-pad": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/left-pad/-/left-pad-1.3.0.tgz", + "integrity": "sha512-XI5MPzVNApjAyhQzphX8BkmKsKUxD4LdyK24iZeQGinBN9yTQT3bFlCBy/aVx2HrNcqQGsdot8ghrjyrvMCoEA==", + "dev": true + }, + "lodash": { + "version": "4.17.10", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.10.tgz", + "integrity": "sha512-UejweD1pDoXu+AD825lWwp4ZGtSwgnpZxb3JDViD7StjQz+Nb/6l093lx4OQ0foGWNRoc19mWy7BzL+UAK2iVg==" + }, + "make-error": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.4.tgz", + "integrity": "sha512-0Dab5btKVPhibSalc9QGXb559ED7G7iLjFXBaj9Wq8O3vorueR5K5jaE3hkG6ZQINyhA/JgG6Qk4qdFQjsYV6g==", + "dev": true + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", + "dev": true + }, + "mkdirp": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "dev": true, + "requires": { + "minimist": "0.0.8" + }, + "dependencies": { + "minimist": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "dev": true + } + } + }, + "nan": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.10.0.tgz", + "integrity": "sha512-bAdJv7fBLhWC+/Bls0Oza+mvTaNQtP+1RyhhhvD95pgUJz6XM5IzgmxOkItJ9tkoCiplvAnXI1tNmmUD/eScyA==", + "dev": true + }, + "object-keys": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.0.12.tgz", + "integrity": "sha512-FTMyFUm2wBcGHnH2eXmz7tC6IwlqQZ6mVZ+6dm6vZ4IQIHjs6FdNsQBuKGPuUUUY6NfJw2PshC08Tn6LzLDOag==", + "dev": true + }, + "object.getownpropertydescriptors": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz", + "integrity": "sha1-h1jIRvW0B62rDyNuCYbxSwUcqhY=", + "dev": true, + "requires": { + "define-properties": "^1.1.2", + "es-abstract": "^1.5.1" + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "os-homedir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", + "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", + "dev": true + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true + }, + "pathval": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.0.tgz", + "integrity": "sha1-uULm1L3mUwBe9rcTYd74cn0GReA=", + "dev": true + }, + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "dev": true + }, + "pretty-bytes": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-4.0.2.tgz", + "integrity": "sha1-sr+C5zUNZcbDOqlaqlpPYyf2HNk=", + "dev": true + }, + "process-nextick-args": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", + "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", + "dev": true + }, + "readable-stream": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", + "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "remove-trailing-separator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", + "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=", + "dev": true + }, + "replace-ext": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-1.0.0.tgz", + "integrity": "sha1-3mMSg3P8v3w8z6TeWkgMRaZ5WOs=", + "dev": true + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, + "smartchai": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/smartchai/-/smartchai-2.0.1.tgz", + "integrity": "sha512-9M+R56OhAHXScxgr2vzQqxGx0XMS0QXriNZuP7hjlbVbo2FUT+l60iEzbwPt9Ga+5u2cEEjSSoZEQVqlROaddA==", + "dev": true, + "requires": { + "@types/chai": "^4.1.2", + "@types/chai-as-promised": "^7.1.0", + "@types/chai-string": "^1.4.0", + "chai": "^4.1.2", + "chai-as-promised": "^7.1.1", + "chai-string": "^1.4.0" + } + }, + "smartpath": { + "version": "3.2.8", + "resolved": "https://registry.npmjs.org/smartpath/-/smartpath-3.2.8.tgz", + "integrity": "sha1-SDS9OouuIpW6rK26I8h6UBlS+UA=", + "dev": true, + "requires": { + "home": "^1.0.1", + "typings-global": "^1.0.14" + } + }, + "smartq": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/smartq/-/smartq-1.1.8.tgz", + "integrity": "sha512-FURlYW/C3bLeZjJcBVyw7bxCyQoCXiXbLCZcDUKznhXHaLu35c8m33/a2H8CA0rtb82lvzN8dRLnBZAcNMzNHQ==", + "dev": true, + "requires": { + "util.promisify": "^1.0.0" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + }, + "source-map-support": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.6.tgz", + "integrity": "sha512-N4KXEz7jcKqPf2b2vZF11lQIz9W5ZMuUcIOGj243lduidkf2fjkVKJS9vNxVWn3u/uxX38AcE8U9nnH9FPcq+g==", + "dev": true, + "requires": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "requires": { + "safe-buffer": "~5.1.0" + } + }, + "strip-bom": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", + "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", + "dev": true, + "requires": { + "is-utf8": "^0.2.0" + } + }, + "strip-bom-buf": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/strip-bom-buf/-/strip-bom-buf-1.0.0.tgz", + "integrity": "sha1-HLRar1dTD0yvhsf3UXnSyaUd1XI=", + "dev": true, + "requires": { + "is-utf8": "^0.2.1" + } + }, + "strip-bom-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-bom-stream/-/strip-bom-stream-2.0.0.tgz", + "integrity": "sha1-+H217yYT9paKpUWr/h7HKLaoKco=", + "dev": true, + "requires": { + "first-chunk-stream": "^2.0.0", + "strip-bom": "^2.0.0" + } + }, + "symbol-tree": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.2.tgz", + "integrity": "sha1-rifbOPZgp64uHDt9G8KQgZuFGeY=" + }, + "ts-node": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-7.0.0.tgz", + "integrity": "sha512-klJsfswHP0FuOLsvBZ/zzCfUvakOSSxds78mVeK7I+qP76YWtxf16hEZsp3U+b0kIo82R5UatGFeblYMqabb2Q==", + "dev": true, + "requires": { + "arrify": "^1.0.0", + "buffer-from": "^1.1.0", + "diff": "^3.1.0", + "make-error": "^1.1.1", + "minimist": "^1.2.0", + "mkdirp": "^0.5.1", + "source-map-support": "^0.5.6", + "yn": "^2.0.0" + } + }, + "type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true + }, + "typescript": { + "version": "2.9.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.9.2.tgz", + "integrity": "sha512-Gr4p6nFNaoufRIY4NMdpQRNmgxVIGMs4Fcu/ujdYk3nAZqk7supzBE9idmvfZIlH/Cuj//dvi+019qEue9lV0w==", + "dev": true + }, + "typings-global": { + "version": "1.0.28", + "resolved": "https://registry.npmjs.org/typings-global/-/typings-global-1.0.28.tgz", + "integrity": "sha512-6VOwJWEY2971HOMHu/7sURzUXiD4/LiMJPsMAOqkHHAtS3MVpLFE5gzTiHilsH9KY5VE1mBQirWIgWFsDuo90A==", + "dev": true + }, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true + }, + "util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", + "dev": true + }, + "util.promisify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/util.promisify/-/util.promisify-1.0.0.tgz", + "integrity": "sha512-i+6qA2MPhvoKLuxnJNpXAGhg7HphQOSUq2LKMZD0m15EiskXUkMvKdF4Uui0WYeCUGea+o2cw/ZuwehtfsrNkA==", + "dev": true, + "requires": { + "define-properties": "^1.1.2", + "object.getownpropertydescriptors": "^2.0.3" + } + }, + "vinyl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-2.2.0.tgz", + "integrity": "sha512-MBH+yP0kC/GQ5GwBqrTPTzEfiiLjta7hTtvQtbxBgTeSXsmKQRQecjibMbxIXzVT3Y9KJK+drOz1/k+vsu8Nkg==", + "dev": true, + "requires": { + "clone": "^2.1.1", + "clone-buffer": "^1.0.0", + "clone-stats": "^1.0.0", + "cloneable-readable": "^1.0.0", + "remove-trailing-separator": "^1.0.1", + "replace-ext": "^1.0.0" + } + }, + "vinyl-file": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/vinyl-file/-/vinyl-file-3.0.0.tgz", + "integrity": "sha1-sQTZ5ECf+jJfqt1SBkLQo7SIs2U=", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "pify": "^2.3.0", + "strip-bom-buf": "^1.0.0", + "strip-bom-stream": "^2.0.0", + "vinyl": "^2.0.1" + } + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true + }, + "yn": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/yn/-/yn-2.0.0.tgz", + "integrity": "sha1-5a2ryKz0CPY4X8dklWhMiOavaJo=", + "dev": true + } + } +} diff --git a/package.json b/package.json index a983ca6..f7c0fdd 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,13 @@ { - "name": "lik", + "name": "@pushrocks/lik", "version": "2.0.5", + "private": false, "description": "light little helpers for node", "main": "dist/index.js", "typings": "dist/index.d.ts", "scripts": { - "test": "(npmts)" + "test": "tsrun test/test.ts", + "build": "(npmts)" }, "repository": { "type": "git", @@ -18,21 +20,16 @@ }, "homepage": "https://gitlab.com/pushrocks/lik#README", "devDependencies": { - "@types/node": "^9.4.0", - "cz-conventional-changelog": "^2.1.0", - "tapbundle": "^1.1.1" + "@gitzone/tsrun": "^1.1.9", + "@pushrocks/tapbundle": "^3.0.1", + "@types/node": "^10.5.2" }, "dependencies": { - "@types/lodash": "^4.14.97", + "@pushrocks/smartpromise": "^2.0.5", + "@types/lodash": "^4.14.112", "@types/minimatch": "^3.0.3", - "lodash": "^4.17.4", + "lodash": "^4.17.10", "minimatch": "^3.0.4", - "smartq": "^1.1.6", "symbol-tree": "^3.2.2" - }, - "config": { - "commitizen": { - "path": "./node_modules/cz-conventional-changelog" - } } } diff --git a/test/test.limitedarray.ts b/test/test.limitedarray.ts index 1c48144..8abf0b5 100644 --- a/test/test.limitedarray.ts +++ b/test/test.limitedarray.ts @@ -1,17 +1,17 @@ -import { tap, expect } from 'tapbundle' +import { tap, expect } from '@pushrocks/tapbundle'; -import { LimitedArray } from '../ts/index' +import { LimitedArray } from '../ts/index'; -let testLimitedArray: LimitedArray +let testLimitedArray: LimitedArray; tap.test('should create a LimitedArray', async () => { - testLimitedArray = new LimitedArray(6) - expect(testLimitedArray).to.be.instanceof(LimitedArray) -}) + testLimitedArray = new LimitedArray(6); + expect(testLimitedArray).to.be.instanceof(LimitedArray); +}); tap.test('should never be longer than the set length', async () => { - testLimitedArray.addMany(['hi','this','is','quite','a','long','string',':)']) - expect(testLimitedArray.array.length).to.be.lessThan(7) -}) + testLimitedArray.addMany(['hi', 'this', 'is', 'quite', 'a', 'long', 'string', ':)']); + expect(testLimitedArray.array.length).to.be.lessThan(7); +}); -tap.start() +tap.start(); diff --git a/test/test.looptracker.ts b/test/test.looptracker.ts index ea1bcc9..8e0df04 100644 --- a/test/test.looptracker.ts +++ b/test/test.looptracker.ts @@ -1,26 +1,26 @@ // import test framework -import { expect, tap } from 'tapbundle' -import * as events from 'events' -import * as smartq from 'smartq' +import { expect, tap } from '@pushrocks/tapbundle'; +import * as events from 'events'; +import * as smartq from 'smartq'; // import the module -import * as lik from '../ts/index' +import * as lik from '../ts/index'; -let object1 = {} -let object2 = {} -let myLoopTracker: lik.LoopTracker +let object1 = {}; +let object2 = {}; +let myLoopTracker: lik.LoopTracker; // tests tap.test('should create a valid looptracker instance', async () => { - myLoopTracker = new lik.LoopTracker() - expect(myLoopTracker).to.be.instanceof(lik.LoopTracker) -}) + myLoopTracker = new lik.LoopTracker(); + expect(myLoopTracker).to.be.instanceof(lik.LoopTracker); +}); tap.test('should add objects once and return true', async () => { - expect(myLoopTracker.checkAndTrack(object1)).to.be.true - expect(myLoopTracker.checkAndTrack(object1)).to.be.false - expect(myLoopTracker.checkAndTrack(object2)).to.be.true - expect(myLoopTracker.checkAndTrack(object2)).to.be.false -}) + expect(myLoopTracker.checkAndTrack(object1)).to.be.true; + expect(myLoopTracker.checkAndTrack(object1)).to.be.false; + expect(myLoopTracker.checkAndTrack(object2)).to.be.true; + expect(myLoopTracker.checkAndTrack(object2)).to.be.false; +}); -tap.start() \ No newline at end of file +tap.start(); diff --git a/test/test.objectmap.ts b/test/test.objectmap.ts index e170a72..638c6c1 100644 --- a/test/test.objectmap.ts +++ b/test/test.objectmap.ts @@ -1,76 +1,78 @@ // import test framework -import { expect, tap } from 'tapbundle' -import * as events from 'events' -import * as smartq from 'smartq' +import { expect, tap } from '@pushrocks/tapbundle'; +import * as events from 'events'; +import * as smartq from 'smartq'; // import the module -import * as lik from '../ts/index' +import * as lik from '../ts/index'; // Objectmap interface ITestObject { - propOne: string - propTwo: string + propOne: string; + propTwo: string; } -let testObjectmap: lik.Objectmap +let testObjectmap: lik.Objectmap; let testObject1: ITestObject = { propOne: 'hello', propTwo: 'hello2' -} +}; let testObject2: ITestObject = { propOne: 'hello', propTwo: 'hello2' -} +}; tap.test('new lik.Objectmap() -> should correctly instantiate an Objectmap', async () => { - testObjectmap = new lik.Objectmap() - expect(testObjectmap).be.instanceof(lik.Objectmap) -}) + testObjectmap = new lik.Objectmap(); + expect(testObjectmap).be.instanceof(lik.Objectmap); +}); tap.test('lik.Objectmap.add() -> should correctly add an object to Objectmap', async () => { - testObjectmap.add(testObject1) + testObjectmap.add(testObject1); // tslint:disable-next-line:no-unused-expression - expect(testObjectmap.checkForObject(testObject1)).be.true + expect(testObjectmap.checkForObject(testObject1)).be.true; // tslint:disable-next-line:no-unused-expression - expect(testObjectmap.checkForObject(testObject2)).be.false -}) + expect(testObjectmap.checkForObject(testObject2)).be.false; +}); tap.test('lik.Objectmap.remove() -> should correctly remove an object to Objectmap', async () => { - testObjectmap.add(testObject2) - testObjectmap.remove(testObject1) + testObjectmap.add(testObject2); + testObjectmap.remove(testObject1); // tslint:disable-next-line:no-unused-expression - expect(testObjectmap.checkForObject(testObject1)).be.false + expect(testObjectmap.checkForObject(testObject1)).be.false; // tslint:disable-next-line:no-unused-expression - expect(testObjectmap.checkForObject(testObject2)).be.true -}) + expect(testObjectmap.checkForObject(testObject2)).be.true; +}); tap.test('Objectmap.forEach -> should correctly run a function forEach map object', async () => { testObjectmap.forEach(itemArg => { - expect(itemArg).to.contain('propOne') - }) -}) + expect(itemArg).to.have.property('propOne'); + }); +}); tap.test('lik.Objectmap.find() -> should correctly find an object', async () => { - let myObject = { propOne: 'helloThere', propTwo: 'helloAnyway' } - testObjectmap.add(myObject) - let referenceObject = testObjectmap.find((itemArg) => { return (itemArg.propOne === 'helloThere') }) + let myObject = { propOne: 'helloThere', propTwo: 'helloAnyway' }; + testObjectmap.add(myObject); + let referenceObject = testObjectmap.find(itemArg => { + return itemArg.propOne === 'helloThere'; + }); // tslint:disable-next-line:no-unused-expression - expect(myObject === referenceObject).be.true -}) + expect(myObject === referenceObject).be.true; +}); tap.test('lik.Objectmap.getArray() -> should return a cloned array', async () => { - let myObject = { propOne: 'test1', propTwo: 'wow, how awesome' } - testObjectmap.add(myObject) - let clonedArray = testObjectmap.getArray() - expect(clonedArray[ clonedArray.length - 1 ]).to.equal(myObject) -}) + let myObject = { propOne: 'test1', propTwo: 'wow, how awesome' }; + testObjectmap.add(myObject); + let clonedArray = testObjectmap.getArray(); + expect(clonedArray[clonedArray.length - 1]).to.eql(myObject); +}); tap.test('should get one object and then remove it', async () => { - let originalLength = testObjectmap.getArray().length - let oneObject = testObjectmap.getOneAndRemove() + let originalLength = testObjectmap.getArray().length; + let oneObject = testObjectmap.getOneAndRemove(); // tslint:disable-next-line:no-unused-expression - expect(oneObject).not.be.null - expect(testObjectmap.getArray().length).equal(originalLength - 1) - expect(testObjectmap.getArray()).to.not.contain(oneObject) -}) + expect(oneObject).not.be.null; + expect(testObjectmap.getArray().length).equal(originalLength - 1); + expect(testObjectmap.getArray()).to.not.contain(oneObject); +}); -tap.start() +tap.start(); diff --git a/test/test.stringmap.ts b/test/test.stringmap.ts index d99c072..8d7dd0f 100644 --- a/test/test.stringmap.ts +++ b/test/test.stringmap.ts @@ -1,78 +1,88 @@ // import test framework -import { expect, tap } from 'tapbundle' -import * as events from 'events' -import * as smartq from 'smartq' +import { expect, tap } from '@pushrocks/tapbundle'; +import * as events from 'events'; +import * as smartq from 'smartq'; // import the module -import * as lik from '../ts/index' +import * as lik from '../ts/index'; // testData -let testStringmap: lik.Stringmap -let testString1 = 'testString1' -let testString2 = 'testString2' -let testString3 = 'testString3' -let testString4 = 'testString4' -let testString5 = 'testString5' -let testString6 = 'testString6' +let testStringmap: lik.Stringmap; +let testString1 = 'testString1'; +let testString2 = 'testString2'; +let testString3 = 'testString3'; +let testString4 = 'testString4'; +let testString5 = 'testString5'; +let testString6 = 'testString6'; // tests tap.test('new lik.Objectmap() -> should create an instance of Stringmap', async () => { - testStringmap = new lik.Stringmap() - expect(testStringmap).be.instanceof(lik.Stringmap) -}) + testStringmap = new lik.Stringmap(); + expect(testStringmap).be.instanceof(lik.Stringmap); +}); -tap.test('lik.Stringmap.checkString -> should return false for an string not in Stringmap', async () => { - // tslint:disable-next-line:no-unused-expression - expect(testStringmap.checkString(testString1)).be.false -}) +tap.test( + 'lik.Stringmap.checkString -> should return false for an string not in Stringmap', + async () => { + // tslint:disable-next-line:no-unused-expression + expect(testStringmap.checkString(testString1)).be.false; + } +); tap.test('lik.Stringmap.addString -> should add an string to Stringmap', async () => { - testStringmap.addString(testString1) - testStringmap.addString(testString2) - testStringmap.addString(testString3) + testStringmap.addString(testString1); + testStringmap.addString(testString2); + testStringmap.addString(testString3); // tslint:disable-next-line:no-unused-expression - expect(testStringmap.checkString(testString1)).be.true + expect(testStringmap.checkString(testString1)).be.true; // tslint:disable-next-line:no-unused-expression - expect(testStringmap.checkString(testString2)).be.true + expect(testStringmap.checkString(testString2)).be.true; // tslint:disable-next-line:no-unused-expression - expect(testStringmap.checkString(testString3)).be.true + expect(testStringmap.checkString(testString3)).be.true; // tslint:disable-next-line:no-unused-expression - expect(testStringmap.checkMinimatch('*String1')).be.true + expect(testStringmap.checkMinimatch('*String1')).be.true; // tslint:disable-next-line:no-unused-expression - expect(testStringmap.checkMinimatch('*String2')).be.true + expect(testStringmap.checkMinimatch('*String2')).be.true; // tslint:disable-next-line:no-unused-expression - expect(testStringmap.checkMinimatch('*String4')).be.false -}) + expect(testStringmap.checkMinimatch('*String4')).be.false; +}); tap.test('lik.Stringmap.addStringArray -> should add an array of strings', async () => { - testStringmap.addStringArray([ testString4, testString5, testString6 ]) + testStringmap.addStringArray([testString4, testString5, testString6]); // tslint:disable-next-line:no-unused-expression - expect(testStringmap.checkMinimatch('*String4')).be.true -}) + expect(testStringmap.checkMinimatch('*String4')).be.true; +}); tap.test('lik.Stringmap.removeString -> should remove a string from Stringmap', async () => { - testStringmap.removeString(testString2) + testStringmap.removeString(testString2); // tslint:disable-next-line:no-unused-expression - expect(testStringmap.checkString(testString2)).be.false -}) + expect(testStringmap.checkString(testString2)).be.false; +}); tap.test('lik.Stringmap.getStringArray() -> should return a copy of stringArray', async () => { - let clonedArray = testStringmap.getStringArray() + let clonedArray = testStringmap.getStringArray(); // tslint:disable-next-line:no-unused-expression - expect(clonedArray[ 0 ] === 'testString1').be.true + expect(clonedArray[0] === 'testString1').be.true; // tslint:disable-next-line:no-unused-expression - expect(clonedArray[ 0 ] === testString1).be.true -}) + expect(clonedArray[0] === testString1).be.true; +}); -tap.test('lik.Stringmap.checkIsEmpty() -> should register a function to trigger when empty', async () => { - testStringmap.registerUntilTrue( - () => { return testStringmap.checkIsEmpty() }, - () => { console.log('Stringmap now is empty') } - ) -}) +tap.test( + 'lik.Stringmap.checkIsEmpty() -> should register a function to trigger when empty', + async () => { + testStringmap.registerUntilTrue( + () => { + return testStringmap.checkIsEmpty(); + }, + () => { + console.log('Stringmap now is empty'); + } + ); + } +); tap.test('lik.Stringmap.empty() -> should remove wipe and then notify', async () => { - testStringmap.wipe() -}) + testStringmap.wipe(); +}); -tap.start() +tap.start(); diff --git a/test/test.tree.ts b/test/test.tree.ts index 7d81c23..90055ec 100644 --- a/test/test.tree.ts +++ b/test/test.tree.ts @@ -1,24 +1,24 @@ -import { tap, expect } from 'tapbundle' -import * as lik from '../ts/index' +import { tap, expect } from '@pushrocks/tapbundle'; +import * as lik from '../ts/index'; -let testTree = new lik.Tree() +let testTree = new lik.Tree(); class TestClass { - constructor (public hey: string) { + constructor(public hey: string) { // nothing here } } -let testInstance = new TestClass('first') +let testInstance = new TestClass('first'); tap.test('create a valid tree instance', async () => { - testTree = new lik.Tree() - expect(testTree).to.be.instanceOf(lik.Tree) -}) + testTree = new lik.Tree(); + expect(testTree).to.be.instanceOf(lik.Tree); +}); tap.test('should insert an object', async () => { - testTree.initialize(testInstance) - let resultArray = testTree.treeToArray(testInstance, {}) - expect(resultArray).to.contain(testInstance) -}) + testTree.initialize(testInstance); + let resultArray = testTree.treeToArray(testInstance, {}); + expect(resultArray).to.contain(testInstance); +}); -tap.start() +tap.start(); diff --git a/test/test.ts b/test/test.ts new file mode 100644 index 0000000..9dd09af --- /dev/null +++ b/test/test.ts @@ -0,0 +1 @@ +import './test.objectmap'; diff --git a/ts/index.ts b/ts/index.ts index eb87161..ae87bc3 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -1,9 +1,9 @@ -import * as plugins from "./lik.plugins"; +import * as plugins from './lik.plugins'; // import modules -export * from "./lik.looptracker"; -export * from "./lik.objectmap"; -export * from "./lik.stringmap"; -export * from "./lik.limitedarray"; -export * from "./lik.tree"; +export * from './lik.looptracker'; +export * from './lik.objectmap'; +export * from './lik.stringmap'; +export * from './lik.limitedarray'; +export * from './lik.tree'; diff --git a/ts/lik.limitedarray.ts b/ts/lik.limitedarray.ts index 9b6ac43..554ef7a 100644 --- a/ts/lik.limitedarray.ts +++ b/ts/lik.limitedarray.ts @@ -1,4 +1,4 @@ -import * as plugins from "./lik.plugins"; +import * as plugins from './lik.plugins'; export class LimitedArray { array: T[] = []; @@ -28,7 +28,7 @@ export class LimitedArray { } getAverage(): number { - if (typeof this.array[0] === "number") { + if (typeof this.array[0] === 'number') { let sum = 0; for (let localNumber of this.array) { let localNumberAny: any = localNumber; diff --git a/ts/lik.looptracker.ts b/ts/lik.looptracker.ts index aa6b1d8..e1a6a1d 100644 --- a/ts/lik.looptracker.ts +++ b/ts/lik.looptracker.ts @@ -1,6 +1,6 @@ -import * as plugins from "./lik.plugins"; +import * as plugins from './lik.plugins'; -import { Objectmap } from "./lik.objectmap"; +import { Objectmap } from './lik.objectmap'; export class LoopTracker { referenceObjectMap = new Objectmap(); diff --git a/ts/lik.objectmap.ts b/ts/lik.objectmap.ts index 490d478..30e8493 100644 --- a/ts/lik.objectmap.ts +++ b/ts/lik.objectmap.ts @@ -1,4 +1,4 @@ -import * as plugins from "./lik.plugins"; +import * as plugins from './lik.plugins'; export interface IObjectmapForEachFunction { (itemArg: T): void; diff --git a/ts/lik.plugins.ts b/ts/lik.plugins.ts index db94933..f7f9149 100644 --- a/ts/lik.plugins.ts +++ b/ts/lik.plugins.ts @@ -1,7 +1,7 @@ -import * as events from "events"; -import * as lodash from "lodash"; -import * as minimatch from "minimatch"; -import * as smartq from "smartq"; -const symbolTree = require("symbol-tree"); +import * as events from 'events'; +import * as lodash from 'lodash'; +import * as minimatch from 'minimatch'; +import * as smartpromise from '@pushrocks/smartpromise'; +const symbolTree = require('symbol-tree'); -export { events, lodash, minimatch, smartq, symbolTree }; +export { events, lodash, minimatch, smartpromise, symbolTree }; diff --git a/ts/lik.stringmap.ts b/ts/lik.stringmap.ts index b2e3af5..e137341 100644 --- a/ts/lik.stringmap.ts +++ b/ts/lik.stringmap.ts @@ -1,4 +1,4 @@ -import * as plugins from "./lik.plugins"; +import * as plugins from './lik.plugins'; /** * allows you to easily keep track of a bunch of strings @@ -103,11 +103,9 @@ export class Stringmap { * notifies triggers */ private notifyTrigger() { - let filteredArray = this._triggerUntilTrueFunctionArray.filter( - functionArg => { - return !functionArg(); - } - ); + let filteredArray = this._triggerUntilTrueFunctionArray.filter(functionArg => { + return !functionArg(); + }); this._triggerUntilTrueFunctionArray = filteredArray; } } diff --git a/ts/lik.tree.ts b/ts/lik.tree.ts index e1a9b62..67018f7 100644 --- a/ts/lik.tree.ts +++ b/ts/lik.tree.ts @@ -1,4 +1,4 @@ -import * as plugins from "./lik.plugins"; +import * as plugins from './lik.plugins'; export class Tree { symbolTree: any; @@ -51,7 +51,7 @@ export class Tree { } childrenToArray(parentArg: T, optionsArg: any): T[] { - return this.symbolTree.childrenToArray(parent, optionsArg); + return this.symbolTree.childrenToArray(parentArg, optionsArg); } ancestorsToArray(objectArg: T, optionsArg: any): T[] { diff --git a/yarn.lock b/yarn.lock deleted file mode 100644 index fe2bac1..0000000 --- a/yarn.lock +++ /dev/null @@ -1,265 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@types/code@^4.0.3": - version "4.0.3" - resolved "https://registry.yarnpkg.com/@types/code/-/code-4.0.3.tgz#9c4de39f86eb3eba070146d2dab7dbc3f8eac35f" - -"@types/lodash@^4.14.97": - version "4.14.97" - resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.97.tgz#7262d6d5fc5e87cdb3f68eb33accd4024f2b211e" - -"@types/minimatch@^3.0.3": - version "3.0.3" - resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d" - -"@types/node@^8.0.33": - version "8.5.9" - resolved "https://registry.yarnpkg.com/@types/node/-/node-8.5.9.tgz#7155cfb4ae405bca4dd8df1a214c339e939109bf" - -"@types/node@^9.4.0": - version "9.4.0" - resolved "https://registry.yarnpkg.com/@types/node/-/node-9.4.0.tgz#b85a0bcf1e1cc84eb4901b7e96966aedc6f078d1" - -ansi-256-colors@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/ansi-256-colors/-/ansi-256-colors-1.1.0.tgz#910de50efcc7c09e3d82f2f87abd6b700c18818a" - -balanced-match@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" - -beautycolor@^1.0.7: - version "1.0.11" - resolved "https://registry.yarnpkg.com/beautycolor/-/beautycolor-1.0.11.tgz#71c5568d5a7ed5c144d3a54f753ad1b08862aea5" - dependencies: - ansi-256-colors "^1.1.0" - typings-global "^1.0.14" - -bindings@^1.2.1: - version "1.3.0" - resolved "https://registry.yarnpkg.com/bindings/-/bindings-1.3.0.tgz#b346f6ecf6a95f5a815c5839fc7cdb22502f1ed7" - -brace-expansion@^1.1.7: - version "1.1.8" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.8.tgz#c07b211c7c952ec1f8efd51a77ef0d1d3990a292" - dependencies: - balanced-match "^1.0.0" - concat-map "0.0.1" - -code@^5.1.0: - version "5.1.2" - resolved "https://registry.yarnpkg.com/code/-/code-5.1.2.tgz#e3310c2078ca7dc0b49b9c39a8b0a7b06bd75efe" - dependencies: - hoek "5.x.x" - -concat-map@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" - -conventional-commit-types@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/conventional-commit-types/-/conventional-commit-types-2.2.0.tgz#5db95739d6c212acbe7b6f656a11b940baa68946" - -cz-conventional-changelog@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/cz-conventional-changelog/-/cz-conventional-changelog-2.1.0.tgz#2f4bc7390e3244e4df293e6ba351e4c740a7c764" - dependencies: - conventional-commit-types "^2.0.0" - lodash.map "^4.5.1" - longest "^1.0.1" - right-pad "^1.0.1" - word-wrap "^1.0.3" - -define-properties@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.2.tgz#83a73f2fea569898fb737193c8f873caf6d45c94" - dependencies: - foreach "^2.0.5" - object-keys "^1.0.8" - -early@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/early/-/early-2.1.1.tgz#841e23254ea5dc54d8afaeee82f5ab65c00ee23c" - dependencies: - beautycolor "^1.0.7" - smartq "^1.1.1" - typings-global "^1.0.16" - -es-abstract@^1.5.1: - version "1.10.0" - resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.10.0.tgz#1ecb36c197842a00d8ee4c2dfd8646bb97d60864" - dependencies: - es-to-primitive "^1.1.1" - function-bind "^1.1.1" - has "^1.0.1" - is-callable "^1.1.3" - is-regex "^1.0.4" - -es-to-primitive@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.1.1.tgz#45355248a88979034b6792e19bb81f2b7975dd0d" - dependencies: - is-callable "^1.1.1" - is-date-object "^1.0.1" - is-symbol "^1.0.1" - -es6-error@^4.0.2: - version "4.1.1" - resolved "https://registry.yarnpkg.com/es6-error/-/es6-error-4.1.1.tgz#9e3af407459deed47e9a91f9b885a84eb05c561d" - -foreach@^2.0.5: - version "2.0.5" - resolved "https://registry.yarnpkg.com/foreach/-/foreach-2.0.5.tgz#0bee005018aeb260d0a3af3ae658dd0136ec1b99" - -function-bind@^1.0.2, function-bind@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" - -has@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/has/-/has-1.0.1.tgz#8461733f538b0837c9361e39a9ab9e9704dc2f28" - dependencies: - function-bind "^1.0.2" - -hoek@5.x.x: - version "5.0.2" - resolved "https://registry.yarnpkg.com/hoek/-/hoek-5.0.2.tgz#d2f2c95d36fe7189cf8aa8c237abc1950eca1378" - -is-callable@^1.1.1, is-callable@^1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.1.3.tgz#86eb75392805ddc33af71c92a0eedf74ee7604b2" - -is-date-object@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.1.tgz#9aa20eb6aeebbff77fbd33e74ca01b33581d3a16" - -is-regex@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.0.4.tgz#5517489b547091b0930e095654ced25ee97e9491" - dependencies: - has "^1.0.1" - -is-symbol@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.1.tgz#3cc59f00025194b6ab2e38dbae6689256b660572" - -leakage@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/leakage/-/leakage-0.3.0.tgz#15d698abdc76bbc6439601f4f3020e77e2d50c39" - dependencies: - es6-error "^4.0.2" - left-pad "^1.1.3" - memwatch-next "^0.3.0" - minimist "^1.2.0" - pretty-bytes "^4.0.2" - -left-pad@^1.1.3: - version "1.2.0" - resolved "https://registry.yarnpkg.com/left-pad/-/left-pad-1.2.0.tgz#d30a73c6b8201d8f7d8e7956ba9616087a68e0ee" - -lodash.map@^4.5.1: - version "4.6.0" - resolved "https://registry.yarnpkg.com/lodash.map/-/lodash.map-4.6.0.tgz#771ec7839e3473d9c4cde28b19394c3562f4f6d3" - -lodash@^4.17.4: - version "4.17.4" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae" - -longest@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097" - -memwatch-next@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/memwatch-next/-/memwatch-next-0.3.0.tgz#2111050f9a906e0aa2d72a4ec0f0089c78726f8f" - dependencies: - bindings "^1.2.1" - nan "^2.3.2" - -minimatch@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" - dependencies: - brace-expansion "^1.1.7" - -minimist@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" - -nan@^2.3.2: - version "2.8.0" - resolved "https://registry.yarnpkg.com/nan/-/nan-2.8.0.tgz#ed715f3fe9de02b57a5e6252d90a96675e1f085a" - -object-keys@^1.0.8: - version "1.0.11" - resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.0.11.tgz#c54601778ad560f1142ce0e01bcca8b56d13426d" - -object.getownpropertydescriptors@^2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz#8758c846f5b407adab0f236e0986f14b051caa16" - dependencies: - define-properties "^1.1.2" - es-abstract "^1.5.1" - -pretty-bytes@^4.0.2: - version "4.0.2" - resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-4.0.2.tgz#b2bf82e7350d65c6c33aa95aaa5a4f6327f61cd9" - -right-pad@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/right-pad/-/right-pad-1.0.1.tgz#8ca08c2cbb5b55e74dafa96bf7fd1a27d568c8d0" - -smartchai@^1.0.3: - version "1.0.8" - resolved "https://registry.yarnpkg.com/smartchai/-/smartchai-1.0.8.tgz#a074836f4ddd4b98c50f1e7ae9e8e8ad9f6f1902" - dependencies: - "@types/code" "^4.0.3" - code "^5.1.0" - typings-global "^1.0.20" - -smartdelay@^1.0.3: - version "1.0.4" - resolved "https://registry.yarnpkg.com/smartdelay/-/smartdelay-1.0.4.tgz#791c1a4ee6770494064c10b1d2d2b8e6f3105b82" - dependencies: - smartq "^1.1.1" - typings-global "^1.0.16" - -smartq@^1.1.1, smartq@^1.1.6: - version "1.1.6" - resolved "https://registry.yarnpkg.com/smartq/-/smartq-1.1.6.tgz#0c1ff4336d95e95b4f1fdd8ccd7e2c5a323b8412" - dependencies: - typings-global "^1.0.19" - util.promisify "^1.0.0" - -symbol-tree@^3.2.2: - version "3.2.2" - resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.2.tgz#ae27db38f660a7ae2e1c3b7d1bc290819b8519e6" - -tapbundle@^1.1.1: - version "1.1.8" - resolved "https://registry.yarnpkg.com/tapbundle/-/tapbundle-1.1.8.tgz#e08aee0e100a830d8a26a583a85d37ce53312e02" - dependencies: - "@types/node" "^8.0.33" - early "^2.1.1" - leakage "^0.3.0" - smartchai "^1.0.3" - smartdelay "^1.0.3" - smartq "^1.1.1" - typings-global "^1.0.19" - -typings-global@^1.0.14, typings-global@^1.0.16, typings-global@^1.0.19, typings-global@^1.0.20: - version "1.0.28" - resolved "https://registry.yarnpkg.com/typings-global/-/typings-global-1.0.28.tgz#e28cc965476564cbc00e438739e0aa0735d323d4" - -util.promisify@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/util.promisify/-/util.promisify-1.0.0.tgz#440f7165a459c9a16dc145eb8e72f35687097030" - dependencies: - define-properties "^1.1.2" - object.getownpropertydescriptors "^2.0.3" - -word-wrap@^1.0.3: - version "1.2.3" - resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c"