feat(core): update to newest gitzone package format

This commit is contained in:
Philipp Kunz 2018-01-27 18:11:11 +01:00
parent a6eaf78c80
commit 5ff74aea88
21 changed files with 271 additions and 325 deletions

View File

@ -8,6 +8,7 @@ cache:
stages: stages:
- mirror - mirror
- security
- test - test
- release - release
- trigger - trigger
@ -20,6 +21,15 @@ mirror:
tags: tags:
- docker - docker
security:
stage: security
script:
- npmci command yarn global add snyk
- npmci npm install
- npmci command snyk test
tags:
- docker
testLEGACY: testLEGACY:
stage: test stage: test
script: script:

View File

@ -1,13 +1,16 @@
# lik # lik
light little helpers for node light little helpers for node
## Availabililty ## Availabililty
[![npm](https://pushrocks.gitlab.io/assets/repo-button-npm.svg)](https://www.npmjs.com/package/lik) [![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-git.svg)](https://GitLab.com/pushrocks/lik)
[![git](https://pushrocks.gitlab.io/assets/repo-button-mirror.svg)](https://github.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/) [![docs](https://pushrocks.gitlab.io/assets/repo-button-docs.svg)](https://pushrocks.gitlab.io/lik/)
## Status for master ## Status for master
[![build status](https://GitLab.com/pushrocks/lik/badges/master/build.svg)](https://GitLab.com/pushrocks/lik/commits/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) [![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) [![npm downloads per month](https://img.shields.io/npm/dm/lik.svg)](https://www.npmjs.com/package/lik)
@ -19,6 +22,7 @@ light little helpers for node
[![JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/) [![JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)
## Usage ## Usage
Use TypeScript for best in class instellisense. Use TypeScript for best in class instellisense.
```javascript ```javascript
@ -27,14 +31,16 @@ import { Stringmap, Objectmap, Observablemap } from "lik";
``` ```
### class Stringmap ### class Stringmap
Stringmap allows you to keep track of strings. It allows you to register triggers for certain events 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 like when a certain string is removed or added to the map
### class Objectmap ### class Objectmap
Sometimes you need to keep track of objects, but implementing logic for removing, finding or updating is tedious. 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. Objectmap takes care of keeping track of objects for you.
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh) > 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) [![repo-footer](https://pushrocks.gitlab.io/assets/repo-footer.svg)](https://push.rocks)

10
dist/index.d.ts vendored
View File

@ -1,5 +1,5 @@
export * from './lik.looptracker'; export * from "./lik.looptracker";
export * from './lik.objectmap'; export * from "./lik.objectmap";
export * from './lik.stringmap'; export * from "./lik.stringmap";
export * from './lik.limitedarray'; export * from "./lik.limitedarray";
export * from './lik.tree'; export * from "./lik.tree";

2
dist/index.js vendored
View File

@ -9,4 +9,4 @@ __export(require("./lik.objectmap"));
__export(require("./lik.stringmap")); __export(require("./lik.stringmap"));
__export(require("./lik.limitedarray")); __export(require("./lik.limitedarray"));
__export(require("./lik.tree")); __export(require("./lik.tree"));
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUVBLGlCQUFpQjtBQUVqQix1Q0FBaUM7QUFDakMscUNBQStCO0FBQy9CLHFDQUErQjtBQUMvQix3Q0FBa0M7QUFDbEMsZ0NBQTBCIn0= //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUVBLGlCQUFpQjtBQUVqQix1Q0FBa0M7QUFDbEMscUNBQWdDO0FBQ2hDLHFDQUFnQztBQUNoQyx3Q0FBbUM7QUFDbkMsZ0NBQTJCIn0=

View File

@ -23,7 +23,7 @@ class LimitedArray {
} }
} }
getAverage() { getAverage() {
if (typeof this.array[0] === 'number') { if (typeof this.array[0] === "number") {
let sum = 0; let sum = 0;
for (let localNumber of this.array) { for (let localNumber of this.array) {
let localNumberAny = localNumber; let localNumberAny = localNumber;
@ -37,4 +37,4 @@ class LimitedArray {
} }
} }
exports.LimitedArray = LimitedArray; exports.LimitedArray = LimitedArray;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlrLmxpbWl0ZWRhcnJheS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL2xpay5saW1pdGVkYXJyYXkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFFQTtJQUdFLFlBQVksUUFBZ0I7UUFGNUIsVUFBSyxHQUFRLEVBQUUsQ0FBQTtRQUdiLElBQUksQ0FBQyxVQUFVLEdBQUcsUUFB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UFDLE1BQU0sQ0FBQyxTQUFTLENBQUMsQ0FBQztRQUN6QixDQUFDO0lBQ0gsQ0FBQztJQUVELFFBQVEsQ0FBQyxRQUFnQjtRQUN2QixJQUFJLENBQUMsVUFBVSxHQUFHLFFBQVEsQ0FBQztRQUMzQixFQUFFLENBQUMsQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLE1BQU0sR0FBRyxJQUFJLENBQUMsVUFBVSxDQUFDLENBQUMsQ0FBQztZQUN4QyxJQUFJLENBQUMsS0FBSyxDQUFDLE1BQU0sR0FBRyxJQUFJLENBQUMsVUFBVSxDQUFDO1FBQ3RDLENBQUM7SUFDSCxDQUFDO0lBRUQsVUFBVTtRQUNSLEVBQUUsQ0FBQyxDQUFDLE9BQU8sSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUMsS0FBSyxRQUFRLENBQUMsQ0FBQyxDQUFDO1lBQ3RDLElBQUksR0FBRyxHQUFHLENBQUMsQ0FBQztZQUNaLEdBQUcsQ0FBQyxDQUFDLElBQUksV0FBVyxJQUFJLElBQUksQ0FBQyxLQUFLLENBQUMsQ0FBQyxDQUFDO2dCQUNuQyxJQUFJLGNBQWMsR0FBUSxXQUFXLENBQUM7Z0JBQ3RDLEdBQUcsR0FBRyxHQUFHLEdBQUcsY0FBYyxDQUFDO1lBQzdCLENBQUM7WUFDRCxNQUFNLENBQUMsR0FBRyxHQUFHLElBQUksQ0FBQyxLQUFLLENBQUMsTUFBTSxDQUFDO1FBQ2pDLENBQUM7UUFBQyxJQUFJLENBQUMsQ0FBQztZQUNOLE1BQU0sQ0FBQyxJQUFJLENBQUM7UUFDZCxDQUFDO0lBQ0gsQ0FBQztDQUNGO0FBdkNELG9DQXVDQyJ9

View File

@ -1,4 +1,4 @@
import { Objectmap } from './lik.objectmap'; import { Objectmap } from "./lik.objectmap";
export declare class LoopTracker<T> { export declare class LoopTracker<T> {
referenceObjectMap: Objectmap<any>; referenceObjectMap: Objectmap<any>;
constructor(); constructor();

View File

@ -15,4 +15,4 @@ class LoopTracker {
} }
} }
exports.LoopTracker = LoopTracker; exports.LoopTracker = LoopTracker;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlrLmxvb3B0cmFja2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvbGlrLmxvb3B0cmFja2VyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBRUEsbURBQTJDO0FBRTNDO0lBRUU7UUFEQSx1QkFBa0IsR0FBRyxJQUFJLHlCQUFTLEVBQU8sQ0FBQTtRQUV2QyxlQUFlO0lBQ2pCLENBQUM7SUFFRDs7O09BR0c7SUFDSCxhQUFhLENBQUUsU0FBWTtRQUN6QixNQUFNLENBQUMsSUFBSSxDQUFDLGtCQUFrQixDQUFDLEdBQUcsQ0FBQyxTQUFTLENBQUMsQ0FBQTtJQUMvQyxDQUFDO0NBQ0Y7QUFiRCxrQ0FhQyJ9 //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlrLmxvb3B0cmFja2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvbGlrLmxvb3B0cmFja2VyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBRUEsbURBQTRDO0FBRTVDO0lBRUU7UUFEQSx1QkFBa0IsR0FBRyxJQUFJLHlCQUFTLEVBQU8sQ0FBQztRQUV4QyxlQUFlO0lBQ2pCLENBQUM7SUFFRDs7O09BR0c7SUFDSCxhQUFhLENBQUMsU0FBWTtRQUN4QixNQUFNLENBQUMsSUFBSSxDQUFDLGtCQUFrQixDQUFDLEdBQUcsQ0FBQyxTQUFTLENBQUMsQ0FBQztJQUNoRCxDQUFDO0NBQ0Y7QUFiRCxrQ0FhQyJ9

View File

@ -125,4 +125,4 @@ class Objectmap {
} }
} }
exports.Objectmap = Objectmap; exports.Objectmap =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NLENBQUMsSUFBSSxDQUFDO1FBQ2QsQ0FBQztRQUFDLElBQUksQ0FBQyxDQUFDO1lBQ04sTUFBTSxDQUFDLEtBQUssQ0FBQztRQUNmLENBQUM7SUFDSCxDQUFDO0lBRUQ7O09BRUc7SUFDSCxNQUFNLENBQUMsU0FBWTtRQUNqQixJQUFJLGdCQUFnQixHQUFHLEVBQUUsQ0FBQztRQUMxQixHQUFHLENBQUMsQ0FBQyxJQUFJLElBQUksSUFBSSxJQUFJLENBQUMsV0FBVyxDQUFDLENBQUMsQ0FBQztZQUNsQyxFQUFFLENBQUMsQ0FBQyxJQUFJLEtBQUssU0FBUyxDQUFDLENBQUMsQ0FBQztnQkFDdkIsZ0JBQWdCLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDO1lBQzlCLENBQUM7UUFDSCxDQUFDO1FBQ0QsSUFBSSxDQUFDLFdBQVcsR0FBRyxnQkFBZ0IsQ0FBQztJQUN0QyxDQUFDO0lBRUQ7O09BRUc7SUFDSCxJQUFJO1FBQ0YsSUFBSSxDQUFDLFdBQVcsR0FBRyxFQUFFLENBQUM7SUFDeEIsQ0FBQztDQUNGO0FBdEhELDhCQXNIQyJ9

View File

@ -1,7 +1,6 @@
import 'typings-global'; import * as events from "events";
import * as events from 'events'; import * as lodash from "lodash";
import * as lodash from 'lodash'; import * as minimatch from "minimatch";
import * as minimatch from 'minimatch'; import * as smartq from "smartq";
import * as smartq from 'smartq';
declare const symbolTree: any; declare const symbolTree: any;
export { events, lodash, minimatch, smartq, symbolTree }; export { events, lodash, minimatch, smartq, symbolTree };

5
dist/lik.plugins.js vendored
View File

@ -1,6 +1,5 @@
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
require("typings-global");
const events = require("events"); const events = require("events");
exports.events = events; exports.events = events;
const lodash = require("lodash"); const lodash = require("lodash");
@ -9,6 +8,6 @@ const minimatch = require("minimatch");
exports.minimatch = minimatch; exports.minimatch = minimatch;
const smartq = require("smartq"); const smartq = require("smartq");
exports.smartq = smartq; exports.smartq = smartq;
const symbolTree = require('symbol-tree'); const symbolTree = require("symbol-tree");
exports.symbolTree = symbolTree; exports.symbolTree = symbolTree;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlrLnBsdWdpbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9saWsucGx1Z2lucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDBCQUF1QjtBQUN2QixpQ0FBZ0M7QUFPOUIsd0JBQU07QUFOUixpQ0FBZ0M7QUFPOUIsd0JBQU07QUFOUix1Q0FBc0M7QUFPcEMsOEJBQVM7QUFOWCxpQ0FBZ0M7QUFPOUIsd0JBQU07QUFOUixNQUFNLFVBQVUsR0FBRyxPQUFPLENBQUMsYUFBYSxDQUFDLENBQUE7QUFPdkMsZ0NBQVUifQ== //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlrLnBsdWdpbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9saWsucGx1Z2lucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGlDQUFpQztBQU14Qix3QkFBTTtBQUxmLGlDQUFpQztBQUtoQix3QkFBTTtBQUp2Qix1Q0FBdUM7QUFJZCw4QkFBUztBQUhsQyxpQ0FBaUM7QUFHRyx3QkFBTTtBQUYxQyxNQUFNLFVBQVUsR0FBRyxPQUFPLENBQUMsYUFBYSxDQUFDLENBQUM7QUFFRSxnQ0FBVSJ9

View File

@ -61,7 +61,7 @@ class Stringmap {
* checks if the Stringmap is empty * checks if the Stringmap is empty
*/ */
checkIsEmpty() { checkIsEmpty() {
return (this._stringArray.length === 0); return this._stringArray.length === 0;
} }
/** /**
* gets a cloned copy of the current string Array * gets a cloned copy of the current string Array
@ -87,11 +87,11 @@ class Stringmap {
* notifies triggers * notifies triggers
*/ */
notifyTrigger() { notifyTrigger() {
let filteredArray = this._triggerUntilTrueFunctionArray.filter((functionArg) => { let filteredArray = this._triggerUntilTrueFunctionArray.filter(functionArg => {
return !functionArg(); return !functionArg();
}); });
this._triggerUntilTrueFunctionArray = filteredArray; this._triggerUntilTrueFunctionArray = filteredArray;
} }
} }
exports.Stringmap = Stringmap; exports.Stringmap = Stringmap;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlrLnN0cmluZ21hcC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL2xpay5zdHJpbmdtYXAudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSx5Q0FBd0M7QUFVeEM7SUFHRTtRQUZRLGlCQUFZLEdBQWEsRUFBRSxDQUFBO1FBQzNCLG1DQUE4QixHQUF1QixFQUFFLENBQUE7SUFDL0MsQ0FBQztJQUNqQjs7T0FFRztJQUNILFNBQVMsQ0FBRSxTQUFpQjtRQUMxQixJQUFJLENBQUMsWUFBWSxDQUFDLElBQUksQ0FBQyxTQUFTLENBQUMsQ0FBQTtRQUNqQyxJQUFJLENBQUMsYUFBYSxFQUFFLENBQUE7SUFDdEIsQ0FBQztJQUVEOztPQUVHO0lBQ0gsY0FBYyxDQUFFLGNBQXdCO1FBQ3RDLEdBQUcsQ0FBQyxDQUFDLElBQUksVUFBVSxJQUFJLGNBQWMsQ0FBQyxDQUFDLENBQUM7WUFDdEMsSUFBSSxDQUFDLFNBQVMsQ0FBQyxVQUFVLENBQUMsQ0FBQTtRQUM1QixDQUFDO0lBQ0gsQ0FBQztJQUVEOztPQUVHO0lBQ0gsWUFBWSxDQUFFLFNBQWlCO1FBQzdCLEdBQUcsQ0FBQyxDQUFDLElBQUksTUFBTSxJQUFJLElBQUksQ0FBQyxZQUFZLENBQUMsQ0FBQyxDQUFDO1lBQ3JDLEVBQUUsQ0F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ztnQkFDcEIsYUFBYSxFQUFFLENBQUM7WUFDbEIsQ0FBQztZQUNELE1BQU0sQ0FBQyxNQUFNLENBQUM7UUFDaEIsQ0FBQyxDQUFDLENBQUM7UUFDSCxJQUFJLENBQUMsYUFBYSxFQUFFLENBQUM7SUFDdkIsQ0FBQztJQUVEOztPQUVHO0lBQ0ssYUFBYTtRQUNuQixJQUFJLGFBQWEsR0FBRyxJQUFJLENBQUMsOEJBQThCLENBQUMsTUFBTSxDQUM1RCxXQUFXLENBQUMsRUFBRTtZQUNaLE1BQU0sQ0FBQyxDQUFDLFdBQVcsRUFBRSxDQUFDO1FBQ3hCLENBQUMsQ0FDRixDQUFDO1FBQ0YsSUFBSSxDQUFDLDhCQUE4QixHQUFHLGFBQWEsQ0FBQztJQUN0RCxDQUFDO0NBQ0Y7QUF0R0QsOEJBc0dDIn0=

2
dist/lik.tree.js vendored
View File

@ -89,4 +89,4 @@ class Tree {
} }
} }
exports.Tree = Tree; exports.Tree = Tree;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlrLnRyZWUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9saWsudHJlZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHlDQUF3QztBQUV4QztJQUVFO1FBQ0UsSUFBSSxDQUFDLFVBQVUsR0FBRyxJQUFJLE9BQU8sQ0FBQyxVQUFVLEVBQUUsQ0FBQTtJQUM1QyxDQUFDO0lBRUQ7OztPQUdHO0lBQ0gsVUFBVSxDQUFFLFNBQVk7UUFDdEIsTUFBTSxDQUFDLElBQUksQ0FBQyxVQUFVLENBQUMsVUFBVSxDQUFDLFNBQVMsQ0FBQyxDQUFBO0lBQzlDLENBQUM7SUFFRCxXQUFXLENBQUUsU0FBWTtRQUN2QixNQUFNLENBQUMsSUFBSSxDQUFDLFVBQVUsQ0FBQyxXQUFXLENBQUMsU0FBUyxDQUFDLENBQUE7SU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FBbUIsQ0FBQyxPQUFVLEVBQUUsUUFBVztRQUN6QyxNQUFNLENBQUMsSUFBSSxDQUFDLG1CQUFtQixDQUFDLE9BQU8sRUFBRSxRQUFRLENBQUMsQ0FBQztJQUNyRCxDQUFDO0lBRUQsTUFBTSxDQUFDLGVBQWtCO1FBQ3ZCLE1BQU0sQ0FBQyxJQUFJLENBQUMsVUFBVSxDQUFDLE1BQU0sQ0FBQyxlQUFlLENBQUMsQ0FBQztJQUNqRCxDQUFDO0lBRUQsWUFBWSxDQUFDLGtCQUFxQixFQUFFLFlBQWU7UUFDakQsTUFBTSxDQUFDLElBQUksQ0FBQyxVQUFVLENBQUMsWUFBWSxDQUFDLGtCQUFrQixFQUFFLFlBQVksQ0FBQyxDQUFDO0lBQ3hFLENBQUM7SUFFRCxXQUFXLENBQUMsZUFBa0IsRUFBRSxZQUFlO1FBQzdDLE1BQU0sQ0FBQyxJQUFJLENBQUMsVUFBVSxDQUFDLFdBQVcsQ0FBQyxlQUFlLEVBQUUsWUFBWSxDQUFDLENBQUM7SUFDcEUsQ0FBQztJQUVELFlBQVksQ0FBQyxrQkFBcUIsRUFBRSxZQUFlO1FBQ2pELE1BQU0sQ0FBQyxJQUFJLENBQUMsVUFBVSxDQUFDLFlBQVksQ0FBQyxrQkFBa0IsRUFBRSxZQUFZLENBQUMsQ0FBQztJQUN4RSxDQUFDO0lBRUQsV0FBVyxDQUFDLGtCQUFrQixFQUFFLFlBQVk7UUFDMUMsTUFBTSxDQUFDLElBQUksQ0FBQyxVQUFVLENBQUMsV0FBVyxDQUFDLGtCQUFrQixFQUFFLFlBQVksQ0FBQyxDQUFDO0lBQ3ZFLENBQUM7Q0FDRjtBQWpIRCxvQkFpSEMifQ==

