mapscreenr
Advanced tools
Comparing version 0.5.3 to 0.6.0
@@ -105,6 +105,2 @@ import { IMapScreenr, IMapScreenrSettings, IVariableFunctions, IVariables } from "./IMapScreenr"; | ||
shiftY(dy: number): void; | ||
/** | ||
* Known variables, keyed by name. | ||
*/ | ||
[i: string]: any; | ||
} |
{ | ||
"name": "mapscreenr", | ||
"description": "A flexible container for map attributes and viewport.", | ||
"version": "0.5.3", | ||
"version": "0.6.0", | ||
"author": { | ||
@@ -18,4 +18,4 @@ "name": "Josh Goldberg", | ||
"devDependencies": { | ||
"gulp-shenanigans": "^0.5.19" | ||
"gulp-shenanigans": "0.6.X" | ||
} | ||
} |
@@ -5,4 +5,4 @@ { | ||
"name": "MapScreenr", | ||
"version": "0.5.2" | ||
"version": "0.6.0" | ||
} | ||
} |
@@ -105,6 +105,2 @@ import { IMapScreenr, IMapScreenrSettings, IVariableFunctions, IVariables } from "./IMapScreenr"; | ||
shiftY(dy: number): void; | ||
/** | ||
* Known variables, keyed by name. | ||
*/ | ||
[i: string]: any; | ||
} |
@@ -124,2 +124,2 @@ define(["require", "exports"], function (require, exports) { | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9NYXBTY3JlZW5yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0lBSUE7O09BRUc7SUFDSDtRQTZESTs7Ozs7V0FLRztRQUNILG9CQUFtQixRQUE2QjtZQWhCaEQ7O2VBRUc7WUFDSSxjQUFTLEdBQWUsRUFBRSxDQUFDO1lBYzlCLEVBQUUsQ0FBQyxDQUFDLE9BQU8sUUFBUSxLQUFLLFdBQVcsQ0FBQyxDQUFDLENBQUM7Z0JBQ2xDLE1BQU0sSUFBSSxLQUFLLENBQUMseUNBQXlDLENBQUMsQ0FBQztZQUMvRCxDQUFDO1lBQ0QsRUFBRSxDQUFDLENBQUMsT0FBTyxRQUFRLENBQUMsS0FBSyxLQUFLLFdB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dChkeDogbnVtYmVyLCBkeTogbnVtYmVyKTogdm9pZCB7XHJcbiAgICAgICAgaWYgKGR4KSB7XHJcbiAgICAgICAgICAgIHRoaXMuc2hpZnRYKGR4KTtcclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIGlmIChkeSkge1xyXG4gICAgICAgICAgICB0aGlzLnNoaWZ0WShkeSk7XHJcbiAgICAgICAgfVxyXG4gICAgfVxyXG5cclxuICAgIC8qKlxyXG4gICAgICogU2hpZnRzIHRoZSBNYXBTY3JlZW5yIGhvcml6b250YWxseSBieSBjaGFuZ2luZyBsZWZ0IGFuZCByaWdodCBieSB0aGUgZHguXHJcbiAgICAgKiBcclxuICAgICAqIEBwYXJhbSBkeCAgIEhvdyBmYXIgdG8gc2Nyb2xsIGhvcml6b250YWxseS5cclxuICAgICAqL1xyXG4gICAgcHVibGljIHNoaWZ0WChkeDogbnVtYmVyKTogdm9pZCB7XHJcbiAgICAgICAgdGhpcy5sZWZ0ICs9IGR4O1xyXG4gICAgICAgIHRoaXMucmlnaHQgKz0gZHg7XHJcbiAgICB9XHJcblxyXG4gICAgLyoqXHJcbiAgICAgKiBTaGlmdHMgdGhlIE1hcFNjcmVlbnIgdmVydGljYWxseSBieSBjaGFuZ2luZyB0b3AgYW5kIGJvdHRvbSBieSB0aGUgZHkuXHJcbiAgICAgKiBcclxuICAgICAqIEBwYXJhbSBkeSAgIEhvdyBmYXIgdG8gc2Nyb2xsIHZlcnRpY2FsbHkuXHJcbiAgICAgKi9cclxuICAgIHB1YmxpYyBzaGlmdFkoZHk6IG51bWJlcik6IHZvaWQge1xyXG4gICAgICAgIHRoaXMudG9wICs9IGR5O1xyXG4gICAgICAgIHRoaXMuYm90dG9tICs9IGR5O1xyXG4gICAgfVxyXG5cclxuICAgIC8qKlxyXG4gICAgICogS25vd24gdmFyaWFibGVzLCBrZXllZCBieSBuYW1lLlxyXG4gICAgICovXHJcbiAgICBbaTogc3RyaW5nXTogYW55O1xyXG59XHJcbiJdfQ== | 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BwYXNzZWQgaW50byB2YXJpYWJsZSBjb21wdXRhdGlvbiBGdW5jdGlvbnMuXHJcbiAgICAgKi9cclxuICAgIHB1YmxpYyB2YXJpYWJsZUFyZ3M6IGFueVtdO1xyXG5cclxuICAgIC8qKlxyXG4gICAgICogVG9wIGJvcmRlciBtZWFzdXJlbWVudCBvZiB0aGUgYm91bmRpbmcgYm94LlxyXG4gICAgICovXHJcbiAgICBwdWJsaWMgdG9wOiBudW1iZXI7XHJcblxyXG4gICAgLyoqXHJcbiAgICAgKiBSaWdodCBib3JkZXIgbWVhc3VyZW1lbnQgb2YgdGhlIGJvdW5kaW5nIGJveC5cclxuICAgICAqL1xyXG4gICAgcHVibGljIHJpZ2h0OiBudW1iZXI7XHJcblxyXG4gICAgLyoqXHJcbiAgICAgKiBCb3R0b20gYm9yZGVyIG1lYXN1cmVtZW50IG9mIHRoZSBib3VuZGluZyBib3guXHJcbiAgICAgKi9cclxuICAgIHB1YmxpYyBib3R0b206IG51bWJlcjtcclxuXHJcbiAgICAvKipcclxuICAgICAqIExlZnQgYm9yZGVyIG1lYXN1cmVtZW50IG9mIHRoZSBib3VuZGluZyBib3guXHJcbiAgICAgKi9cclxuICAgIHB1YmxpYyBsZWZ0OiBudW1iZXI7XHJcblxyXG4gICAgLyoqXHJcbiAgICAgKiBDb25zdGFudCBob3Jpem9udGFsIG1pZHBvaW50IG9mIHRoZSBib3VuZGluZyBib3gsIGVxdWFsIHRvIChsZWZ0ICsgcmlnaHQpIC8gMi5cclxuICAgICAqL1xyXG4gICAgcHVibGljIG1pZGRsZVg6IG51bWJlcjtcclxuXHJcbiAgICAvKipcclxuICAgICAqIENvbnN0YW50IHZlcnRpY2FsIG1pZHBvaW50IG9mIHRoZSBib3VuZGluZyBib3gsIGVxdWFsIHRvICh0b3AgKyBib3R0b20pIC8gMi5cclxuICAgICAqL1xyXG4gICAgcHVibGljIG1pZGRsZVk6IG51bWJlcjtcclxuXHJcbiAgICAvKipcclxuICAgICAqIENvbnN0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ciB2ZXJ0aWNhbGx5IGJ5IGNoYW5naW5nIHRvcCBhbmQgYm90dG9tIGJ5IHRoZSBkeS5cclxuICAgICAqIFxyXG4gICAgICogQHBhcmFtIGR5ICAgSG93IGZhciB0byBzY3JvbGwgdmVydGljYWxseS5cclxuICAgICAqL1xyXG4gICAgcHVibGljIHNoaWZ0WShkeTogbnVtYmVyKTogdm9pZCB7XHJcbiAgICAgICAgdGhpcy50b3AgKz0gZHk7XHJcbiAgICAgICAgdGhpcy5ib3R0b20gKz0gZHk7XHJcbiAgICB9XHJcbn1cclxuIl19 |
@@ -190,7 +190,2 @@ import { | ||
} | ||
/** | ||
* Known variables, keyed by name. | ||
*/ | ||
[i: string]: any; | ||
} |
@@ -6,2 +6,19 @@ /* This file was auto-generated by gulp-shenanigans */ | ||
/** | ||
* Informs RequireJS of the file location for a test dependency. | ||
* | ||
* @param testDependencies Modules depended upon for tests. | ||
*/ | ||
function redirectTestDependencies(dependencies) { | ||
for (var _i = 0, dependencies_1 = dependencies; _i < dependencies_1.length; _i++) { | ||
var dependency = dependencies_1[_i]; | ||
requirejs.config({ | ||
paths: (_a = {}, | ||
_a[dependency.toLowerCase() + "/lib"] = "../node_modules/" + dependency + "/src", | ||
_a | ||
) | ||
}); | ||
} | ||
var _a; | ||
} | ||
/** | ||
* Recursively loads test paths under mocha loader. | ||
@@ -20,10 +37,13 @@ * | ||
exports.mochaLoader.setTestPath(loadingPaths[i]); | ||
require([loadingPaths[i]], function () { | ||
requirejs([loadingPaths[i]], function () { | ||
loadTestPaths(loadingPaths, i + 1, onComplete); | ||
}); | ||
} | ||
loadTestPaths(testPaths, 0, function () { | ||
exports.mochaLoader.describeTests(); | ||
exports.mochaLoader.run(); | ||
}); | ||
(function () { | ||
redirectTestDependencies(testDependencies); | ||
loadTestPaths(testPaths, 0, function () { | ||
exports.mochaLoader.describeTests(); | ||
exports.mochaLoader.run(); | ||
}); | ||
})(); | ||
}); |
@@ -5,4 +5,5 @@ /* This file was auto-generated by gulp-shenanigans */ | ||
declare var require: any; | ||
declare var testPaths: any; | ||
declare var requirejs: any; | ||
declare var testDependencies: string[]; | ||
declare var testPaths: string[]; | ||
@@ -12,2 +13,17 @@ export const mochaLoader: MochaLoader = new MochaLoader(mocha); | ||
/** | ||
* Informs RequireJS of the file location for a test dependency. | ||
* | ||
* @param testDependencies Modules depended upon for tests. | ||
*/ | ||
function redirectTestDependencies(dependencies: string[]): void { | ||
for (const dependency of dependencies) { | ||
requirejs.config({ | ||
paths: { | ||
[dependency.toLowerCase() + "/lib"]: `../node_modules/${dependency}/src` | ||
} | ||
}); | ||
} | ||
} | ||
/** | ||
* Recursively loads test paths under mocha loader. | ||
@@ -28,3 +44,3 @@ * | ||
mochaLoader.setTestPath(loadingPaths[i]); | ||
require( | ||
requirejs( | ||
[loadingPaths[i]], | ||
@@ -36,8 +52,12 @@ (): void => { | ||
loadTestPaths( | ||
testPaths, | ||
0, | ||
(): void => { | ||
mochaLoader.describeTests(); | ||
mochaLoader.run(); | ||
}); | ||
((): void => { | ||
redirectTestDependencies(testDependencies); | ||
loadTestPaths( | ||
testPaths, | ||
0, | ||
(): void => { | ||
mochaLoader.describeTests(); | ||
mochaLoader.run(); | ||
}); | ||
})(); |
@@ -20,3 +20,3 @@ /* This file was auto-generated by gulp-shenanigans */ | ||
tests: { | ||
[i: string]: () => void; | ||
[i: string]: (done: Function) => void; | ||
}; | ||
@@ -72,3 +72,3 @@ } | ||
*/ | ||
public it(testName: string, test: (done?: Function) => void): void { | ||
public it(testName: string, test: (done: Function) => void): void { | ||
if (!this.currentTestPath) { | ||
@@ -75,0 +75,0 @@ throw new Error(`No test path defined before adding test '${testName}'.`); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
517269
2649
0
3