View File

@ -18,15 +18,21 @@
}, },
"homepage": "https://gitlab.com/pushrocks/lik#README", "homepage": "https://gitlab.com/pushrocks/lik#README",
"devDependencies": { "devDependencies": {
"@types/node": "^9.4.0",
"cz-conventional-changelog": "^2.1.0",
"tapbundle": "^1.1.1" "tapbundle": "^1.1.1"
}, },
"dependencies": { "dependencies": {
"@types/lodash": "^4.14.74", "@types/lodash": "^4.14.97",
"@types/minimatch": "3.x.x", "@types/minimatch": "^3.0.3",
"lodash": "^4.17.4", "lodash": "^4.17.4",
"minimatch": "^3.0.4", "minimatch": "^3.0.4",
"smartq": "^1.1.6", "smartq": "^1.1.6",
"symbol-tree": "^3.2.2", "symbol-tree": "^3.2.2"
"typings-global": "^1.0.20" },
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
} }
} }

View File

@ -1,9 +1,9 @@
import * as plugins from './lik.plugins' import * as plugins from "./lik.plugins";
// import modules // import modules
export * from './lik.looptracker' export * from "./lik.looptracker";
export * from './lik.objectmap' export * from "./lik.objectmap";
export * from './lik.stringmap' export * from "./lik.stringmap";
export * from './lik.limitedarray' export * from "./lik.limitedarray";
export * from './lik.tree' export * from "./lik.tree";

View File

@ -1,43 +1,42 @@
import * as plugins from './lik.plugins' import * as plugins from "./lik.plugins";
export class LimitedArray<T> { export class LimitedArray<T> {
array: T[] = [] array: T[] = [];
arrayLimit: number arrayLimit: number;
constructor(limitArg: number) { constructor(limitArg: number) {
this.arrayLimit = limitArg this.arrayLimit = limitArg;
} }
addOne(objectArg: T) { addOne(objectArg: T) {
this.array.unshift(objectArg) this.array.unshift(objectArg);
if (this.array.length > this.arrayLimit) { if (this.array.length > this.arrayLimit) {
this.array.length = this.arrayLimit this.array.length = this.arrayLimit;
} }
} }
addMany(objectArrayArg: T[]) { addMany(objectArrayArg: T[]) {
for (let objectArg of objectArrayArg) { for (let objectArg of objectArrayArg) {
this.addOne(objectArg) this.addOne(objectArg);
} }
} }
setLimit(limitArg: number) { setLimit(limitArg: number) {
this.arrayLimit = limitArg this.arrayLimit = limitArg;
if (this.array.length > this.arrayLimit) { if (this.array.length > this.arrayLimit) {
this.array.length = this.arrayLimit this.array.length = this.arrayLimit;
} }
} }
getAverage(): number { getAverage(): number {
if (typeof this.array[0] === 'number') { if (typeof this.array[0] === "number") {
let sum = 0 let sum = 0;
for (let localNumber of this.array) { for (let localNumber of this.array) {
let localNumberAny: any = localNumber let localNumberAny: any = localNumber;
sum = sum + localNumberAny sum = sum + localNumberAny;
} }
return sum / this.array.length return sum / this.array.length;
} else { } else {
return null return null;
} }
} }
} }

View File

@ -1,9 +1,9 @@
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<T> { export class LoopTracker<T> {
referenceObjectMap = new Objectmap<any>() referenceObjectMap = new Objectmap<any>();
constructor() { constructor() {
// nothing here // nothing here
} }
@ -13,6 +13,6 @@ export class LoopTracker<T> {
* @param objectArg * @param objectArg
*/ */
checkAndTrack(objectArg: T) { checkAndTrack(objectArg: T) {
return this.referenceObjectMap.add(objectArg) return this.referenceObjectMap.add(objectArg);
} }
} }

View File

@ -1,18 +1,18 @@
import * as plugins from './lik.plugins' import * as plugins from "./lik.plugins";
export interface IObjectmapForEachFunction<T> { export interface IObjectmapForEachFunction<T> {
(itemArg: T): void (itemArg: T): void;
} }
export interface IObjectmapFindFunction<T> { export interface IObjectmapFindFunction<T> {
(itemArg: T): boolean (itemArg: T): boolean;
} }
/** /**
* allows keeping track of objects * allows keeping track of objects
*/ */
export class Objectmap<T> { export class Objectmap<T> {
private objectArray: T[] = [] private objectArray: T[] = [];
/** /**
* returns a new instance * returns a new instance
@ -29,11 +29,11 @@ export class Objectmap<T> {
add(objectArg: T): boolean { add(objectArg: T): boolean {
if (this.checkForObject(objectArg)) { if (this.checkForObject(objectArg)) {
// the object is already in the objectmap // the object is already in the objectmap
return false return false;
} else { } else {
// the object is not yet in the objectmap // the object is not yet in the objectmap
this.objectArray.push(objectArg) this.objectArray.push(objectArg);
return true return true;
} }
} }
@ -42,7 +42,7 @@ export class Objectmap<T> {
*/ */
addArray(objectArrayArg: T[]) { addArray(objectArrayArg: T[]) {
for (let item of objectArrayArg) { for (let item of objectArrayArg) {
this.add(item) this.add(item);
} }
} }
@ -50,18 +50,18 @@ export class Objectmap<T> {
* check if object is in Objectmap * check if object is in Objectmap
*/ */
checkForObject(objectArg: T) { checkForObject(objectArg: T) {
return this.objectArray.indexOf(objectArg) !== -1 return this.objectArray.indexOf(objectArg) !== -1;
} }
/** /**
* find object * find object
*/ */
find(findFunction: IObjectmapFindFunction<T>) { find(findFunction: IObjectmapFindFunction<T>) {
let resultArray = this.objectArray.filter(findFunction) let resultArray = this.objectArray.filter(findFunction);
if (resultArray.length > 0) { if (resultArray.length > 0) {
return resultArray[ 0 ] return resultArray[0];
} else { } else {
return null return null;
} }
} }
@ -69,11 +69,11 @@ export class Objectmap<T> {
* finds a specific element and then removes it * finds a specific element and then removes it
*/ */
findOneAndRemove(findFunction: IObjectmapFindFunction<T>): T { findOneAndRemove(findFunction: IObjectmapFindFunction<T>): T {
let foundElement = this.find(findFunction) let foundElement = this.find(findFunction);
if (foundElement) { if (foundElement) {
this.remove(foundElement) this.remove(foundElement);
} }
return foundElement return foundElement;
} }
/** /**
@ -81,7 +81,7 @@ export class Objectmap<T> {
*/ */
async forEach(functionArg: IObjectmapForEachFunction<T>) { async forEach(functionArg: IObjectmapForEachFunction<T>) {
for (let object of this.objectArray) { for (let object of this.objectArray) {
await functionArg(object) await functionArg(object);
} }
} }
@ -89,14 +89,14 @@ export class Objectmap<T> {
* gets an object in the Observablemap and removes it, so it can't be retrieved again * gets an object in the Observablemap and removes it, so it can't be retrieved again
*/ */
getOneAndRemove(): T { getOneAndRemove(): T {
return this.objectArray.shift() return this.objectArray.shift();
} }
/** /**
* returns a cloned array of all the objects currently in the Objectmap * returns a cloned array of all the objects currently in the Objectmap
*/ */
getArray() { getArray() {
return plugins.lodash.cloneDeep(this.objectArray) return plugins.lodash.cloneDeep(this.objectArray);
} }
/** /**
@ -104,9 +104,9 @@ export class Objectmap<T> {
*/ */
isEmpty(): boolean { isEmpty(): boolean {
if (this.objectArray.length === 0) { if (this.objectArray.length === 0) {
return true return true;
} else { } else {
return false return false;
} }
} }
@ -114,19 +114,19 @@ export class Objectmap<T> {
* remove object from Objectmap * remove object from Objectmap
*/ */
remove(objectArg: T) { remove(objectArg: T) {
let replacementArray = [] let replacementArray = [];
for (let item of this.objectArray) { for (let item of this.objectArray) {
if (item !== objectArg) { if (item !== objectArg) {
replacementArray.push(item) replacementArray.push(item);
} }
} }
this.objectArray = replacementArray this.objectArray = replacementArray;
} }
/** /**
* wipe Objectmap * wipe Objectmap
*/ */
wipe() { wipe() {
this.objectArray = [] this.objectArray = [];
} }
} }

View File

@ -1,14 +1,7 @@
import 'typings-global' import * as events from "events";
import * as events from 'events' import * as lodash from "lodash";
import * as lodash from 'lodash' import * as minimatch from "minimatch";
import * as minimatch from 'minimatch' import * as smartq from "smartq";
import * as smartq from 'smartq' const symbolTree = require("symbol-tree");
const symbolTree = require('symbol-tree')
export { export { events, lodash, minimatch, smartq, symbolTree };
events,
lodash,
minimatch,
smartq,
symbolTree
}

View File

@ -1,23 +1,23 @@
import * as plugins from './lik.plugins' import * as plugins from "./lik.plugins";
/** /**
* allows you to easily keep track of a bunch of strings * allows you to easily keep track of a bunch of strings
*/ */
export interface ITriggerFunction { export interface ITriggerFunction {
(): boolean (): boolean;
} }
export class Stringmap { export class Stringmap {
private _stringArray: string[] = [] private _stringArray: string[] = [];
private _triggerUntilTrueFunctionArray: ITriggerFunction[] = [] private _triggerUntilTrueFunctionArray: ITriggerFunction[] = [];
constructor() {} constructor() {}
/** /**
* add a string to the Stringmap * add a string to the Stringmap
*/ */
addString(stringArg: string) { addString(stringArg: string) {
this._stringArray.push(stringArg) this._stringArray.push(stringArg);
this.notifyTrigger() this.notifyTrigger();
} }
/** /**
@ -25,7 +25,7 @@ export class Stringmap {
*/ */
addStringArray(stringArrayArg: string[]) { addStringArray(stringArrayArg: string[]) {
for (let stringItem of stringArrayArg) { for (let stringItem of stringArrayArg) {
this.addString(stringItem) this.addString(stringItem);
} }
} }
@ -35,52 +35,52 @@ export class Stringmap {
removeString(stringArg: string) { removeString(stringArg: string) {
for (let keyArg in this._stringArray) { for (let keyArg in this._stringArray) {
if (this._stringArray[keyArg] === stringArg) { if (this._stringArray[keyArg] === stringArg) {
this._stringArray.splice(parseInt(keyArg), 1) this._stringArray.splice(parseInt(keyArg), 1);
} }
} }
this.notifyTrigger() this.notifyTrigger();
} }
/** /**
* wipes the Stringmap * wipes the Stringmap
*/ */
wipe() { wipe() {
this._stringArray = [] this._stringArray = [];
this.notifyTrigger() this.notifyTrigger();
} }
/** /**
* check if string is in Stringmap * check if string is in Stringmap
*/ */
checkString(stringArg: string): boolean { checkString(stringArg: string): boolean {
return this._stringArray.indexOf(stringArg) !== -1 return this._stringArray.indexOf(stringArg) !== -1;
} }
/** /**
* checks stringPresence with minimatch * checks stringPresence with minimatch
*/ */
checkMinimatch(miniMatchStringArg: string): boolean { checkMinimatch(miniMatchStringArg: string): boolean {
let foundMatch: boolean = false let foundMatch: boolean = false;
for (let stringItem of this._stringArray) { for (let stringItem of this._stringArray) {
if (plugins.minimatch(stringItem, miniMatchStringArg)) { if (plugins.minimatch(stringItem, miniMatchStringArg)) {
foundMatch = true foundMatch = true;
} }
} }
return foundMatch return foundMatch;
} }
/** /**
* checks if the Stringmap is empty * checks if the Stringmap is empty
*/ */
checkIsEmpty() { checkIsEmpty() {
return (this._stringArray.length === 0) return this._stringArray.length === 0;
} }
/** /**
* gets a cloned copy of the current string Array * gets a cloned copy of the current string Array
*/ */
getStringArray() { getStringArray() {
return plugins.lodash.cloneDeep(this._stringArray) return plugins.lodash.cloneDeep(this._stringArray);
} }
// trigger registering // trigger registering
@ -89,26 +89,25 @@ export class Stringmap {
* register a new trigger * register a new trigger
*/ */
registerUntilTrue(functionArg: ITriggerFunction, doFunctionArg) { registerUntilTrue(functionArg: ITriggerFunction, doFunctionArg) {
this._triggerUntilTrueFunctionArray.push( this._triggerUntilTrueFunctionArray.push(() => {
() => { let result = functionArg();
let result = functionArg()
if (result === true) { if (result === true) {
doFunctionArg() doFunctionArg();
} }
return result return result;
} });
) this.notifyTrigger();
this.notifyTrigger()
} }
/** /**
* notifies triggers * notifies triggers
*/ */
private notifyTrigger() { private notifyTrigger() {
let filteredArray = this._triggerUntilTrueFunctionArray.filter((functionArg) => { let filteredArray = this._triggerUntilTrueFunctionArray.filter(
return !functionArg() functionArg => {
}) return !functionArg();
this._triggerUntilTrueFunctionArray = filteredArray }
);
this._triggerUntilTrueFunctionArray = filteredArray;
} }
} }

View File

@ -1,9 +1,9 @@
import * as plugins from './lik.plugins' import * as plugins from "./lik.plugins";
export class Tree<T> { export class Tree<T> {
symbolTree: any symbolTree: any;
constructor() { constructor() {
this.symbolTree = new plugins.symbolTree() this.symbolTree = new plugins.symbolTree();
} }
/** /**
@ -11,106 +11,106 @@ export class Tree<T> {
* @param objectArg * @param objectArg
*/ */
initialize(objectArg: T): T { initialize(objectArg: T): T {
return this.symbolTree.initialize(objectArg) return this.symbolTree.initialize(objectArg);
} }
hasChildren(objectArg: T): boolean { hasChildren(objectArg: T): boolean {
return this.symbolTree.hasChildren(objectArg) return this.symbolTree.hasChildren(objectArg);
} }
firstChild(objectArg: T): T { firstChild(objectArg: T): T {
return this.symbolTree.firstChild(objectArg) return this.symbolTree.firstChild(objectArg);
} }
lastChild(objectArg: T): T { lastChild(objectArg: T): T {
return this.symbolTree.lastChild(objectArg) return this.symbolTree.lastChild(objectArg);
} }
previousSibling(objectArg: T): T { previousSibling(objectArg: T): T {
return this.symbolTree.previousSibling(objectArg) return this.symbolTree.previousSibling(objectArg);
} }
nextSibling(objectArg: T): T { nextSibling(objectArg: T): T {
return this.symbolTree.nextSibling(objectArg) return this.symbolTree.nextSibling(objectArg);
} }
parent(objectArg: T): T { parent(objectArg: T): T {
return this.symbolTree.parent(objectArg) return this.symbolTree.parent(objectArg);
} }
lastInclusiveDescendant(objectArg: T): T { lastInclusiveDescendant(objectArg: T): T {
return this.symbolTree.lastInclusiveDescendant(objectArg) return this.symbolTree.lastInclusiveDescendant(objectArg);
} }
preceding(objectArg: T, optionsArg?: any): T { preceding(objectArg: T, optionsArg?: any): T {
return this.symbolTree.preceding(objectArg, optionsArg) return this.symbolTree.preceding(objectArg, optionsArg);
} }
following(object: T, optionsArg: any) { following(object: T, optionsArg: any) {
return this.symbolTree.following(object, optionsArg) return this.symbolTree.following(object, optionsArg);
} }
childrenToArray(parentArg: T, optionsArg: any): T[] { childrenToArray(parentArg: T, optionsArg: any): T[] {
return this.symbolTree.childrenToArray(parent, optionsArg) return this.symbolTree.childrenToArray(parent, optionsArg);
} }
ancestorsToArray(objectArg: T, optionsArg: any): T[] { ancestorsToArray(objectArg: T, optionsArg: any): T[] {
return this.symbolTree.ancestorsToArray(objectArg, optionsArg) return this.symbolTree.ancestorsToArray(objectArg, optionsArg);
} }
treeToArray(rootArg, optionsArg: any): T[] { treeToArray(rootArg, optionsArg: any): T[] {
return this.symbolTree.treeToArray(rootArg, optionsArg) return this.symbolTree.treeToArray(rootArg, optionsArg);
} }
childrenIterator(parentArg: T, optionsArg): T { childrenIterator(parentArg: T, optionsArg): T {
return this.symbolTree.childrenIterator(parentArg, optionsArg) return this.symbolTree.childrenIterator(parentArg, optionsArg);
} }
previousSiblingsIterator(objectArg): T { previousSiblingsIterator(objectArg): T {
return this.symbolTree.previousSiblingsIterator(objectArg) return this.symbolTree.previousSiblingsIterator(objectArg);
} }
nextSiblingsIterator(objectArg: T) { nextSiblingsIterator(objectArg: T) {
return this.symbolTree.nextSiblingsIterator() return this.symbolTree.nextSiblingsIterator();
} }
ancestorsIterator(objectArg) { ancestorsIterator(objectArg) {
this.symbolTree.ancestorsIterator() this.symbolTree.ancestorsIterator();
} }
treeIterator(rootArg: T, optionsArg): T { treeIterator(rootArg: T, optionsArg): T {
return this.symbolTree.treeIterator(rootArg) return this.symbolTree.treeIterator(rootArg);
} }
index(childArg: T): number { index(childArg: T): number {
return this.symbolTree.index(childArg) return this.symbolTree.index(childArg);
} }
childrenCount(parentArg: T): number { childrenCount(parentArg: T): number {
return this.symbolTree.childrenCount(parentArg) return this.symbolTree.childrenCount(parentArg);
} }
compareTreePosition(leftArg: T, rightArg: T): number { compareTreePosition(leftArg: T, rightArg: T): number {
return this.compareTreePosition(leftArg, rightArg) return this.compareTreePosition(leftArg, rightArg);
} }
remove(removeObjectArg: T): T { remove(removeObjectArg: T): T {
return this.symbolTree.remove(removeObjectArg) return this.symbolTree.remove(removeObjectArg);
} }
insertBefore(referenceObjectArg: T, newObjectArg: T): T { insertBefore(referenceObjectArg: T, newObjectArg: T): T {
return this.symbolTree.insertBefore(referenceObjectArg, newObjectArg) return this.symbolTree.insertBefore(referenceObjectArg, newObjectArg);
} }
insertAfter(referenceObject: T, newObjectArg: T) { insertAfter(referenceObject: T, newObjectArg: T) {
return this.symbolTree.insertAfter(referenceObject, newObjectArg) return this.symbolTree.insertAfter(referenceObject, newObjectArg);
} }
prependChild(referenceObjectArg: T, newObjectArg: T): T { prependChild(referenceObjectArg: T, newObjectArg: T): T {
return this.symbolTree.prependChild(referenceObjectArg, newObjectArg) return this.symbolTree.prependChild(referenceObjectArg, newObjectArg);
} }
appendChild(referenceObjectArg, newObjectArg) { appendChild(referenceObjectArg, newObjectArg) {
return this.symbolTree.appendChild(referenceObjectArg, newObjectArg) return this.symbolTree.appendChild(referenceObjectArg, newObjectArg);
} }
} }

161
yarn.lock
View File

@ -6,21 +6,21 @@
version "4.0.3" version "4.0.3"
resolved "https://registry.yarnpkg.com/@types/code/-/code-4.0.3.tgz#9c4de39f86eb3eba070146d2dab7dbc3f8eac35f" resolved "https://registry.yarnpkg.com/@types/code/-/code-4.0.3.tgz#9c4de39f86eb3eba070146d2dab7dbc3f8eac35f"
"@types/lodash@^4.14.74": "@types/lodash@^4.14.97":
version "4.14.85" version "4.14.97"
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.85.tgz#a16fbf942422f6eca5622b6910492c496c35069b" resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.97.tgz#7262d6d5fc5e87cdb3f68eb33accd4024f2b211e"
"@types/minimatch@3.x.x": "@types/minimatch@^3.0.3":
version "3.0.1" version "3.0.3"
resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.1.tgz#b683eb60be358304ef146f5775db4c0e3696a550" resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d"
"@types/node@^8.0.33": "@types/node@^8.0.33":
version "8.0.53" version "8.5.9"
resolved "https://registry.yarnpkg.com/@types/node/-/node-8.0.53.tgz#396b35af826fa66aad472c8cb7b8d5e277f4e6d8" resolved "https://registry.yarnpkg.com/@types/node/-/node-8.5.9.tgz#7155cfb4ae405bca4dd8df1a214c339e939109bf"
"@types/which@^1.0.28": "@types/node@^9.4.0":
version "1.0.28" version "9.4.0"
resolved "https://registry.yarnpkg.com/@types/which/-/which-1.0.28.tgz#016e387629b8817bed653fe32eab5d11279c8df6" resolved "https://registry.yarnpkg.com/@types/node/-/node-9.4.0.tgz#b85a0bcf1e1cc84eb4901b7e96966aedc6f078d1"
ansi-256-colors@^1.1.0: ansi-256-colors@^1.1.0:
version "1.1.0" version "1.1.0"
@ -58,6 +58,20 @@ concat-map@0.0.1:
version "0.0.1" version "0.0.1"
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" 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: define-properties@^1.1.2:
version "1.1.2" version "1.1.2"
resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.2.tgz#83a73f2fea569898fb737193c8f873caf6d45c94" resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.2.tgz#83a73f2fea569898fb737193c8f873caf6d45c94"
@ -74,8 +88,8 @@ early@^2.1.1:
typings-global "^1.0.16" typings-global "^1.0.16"
es-abstract@^1.5.1: es-abstract@^1.5.1:
version "1.9.0" version "1.10.0"
resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.9.0.tgz#690829a07cae36b222e7fd9b75c0d0573eb25227" resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.10.0.tgz#1ecb36c197842a00d8ee4c2dfd8646bb97d60864"
dependencies: dependencies:
es-to-primitive "^1.1.1" es-to-primitive "^1.1.1"
function-bind "^1.1.1" function-bind "^1.1.1"
@ -92,32 +106,17 @@ es-to-primitive@^1.1.1:
is-symbol "^1.0.1" is-symbol "^1.0.1"
es6-error@^4.0.2: es6-error@^4.0.2:
version "4.0.2" version "4.1.1"
resolved "https://registry.yarnpkg.com/es6-error/-/es6-error-4.0.2.tgz#eec5c726eacef51b7f6b73c20db6e1b13b069c98" resolved "https://registry.yarnpkg.com/es6-error/-/es6-error-4.1.1.tgz#9e3af407459deed47e9a91f9b885a84eb05c561d"
foreach@^2.0.5: foreach@^2.0.5:
version "2.0.5" version "2.0.5"
resolved "https://registry.yarnpkg.com/foreach/-/foreach-2.0.5.tgz#0bee005018aeb260d0a3af3ae658dd0136ec1b99" resolved "https://registry.yarnpkg.com/foreach/-/foreach-2.0.5.tgz#0bee005018aeb260d0a3af3ae658dd0136ec1b99"
fs.realpath@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
function-bind@^1.0.2, function-bind@^1.1.1: function-bind@^1.0.2, function-bind@^1.1.1:
version "1.1.1" version "1.1.1"
resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d"
glob@^7.0.0:
version "7.1.2"
resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15"
dependencies:
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"
has@^1.0.1: has@^1.0.1:
version "1.0.1" version "1.0.1"
resolved "https://registry.yarnpkg.com/has/-/has-1.0.1.tgz#8461733f538b0837c9361e39a9ab9e9704dc2f28" resolved "https://registry.yarnpkg.com/has/-/has-1.0.1.tgz#8461733f538b0837c9361e39a9ab9e9704dc2f28"
@ -128,21 +127,6 @@ hoek@5.x.x:
version "5.0.2" version "5.0.2"
resolved "https://registry.yarnpkg.com/hoek/-/hoek-5.0.2.tgz#d2f2c95d36fe7189cf8aa8c237abc1950eca1378" resolved "https://registry.yarnpkg.com/hoek/-/hoek-5.0.2.tgz#d2f2c95d36fe7189cf8aa8c237abc1950eca1378"
inflight@^1.0.4:
version "1.0.6"
resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9"
dependencies:
once "^1.3.0"
wrappy "1"
inherits@2:
version "2.0.3"
resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de"
interpret@^1.0.0:
version "1.0.4"
resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.0.4.tgz#820cdd588b868ffb191a809506d6c9c8f212b1b0"
is-callable@^1.1.1, is-callable@^1.1.3: is-callable@^1.1.1, is-callable@^1.1.3:
version "1.1.3" version "1.1.3"
resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.1.3.tgz#86eb75392805ddc33af71c92a0eedf74ee7604b2" resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.1.3.tgz#86eb75392805ddc33af71c92a0eedf74ee7604b2"
@ -161,10 +145,6 @@ is-symbol@^1.0.1:
version "1.0.1" version "1.0.1"
resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.1.tgz#3cc59f00025194b6ab2e38dbae6689256b660572" resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.1.tgz#3cc59f00025194b6ab2e38dbae6689256b660572"
isexe@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10"
leakage@^0.3.0: leakage@^0.3.0:
version "0.3.0" version "0.3.0"
resolved "https://registry.yarnpkg.com/leakage/-/leakage-0.3.0.tgz#15d698abdc76bbc6439601f4f3020e77e2d50c39" resolved "https://registry.yarnpkg.com/leakage/-/leakage-0.3.0.tgz#15d698abdc76bbc6439601f4f3020e77e2d50c39"
@ -176,13 +156,21 @@ leakage@^0.3.0:
pretty-bytes "^4.0.2" pretty-bytes "^4.0.2"
left-pad@^1.1.3: left-pad@^1.1.3:
version "1.1.3" version "1.2.0"
resolved "https://registry.yarnpkg.com/left-pad/-/left-pad-1.1.3.tgz#612f61c033f3a9e08e939f1caebeea41b6f3199a" 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: lodash@^4.17.4:
version "4.17.4" version "4.17.4"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae" 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: memwatch-next@^0.3.0:
version "0.3.0" version "0.3.0"
resolved "https://registry.yarnpkg.com/memwatch-next/-/memwatch-next-0.3.0.tgz#2111050f9a906e0aa2d72a4ec0f0089c78726f8f" resolved "https://registry.yarnpkg.com/memwatch-next/-/memwatch-next-0.3.0.tgz#2111050f9a906e0aa2d72a4ec0f0089c78726f8f"
@ -215,47 +203,13 @@ object.getownpropertydescriptors@^2.0.3:
define-properties "^1.1.2" define-properties "^1.1.2"
es-abstract "^1.5.1" es-abstract "^1.5.1"
once@^1.3.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1"
dependencies:
wrappy "1"
path-is-absolute@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f"
path-parse@^1.0.5:
version "1.0.5"
resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.5.tgz#3c1adf871ea9cd6c9431b6ea2bd74a0ff055c4c1"
pretty-bytes@^4.0.2: pretty-bytes@^4.0.2:
version "4.0.2" version "4.0.2"
resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-4.0.2.tgz#b2bf82e7350d65c6c33aa95aaa5a4f6327f61cd9" resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-4.0.2.tgz#b2bf82e7350d65c6c33aa95aaa5a4f6327f61cd9"
rechoir@^0.6.2: right-pad@^1.0.1:
version "0.6.2" version "1.0.1"
resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.6.2.tgz#85204b54dba82d5742e28c96756ef43af50e3384" resolved "https://registry.yarnpkg.com/right-pad/-/right-pad-1.0.1.tgz#8ca08c2cbb5b55e74dafa96bf7fd1a27d568c8d0"
dependencies:
resolve "^1.1.6"
resolve@^1.1.6:
version "1.5.0"
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.5.0.tgz#1f09acce796c9a762579f31b2c1cc4c3cddf9f36"
dependencies:
path-parse "^1.0.5"
semver@^5.3.0:
version "5.4.1"
resolved "https://registry.yarnpkg.com/semver/-/semver-5.4.1.tgz#e059c09d8571f0540823733433505d3a2f00b18e"
shelljs@^0.7.8:
version "0.7.8"
resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.7.8.tgz#decbcf874b0d1e5fb72e14b164a9683048e9acb3"
dependencies:
glob "^7.0.0"
interpret "^1.0.0"
rechoir "^0.6.2"
smartchai@^1.0.3: smartchai@^1.0.3:
version "1.0.8" version "1.0.8"
@ -279,16 +233,6 @@ smartq@^1.1.1, smartq@^1.1.6:
typings-global "^1.0.19" typings-global "^1.0.19"
util.promisify "^1.0.0" util.promisify "^1.0.0"
smartshell@^1.0.6:
version "1.0.19"
resolved "https://registry.yarnpkg.com/smartshell/-/smartshell-1.0.19.tgz#459c7a9fab8a25007848ffc711b7a817dd6ffc00"
dependencies:
"@types/which" "^1.0.28"
shelljs "^0.7.8"
smartq "^1.1.6"
typings-global "^1.0.23"
which "^1.3.0"
symbol-tree@^3.2.2: symbol-tree@^3.2.2:
version "3.2.2" version "3.2.2"
resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.2.tgz#ae27db38f660a7ae2e1c3b7d1bc290819b8519e6" resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.2.tgz#ae27db38f660a7ae2e1c3b7d1bc290819b8519e6"
@ -305,12 +249,9 @@ tapbundle@^1.1.1:
smartq "^1.1.1" smartq "^1.1.1"
typings-global "^1.0.19" 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, typings-global@^1.0.23: typings-global@^1.0.14, typings-global@^1.0.16, typings-global@^1.0.19, typings-global@^1.0.20:
version "1.0.23" version "1.0.28"
resolved "https://registry.yarnpkg.com/typings-global/-/typings-global-1.0.23.tgz#cdd085803049dd07d95b2e1475243c6b2db378ab" resolved "https://registry.yarnpkg.com/typings-global/-/typings-global-1.0.28.tgz#e28cc965476564cbc00e438739e0aa0735d323d4"
dependencies:
semver "^5.3.0"
smartshell "^1.0.6"
util.promisify@^1.0.0: util.promisify@^1.0.0:
version "1.0.0" version "1.0.0"
@ -319,12 +260,6 @@ util.promisify@^1.0.0:
define-properties "^1.1.2" define-properties "^1.1.2"
object.getownpropertydescriptors "^2.0.3" object.getownpropertydescriptors "^2.0.3"
which@^1.3.0: word-wrap@^1.0.3:
version "1.3.0" version "1.2.3"
resolved "https://registry.yarnpkg.com/which/-/which-1.3.0.tgz#ff04bdfc010ee547d780bec38e1ac1c2777d253a" resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c"
dependencies:
isexe "^2.0.0"
wrappy@1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"